/* Styles for the shared views in js/views/core.js and the app screens (home, lobby). */

.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: flex; flex-direction: column; gap: 9px; }
.how li { counter-increment: how; position: relative; padding-left: 38px; font: 600 15px/1.35 var(--body); }
.how li::before { content: counter(how); position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 400 15px/1 var(--display); }
.screen-mode .how li { font-size: 24px; padding-left: 52px; }
.screen-mode .how li::before { width: 38px; height: 38px; font-size: 22px; }

/* range */
.rread { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.rread .display { font-size: 38px; color: var(--yellow); }
.rtrack { position: relative; height: 54px; margin: 0 14px; touch-action: none; }
.rtrack::before { content: ''; position: absolute; left: -14px; right: -14px; top: 23px; height: 8px; border-radius: 8px; background: var(--ink-3); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 10%); }
.rfill { position: absolute; top: 19px; height: 16px; background: var(--pink); border: 2.5px solid var(--ink); border-radius: 4px; }
.rknob { position: absolute; top: 4px; width: 44px; height: 46px; margin-left: -22px; border-radius: 8px; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: grab; touch-action: none; }
.rknob::after { content: ''; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 3px; margin-left: -1.5px; background: var(--ink); box-shadow: -7px 0 0 var(--ink), 7px 0 0 var(--ink); }
.rends { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); opacity: .6; margin-top: 8px; }
.rreveal { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px 14px; }
.rrow { display: grid; grid-template-columns: 30px 1fr 64px; gap: 10px; align-items: center; animation: rise .4s both; }
.rrow .av { width: 30px; height: 30px; }
.rlane { position: relative; height: 16px; background: var(--ink-3); border-radius: 4px; }
.rlane i { position: absolute; top: 0; bottom: 0; background: var(--smoke); border-radius: 4px; }
.rrow.hit .rlane i { background: var(--mint); }
.rlane b { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.rrow .delta { font-size: 18px; text-align: right; }

/* slider */
.scale-ends { justify-content: space-between; margin-top: 12px; flex: none; }
.scale-ends > * { flex: none; }
.nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.numb { appearance: none; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 30px/1 var(--display); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.numb:nth-child(-n+4) { background: var(--blue); color: #fff; }
.numb:nth-child(n+8) { background: var(--pink); }
.numb:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.big-range { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; background: transparent; }
.big-range::-webkit-slider-runnable-track { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--blue), var(--yellow), var(--pink)); border: 2.5px solid var(--ink); }
.big-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 46px; margin-top: -19px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.big-range::-moz-range-track { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--blue), var(--yellow), var(--pink)); border: 2.5px solid var(--ink); }
.big-range::-moz-range-thumb { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--ink); }
.slane { position: relative; height: 92px; margin: 0 18px; }
.slane::before { content: ''; position: absolute; left: -18px; right: -18px; top: 64px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--yellow), var(--pink)); }
.slane .av { position: absolute; top: 30px; width: 34px; height: 34px; margin-left: -17px; animation: pop .4s both; }
.savg { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--paper); }
.savg span { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--ink); font: 400 16px/1 var(--display); padding: 3px 6px 2px; border-radius: 3px; }

/* vote */
.vbtn { appearance: none; background: transparent; border: 0; cursor: pointer; padding: 8px 4px; border-radius: 10px; }
.vbtn:active { transform: scale(.95); }
.vbtn.picked { background: rgba(255, 79, 139, .25); outline: 3px solid var(--pink); }
.vbtn[disabled]:not(.picked) { opacity: .4; }
.clue { font: 700 13px/1.1 var(--mono); background: var(--yellow); color: var(--ink); padding: 3px 7px; border-radius: 3px; transform: rotate(-2deg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* drinking */
.toastglass { appearance: none; border: 0; background: radial-gradient(circle, rgba(255, 210, 63, .25), transparent 65%); color: var(--yellow); width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; cursor: pointer; animation: lamp 1.2s ease-in-out infinite; }
.toastglass svg { width: 100%; height: 100%; }
.toastglass:active { transform: scale(.93) rotate(-8deg); }

/* finale */
.drumdots { display: inline-flex; gap: 12px; margin-top: 24px; }
.drumdots i { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); animation: eq .35s ease-in-out infinite alternate; }
.drumdots i:nth-child(2) { background: var(--yellow); animation-delay: .12s; } .drumdots i:nth-child(3) { background: var(--blue); animation-delay: .24s; }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

/* home */
.home { display: flex; flex-direction: column; gap: 22px; }
.home .tag { text-align: center; font: 600 15px/1.4 var(--body); opacity: .8; max-width: 380px; margin: 0 auto; }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.avpick { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.avpick .av { width: 84px; height: 84px; }
.avpick::after { content: ''; position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 12a8 8 0 0 1 14-5l2-2v6h-6l2.5-2.5A5 5 0 0 0 7 12M20 12a8 8 0 0 1-14 5l-2 2v-6h6l-2.5 2.5A5 5 0 0 0 17 12' fill='%23151318'/></svg>") center/15px no-repeat; border: 2.5px solid var(--ink); }
.avedit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.avedit .seg button { font-size: 13px; padding: 8px 2px; }
.foot { text-align: center; font: 700 11px/1.6 var(--mono); letter-spacing: .08em; opacity: .5; }
.install { display: flex; gap: 10px; align-items: center; justify-content: center; }

/* lobby */
.lobby { display: flex; flex-direction: column; gap: 16px; }
.lobby .players .ptile .x { position: absolute; top: -6px; left: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lobby .players .ptile .x svg { width: 12px; height: 12px; }
.lobby .crown { position: absolute; top: -12px; left: 50%; margin-left: -12px; width: 24px; height: 24px; color: var(--yellow); }
.startbar { position: sticky; z-index: 8; bottom: -24px; margin: 0 calc(-1 * var(--gutter)) -24px; padding: 18px var(--gutter) 16px; background: linear-gradient(transparent, var(--ink) 34%); }
.startbar .wrap { display: flex; flex-direction: column; gap: 8px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setrow .lbl { font: 700 15px/1.2 var(--body); }
.setrow .lbl small { display: block; font-weight: 600; opacity: .65; font-size: 12px; margin-top: 2px; }
.joinhint { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.joinhint .url { font: 700 14px/1.3 var(--mono); word-break: break-all; }
.screen-lobby { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; padding: 20px 0; }
.screen-lobby .h1 { font-size: 88px; }
@media (max-width: 900px) { .screen-lobby { grid-template-columns: 1fr; } }
.lastshow .brow { box-shadow: none; }

/* pause / control */
.ctlmenu { display: flex; flex-direction: column; gap: 10px; }

.lobby .leave { align-self: center; width: auto; margin-top: 4px; opacity: .8; }

/* selfie avatars */
.sf-sheet { display: flex; flex-direction: column; gap: 12px; }
.sf-frame { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 4px solid var(--ink); background: var(--ink-2); box-shadow: 6px 6px 0 var(--pink); }
.sf-video, .sf-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-video { transform: scaleX(-1); }
.sf-guide { position: absolute; inset: 14%; border-radius: 50%; border: 3px dashed rgba(255, 210, 63, .9); pointer-events: none; }
.sf-shot:not(.hide) ~ .sf-guide { display: none; }
.sf-frame.flash::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; animation: sfflash .35s ease-out forwards; }
@keyframes sfflash { from { opacity: .95; } to { opacity: 0; } }
/* no double-tap zoom anywhere on the camera sheets (Snap turns into "Use this face" under the same thumb) */
.sf-sheet, .sf-sheet *, .sj-sheet, .sj-sheet * { touch-action: manipulation; }
.avedit .sf-open { grid-column: 1 / -1; }
.avtap { appearance: none; border: 0; background: transparent; padding: 0; position: relative; cursor: pointer; }
.avtap .camdot { position: absolute; right: -4px; bottom: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); display: grid; place-items: center; }
.avtap .camdot svg { width: 14px; height: 14px; }

/* side jobs */
.iconbtn.jobs { position: relative; color: var(--yellow); border-color: rgba(255, 210, 63, .5); }
.iconbtn .jobn { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: var(--ink); font: 700 11px/18px var(--mono); text-align: center; padding: 0 4px; }
.sj-sheet { display: flex; flex-direction: column; gap: 12px; }
.sj-job { display: flex; flex-direction: column; gap: 8px; }
.sj-job.sent { opacity: .65; }
.sj-text { font: 700 17px/1.3 var(--body); }
.sj-frame { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 52vh; border-radius: 10px; overflow: hidden; border: 3px solid var(--ink); background: var(--ink-2); }
.sj-video, .sj-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sj-video.mirror { transform: scaleX(-1); }
.sj-frame.flash::after { content: ''; position: absolute; inset: 0; z-index: 2; background: #fff; pointer-events: none; animation: sjflash .35s ease-out forwards; }
@keyframes sjflash { from { opacity: .95; } to { opacity: 0; } }
.sj-warn { color: var(--pink-deep); font-weight: 700; }
/* judging a claim: one screen, never scrolls. Header, proof (takes what is left), mission, timer + two big buttons */
.sjv { height: 100%; min-height: 0; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.sjv-head { flex: none; display: flex; align-items: center; gap: 10px; }
.sjv-head .av { width: 40px; height: 40px; flex: none; }
.sjv-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sjv-who b { font: 400 22px/1 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sjv-proof { position: relative; flex: 1 1 0; min-height: 90px; display: grid; place-items: center; }
.sjv-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  background: #fffaf0; padding: 6px 6px 18px; box-shadow: var(--shadow); transform: rotate(-1.2deg); border-radius: 2px; }
.sjv-claim { width: 100%; max-height: 100%; overflow: hidden; padding: 18px 16px; border-radius: var(--radius); background: var(--paper); color: var(--paper-ink); background-image: var(--grain-light, none); box-shadow: var(--shadow); transform: rotate(-1deg); display: flex; flex-direction: column; gap: 8px; }
.sjv-says { font: 700 15px/1.25 var(--body); opacity: .8; }
.sjv-claim .sjv-mission { font: 400 clamp(24px, 7vw, 34px)/1.02 var(--display); text-transform: uppercase; -webkit-line-clamp: 5; }
.sjv-mission { flex: none; font: 700 16px/1.25 var(--body); text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sjv-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding-bottom: 2px; }
.sjv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sjv-btn { appearance: none; border: 3px solid var(--ink); border-radius: 12px; min-height: 76px; padding: 0 8px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  font: 400 34px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform .08s, box-shadow .08s, opacity .2s; }
.sjv-btn.legit { background: var(--mint); }
.sjv-btn.fake { background: var(--pink); }
.sjv-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.sjv-btn.hit { animation: sjvpress .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.sjv-btn.dim { opacity: .3; }
.sjv-btn:disabled { cursor: default; }
@keyframes sjvpress { 0% { transform: translateY(6px) scale(.94); box-shadow: 0 0 0 var(--ink); } 60% { transform: translateY(0) scale(1.05); } 100% { transform: none; box-shadow: 0 6px 0 var(--ink), 0 0 0 4px var(--paper); } }
.sjv-locked { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.sjv-pick { font: 400 26px/1 var(--display); text-transform: uppercase; padding: 6px 14px 4px; border-radius: 6px; border: 3px solid currentColor; transform: rotate(-3deg); }
.sjv-pick.legit { color: var(--mint); } .sjv-pick.fake { color: var(--pink); }
.sjv-wait { max-height: 58px; overflow: hidden; } .sjv-wait .pills { gap: 4px; } .sjv-wait .pill { font-size: 11px; }
.sjv-ask { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.sjv-q { font: 400 32px/1 var(--display); text-transform: uppercase; }
/* the rubber stamp */
.sjv-stamp { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--rot, -8deg)); animation: sjvslam .42s cubic-bezier(.3, 1.4, .5, 1) both; }
.sjv-stamp span { display: block; padding: 10px 22px 6px; border: 6px solid currentColor; border-radius: 10px; font: 400 64px/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255, 250, 240, .38); box-shadow: inset 0 0 0 3px rgba(255, 250, 240, .38), inset 0 0 0 6px currentColor; text-shadow: 0 0 2px rgba(255, 250, 240, .6); }
.sjv-stamp.legit { color: #0f8a68; } .sjv-stamp.fake { color: var(--pink-deep); }
.sjv-stamp.big span { font-size: 84px; }
.sjv-stamp.still { animation: none; }
@keyframes sjvslam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--rot, -8deg) - 14deg)) scale(3.2); } 55% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, -8deg)) scale(.92); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, -8deg)) scale(1); } }
.sjv-proof.thump { animation: sjvthump .35s .18s; }
@keyframes sjvthump { 30% { transform: translateY(5px) scale(.985); } 60% { transform: translate(-3px, -1px); } }
/* the reveal */
.sjv-tally { display: flex; flex-direction: column; gap: 5px; }
.sjv-tbar { display: flex; height: 16px; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--ink-3); }
.sjv-tbar i { display: block; height: 100%; width: 0; animation: sjvgrow .9s .15s cubic-bezier(.2, .9, .3, 1) forwards; }
.sjv-tbar i.l { background: var(--mint); } .sjv-tbar i.f { background: var(--pink); }
@keyframes sjvgrow { to { width: var(--w); } }
.sjv-tnum { display: flex; justify-content: space-between; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sjv-tnum .l { color: var(--mint); } .sjv-tnum .f { color: var(--pink); }
.sjv-pay { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sjv-pay .av { width: 44px; height: 44px; }
.sjv-pay b { font: 400 24px/1 var(--display); text-transform: uppercase; }
.sjv-pts { font: 400 40px/1 var(--display); color: var(--mint); text-shadow: 2px 2px 0 var(--ink); }
.sjv-sip { display: inline-flex; align-items: center; gap: 4px; font: 400 28px/1 var(--display); text-transform: uppercase; color: var(--yellow); }
.sjv-sip svg { width: 26px; height: 26px; }
.sjv.result .sjv-pay.hide { display: flex !important; visibility: hidden; } /* keeps its height: the photo does not jump */
@media (max-height: 700px) {
  .sjv { gap: 6px; } .sjv-head .av { width: 32px; height: 32px; } .sjv-who b { font-size: 19px; }
  .sjv-btn { min-height: 64px; font-size: 30px; } .sjv-locked { min-height: 64px; }
  .sjv-stamp span { font-size: 50px; } .sjv-stamp.big span { font-size: 64px; }
  .sjv-mission { font-size: 15px; }
}
/* the TV: same layout, bigger type, a hair of breathing room */
.sjv.tv { max-width: 1100px; gap: 14px; }
.sjv.tv .sjv-head { justify-content: center; } .sjv.tv .sjv-head .av { width: 64px; height: 64px; } .sjv.tv .sjv-who b { font-size: 40px; }
.sjv.tv .sjv-mission { font-size: 28px; }
.sjv.tv .sjv-claim { max-width: 820px; padding: 30px 34px; } .sjv.tv .sjv-says { font-size: 24px; } .sjv.tv .sjv-claim .sjv-mission { font-size: 54px; }
.sjv.tv .sjv-q { font-size: 56px; }
.sjv.tv .sjv-stamp span { font-size: 96px; } .sjv.tv .sjv-stamp.big span { font-size: 110px; }
.sjv.tv .sjv-foot { max-width: 820px; width: 100%; margin: 0 auto; }
.sjv.tv .sjv-tbar { height: 26px; } .sjv.tv .sjv-tnum { font-size: 20px; }
.sjv.tv .sjv-pay .av { width: 72px; height: 72px; } .sjv.tv .sjv-pay b { font-size: 44px; } .sjv.tv .sjv-pts { font-size: 72px; } .sjv.tv .sjv-sip { font-size: 48px; }
html.lite .sjv-proof.thump, html.lite .sjv-stamp { animation-duration: .01s; }

/* question card while the host reads it (core view "question") */
.readq .q { font-size: 26px; line-height: 1.25; }
.screen-mode .readq .q { font-size: 48px; }
.readq-wave { display: flex; gap: 5px; align-items: center; justify-content: center; height: 30px; }
.readq-wave i { width: 5px; height: 30%; border-radius: 3px; background: var(--yellow); animation: eq .5s ease-in-out infinite alternate; }

/* "Last one drinks" challenges (views/dash.js) */
.dash-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 230px; justify-content: center; position: relative; }
.dash-art { width: 190px; height: 190px; display: block; overflow: visible; transition: transform .12s; }
.dash-art.big { width: min(52vh, 300px); height: min(52vh, 300px); }
.dash-art.bob { animation: dashbob 1.6s ease-in-out infinite; }
.dash-say { min-height: 1.3em; font-weight: 700; }
.dash-how { max-width: 30em; margin: 0 auto; }
@keyframes dashbob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.dash-btn { appearance: none; border: 0; background: radial-gradient(circle, rgba(255, 210, 63, .2), transparent 66%); border-radius: 50%; padding: 8px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dash-btn:disabled { opacity: .55; }
.dash-btn.glow:not(:disabled) { animation: lamp 1.2s ease-in-out infinite; }
.dash-btn.bump .dash-art { animation: pop .18s ease-out; }
.dash-btn.gold { background: radial-gradient(circle, rgba(255, 210, 63, .85), transparent 68%); }
.dash-btn.gold .dash-art { color: var(--yellow); transform: scale(1.12); }
.dash-btn.hot .dash-art { filter: drop-shadow(0 0 calc(var(--crack, 0) * 22px) var(--red)); transform: rotate(calc(var(--crack, 0) * 6deg)); }
.dash-btn.shatter .dash-art { animation: shake .3s; opacity: .25; }
.dash-meter { width: min(320px, 86%); height: 22px; border: 3px solid var(--paper); border-radius: 22px; position: relative; overflow: hidden; background: var(--ink-2); }
.dash-meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow); transition: width .08s linear; }
.dash-meter span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--paper); mix-blend-mode: difference; }
.dash-candle .flame { transform-origin: 60px 50px; transform: scale(var(--flame, 1)); transition: transform .1s; }
.dash-art.flicker .flame { animation: dashflick .18s ease-in-out infinite alternate; }
.dash-art.out .flame { display: none; }
@keyframes dashflick { to { opacity: .8; } }
.dash-candle .dash-art { cursor: pointer; }
.dash-pad, .dash-drag { touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 50%; cursor: grab; }
.dash-pad { background: radial-gradient(circle, rgba(166, 139, 255, calc(.12 + var(--glow, 0) * .6)), transparent 68%); padding: 10px; }
.dash-track { height: 300px; display: flex; align-items: flex-end; border-left: 3px dashed var(--smoke); border-right: 3px dashed var(--smoke); padding: 0 14px; }
.dash-track .dash-art, .dash-bar .dash-art { width: 120px; height: 120px; }
.dash-drag { transition: transform .35s cubic-bezier(.2, .9, .3, 1); }
.dash-bar { height: 300px; width: min(220px, 70%); display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(90deg, transparent 18%, rgba(255, 122, 61, .25) 18% 82%, transparent 82%); border-radius: 8px; overflow: hidden; }
.dash-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; width: min(360px, 100%); transition: opacity .2s; }
.dash-grid.hide { opacity: 0; pointer-events: none; }
.dash-grid.lock { opacity: .45; }
.dash-cell { appearance: none; border: 0; background: none; padding: 2px; cursor: pointer; }
.dash-cell .dash-art { width: 100%; height: auto; aspect-ratio: 1; }
.dash-cell .dash-art { color: var(--yellow); }
.dash-cell:nth-child(3n) .dash-art { color: var(--paper); }
.dash-cell.found { outline: 3px solid var(--mint); border-radius: 8px; }
.dash-art.popped .cap { transform: translateY(-30px) rotate(40deg); transition: transform .3s; }
.dash-pourbox { display: flex; align-items: flex-end; gap: 4px; height: 220px; }
.dash-pourbox .pourbottle { width: 110px; height: 110px; transform-origin: 70% 30%; align-self: flex-start; transition: transform .1s; }
.dash-glass { width: 110px; height: 170px; border: 4px solid var(--paper); border-top: 0; border-radius: 0 0 16px 16px; position: relative; overflow: hidden; background: rgba(255, 255, 255, .04); }
.dash-glass .liq { position: absolute; inset: auto 0 0 0; height: 0; background: var(--yellow); }
.dash-glass b { position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed var(--pink); }
.dash-glass.ok { border-color: var(--mint); }
.dash-vial { width: min(300px, 80%); height: 90px; border-radius: 45px; background: var(--mint); border: 4px solid var(--paper); position: relative; display: grid; place-items: center; overflow: hidden; }
.dash-vial b { width: 52px; height: 52px; border-radius: 50%; border: 3px dashed var(--ink); position: absolute; }
.dash-vial .bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .12); transition: transform .08s; }
.dash-vial.ok { background: var(--yellow); }
.dash-dot { width: 120px; height: 120px; border-radius: 50%; background: var(--pink); border: 4px solid var(--paper); touch-action: none; }
.dash-art.shake { animation: shake .3s; }
.dash-rows .brow.lose { background: var(--yellow); }
.dash-rows { max-width: 420px; margin: 0 auto; width: 100%; }
html.lite .dash-art.bob, html.lite .dash-btn.glow, html.lite .dash-art.flicker .flame { animation: none !important; }
html.lite .dash-btn.hot .dash-art { filter: none; }
.dash-rows .brow .sc { font: 700 15px/1.2 var(--mono); white-space: nowrap; }
.dash-rows .brow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the mode intro card: compact on phones (the stage is only ~550px tall under the top bar and the host caption) */
.intro-name { margin: 12px 0 6px; }
.intro-tl { font: 700 17px/1.3 var(--body); margin-bottom: 12px; }
@media (max-height: 900px) {
  .introcard { padding: 12px 14px; }
  .introcard .intro-art { height: min(17vh, 34vw); margin-bottom: 8px; }
  .introcard .intro-name { font-size: clamp(30px, 9.5vw, 54px); margin: 8px 0 4px; }
  .introcard .intro-tl { font-size: 15px; margin-bottom: 8px; }
  .introcard .how { gap: 6px; }
  .introcard .how li { font-size: 13.5px; line-height: 1.3; padding-left: 32px; }
  .introcard .how li::before { width: 23px; height: 23px; font-size: 13px; }
}
.screen-mode .introcard { padding: 18px; }
.screen-mode .introcard .intro-art { height: 34vh; }
.screen-mode .introcard .intro-name { font-size: clamp(44px, 13vw, 92px); }
.screen-mode .introcard .intro-tl { font-size: 17px; }
.screen-mode .introcard .how li { font-size: 24px; padding-left: 52px; }
.screen-mode .introcard .how li::before { width: 38px; height: 38px; font-size: 22px; }

/* the intro card on a phone while a TV is on: the same card, compact (no art, tighter type), rules always visible */
.introcard.compact { padding: 12px 14px; }
.introcard.compact .intro-name { font-size: clamp(28px, 9vw, 44px); margin: 8px 0 4px; }
.introcard.compact .intro-tl { font-size: 14.5px; margin-bottom: 8px; }
.introcard.compact .how { gap: 6px; }
.introcard.compact .how li { font-size: 13.5px; line-height: 1.3; padding-left: 32px; }
.introcard.compact .how li::before { width: 23px; height: 23px; font-size: 13px; }

/* the tip jar ("Buy the station a round", public/js/tipjar.js): finale done stage only. Phone = a quiet paper card,
   TV = a small QR in the bottom corner. No filters, blend modes or loops (LITE-safe); the only motion is a one-off
   drop-in that reduced motion (and LITE) skip. */
.tipjar { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; color: var(--paper-ink); max-width: 420px; align-self: center; width: 100%; }
.tipjar .tj-art-box { flex: none; width: 92px; }
.tipjar .tj-art { width: 100%; height: auto; display: block; }
.tipjar .tj-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tipjar .tj-q { font-family: var(--display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.tipjar .small { opacity: .75; }
.tipjar .tj-btn { margin-top: 6px; align-self: flex-start; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.lite) .tipjar { animation: tj-drop .5s cubic-bezier(.3, 1.6, .5, 1) 1.2s both; } }
@keyframes tj-drop { from { opacity: 0; transform: translateY(16px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.tipqr { align-self: flex-end; display: flex; align-items: center; gap: 1.6vh; margin-top: 1.4vh; padding: 1vh 1.4vh; background: var(--paper); color: var(--paper-ink); border: 2px solid var(--paper-ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: 46vh; }
.tipqr .tq-code { flex: none; width: 13vh; height: 13vh; }
.tipqr .tq-code svg { width: 100%; height: 100%; display: block; }
.tipqr .tq-text { display: flex; flex-direction: column; gap: .4vh; font-size: 1.9vh; line-height: 1.15; }
.tipqr .tq-text b { font-family: var(--display); font-size: 2.6vh; text-transform: uppercase; letter-spacing: .02em; }
