/* The bar TV: a 1920 x 1080 stage scaled to the screen, read from across the room */
html, body { height: 100%; overflow: hidden; background: #0d0a08; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 0; }
#fit { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
/* pinned to the middle of the window and scaled from there, whatever the window's size */
#stage { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; transform-origin: center; overflow: hidden; pointer-events: auto; }
#stage.over-game { pointer-events: none; }
#stage.over-game > * { pointer-events: auto; }
.screen { position: absolute; inset: 0; background: radial-gradient(1200px 700px at 30% 20%, #2a2016 0%, var(--ground) 60%), var(--ground); }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* top bar shared by most screens */
.bar { position: absolute; left: 96px; right: 96px; top: 56px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.bar img { height: 62px; }
.bar .tonight { font-size: 26px; color: var(--ink-soft); }
.bar .tonight b { color: var(--venue); font-weight: 500; }

/* ---------- setup (bar staff, once a night) ---------- */
.setup { display: grid; grid-template-columns: 880px 1fr; gap: 120px; padding: 200px 120px 0; }
.setup h1 { font-size: 150px; margin: 18px 0 30px; }
.setup p.lede { font-size: 30px; line-height: 1.4; color: var(--ink-soft); max-width: 760px; margin: 0; }
.setup form { display: grid; gap: 34px; align-content: start; padding-top: 30px; }
.setup label { display: grid; gap: 14px; font-size: 22px; }
.setup input[type=text] { font: 400 52px 'Spirit', serif; background: var(--ground-2); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 18px; padding: 22px 28px; }
.swatches { display: flex; gap: 18px; }
.swatches button { width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 3px var(--ground), 0 0 0 4.5px transparent; transition: transform .2s var(--spring); }
.swatches button[aria-pressed=true] { box-shadow: 0 0 0 4px var(--ground), 0 0 0 7px var(--ink); transform: scale(1.06); }
.menu-pick { display: grid; gap: 12px; }
.menu-pick label { display: flex; align-items: center; gap: 18px; font-size: 30px; background: var(--ground-2); border-radius: 16px; padding: 18px 24px; cursor: pointer; }
.menu-pick label.soon { opacity: .45; cursor: default; }
.menu-pick small { margin-left: auto; font-size: 20px; color: var(--ink-faint); }
.menu-pick input { width: 30px; height: 30px; accent-color: var(--butter); }
.setup .btn { font-size: 34px; justify-self: start; margin-top: 10px; }
.staff { display: grid; grid-template-columns: 520px 1fr; gap: 100px; align-items: center; padding: 220px 160px 0; }
.staff h1 { font-size: 120px; margin: 0 0 30px; }
.staff p { font-size: 32px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 36px; max-width: 900px; }
.staff .keys { font-size: 24px; color: var(--ink-faint); line-height: 1.8; }
.staff .keys kbd { font: 500 22px 'Social'; border: 1.5px solid var(--ink-faint); border-radius: 8px; padding: 2px 10px; margin-right: 8px; color: var(--ink); }

/* ---------- lobby ---------- */
.lobby .join { position: absolute; left: 120px; top: 190px; width: 640px; }
.lobby .join .eyebrow { font-size: 26px; color: var(--ink-soft); }
.qr { background: var(--linen); border-radius: 28px; padding: 26px; display: inline-block; margin: 26px 0 30px; box-shadow: 0 30px 80px #0008; }
.qr canvas, .qr img { display: block; image-rendering: pixelated; }
.address { font-size: 30px; color: var(--ink-soft); }
.address .code { display: block; font: 400 168px/1 'Spirit', serif; color: var(--venue); letter-spacing: .04em; margin-top: 6px; }
.lobby .room { position: absolute; left: 880px; right: 96px; top: 200px; }
.lobby h1 { font-size: 150px; margin: 0 0 54px; }
.lobby h1 em { font-style: normal; color: var(--tomato-hi); }
.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tables .t { background: var(--ground-2); border-radius: 22px; padding: 22px 24px 20px; animation: seat .6s var(--spring) both; }
.tables .t b { display: block; font: 400 54px/1 'Spirit', serif; }
.tables .t span { display: block; font-size: 20px; color: var(--ink-soft); margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tables .empty { grid-column: 1 / -1; font-size: 34px; color: var(--ink-faint); padding: 30px 0; }
@keyframes seat { from { transform: translateY(24px) scale(.94); opacity: 0; } }
.menu-line { position: absolute; left: 120px; right: 96px; bottom: 70px; display: flex; gap: 56px; align-items: baseline; border-top: 1.5px solid var(--rule); padding-top: 30px; }
.menu-line .eyebrow { font-size: 22px; color: var(--ink-soft); white-space: nowrap; }
.menu-line ol { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0; }
.menu-line li { font: 400 44px 'Spirit', serif; white-space: nowrap; }
.menu-line li i { font-style: normal; color: var(--tomato-hi); margin-right: 14px; }
.menu-line li.done { opacity: .35; }
.menu-line li.now { color: var(--venue); }
.go { position: absolute; right: 96px; bottom: 196px; display: flex; align-items: center; gap: 28px; }
.go .btn { font-size: 40px; padding: 26px 48px; }
.go small { font-size: 22px; color: var(--ink-faint); }
.go .wait { font-size: 26px; color: var(--ink-faint); }
.go .staffhint { background: none; border: 0; padding: 0; cursor: pointer; font-size: 22px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 5px; margin-left: 20px; }
.go .staffhint:hover { color: var(--ink); }

/* ---------- next up ---------- */
.intro { background: var(--g-bg); }
.intro .course { position: absolute; left: 140px; top: 210px; font-size: 30px; color: var(--g-accent); }
.intro h1 { position: absolute; left: 120px; top: 260px; margin: 0; font-size: 300px; line-height: 1.1; color: var(--g-ink); animation: rise .9s var(--ease-out) both; }
.intro .tag { position: absolute; left: 150px; top: 620px; font: 400 64px 'Spirit', serif; color: var(--g-ink); opacity: .8; animation: rise .9s .12s var(--ease-out) both; }
.intro ol { position: absolute; left: 140px; right: 140px; top: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.intro li { counter-increment: s; font-size: 34px; line-height: 1.3; color: var(--g-ink); border-top: 2px solid color-mix(in srgb, var(--g-ink) 30%, transparent); padding-top: 22px; animation: rise .8s calc(.3s + var(--i) * .12s) var(--ease-out) both; }
.intro li::before { content: counter(s); display: block; font: 400 60px/1 'Spirit', serif; color: var(--g-accent); margin-bottom: 12px; }
.timer { position: absolute; left: 0; bottom: 0; height: 12px; background: var(--g-accent, var(--butter)); transform-origin: left; animation: drain linear both; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.intro .phones { position: absolute; right: 140px; top: 220px; text-align: right; font-size: 30px; color: var(--g-ink); opacity: .85; line-height: 1.4; }
.intro .phones b { display: block; font: 400 120px/1 'Spirit', serif; color: var(--g-accent); }

/* ---------- over the game: a corner card so late phones can still get in ---------- */
.corner { position: absolute; right: 36px; bottom: 36px; display: flex; gap: 22px; align-items: center; background: #16120ee6; border-radius: 24px; padding: 18px 26px 18px 18px; backdrop-filter: blur(8px); box-shadow: 0 20px 60px #0009; }
.corner .qr { margin: 0; padding: 10px; border-radius: 14px; box-shadow: none; }
.corner .address { font-size: 20px; line-height: 1.3; }
.corner .address .code { font-size: 64px; }
.banner { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); background: var(--butter); color: var(--ground); border-radius: 999px; padding: 18px 40px; font-size: 32px; font-weight: 500; white-space: nowrap; box-shadow: 0 20px 60px #0009; animation: drop .6s var(--spring) both; }
@keyframes drop { from { transform: translate(-50%, -140px); } }

/* ---------- a game's result ---------- */
.result { position: absolute; inset: 0; background: #0d0a08d9; backdrop-filter: blur(6px); }
.result .card { position: absolute; left: 50%; top: 50%; width: 1240px; transform: translate(-50%, -50%); animation: pop .7s var(--spring) both; }
@keyframes pop { from { transform: translate(-50%, -46%) scale(.94); opacity: 0; } }
.result .eyebrow { font-size: 26px; color: var(--ink-soft); }
.result h1 { font-size: 170px; margin: 18px 0 50px; }
.result h1 em { font-style: normal; color: var(--venue); }
.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 90px 1fr 280px 150px; align-items: baseline; background: var(--ground-2); border-radius: 18px; padding: 18px 30px; font-size: 30px; animation: rise .6s calc(.25s + var(--i) * .08s) var(--ease-out) both; }
.row .pl { font: 400 54px/1 'Spirit', serif; color: var(--tomato-hi); }
.row .nm { font: 400 54px/1 'Spirit', serif; }
.row .sc { color: var(--ink-soft); text-align: right; }
.row .pt { font: 400 54px/1 'Spirit', serif; color: var(--butter); text-align: right; }
.row.first { background: var(--ground-3); }

/* ---------- the night so far ---------- */
.standings .head { position: absolute; left: 120px; top: 190px; }
.standings .head .eyebrow { font-size: 26px; color: var(--ink-soft); }
.standings h1 { font-size: 160px; margin: 16px 0 0; }
.board { position: absolute; left: 120px; width: 1080px; top: 470px; display: grid; gap: 14px; }
.board .line { display: grid; grid-template-columns: 80px 260px 1fr 120px; gap: 26px; align-items: center; animation: rise .6s calc(var(--i) * .07s) var(--ease-out) both; }
.board .pl { font: 400 52px/1 'Spirit', serif; color: var(--tomato-hi); }
.board .nm { font: 400 56px/1 'Spirit', serif; white-space: nowrap; }
.board .meter { height: 26px; border-radius: 99px; background: var(--ground-2); overflow: hidden; }
.board .meter i { display: block; height: 100%; border-radius: 99px; background: var(--venue); transform-origin: left; animation: fill 1.1s .3s var(--ease-out) both; }
@keyframes fill { from { transform: scaleX(0); } }
.board .pts { font: 400 56px/1 'Spirit', serif; text-align: right; }
.next { position: absolute; right: 96px; top: 470px; width: 520px; background: var(--ground-2); border-radius: 28px; padding: 40px 44px; }
.next .eyebrow { font-size: 22px; color: var(--ink-soft); }
.next b { display: block; font: 500 italic 92px/1.05 'Kansas', serif; margin: 18px 0 14px; color: var(--venue); }
.next span { font-size: 28px; color: var(--ink-soft); }
.next .lo { display: inline-block; margin-top: 26px; background: var(--tomato); color: var(--linen); border-radius: 999px; padding: 10px 22px; font-size: 22px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- last orders ---------- */
.final h1 { position: absolute; left: 120px; right: 120px; top: 200px; margin: 0; font-size: 210px; }
.final h1 em { font-style: normal; color: var(--venue); }
.final .podium { position: absolute; left: 120px; right: 120px; top: 640px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.final .podium div { background: var(--ground-2); border-radius: 26px; padding: 30px 36px; animation: rise .7s calc(.3s + var(--i) * .12s) var(--ease-out) both; }
.final .podium b { display: block; font: 400 72px/1 'Spirit', serif; }
.final .podium span { font-size: 26px; color: var(--ink-soft); }
.final .thanks { position: absolute; right: 120px; bottom: 80px; font: 500 italic 64px 'Kansas', serif; color: var(--ink-soft); }
