/* The walk-away event screen (templates/kiosk/kiosk.html, bidding/kiosk.py).
   Sized for a landscape venue screen; below 760px wide it is the join card. */

body.kiosk { margin: 0; background: #0b1d33; color: #fff; overflow: hidden; height: 100vh; }
.kiosk-screen {
  display: grid; height: 100vh;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 400px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top" "stage side";
}
.kiosk-screen.kiosk-idle, .kiosk-screen.kiosk-idle * { cursor: none; }

.kiosk-top {
  grid-area: top; display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 1.5rem; background: #0b1d33; border-bottom: 1px solid rgba(255,255,255,.12);
}
.kiosk-title { font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 2rem); letter-spacing: .01em; }
.kiosk-live {
  display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem;
  color: #fff; background: #c62828; border-radius: 999px; padding: .2rem .8rem;
}
.kiosk-live.kiosk-off { background: #546e7a; }
.kiosk-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #fff; animation: kiosk-pulse 1.6s infinite; }
@keyframes kiosk-pulse { 50% { opacity: .25; } }
.kiosk-countdown { color: #ffb74d; font-weight: 600; font-size: 1.05rem; }
.kiosk-clock { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 1.15rem; opacity: .85; }

main.kiosk-stage {
  grid-area: stage; position: relative; overflow: hidden; padding: 0; margin: 0; width: auto;
  background: var(--bg);
}
.kiosk-frame {
  position: absolute; top: 0; left: 0; border: 0; background: var(--bg);
  transform-origin: 0 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.kiosk-frame.kiosk-shown { opacity: 1; }

.kiosk-panel {
  position: absolute; inset: 0; padding: 2.5rem 3rem 6rem; overflow: hidden;   /* 6rem: clear of the caption bar */
  background: #0f2742; color: #fff; opacity: 0; transition: opacity .8s ease;
}
.kiosk-panel.kiosk-shown { opacity: 1; }
.kiosk-panel h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 2.6vw, 2.8rem); }

.kiosk-sf-sub { margin: 0 0 1.4rem; opacity: .75; font-size: 1.05rem; }
.kiosk-sf-counts { display: flex; gap: 1.2rem; margin-bottom: 1.6rem; }
.kiosk-sf-count { background: rgba(255,255,255,.08); border-radius: 12px; padding: .8rem 1.4rem; }
.kiosk-sf-count b { display: block; font-size: 2.2rem; line-height: 1.1; }
.kiosk-sf-count span { opacity: .75; font-size: .95rem; }
.kiosk-sf-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.6rem; }
.kiosk-sf-table h3 { margin: 0 0 .5rem; font-size: 1.05rem; opacity: .8; font-weight: 600; }
.kiosk-sf-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.kiosk-sf-table th { text-align: left; font-weight: 600; opacity: .6; padding: .3rem .5rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.kiosk-sf-table td { padding: .45rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.kiosk-sf-table tr.kiosk-new td { animation: kiosk-flash 2.5s ease; }
@keyframes kiosk-flash { from { background: rgba(255,183,77,.35); } to { background: transparent; } }

/* The social scene: an organizer's post and how it looks on each network
   (social/admin.py, bidding/kiosk.py social_posts). Each network's own logo
   and colour (social/icons.py); the previews are BidConnect's drawing of a
   shared post, not the networks' own pages. */
.kiosk-social { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(.7rem, 2vh, 1.3rem); }
.ks-compose {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center;
  background: #fff; color: #222; border-radius: 14px; padding: clamp(.6rem, 1.4vh, 1rem) 1.1rem;
  /* Clear of the scene's name in the top-right corner (.kiosk-label), which
     covered the first share button. */
  margin-right: 22vw;
}
.ks-compose-photo { width: clamp(80px, 8vw, 140px); aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ks-kicker { margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #607d8b; }
.ks-compose-text, .ks-post-text, .ks-caption {
  margin: 0; white-space: pre-line; line-height: 1.35; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical;
}
.ks-compose-text { font-size: clamp(.85rem, 1.05vw, 1.15rem); -webkit-line-clamp: 4; }
.ks-buttons { display: flex; flex-direction: column; gap: .5rem; }
.ks-btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: clamp(.8rem, 1vw, 1.05rem); white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ks-btn .k-logo { width: 1.25em; height: 1.25em; flex: none; }
.ks-facebook { background: #0866FF; }
.ks-x { background: #000; }
.ks-instagram { background: #FF0069; }
.ks-btn.ks-pressed { transform: scale(.93); box-shadow: 0 0 0 4px #ffb74d; }

.ks-previews {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr);
  gap: clamp(.7rem, 1.3vw, 1.3rem); min-height: 0;
}
.ks-preview {
  display: flex; flex-direction: column; gap: .5rem; min-height: 0; overflow: hidden;
  background: #fff; color: #1c1e21; border-radius: 14px; padding: .75rem;
  opacity: .4; transform: scale(.97); transition: opacity .5s ease, transform .5s ease, box-shadow .5s ease;
}
.ks-preview.ks-sent { opacity: 1; transform: none; }
.ks-on-facebook.ks-sent { box-shadow: 0 0 0 4px #0866FF; }
.ks-on-x.ks-sent { box-shadow: 0 0 0 4px #fff; }
.ks-on-instagram.ks-sent { box-shadow: 0 0 0 4px #FF0069; }
.ks-net { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: clamp(.95rem, 1.2vw, 1.25rem); }
.ks-net .k-logo { width: 1.45em; height: 1.45em; flex: none; }
.ks-on-facebook .ks-net { color: #0866FF; }
.ks-on-x .ks-net { color: #000; }
.ks-on-instagram .ks-net { color: #FF0069; }
.ks-ready { margin-left: auto; font-size: .78rem; color: #2e7d32; opacity: 0; transition: opacity .4s ease; }
.ks-sent .ks-ready { opacity: 1; }
.ks-post-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; }
.ks-avatar {
  width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #0f2742; color: #fff; font-size: .75rem; font-weight: 800;
}
.ks-post-text { font-size: clamp(.78rem, .95vw, 1rem); -webkit-line-clamp: 3; }
.ks-card { border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; }
/* 1.91:1 like the real card, but allowed to give up height on a short screen. */
.ks-card-photo { position: relative; aspect-ratio: 1.91 / 1; overflow: hidden; background: #000; flex: 0 1 auto; min-height: 4rem; }
.ks-card-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(14px) brightness(.75); }
.ks-card-fg { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.ks-card-meta { display: flex; flex-direction: column; gap: .1rem; padding: .45rem .65rem; background: #f0f2f5; font-size: .85rem; min-width: 0; }
.ks-domain { text-transform: uppercase; color: #65676b; font-size: .72rem; }
.ks-title, .ks-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-desc { color: #65676b; }
.ks-ig-photo { flex: 1 1 auto; min-height: 0; border-radius: 6px; overflow: hidden; }
.ks-ig-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ks-caption { font-size: clamp(.78rem, .95vw, 1rem); -webkit-line-clamp: 3; flex: none; }
.kiosk-pointer.kiosk-no-tip .kiosk-pointer-tip { display: none; }
@media (max-height: 820px) {
  .ks-compose-photo { width: 72px; }
  .ks-compose-text { -webkit-line-clamp: 3; }
  .ks-preview { padding: .55rem; gap: .35rem; }
  .ks-btn { padding: .35rem .7rem; }
}

/* A simulated bidder's Contact, as read from Salesforce: our styling, not a
   copy of Salesforce's, with a plain note on where it came from. */
/* Fits any screen height: the engagements table takes what's left and loses
   rows rather than running under the caption (measured at 1366x768 and
   1280x720 before this). */
.kiosk-contact { display: flex; flex-direction: column; gap: clamp(.6rem, 1.6vh, 1.2rem); }
.kiosk-contact-table { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.kiosk-contact-head { display: flex; align-items: center; gap: 1.2rem; }
.kiosk-contact-avatar {
  flex: none; width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center;
  background: #ffb74d; color: #0b1d33; font: 800 1.6rem "Montserrat", sans-serif;
}
.kiosk-contact-kicker { margin: 0; opacity: .7; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.kiosk-contact h2 { margin: 0; }
.kiosk-contact-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem 2rem; margin: 0;
  padding: 1rem 1.2rem; border-radius: 12px; background: rgb(255 255 255 / .06);
}
.kiosk-contact-fields div { min-width: 0; }
.kiosk-contact-fields div:first-child { grid-column: span 2; }   /* the email address: one long word */
.kiosk-contact-fields dt { font-size: .85rem; opacity: .6; }
.kiosk-contact-fields dd { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: break-word; }
.kiosk-contact .kiosk-sf-counts { margin: 0; }
.kiosk-contact-note { margin: .2rem 0 0; opacity: .7; font-size: .95rem; }
@media (max-height: 820px) {
  .kiosk-contact h2 { font-size: 1.8rem; }
  .kiosk-contact-avatar { width: 3.2rem; height: 3.2rem; font-size: 1.2rem; }
  .kiosk-contact .kiosk-sf-count { padding: .5rem 1rem; }
  .kiosk-contact .kiosk-sf-count b { font-size: 1.6rem; }
}

/* The admin scene's pointer: drawn over the framed page (which can't be
   clicked), gliding to a bidder and clicking. */
.kiosk-pointer {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)); will-change: transform;
}
.kiosk-pointer::before {
  content: ""; position: absolute; left: 4px; top: 2px; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid #ffb74d; opacity: 0;
}
.kiosk-pointer.kiosk-click::before { animation: kiosk-ripple .7s ease-out; }
@keyframes kiosk-ripple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
.kiosk-pointer-tip {
  position: absolute; left: 34px; top: 30px; white-space: nowrap; padding: .3rem .7rem; border-radius: 8px;
  background: #0b1d33; color: #fff; font: 600 1rem "Montserrat", sans-serif; opacity: 0; transition: opacity .3s;
}
.kiosk-pointer.kiosk-click .kiosk-pointer-tip { opacity: 1; }

.kiosk-promo { display: flex; align-items: center; justify-content: center; }
.kp-card {
  display: grid; justify-items: center; gap: 1.6rem; max-width: 60rem; text-align: center;
  color: #fff; text-decoration: none;
}
.kp-card h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.15; text-wrap: balance; }
.kp-card p { margin: 0; font-size: clamp(1.2rem, 1.9vw, 2rem); opacity: .9; }
.kp-card b { color: #ffb74d; }
.kp-button {
  background: #ffb74d; color: #0b1d33; font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  border-radius: 999px; padding: .7rem 2.2rem;
}
.kp-card:hover .kp-button, .kp-card:focus-visible .kp-button { background: #ffc978; }
.kiosk-join { display: flex; align-items: center; justify-content: center; gap: 4rem; padding-bottom: 4rem; }
.kiosk-join-qr { background: #fff; border-radius: 16px; padding: 1rem; line-height: 0; }
.kiosk-join-qr svg { display: block; width: min(44vh, 30vw); height: auto; }
.kiosk-join-text { max-width: 34rem; font-size: clamp(1.1rem, 1.5vw, 1.6rem); }
.kiosk-join-text ol { padding-left: 1.3em; }
.kiosk-join-text li { margin: .5em 0; }
.kiosk-join-url { font-weight: 700; color: #ffb74d; font-size: 1.15em; }

.kiosk-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.5rem; background: rgba(11,29,51,.94); color: #fff; font-weight: 600;
  font-size: clamp(1.2rem, 1.9vw, 2.1rem); border-top: 3px solid #ffb74d;
}
#kiosk-caption-text { flex: 1; transition: opacity .5s; }
.kiosk-dots { display: flex; gap: .4rem; }
.kiosk-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255,255,255,.3); }
.kiosk-dots i.on { background: #ffb74d; }
/* The scene's name, for a room that isn't technical (Keith, 2026-10-02): large
   in the middle as each scene starts (the title card), then top right for the
   rest of the scene -- the framed pages' headers are empty there (their links
   are hidden), and the drawn scenes keep their content to the left. Amber on
   navy reads on the light pages and the dark ones alike. */
.kiosk-intro {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: rgb(11 29 51 / .55); opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.kiosk-intro.kiosk-intro-on { opacity: 1; }
.kiosk-intro-card {
  max-width: 80%; text-align: center; padding: 1.6rem 2.8rem; border-radius: 18px;
  background: #0b1d33; border: 3px solid #ffb74d; box-shadow: 0 12px 40px rgb(0 0 0 / .4);
  transform: scale(.94); transition: transform .35s ease;
}
.kiosk-intro.kiosk-intro-on .kiosk-intro-card { transform: none; }
.kiosk-intro-card b {
  display: block; color: #fff; font: 700 clamp(2.4rem, 5vw, 5.2rem)/1.1 "Montserrat", sans-serif;
  text-wrap: balance;
}
.kiosk-intro-card span {
  display: block; margin-top: .7rem; color: #ffb74d; font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 2rem); text-wrap: balance;
}
.kiosk-label {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  padding: .45rem 1.3rem; border-radius: 12px;
  background: #ffb74d; color: #0b1d33; box-shadow: 0 6px 22px rgb(0 0 0 / .35);
  font: 800 clamp(1.6rem, 2.6vw, 2.8rem)/1.15 "Montserrat", sans-serif; letter-spacing: .01em;
  pointer-events: none;
}
.kiosk-label.kiosk-label-in { animation: kiosk-label-in .5s ease both; }
@keyframes kiosk-label-in { from { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .kiosk-label.kiosk-label-in { animation: none; }
  .kiosk-intro, .kiosk-intro-card { transition: none; }
}
.kiosk-reconnecting {
  position: absolute; top: 1rem; left: 1rem; z-index: 3; background: #546e7a; color: #fff;
  padding: .3rem .8rem; border-radius: 999px; font-size: .9rem;
}

.kiosk-side {
  grid-area: side; display: flex; flex-direction: column; gap: 1rem; padding: 1rem;
  background: #0b1d33; border-left: 1px solid rgba(255,255,255,.12); min-height: 0;
}
.kiosk-qr { display: flex; align-items: center; gap: .9rem; background: #fff; color: #0b1d33; border-radius: 12px; padding: .6rem; }
.kiosk-qr svg { display: block; width: clamp(90px, 8vw, 150px); height: auto; flex: none; }
.kiosk-qr-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kiosk-qr-text strong { font-size: 1.3rem; }
.kiosk-qr-text span { font-size: .85rem; overflow-wrap: break-word; }
.kiosk-contact-link {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  background: #ffb74d; color: #0b1d33; border-radius: 12px; padding: .7rem .9rem;
}
.kiosk-contact-link strong { font-size: 1.05rem; }
.kiosk-contact-link span { font-size: 1.25rem; font-weight: 700; }
.kiosk-contact-link:hover, .kiosk-contact-link:focus-visible { background: #ffc978; outline: 2px solid #fff; outline-offset: 2px; }
.kiosk-feed { flex: 1; min-height: 0; overflow: hidden; }
.kiosk-feed h3 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.kiosk-list { list-style: none; margin: 0; padding: 0; }
.kiosk-list li {
  padding: .45rem .6rem; margin-bottom: .35rem; border-radius: 8px; background: rgba(255,255,255,.07);
  font-size: .92rem; line-height: 1.35;
}
.kiosk-list li.kiosk-new { animation: kiosk-in .6s ease; }
.kiosk-list li.kiosk-guest { background: rgba(255,183,77,.2); }
@keyframes kiosk-in { from { transform: translateX(30px); opacity: 0; } }
.kiosk-list .k-amt { font-weight: 700; color: #ffb74d; }
.kiosk-list .k-at { float: right; opacity: .5; font-size: .8rem; }
.kiosk-list .k-msg { display: block; opacity: .85; font-size: .85rem; }
.kiosk-list .k-empty { opacity: .5; background: none; }
.kiosk-foot { margin: 0; font-size: .75rem; opacity: .55; }

.kiosk-fullscreen {
  position: fixed; left: 50%; bottom: 5rem; transform: translateX(-50%); z-index: 10;
  background: rgba(0,0,0,.75); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: .6rem 1.2rem; font: inherit; cursor: pointer;
}

.kiosk-phone { display: none; }
@media (max-width: 760px) {
  body.kiosk { overflow: auto; height: auto; background: var(--bg); }
  .kiosk-screen { display: none; }
  .kiosk-phone { display: block; padding: 0 16px; }
}

/* "Every Bid Kept" (bidding/kiosk.py every_bid_kept). */
.kiosk-kept h2 { margin-right: 24vw; }
.kiosk-reports { display: flex; flex-direction: column; gap: 1rem; }
.kiosk-reports h2 { margin: 0 24vw 0 0; }
.kr-sub { margin: 0; max-width: 62rem; opacity: .85; font-size: clamp(1rem, 1.3vw, 1.35rem); }
.kr-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: .4rem; }
.kr-card {
  margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .8rem;
  background: #fff; color: #0b1d33; border-radius: 14px; padding: 1.1rem 1.3rem;
}
.kr-card figcaption { font-weight: 700; font-size: clamp(1.05rem, 1.35vw, 1.4rem); }
.kr-bars { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .5rem; }
.kr-bar > span { display: block; font-size: clamp(.85rem, 1vw, 1.05rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-track { display: flex; align-items: center; gap: .5rem; height: clamp(1.1rem, 1.6vw, 1.6rem); }
.kr-track i { display: block; flex: none; height: 100%; width: 0; background: #1b6ad2; border-radius: 0 6px 6px 0; transition: width 1.1s ease; }
.kr-grown .kr-track i { width: calc((100% - 4rem) * var(--f)); }
.kr-track b { font-variant-numeric: tabular-nums; font-size: clamp(.95rem, 1.15vw, 1.2rem); }
.kr-columns {
  flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  gap: .8rem; border-bottom: 2px solid #c9d3e0;
}
.kr-col { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; position: relative; }
.kr-col b { font-variant-numeric: tabular-nums; font-size: clamp(.95rem, 1.15vw, 1.2rem); }
.kr-col i { display: block; flex: none; width: 100%; height: 0; background: #1b6ad2; border-radius: 6px 6px 0 0; transition: height 1.1s ease; }
.kr-grown .kr-col i { height: calc((100% - 2.2rem) * var(--f)); }
.kr-col span { position: absolute; bottom: -1.7rem; font-weight: 700; font-size: clamp(.9rem, 1.1vw, 1.15rem); }
.kr-axis { margin: 1.6rem 0 0; text-align: center; color: #5b6878; font-size: clamp(.8rem, .95vw, 1rem); }
.kr-foot { margin: 0; opacity: .65; font-size: clamp(.85rem, 1vw, 1.05rem); }
@media (prefers-reduced-motion: reduce) { .kr-track i, .kr-col i { transition: none; } }
.kk-sub { max-width: 60rem; opacity: .85; font-size: clamp(1rem, 1.3vw, 1.35rem); }
.kk-compare { display: flex; gap: 1.5rem; margin: 1.4rem 0; }
.kk-box { background: #ffb74d; color: #0b1d33; border-radius: 14px; padding: 1rem 1.6rem; }
.kk-box > b { display: block; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; }
.kk-box.kk-dim { background: rgba(255,255,255,.1); color: #fff; }
.kiosk-kept h3 { margin: .4rem 0; opacity: .8; }
.kk-table { width: 100%; border-collapse: collapse; font-size: clamp(.95rem, 1.2vw, 1.25rem); }
.kk-table th { text-align: left; opacity: .6; font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.kk-table td { padding: .45rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
