/* Học cách học · 6B0 — projector deck on a fixed 1920 × 1080 stage, scaled to fit the window.
 * Sections: fonts · tokens · stage · text styles · slide pieces · widgets · leaderboard · tools (edit bar, toast, help, grid) · cheat sheet
 */

/* ---------- Fonts (local files, so the deck works offline) ---------- */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; src: url(fonts/BeVietnamPro-Regular.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: italic; src: url(fonts/BeVietnamPro-Italic.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; src: url(fonts/BeVietnamPro-Medium.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; src: url(fonts/BeVietnamPro-SemiBold.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; src: url(fonts/BeVietnamPro-Bold.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; src: url(fonts/BeVietnamPro-ExtraBold.ttf); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 900; src: url(fonts/BeVietnamPro-Black.ttf); }
@font-face { font-family: "Merriweather"; font-weight: 400; src: url(fonts/Merriweather-Regular.ttf); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: italic; src: url(fonts/Merriweather-Italic.ttf); }
@font-face { font-family: "Merriweather"; font-weight: 700; src: url(fonts/Merriweather-Bold.ttf); }
@font-face { font-family: "Merriweather"; font-weight: 900; src: url(fonts/Merriweather-Black.ttf); }

/* ---------- Tokens (brand: huydung-brand) ---------- */
:root {
  --red: #BD0129; --deep: #8E011F; --dark: #51000C; --cream: #F8F7D0;
  --paper: #FFFFFF; --soft: #FFFBF0; --ink: #1D1D1D; --mute: #5E5A55; --line: #E7DCCB;
  --t-red: #D32F2F; --t-blue: #1E63C6; --t-green: #2E8B47; --t-yellow: #F2B705; --t-yellow-ink: #2B2100;
  --f-head: "Merriweather", Georgia, serif;
  --f-body: "Be Vietnam Pro", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; -webkit-text-size-adjust: 100%; touch-action: manipulation; }  /* iOS: no landscape text inflation, no double-tap zoom */
body { background: #2A1A1C; color: var(--ink); font-family: var(--f-body); overflow: hidden; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 4px solid var(--t-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Stage ---------- */
#stage { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; transform-origin: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); overflow: hidden; }
.sl { position: absolute; inset: 0; background: var(--paper); overflow: hidden; font: 400 16px/normal var(--f-body); color: var(--ink); }
.sl.bg-red { background: var(--deep); color: #fff; }
.sl.bg-cream { background: var(--soft); }
.frame { position: absolute; inset: 0; border: 12px solid var(--deep); pointer-events: none; }
.bg-red .frame { display: none; }
.foot { position: absolute; left: 120px; bottom: 40px; z-index: 3; font: 500 24px/1 var(--f-body); color: var(--mute); }
.bg-red .foot { color: #F3CFCF; }
.logo { position: absolute; right: 110px; bottom: 30px; z-index: 3; height: 44px; width: auto; border-radius: 4px; }
.bg-red .logo { box-shadow: 0 0 0 3px #fff; }  /* the red mark needs an edge on red slides */

/* A block is one positioned box on the slide; .in holds its content. */
.blk { position: absolute; }
.blk .in { width: 100%; height: 100%; outline: none; }

/* ---------- Text styles (the "style" of a text block) ---------- */
.h1 { font: 900 132px/1.08 var(--f-head); letter-spacing: -1px; }
.h2 { font: 900 70px/1.15 var(--f-head); color: var(--red); text-wrap: balance; }
.bg-red .h2 { color: #fff; }
.qtitle { font-size: 50px; line-height: 1.25; }  /* long question used as a slide title */
.cst { font-size: 58px; text-align: center; }    /* cheat sheet title */
.lead { font: 500 46px/1.35 var(--f-body); }
.body { font: 400 38px/1.42 var(--f-body); }
.small { font: 400 30px/1.4 var(--f-body); color: var(--mute); }
.bg-red .small { color: #F7DADA; }
.big { font: 900 104px/1.1 var(--f-head); color: var(--red); text-align: center; }
.bg-red .big { color: var(--cream); }
.note { background: var(--cream); border-left: 10px solid var(--dark); padding: 26px 34px; font: 500 38px/1.4 var(--f-body); color: var(--ink); }
.card { border: 4px solid var(--dark); background: #fff; padding: 28px 32px; font: 400 36px/1.4 var(--f-body); color: var(--ink); }
.card h3 { font: 900 44px/1.2 var(--f-head); color: var(--red); margin: 0 0 12px; }
.card b, .note b, .body b, .lead b { color: var(--red); }
.lead a, .body a, .note a { color: var(--red); font-weight: 700; }
.divnum { font: 900 760px/1 var(--f-head); color: rgba(248,247,208,.18); letter-spacing: -20px; }
.divt { font: 900 150px/1.05 var(--f-head); color: #fff; display: flex; align-items: center; }
.sequence { font: 900 56px/1.42 var(--f-head); letter-spacing: 12px; }
.sequence.numbers { letter-spacing: 8px; }
ol, ul { margin: 0; padding-left: 1.15em; }
li { margin: .18em 0; }
li::marker { color: var(--red); font-weight: 800; }
table.t { width: 100%; border-collapse: collapse; font: 400 32px/1.3 var(--f-body); }
table.t th { background: var(--deep); color: #fff; text-align: left; padding: 14px 18px; font-weight: 700; }
table.t td { border-bottom: 2px solid var(--line); padding: 14px 18px; vertical-align: top; }

/* ---------- Slide pieces ---------- */
.btn { font: 700 28px/1 var(--f-body); background: var(--deep); color: #fff; border: 0; border-radius: 14px; padding: 16px 24px; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--deep); border: 3px solid var(--deep); }
.btn:disabled { opacity: .4; cursor: default; }
.actions { margin-top: 26px; display: flex; gap: 18px; align-items: center; }
.actions .btn { flex: none; white-space: nowrap; }

/* Team colours */
.c-R { background: var(--t-red); } .c-B { background: var(--t-blue); } .c-G { background: var(--t-green); }
.c-Y { background: var(--t-yellow); color: var(--t-yellow-ink); }
.chips { display: flex; gap: 28px; flex-wrap: wrap; }
.chip { flex: 1; min-width: 300px; border-radius: 24px; color: #fff; padding: 34px 30px; font: 800 54px/1.1 var(--f-body); text-align: center; }
.chip small { display: block; font: 500 30px/1.3 var(--f-body); margin-top: 10px; opacity: .95; }
.chip.mini { display: inline-flex; align-items: center; gap: 8px; flex: none; min-width: 0; padding: 4px 18px 4px 6px; font-size: 30px; }
.chip .tk { display: block; height: 170px; width: auto; margin: 0 auto 12px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.chip.mini .tk { height: 44px; margin: 0; filter: none; }

/* Ladder (slide "Chiếc thang") */
.ladder { display: flex; align-items: flex-end; gap: 22px; height: 100%; margin: 0; padding: 0; list-style: none; }
.ladder .st { flex: 1; border: 4px solid var(--dark); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.ladder .st .n { font: 900 64px/1 var(--f-head); color: var(--red); }
.ladder .st .nm { font: 800 36px/1.15 var(--f-body); color: var(--red); }
.ladder .st .ex { font: 400 30px/1.35 var(--f-body); color: var(--ink); }
.ladder .st:nth-child(2) { background: #FBEFE3; }
.ladder .st:nth-child(3) { background: var(--cream); }
.ladder .st:nth-child(4) { background: var(--deep); border-color: var(--deep); }
.ladder .st:nth-child(4) .n, .ladder .st:nth-child(4) .nm { color: #fff; }
.ladder .st:nth-child(4) .ex { color: #FBE3E3; }

/* ---------- Widgets ---------- */

/* timer */
.timer { height: 100%; display: flex; align-items: center; justify-content: center; gap: 26px; background: var(--cream); border: 4px solid var(--dark); border-radius: 28px; cursor: pointer; user-select: none; }
.timer .tv { font: 900 120px/1 var(--f-head); color: var(--deep); font-variant-numeric: tabular-nums; }
.timer.long .tv { font-size: 96px; }  /* 10:00 and up needs one more digit */
.timer.run .tv { color: var(--red); }
.timer.done { background: var(--red); }
.timer.done .tv { color: #fff; }
.timer.mini { border-width: 3px; border-radius: 20px; }
.timer.mini .tv { font-size: 64px; }
.timer .tb { display: flex; flex-direction: column; gap: 10px; }
.timer button { font: 700 26px/1 var(--f-body); border: 3px solid var(--dark); background: #fff; color: var(--dark); padding: 12px 18px; border-radius: 12px; cursor: pointer; }
.timer .nudge { display: flex; gap: 8px; }
.timer .nudge button { padding: 10px 12px; font-size: 22px; }

/* reveal */
.reveal { height: 100%; border: 4px dashed var(--dark); border-radius: 20px; padding: 24px 30px; font: 400 34px/1.4 var(--f-body); cursor: pointer; background: #fff; overflow: auto; }
.reveal .lab { font: 700 30px/1.3 var(--f-body); color: var(--deep); }
.reveal .ans { display: none; margin-top: 12px; }
.reveal.open { border-style: solid; background: var(--cream); }
.reveal.open .ans { display: block; }

/* video */
.vid { height: 100%; background: #1E1416; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; padding: 30px; }
.vid video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.vid .vl { font: 800 44px/1.2 var(--f-body); }
.vid .vs { font: 400 28px/1.4 var(--f-body); color: #E8D6D6; }


/* wheel */
.wh { height: 100%; display: flex; gap: 50px; align-items: center; }
.wh-l { position: relative; flex: none; width: 700px; height: 700px; }
.wh-l canvas { width: 700px; height: 700px; display: block; }
.wh-pin { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-top: 56px solid var(--ink); z-index: 2; }
.wh-r { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.wh-r .row { display: flex; gap: 14px; flex-wrap: wrap; }
.wh-row { display: flex; justify-content: space-between; gap: 16px; border: 4px solid var(--line); border-radius: 16px; padding: 16px 22px; font: 500 32px/1.2 var(--f-body); }
.wh-row b { font: 800 34px/1.2 var(--f-body); color: var(--mute); }
.wh-row.on { border-color: var(--dark); background: var(--cream); }
.wh-row.on b { color: var(--red); }

/* quiz: options on the left, one row of A–D buttons per team on the right */
.quiz { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.quiz .qq { font: 600 40px/1.3 var(--f-body); }
.quiz .qb { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr .78fr; gap: 22px; }
.quiz .qo { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.quiz .op { border: 4px solid var(--dark); border-radius: 18px; padding: 14px 20px; display: flex; gap: 14px; font: 500 40px/1.25 var(--f-body); background: #fff; align-items: flex-start; }
.quiz .op b { font: 900 44px/1 var(--f-head); color: var(--red); }
.quiz.open .op { opacity: .35; }
.quiz.open .op.ok { opacity: 1; background: #DDF1E2; border: 6px solid var(--t-green); }
.quiz .qt { display: flex; flex-direction: column; gap: 12px; }
.quiz .qtm { flex: 1; display: flex; gap: 8px; align-items: center; border-radius: 16px; padding: 10px 14px; color: #fff; }
.quiz .qtm .qn { font: 800 26px/1.1 var(--f-body); flex: 1; min-width: 0; }
.quiz .qx { display: flex; align-items: center; gap: 12px; font: 700 24px/1.2 var(--f-body); color: var(--ink); background: var(--cream); border-left: 8px solid var(--dark); padding: 8px 14px; }
.quiz .qx .chip.mini { font-size: 24px; padding: 6px 14px; }
.quiz .qx .chip.mini .tk { height: 30px; }
.quiz .qtm button { width: 58px; height: 58px; flex: none; border: 0; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--ink); font: 800 30px/1 var(--f-body); cursor: pointer; }
.quiz .qtm button.on { background: var(--ink); color: #fff; outline: 3px solid #fff; }
.quiz .c-Y.qtm button.on { background: var(--t-yellow-ink); }
.quiz .qtm.picked button:not(.on) { opacity: .28; }
.quiz .qtm em { font: 900 38px/1 var(--f-body); font-style: normal; width: 38px; text-align: center; visibility: hidden; }
.quiz.open .qtm em { visibility: visible; }
.quiz.open .qtm button.on.ok { background: #1F7A3A; color: #fff; animation: pulse-green 1s ease-in-out infinite; }
.quiz.open .qtm button.on.bad { background: #7A0010; color: #fff; animation: pulse-red 1s ease-in-out infinite; }
.quiz .qr { flex: none; padding: 14px 18px; font-size: 24px; }
/* aicase: results panel beside the part 2 video of a Dùng AI case */
.aic { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.aic-h { font: 800 22px/1.2 var(--f-body); color: var(--mute); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.aic-r { display: flex; align-items: center; gap: 14px; }
.aic-r .chip.mini { font-size: 24px; width: 220px; }
.aic-r .chip.mini .tk { height: 34px; }
.aic-r b { width: 64px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; font: 900 32px/1 var(--f-body); }
.aic-r b.ok { background: #1F7A3A; } .aic-r b.bad { background: #7A0010; }
.aic-r em { font: 900 34px/1 var(--f-body); font-style: normal; }
.aic-x, .aic-v { display: flex; gap: 8px; }
.aic-x button, .aic-v button { flex: 1; height: 54px; border: 3px solid transparent; border-radius: 12px; font: 800 22px/1 var(--f-body); color: #fff; cursor: pointer; opacity: .35; }
.aic-x button.on { opacity: 1; border-color: var(--ink); }
.aic-v button { background: #fff; color: var(--ink); border-color: var(--dark); opacity: 1; }
.aic-v button.on.ok { background: #1F7A3A; color: #fff; } .aic-v button.on.bad { background: #7A0010; color: #fff; }
.aic-v button:disabled { opacity: .35; cursor: default; }
.aic-a { margin-top: auto; padding: 16px; font-size: 26px; }
.aic.open .aic-a { background: #1F7A3A; }
/* stack: options above the team column, narrow enough to sit beside a video */
.quiz.stack .qq { font-size: 32px; line-height: 1.25; }
.quiz.stack .qb { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; }
.quiz.stack .qo { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 8px; }
.quiz.stack .op { font-size: 26px; padding: 8px 14px; border-width: 3px; border-radius: 14px; align-items: center; }
.quiz.stack .op b { font-size: 30px; }
.quiz.stack .qt { gap: 8px; }
.quiz.stack .qtm { padding: 6px 12px; }
.quiz.stack .qtm button { width: 50px; height: 50px; font-size: 26px; }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,139,71,.75); } 50% { box-shadow: 0 0 0 14px rgba(46,139,71,0); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,.75); } 50% { box-shadow: 0 0 0 14px rgba(211,47,47,0); } }

/* tally and roundres (round result tables) */
table.tally td, table.tally th { text-align: center; vertical-align: middle; font-size: 34px; }
table.tally td:first-child, table.tally th:first-child { text-align: left; }
table.tally select { font: 700 28px/1 var(--f-body); padding: 6px 10px; border-radius: 10px; border: 3px solid var(--line); }
table.tally small { font-size: 22px; color: var(--mute); }
.stepper { display: inline-flex; align-items: center; gap: 18px; }
.stepper button { width: 56px; height: 56px; border-radius: 12px; border: 3px solid var(--dark); background: #fff; font: 800 32px/1 var(--f-body); cursor: pointer; }
.stepper b { min-width: 50px; display: inline-block; }

/* checkstep (Văn hóa đọc) */
.cs-w { height: 100%; display: flex; flex-direction: column; gap: 20px; }
.cs-l { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cs-l li { display: flex; gap: 20px; align-items: center; font: 400 36px/1.3 var(--f-body); cursor: pointer; margin: 0; }
.cs-l .bx { flex: none; width: 56px; height: 56px; border: 4px solid var(--dark); border-radius: 12px; display: grid; place-items: center; font: 900 40px/1 var(--f-body); color: #fff; }
.cs-l li.ok .bx { background: var(--t-green); border-color: var(--t-green); }
.cs-b { display: flex; gap: 24px; align-items: center; font: 600 30px/1 var(--f-body); color: var(--mute); }

/* standings and the leaderboard team cards */
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tm { border-radius: 22px; color: #fff; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; min-height: 200px; }
.tm .nm { font: 800 40px/1 var(--f-body); }
.tm .tot { font: 900 84px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.tm .tk { position: absolute; right: 118px; top: 12px; height: 132px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.tm .rk { position: absolute; right: 22px; top: 20px; background: rgba(255,255,255,.95); color: var(--ink); font: 900 34px/1 var(--f-head); border-radius: 999px; padding: 12px 20px; }
.tm .bar { height: 16px; background: rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.tm .bar i { display: block; height: 100%; background: #fff; }
.tm .act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.tm .act button { font: 800 24px/1 var(--f-body); border: 0; border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.95); color: var(--ink); cursor: pointer; }
.c-Y .act button { background: var(--t-yellow-ink); color: #fff; }
/* Score buttons show only while the mouse is over that team's card (they keep their space so nothing jumps). */
.tm .act { opacity: 0; pointer-events: none; transition: opacity .15s; }
.tm:hover .act, .tm .act:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .tm .act { opacity: 1; pointer-events: auto; } }
.show-rank .tot, .show-rank .bar, .show-none .tot, .show-none .bar, .show-none .rk { visibility: hidden; }

/* ---------- Leaderboard overlay (L) ---------- */
#board { position: absolute; inset: 0; z-index: 20; background: var(--soft); color: var(--ink); padding: 50px 100px 40px; display: flex; flex-direction: column; gap: 18px; }
.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bd-top h2 { font: 900 66px/1 var(--f-head); color: var(--red); margin: 0; }
.seg { display: flex; border: 3px solid var(--deep); border-radius: 14px; overflow: hidden; }
.seg button { font: 700 24px/1 var(--f-body); background: #fff; color: var(--deep); border: 0; padding: 14px 18px; cursor: pointer; }
.seg button.on { background: var(--deep); color: #fff; }
.grid { width: 100%; border-collapse: collapse; font: 500 26px/1.2 var(--f-body); }
.grid th, .grid td { padding: 5px 12px; border-bottom: 2px solid var(--line); text-align: center; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid select { font: 700 22px/1 var(--f-body); padding: 6px 10px; border-radius: 10px; border: 3px solid var(--line); background: #fff; min-width: 150px; }
.grid .rule { font: 400 22px/1.25 var(--f-body); color: var(--mute); display: block; }
.bd-bottom { display: flex; gap: 30px; align-items: flex-start; justify-content: space-between; margin-top: auto; }
.bd-bottom .row { display: flex; gap: 12px; }
.log { font: 400 20px/1.4 var(--f-body); color: var(--mute); max-height: 84px; overflow: auto; flex: 1; }

/* ---------- Tools outside the stage ---------- */
[hidden] { display: none !important; }

/* storage warning: stays until saving works again */
#warn { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: #B00020; color: #fff; font: 700 18px/1.4 var(--f-body); padding: 12px 20px; text-align: center; }

/* edit bar (E) */
#bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 32px); background: #1D1D1D; color: #fff; padding: 8px 10px; border-radius: 14px; font: 600 14px/1 var(--f-body); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#bar button, #bar select { font: 600 14px/1 var(--f-body); background: #3A3A3A; color: #fff; border: 0; border-radius: 9px; padding: 9px 11px; cursor: pointer; }
#bar button.pri { background: var(--red); }
#bar input { font: 600 14px/1 var(--f-body); width: 64px; border: 0; border-radius: 9px; padding: 8px; }
#bar .msg { padding: 0 6px; color: #F3D27A; }
#bar .grip { cursor: grab; padding: 6px 4px; font-size: 20px; color: #AAA; touch-action: none; user-select: none; }
#bar .grip:active { cursor: grabbing; }
.edit .blk { outline: 3px dashed rgba(30,99,198,.55); outline-offset: 4px; }
.edit .blk.sel { outline: 4px solid var(--t-blue); }
.edit [contenteditable="true"] { cursor: text; }
.hd { display: none; position: absolute; z-index: 6; width: 44px; height: 44px; background: var(--t-blue); border-radius: 10px; cursor: move; color: #fff; font: 700 26px/44px var(--f-body); text-align: center; }
.edit .blk .hd { display: block; }
.hd.mv { left: -24px; top: -24px; }
.hd.rs { right: -22px; bottom: -22px; cursor: nwse-resize; }

/* short messages (flash) */
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 40; font: 700 16px/1 var(--f-body); background: #1D1D1D; color: #fff; border-radius: 10px; padding: 12px 18px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
#toast[hidden] { display: none; }

/* help (?) */
#help { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; }
#help .bx { background: #fff; border-radius: 18px; padding: 24px 30px; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; font: 400 16px/1.45 var(--f-body); color: var(--ink); }
#help h3 { margin: 0 0 12px; font: 700 24px/1.2 var(--f-head); color: var(--red); }
#help .hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; align-items: start; }
@media (max-width: 760px) { #help .hgrid { grid-template-columns: 1fr; } }
#help table { width: 100%; border-collapse: collapse; }
#help caption { text-align: left; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); padding-bottom: 4px; border-bottom: 2px solid var(--red); }
#help td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
#help td:first-child { width: 128px; white-space: nowrap; padding-right: 12px; }
#help td small { display: block; font-size: 13px; color: var(--mute); }
#help kbd { display: inline-block; min-width: 26px; text-align: center; background: #F2F2F2; border: 1px solid #DDD; border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: 700 14px/1.5 var(--f-body); }
#help .hnote { margin: 14px 0 8px; font-size: 14px; color: var(--mute); }
#help .btn { font-size: 16px; padding: 10px 16px; margin: 4px 6px 0 0; }

/* grid view (G) */
#ov { position: fixed; inset: 0; z-index: 70; background: #1D1D1D; overflow: auto; padding: 20px 16px 40px; }
#ov .ovh { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: #fff; font: 600 15px/1.3 var(--f-body); margin: 0 0 16px; }
#ov .ovh input { width: 80px; font: 700 16px/1 var(--f-body); padding: 8px; border-radius: 8px; border: 0; }
#ov .ovh button { font: 600 14px/1 var(--f-body); background: #3A3A3A; color: #fff; border: 0; border-radius: 9px; padding: 9px 12px; cursor: pointer; }
#ov .ovg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
#ov .th { display: block; cursor: pointer; color: #ddd; font: 500 14px/1.3 var(--f-body); }
#ov .th .box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; outline: 3px solid transparent; outline-offset: 2px; background: #fff; }
#ov .th.cur .box { outline-color: var(--t-yellow); }
#ov .th:hover .box, #ov .th:focus-visible .box { outline-color: #fff; }
#ov .th .sl { width: 1920px; height: 1080px; right: auto; bottom: auto; transform-origin: 0 0; pointer-events: none; }
#ov .th .cap { display: block; margin-top: 6px; }
#ov .th .cap b { color: #fff; }
/* Slides whose browser version is not in the file yet: on the slide, and loud in the grid view. */
.unsaved { position: absolute; left: 50%; bottom: 26px; z-index: 6; transform: translateX(-50%); white-space: nowrap; background: #FFD54A; color: #51000C; font: 800 26px/1 var(--f-body); padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 0 rgba(81, 0, 12, .35); }
#ov .th.edited .box { box-shadow: 0 0 0 5px #FF8F00; }
#ov .th.edited .box::after { content: "⚠ Chưa lưu vào file"; position: absolute; left: 8px; top: 8px; z-index: 9; background: #FFD54A; color: #51000C; font: 800 15px/1 var(--f-body); padding: 7px 10px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
#ov .th.edited .unsaved { display: none; }  /* the badge above says it at a size you can read */
#ov .th .cap .warn { font-style: normal; font-weight: 800; color: #FFD54A; }
#ov .ov-unsaved { background: #FFD54A; color: #51000C; font: 800 15px/1 var(--f-body); padding: 8px 12px; border-radius: 8px; }

/* ---------- Cheat sheet (slide "Cẩm nang mang về"): four boxes, print friendly ---------- */
.cheat { height: 100%; display: flex; flex-direction: column; justify-content: space-between; font: 400 24px/1.35 var(--f-body); color: var(--ink); }
.cheat .ic { width: 1em; height: 1em; flex: none; }
.cheat .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cheat .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cheat .midrow > section { grid-column: span 2; }
.cheat .box { display: flex; flex-direction: column; border: 1.5px solid #E2C3BB; border-radius: 14px; overflow: hidden; background: #fff; }
.cheat .bh { display: flex; align-items: center; gap: 12px; background: #FBEFE9; border-bottom: 1.5px solid #E2C3BB; color: var(--deep); padding: 9px 18px; font: 800 22px/1.1 var(--f-body); letter-spacing: 1.5px; text-transform: uppercase; }
.cheat .bh .ic { width: 30px; height: 30px; color: var(--red); }
.cheat .bh small { margin-left: auto; font: 600 20px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--mute); }
.cheat .bb { padding: 12px 16px; flex: 1; }
.cheat .ladb { padding-bottom: 0; }
.cheat h4 { margin: 0 0 6px; font: 900 25px/1.2 var(--f-head); color: var(--red); display: flex; align-items: center; gap: 8px; }
.cheat .li { list-style: none; margin: 0; padding: 0; }
.cheat .li li { display: flex; gap: 10px; margin: 0 0 6px; }
.cheat .li li::before { flex: none; width: 20px; font: 900 22px/1.45 var(--f-body); }
/* ladder: steps grow left to right */
.cheat .lad { position: relative; align-items: end; height: 160px; }
.cheat .lad .cap { position: absolute; left: 0; top: 0; font: 900 30px/1.1 var(--f-head); color: var(--red); }
.cheat .st { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid #D9A9A0; border-bottom: 0; border-radius: 10px 10px 0 0; }
.cheat .st b { font: 900 25px/1.2 var(--f-head); color: var(--red); }
.cheat .st:nth-of-type(2) { height: 56%; background: #fff; }
.cheat .st:nth-of-type(3) { height: 70%; background: #FCF4F1; }
.cheat .st:nth-of-type(4) { height: 85%; background: #F8E5DE; }
.cheat .st:nth-of-type(5) { height: 100%; background: #F2D3C9; }
/* AI: do / don't */
.cheat .pan { padding: 0 6px; }
.cheat .pan.up h4 { color: #1F6B35; }
.cheat .pan.dn { border-left: 2px solid var(--line); padding-left: 20px; }
.cheat .pan.dn h4 { color: #A3221F; }
.cheat .li.yes li::before { content: "✓"; color: var(--t-green); }
.cheat .li.nope li::before { content: "✗"; color: var(--t-red); }
/* Canva checklist: one list, two columns of tick boxes */
.cheat .li.chk { columns: 2; column-gap: 28px; padding-top: 2px; }
.cheat .li.chk li { break-inside: avoid; margin: 0 0 10px; }
.cheat .li.chk li::before { content: ""; width: 22px; height: 22px; border: 3px solid var(--dark); border-radius: 5px; margin-top: 4px; }
/* hacks: four columns with thin dividers */
.cheat .hks { gap: 0; }
.cheat .hk { position: relative; padding: 0 16px 0 52px; border-left: 2px solid var(--line); }
.cheat .hk:first-child { border-left: 0; padding-left: 44px; }
.cheat .hk .hi { position: absolute; left: 12px; top: 2px; width: 30px; height: 30px; color: var(--red); }
.cheat .hk:first-child .hi { left: 4px; }
.cheat .hk p { margin: 0; }

/* ---------- Reveal steps (data-step / data-each) ---------- */
.rv-hide { visibility: hidden; }
.rv-in { animation: rvIn .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(26px); } }
.stepb { position: absolute; left: -14px; top: -14px; z-index: 7; background: var(--t-yellow); color: var(--t-yellow-ink); font: 800 18px/1 var(--f-body); padding: 6px 9px; border-radius: 10px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Session map (M): map, team tokens, HUD, slide panel ---------- */
#map { position: fixed; inset: 0; z-index: 1; background: #2C8FC6; overflow: hidden; }
/* A blurred copy of the map fills the screen edges the 16:9 map does not cover, dimmed with it behind a slide. */
#map::before { content: ""; position: absolute; inset: -40px; background: url("map/map.webp") center / cover; filter: blur(16px); transition: filter .35s; }
body.panel #map::before { filter: blur(16px) brightness(.45); }
#map .mp { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; transition: filter .35s; }
.mbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fog { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fog .fh { transition: r 2.5s ease-out; }  /* a reached stop clears its fog slowly */
.fog { transition: opacity 3s ease-out; }
.fog.gone { opacity: 0; }  /* last stop: all fog lifts */
.tr-edge { stroke: rgba(81, 0, 12, .35); stroke-width: 36; }
.tr-base { stroke: #F6E7BC; stroke-width: 26; }
.tr-done { stroke: var(--red); stroke-width: 10; }
.lm { position: absolute; transform: translate(-50%, -84%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.lm img { width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); transition: transform .2s; }
.lm:hover img, .lm:focus-visible img { transform: translateY(-6px) scale(1.06); }
.lm .lb { margin-top: -12px; display: flex; gap: 10px; align-items: center; white-space: nowrap; background: #fff; color: var(--dark); font: 800 24px/1 var(--f-body); padding: 7px 18px 7px 7px; border-radius: 999px; box-shadow: 0 5px 0 rgba(81, 0, 12, .35); }
.lm .lb b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: #fff; font: 900 20px/1 var(--f-head); }
.lm.here .lb { background: var(--red); color: #fff; }
.lm.here .lb b { background: #fff; color: var(--red); }
.lm.here .lb { animation: bob 1.8s ease-in-out infinite; }  /* the building stays put; its name label bounces */
/* Stops ahead are grey; a stop turns to full colour once the teams reach it. */
.lm:not(.done):not(.here) img { filter: grayscale(1) brightness(1.05) drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); }
.lm:not(.done):not(.here) .lb { opacity: .8; }
.lm img { transition: transform .2s, filter .8s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.toks { position: absolute; inset: 0; pointer-events: none; }
.tok { position: absolute; left: 0; top: 0; width: 72px; height: 100px; }
.tok img { position: relative; z-index: 1; width: 72px; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .35)); }
.tok img { animation: idle 1.6s ease-in-out infinite; }  /* waiting teams bob a little, each on its own beat */
.tok:nth-child(2) img { animation-delay: -.4s; }
.tok:nth-child(3) img { animation-delay: -.8s; }
.tok:nth-child(4) img { animation-delay: -1.2s; }
.walking .tok img { animation: hop .32s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-12px); } }
@keyframes idle { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* Animals and effects (FAUNA in app.js). The layer sits under the fog, so they appear as the map clears.
   The outer span moves along its path; the inner <i> flaps or faces the right way. */
.fauna { position: absolute; inset: 0; pointer-events: none; }
.fa { position: absolute; opacity: 0; transition: opacity 1.2s; }  /* shown (.on) only in cleared areas */
.fa.on { opacity: 1; transition: opacity 1.5s 1s; }  /* wait for the fog to start lifting, then fade in */
.an { position: absolute; left: 0; top: 0; margin: -.5em 0 0 -.5em; line-height: 1; animation-iteration-count: infinite; animation-timing-function: ease-in-out; will-change: transform; }
.an i { display: block; font-style: normal; transform: scaleX(var(--f)); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); }
.f-flutter { animation-name: f-flutter; }
.f-flutter i { animation: f-flap .22s ease-in-out infinite; }
.f-fly { animation-name: f-fly; animation-timing-function: linear; }
.f-fly i, .f-circle i { animation: f-flap .5s ease-in-out infinite; }
.f-circle { animation-name: f-circle; animation-timing-function: linear; }
.f-hop { animation-name: f-hop; animation-timing-function: linear; }
.f-hop i, .f-walk i, .f-swim i { transform: none; }
.f-walk, .f-swim { animation-name: f-walk; animation-timing-function: linear; }
.f-jump { animation-name: f-jump; }
.f-peek { animation-name: f-peek; }
.f-buzz { animation-name: f-buzz; }
.f-fall { animation-name: f-fall; animation-timing-function: linear; }
.f-twinkle { animation-name: f-twinkle; }
.f-ripple { width: 1em; height: .4em; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; animation-name: f-ripple; animation-timing-function: ease-out; }
@keyframes f-flap { 50% { transform: scaleX(calc(var(--f) * .55)); } }
@keyframes f-flutter {
  25% { transform: translate(calc(var(--dx) * .5), calc(var(--dy) * -1)) rotate(8deg); }
  50% { transform: translate(var(--dx), 0) rotate(-6deg); }
  75% { transform: translate(calc(var(--dx) * .5), var(--dy)) rotate(6deg); }
}
@keyframes f-fly {
  0% { transform: translate(0, 0); opacity: 0; }
  8%, 92% { opacity: 1; }
  50% { transform: translate(calc(var(--dx) * .5), var(--dy)); }
  100% { transform: translate(var(--dx), 0); opacity: 0; }
}
@keyframes f-circle { from { transform: rotate(0) translateX(var(--r)) rotate(0); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
/* Hop over to dx and back, turning round at each end. --f says which way the emoji faces at the start. */
@keyframes f-hop {
  0% { transform: translate(0, 0) scaleX(var(--f)); }
  10% { transform: translate(calc(var(--dx) * .25), -28px) scaleX(var(--f)); }
  20% { transform: translate(calc(var(--dx) * .5), 0) scaleX(var(--f)); }
  30% { transform: translate(calc(var(--dx) * .75), -28px) scaleX(var(--f)); }
  40%, 49% { transform: translate(var(--dx), 0) scaleX(var(--f)); }
  50% { transform: translate(var(--dx), 0) scaleX(calc(var(--f) * -1)); }
  60% { transform: translate(calc(var(--dx) * .75), -28px) scaleX(calc(var(--f) * -1)); }
  70% { transform: translate(calc(var(--dx) * .5), 0) scaleX(calc(var(--f) * -1)); }
  80% { transform: translate(calc(var(--dx) * .25), -28px) scaleX(calc(var(--f) * -1)); }
  90%, 99% { transform: translate(0, 0) scaleX(calc(var(--f) * -1)); }
  100% { transform: translate(0, 0) scaleX(var(--f)); }
}
@keyframes f-walk {
  0% { transform: translate(0, 0) scaleX(var(--f)); }
  25% { transform: translate(calc(var(--dx) * .5), -3px) scaleX(var(--f)); }
  48% { transform: translate(var(--dx), 0) scaleX(var(--f)); }
  52% { transform: translate(var(--dx), 0) scaleX(calc(var(--f) * -1)); }
  75% { transform: translate(calc(var(--dx) * .5), -3px) scaleX(calc(var(--f) * -1)); }
  96% { transform: translate(0, 0) scaleX(calc(var(--f) * -1)); }
  100% { transform: translate(0, 0) scaleX(var(--f)); }
}
/* Out of the water, an arc, and back in; hidden the rest of the time. */
@keyframes f-jump {
  0%, 58% { transform: translate(0, 18px) rotate(-55deg); opacity: 0; }
  62% { transform: translate(0, 0) rotate(-45deg); opacity: 1; }
  76% { transform: translate(calc(var(--dx) * .5), -55px) rotate(0); }
  90% { transform: translate(var(--dx), 0) rotate(45deg); opacity: 1; }
  94%, 100% { transform: translate(var(--dx), 18px) rotate(55deg); opacity: 0; }
}
@keyframes f-peek { 0%, 60%, 80%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px); } 86% { transform: translateY(-7px); } }
@keyframes f-buzz {
  20% { transform: translate(18px, -10px); } 40% { transform: translate(-6px, -22px); }
  60% { transform: translate(-20px, -4px); } 80% { transform: translate(8px, 8px); }
}
@keyframes f-fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10%, 80% { opacity: 1; }
  50% { transform: translate(26px, 60px) rotate(140deg); }
  100% { transform: translate(-12px, 130px) rotate(280deg); opacity: 0; }
}
@keyframes f-twinkle { 0%, 100% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
@keyframes f-ripple { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

body.mapmode:not(.panel) #stage { display: none; }
body.mapmode #stage { z-index: 2; border-radius: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, .65); animation: panelIn .35s cubic-bezier(.2, .8, .2, 1); }
body.mapmode .frame { border-radius: 28px; }
body.panel #map .mp { filter: brightness(.45) blur(3px); }
@keyframes panelIn { from { opacity: 0; } }

#hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
#hud .hi { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; box-sizing: border-box; padding: 12px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
#hud .hi > * { pointer-events: auto; }
.hs { display: flex; flex-direction: column; gap: 5px; min-width: 300px; background: rgba(255, 255, 255, .95); border-radius: 22px; padding: 12px 22px; box-shadow: 0 6px 0 rgba(81, 0, 12, .3); }
.hsn { font: 700 17px/1 var(--f-body); color: var(--mute); text-transform: uppercase; letter-spacing: 1px; }
.hs b { font: 900 32px/1.05 var(--f-head); color: var(--red); }
.hsp { font: 600 19px/1 var(--f-body); color: var(--mute); }
.hteams { display: flex; gap: 12px; }
.hc { display: flex; align-items: center; gap: 10px; height: 80px; padding: 4px 18px 4px 6px; border-radius: 22px; color: #fff; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.hc img { width: 58px; height: 72px; object-fit: contain; }
.hc .hn { font: 700 22px/1 var(--f-body); }
.hc b { min-width: 34px; text-align: right; font: 900 42px/1 var(--f-head); }
.hc.top { border-color: #FFD54A; box-shadow: 0 0 0 4px #FFD54A, 0 6px 0 rgba(0, 0, 0, .25); }
.hb { display: flex; gap: 10px; }
.hb button { font: 800 24px/1 var(--f-body); background: #fff; color: var(--deep); border: 0; border-radius: 18px; padding: 24px 22px; box-shadow: 0 6px 0 rgba(81, 0, 12, .35); cursor: pointer; }
.hb button.on { background: var(--red); color: #fff; }
.hc.c-Y { color: var(--t-yellow-ink); border-color: #fff; }

/* ---------- Linked picture (opens a video in a new tab) ---------- */
.vlink { position: relative; display: block; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; border: 4px solid var(--dark); box-shadow: 0 10px 0 rgba(81, 0, 12, .25); }
.vlink img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheets { width: 100%; height: 100%; object-fit: contain; object-position: left top; display: block; }
.vlink span { position: absolute; right: 16px; top: 16px; background: var(--red); color: #fff; font: 800 26px/1 var(--f-body); padding: 12px 18px; border-radius: 12px; }
.vlink:hover span { background: var(--deep); }
.lm:focus, .lm:focus-visible { outline: none; }  /* no focus box left on a stop after clicking it */

/* HUD: one slim row, every element 42px high. Team scores fade in when the mouse is near the top. */
.hs, .hc, .hb button { box-sizing: border-box; height: 42px; border-radius: 12px; box-shadow: 0 3px 0 rgba(81, 0, 12, .3); }
.hs { flex-direction: row; align-items: center; gap: 10px; min-width: 0; padding: 0 16px; }
.hsn { font-size: 14px; }
.hs b { font-size: 22px; white-space: nowrap; }
.hteams { gap: 8px; opacity: 0; transition: opacity .2s; }
#hud .hi > .hteams { pointer-events: none; }
#hud.scores .hteams, #hud.pinned .hteams { opacity: 1; pointer-events: auto; }
.hc { gap: 6px; padding: 0 12px 0 4px; border-width: 2px; }
.hc img { width: 30px; height: 36px; }
.hc .hn { font-size: 16px; }
.hc b { min-width: 20px; font-size: 24px; }
.hc.top { box-shadow: 0 0 0 3px #FFD54A, 0 3px 0 rgba(0, 0, 0, .25); }
.hb { gap: 8px; }
.hb button { display: flex; align-items: center; padding: 0 16px; font-size: 18px; }

/* Slide idea round: sticky notes, Nên on the left, Không nên on the right */
.ideas { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.id-board { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.id-col { min-height: 0; display: flex; flex-direction: column; background: var(--soft); border: 3px solid var(--line); border-radius: 22px; padding: 14px 18px; }
.id-col h3 { font: 800 30px/1.2 var(--f-body); margin: 0 0 10px; color: #1F7A3A; }
.id-col.khong h3 { color: var(--deep); }
.id-notes { flex: 1; min-height: 0; overflow: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 14px; }
.id-col.nen .id-note { width: calc(50% - 7px); }
.id-col.khong .id-note { width: 100%; }
.id-note { position: relative; color: #fff; border-radius: 6px 6px 22px 6px; padding: 14px 44px 12px 16px; box-shadow: 0 6px 10px rgba(0, 0, 0, .18); font: 700 26px/1.25 var(--f-body); }
.id-note small { display: block; margin-top: 6px; font: 600 18px/1 var(--f-body); opacity: .85; }
.id-note.host { background: #fff; color: var(--ink); border: 3px solid var(--deep); }
.id-note button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); color: inherit; font: 700 22px/1 var(--f-body); cursor: pointer; opacity: 0; }
.id-note:hover button { opacity: 1; }
.id-bar { display: flex; gap: 14px; align-items: center; }
.id-bar .btn b { margin-left: 8px; padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); }
.id-bar .btn.c-Y { color: var(--t-yellow-ink); }
.id-bar .btn.ghost:last-child { margin-left: auto; }
.id-form { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; color: #fff; }
.id-form[hidden] { display: none; }
.id-form.host { background: #fff; color: var(--ink); border: 3px solid var(--deep); }
.id-form b { font: 800 28px/1 var(--f-body); }
.id-form input { flex: 1; font: 600 30px/1.2 var(--f-body); padding: 12px 16px; border-radius: 12px; border: 0; color: var(--ink); }
.id-form .btn { background: rgba(0, 0, 0, .35); }
.id-form.host .btn { background: var(--deep); }
.id-form .btn.ghost { background: #fff; color: var(--deep); }
#hud .hb button.hq { width: 42px; padding: 0; justify-content: center; font-size: 22px; }

/* Time's up: the whole screen pulses red and cream for 3 seconds (timeUp() in app.js). */
.timeup { position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: timeup .5s ease-in-out 6; }
@keyframes timeup { 0%, 100% { background: rgba(189, 1, 41, 0); } 50% { background: rgba(189, 1, 41, .45); box-shadow: inset 0 0 0 24px #F8F7D0; } }
