/* ============================================================
   PLAYER / PROJECTOR SCREEN — optimised for 1920×1080 (16:9)
   Never exposes answers, aliases or host controls.
   ============================================================ */

.player { overflow: hidden; }

.screen {
  position: fixed; inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.on { display: flex; }

/* ===================== HOME ===================== */
.screen-home { align-items: center; justify-content: center; }

.home-art {
  position: absolute; inset: 0 0 auto; height: 82vh;
  pointer-events: none; opacity: .3;
  mask-image: linear-gradient(#000 0%, #000 34%, transparent 92%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 34%, transparent 92%);
}
.home-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.home-center {
  position: relative; z-index: 6;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px 20px;
  animation: rise-in .7s var(--ease-out) both;
}

.home-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font: 900 clamp(20px, 1.5vw, 26px) var(--font-display);
  letter-spacing: .04em;
}
.brand-icon { display: flex; color: var(--primary); }
.brand-period { color: var(--primary); }

.home-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px;
  color: var(--primary);
  font: 800 clamp(10px, .78vw, 13px) var(--font-sans);
  letter-spacing: .3em;
  animation: rise-in .6s var(--ease-out) .1s both;
}
.home-eyebrow .line { width: clamp(28px, 4vw, 74px); height: 1px; background: currentColor; }

.home-title {
  margin: 14px 0 0;
  font: 900 clamp(56px, 11.5vw, 176px)/.85 var(--font-display);
  letter-spacing: .004em;
  text-transform: uppercase;
  animation: rise-in .6s var(--ease-out) .18s both;
  text-shadow: 0 18px 60px oklch(0% 0 0 / .7);
}
.home-title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--primary), var(--hot) 46%, oklch(74% .13 225));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.home-rules {
  display: grid; grid-template-columns: repeat(2, auto);
  margin-top: clamp(22px, 2.4vw, 40px);
  border: 1px solid var(--border);
  background: oklch(12.5% .011 25 / .72);
  backdrop-filter: blur(3px);
  animation: rise-in .6s var(--ease-out) .34s both;
}
.home-rule {
  padding: clamp(11px, .9vw, 17px) clamp(18px, 2.4vw, 42px);
  border-right: 1px solid var(--border);
  font: 800 clamp(11px, .95vw, 16px) var(--font-tech);
  letter-spacing: .16em;
}
.home-rule:last-child { border-right: 0; }
.home-rule strong { font-weight: 800; }

.home-cta {
  margin-top: clamp(26px, 2.8vw, 48px);
  height: clamp(56px, 4.4vw, 76px);
  padding: 0 clamp(30px, 3.6vw, 62px);
  font-size: clamp(13px, 1.1vw, 17px);
  letter-spacing: .1em;
  animation: rise-in .6s var(--ease-out) .42s both;
  position: relative;
}
.home-cta::after {
  content: ''; position: absolute; inset: -7px;
  border: 1px solid oklch(67% .23 30 / .35);
  border-radius: 5px;
  animation: cta-breathe 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breathe { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

.home-hint {
  margin-top: clamp(16px, 1.6vw, 26px);
  color: var(--subtle);
  font: 800 clamp(9px, .7vw, 11px) var(--font-sans);
  letter-spacing: .19em;
  animation: rise-in .6s var(--ease-out) .5s both;
}

.home-link {
  display: flex; align-items: center; gap: 9px;
  margin-top: clamp(18px, 2vw, 34px);
  color: var(--muted-fg);
  font: 700 10px var(--font-tech);
  letter-spacing: .18em;
  animation: rise-in .6s var(--ease-out) .58s both;
}
.home-link .dot { color: var(--cyan); }
.link-btn {
  margin-left: 8px; padding: 6px 11px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  color: var(--muted-fg);
  font: 700 9.5px var(--font-tech); letter-spacing: .16em; text-transform: uppercase;
  transition: .18s var(--ease-out);
}
.link-btn:hover { color: var(--foreground); border-color: var(--border); background: oklch(24% .014 27 / .7); }

.home-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-soft);
  background: oklch(7% .008 25 / .7);
  font: 800 clamp(8px, .62vw, 10px) var(--font-sans);
  letter-spacing: .16em;
}
.home-footer .sep { color: var(--subtle); }

/* ===================== CINEMATIC ===================== */
.screen-cine { background: #000; align-items: stretch; }
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cine-copy {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
  padding: 0 5vw;
}
.cine-line {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw;
  opacity: 0;
  font: 700 clamp(15px, 1.5vw, 26px) var(--font-tech);
  letter-spacing: .42em;
  text-indent: .42em;
  color: oklch(88% .05 225);
  text-shadow: 0 0 26px oklch(70% .13 225 / .55);
  white-space: nowrap;
}
.cine-line.show { animation: cine-in .5s var(--ease-out) both; }
.cine-line.hide { animation: cine-out .35s var(--ease-out) both; }
@keyframes cine-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); filter: blur(6px); letter-spacing: .8em; } to { opacity: 1; transform: translate(-50%, -50%); filter: none; letter-spacing: .42em; } }
@keyframes cine-out { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, calc(-50% - 12px)); filter: blur(5px); } }

/* the mark materialises in the CENTRE of the canvas (logoBox ≈ 33%..63% of
   height); boot captions sit under it, the "presents" card sits above it */
.cine-line[data-line="0"],
.cine-line[data-line="1"],
.cine-line[data-line="2"],
.cine-line[data-line="4"],
.cine-line[data-line="5"] { top: 76%; }
.cine-line[data-line="3"] { top: 22%; }

.cine-ignus {
  display: block;
  font: 900 clamp(46px, 6vw, 96px)/.9 var(--font-display);
  letter-spacing: .06em;
  color: var(--primary);
  text-shadow: 0 0 50px oklch(67% .23 30 / .55);
}
.cine-sub {
  display: block; margin-top: 8px;
  font: 700 clamp(12px, 1.2vw, 20px) var(--font-tech);
  letter-spacing: .5em; text-indent: .5em;
  color: oklch(80% .04 225);
}
.cine-sub.cy { color: oklch(78% .13 225); }
.cine-final {
  display: block;
  font: 900 clamp(40px, 5.4vw, 88px)/.92 var(--font-display);
  letter-spacing: .03em;
  color: var(--foreground);
}
.ell::after { content: ''; animation: dots 1.1s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.cine-bar {
  position: absolute; left: 8vw; right: 8vw; bottom: 7vh; z-index: 5;
  height: 2px; background: oklch(70% .08 225 / .16);
}
.cine-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--primary)); box-shadow: 0 0 14px oklch(70% .13 225 / .8); }

/* ===================== WATERMARK ===================== */
.mark {
  position: absolute; top: 20px; right: 26px; z-index: 20;
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px 8px 10px;
  background: oklch(6% .008 25 / .55);
  border: 1px solid oklch(55% .1 225 / .3);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.mark-icon { height: clamp(24px, 1.7vw, 34px); width: auto; filter: drop-shadow(0 0 7px oklch(70% .13 225 / .55)); }
.mark-word { height: clamp(8px, .6vw, 11px); width: auto; opacity: .95; }
.mark-frame {
  position: absolute; inset: -4px;
  border: 1px solid oklch(55% .1 225 / .16);
  border-radius: 5px;
}
.mark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(70% .13 225 / .9), transparent);
  animation: mark-scan 3.4s linear infinite;
}
@keyframes mark-scan { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ===================== GAME ===================== */
.screen-game { padding: clamp(18px, 1.7vh, 30px) clamp(24px, 2.4vw, 48px); }

.g-hd {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(10px, 1.2vh, 18px);
  border-bottom: 1px solid var(--border-soft);
  padding-right: clamp(150px, 12vw, 230px);
}
.g-hd-l { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.g-flame { color: var(--primary); display: flex; transform: translateY(3px); }
.g-hd-title {
  font: 900 clamp(22px, 2vw, 38px)/1 var(--font-display);
  letter-spacing: .07em;
}
.g-hd-sub {
  font: 700 clamp(9px, .68vw, 12px) var(--font-tech);
  letter-spacing: .3em;
  color: var(--subtle);
}
.g-hd-r { display: flex; gap: 8px; flex-shrink: 0; }
.g-hd-r .chip { font-size: clamp(9px, .66vw, 11px); padding: 6px 11px; }

/* ---------- body ---------- */
.g-body {
  position: relative; z-index: 8;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(8px, 1.4vh, 24px) 0;
}

.q-meta { animation: fade-in .5s var(--ease-out) both; }
.q-num {
  font: 900 clamp(34px, 3.6vw, 66px)/1 var(--font-display);
  letter-spacing: .1em;
  color: var(--foreground);
}
.q-type {
  margin-top: 6px;
  display: inline-block;
  font: 800 clamp(10px, .8vw, 14px) var(--font-tech);
  letter-spacing: .42em; text-indent: .42em;
  color: var(--primary);
}

.q-stage {
  width: 100%;
  margin-top: clamp(14px, 2vh, 34px);
  display: flex; flex-direction: column; align-items: center;
  animation: slit-open .55s var(--ease-out) both;
}

.q-figure { margin-bottom: clamp(14px, 2vh, 30px); }
.q-frame {
  position: relative;
  padding: clamp(8px, .8vw, 14px);
  background: linear-gradient(180deg, oklch(14% .012 26 / .8), oklch(9% .01 25 / .85));
  border: 1px solid oklch(55% .1 225 / .38);
  box-shadow: 0 24px 70px -34px oklch(0% 0 0 / .95), inset 0 0 60px -30px oklch(70% .13 225 / .5);
  overflow: hidden;
}
.q-frame img {
  max-height: min(50vh, 540px);
  max-width: min(78vw, 1320px);
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.q-frame-tag {
  position: absolute; top: 8px; left: 10px; z-index: 3;
  padding: 3px 8px;
  background: oklch(67% .23 30 / .9);
  color: var(--primary-fg);
  font: 800 9px var(--font-tech); letter-spacing: .22em;
}
.q-frame-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 70px; z-index: 2;
  background: linear-gradient(180deg, transparent, oklch(70% .13 225 / .16), transparent);
  animation: sweep-frame 4.5s linear infinite;
  pointer-events: none;
}
@keyframes sweep-frame { from { transform: translateY(-80px); } to { transform: translateY(560px); } }

.q-text {
  margin: 0;
  max-width: min(1500px, 90vw);
  font: 800 clamp(30px, 3.4vw, 68px)/1.06 var(--font-display);
  letter-spacing: .006em;
  text-wrap: balance;
  text-shadow: 0 10px 44px oklch(0% 0 0 / .8);
}
.q-stage.has-image .q-text { font-size: clamp(24px, 2.4vw, 46px); max-width: min(1220px, 84vw); }

/* ---------- post-timeout hint ladder (Wordle-style tiles) ---------- */
.q-hint {
  margin-top: clamp(12px, 1.8vh, 26px);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(8px, 1.2vh, 16px);
  animation: fade-in .3s var(--ease-out) both;
}
.q-hint-tag {
  font: 800 clamp(10px, .8vw, 13px) var(--font-tech);
  letter-spacing: .38em; text-indent: .38em;
  color: var(--primary);
}
.q-hint-tag b { color: var(--foreground); }
.q-hint-tiles {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(7px, 1vh, 14px);
  max-width: min(1400px, 92vw);
}
.q-word { display: inline-flex; gap: clamp(3px, .35vh, 6px); }
.q-tile-gap { width: clamp(8px, 1.2vw, 22px); }
.q-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(20px, 4vh, 46px);
  height: clamp(20px, 4vh, 46px);
  font: 900 clamp(13px, 2.1vh, 28px)/1 var(--font-display);
  font-style: normal;
  text-transform: uppercase;
  border: 1px solid oklch(38% .019 32 / .65);
  background: oklch(14% .012 26 / .85);
  color: transparent;
}
.q-tile.on {
  background: oklch(60% .15 150);
  border-color: oklch(66% .16 150);
  color: oklch(15% .03 145);
  box-shadow: 0 0 18px -6px oklch(60% .15 150 / .7);
}
.q-tile.fresh { animation: hint-tile-in .34s var(--ease-out) both; }
@keyframes hint-tile-in {
  from { opacity: 0; transform: scale(.72) rotateX(-35deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- reveal overlay ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: oklch(4% .006 25 / .84);
  backdrop-filter: blur(3px);
  animation: fade-in .2s var(--ease-out) both;
}
.reveal-panel {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(26px, 3vw, 54px) clamp(34px, 5vw, 92px);
  border: 1px solid oklch(55% .1 225 / .5);
  background: linear-gradient(180deg, oklch(11% .012 255 / .96), oklch(7% .01 255 / .97));
  box-shadow: 0 0 90px -30px oklch(70% .13 225 / .85), inset 0 0 70px -40px oklch(70% .13 225 / .7);
  position: relative; overflow: hidden;
  min-width: min(72vw, 780px);
  text-align: center;
}
.reveal-panel::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, oklch(70% .13 225 / .05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.reveal-seq { position: relative; height: clamp(26px, 2.6vw, 44px); width: 100%; }
.reveal-seq .rv {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(14px, 1.35vw, 24px) var(--font-tech);
  letter-spacing: .44em; text-indent: .44em;
  color: oklch(78% .13 225);
  opacity: 0;
}
.reveal-seq .rv.on { animation: rv-in .3s var(--ease-out) both; }
@keyframes rv-in { from { opacity: 0; transform: translateY(8px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

.reveal-answer {
  margin-top: clamp(14px, 1.6vw, 26px);
  font: 900 clamp(44px, 5.4vw, 104px)/1 var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0;
  text-shadow: 0 0 46px oklch(67% .23 30 / .5);
}
.reveal-answer.on { animation: ans-in .5s var(--ease-out) both; }
@keyframes ans-in {
  0% { opacity: 0; transform: scale(1.16); filter: blur(12px); }
  55% { opacity: 1; filter: none; }
  62% { transform: translateX(-5px); }
  68% { transform: translateX(5px); }
  100% { opacity: 1; transform: none; }
}
.reveal-rule {
  margin-top: clamp(12px, 1.4vw, 22px);
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(70% .13 225 / .8), transparent);
}

/* ---------- result strip ---------- */
.result {
  position: relative; z-index: 9;
  margin-top: clamp(14px, 2vh, 30px);
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 60px);
  padding: clamp(12px, 1.4vh, 20px) clamp(20px, 2.6vw, 44px);
  border: 1px solid oklch(67% .23 30 / .55);
  background: linear-gradient(180deg, oklch(24% .05 30 / .5), oklch(14% .03 28 / .6));
  animation: slit-open .45s var(--ease-out) both;
}
.result-l { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 26px); flex-wrap: wrap; justify-content: center; }
.result-tag {
  font: 800 clamp(9px, .74vw, 13px) var(--font-tech);
  letter-spacing: .3em;
  color: var(--hot);
}
.result-ans-label { font: 700 clamp(9px, .7vw, 12px) var(--font-tech); letter-spacing: .3em; color: var(--subtle); }
.result-ans {
  font: 900 clamp(26px, 2.6vw, 52px)/1 var(--font-display);
  letter-spacing: .03em; text-transform: uppercase;
}
.result-r { display: flex; align-items: baseline; gap: 12px; }
.result-pts {
  font: 900 clamp(28px, 2.8vw, 56px)/1 var(--font-display);
  color: oklch(80% .15 155);
  text-shadow: 0 0 30px oklch(65% .16 155 / .55);
}
.result-team { font: 700 clamp(9px, .72vw, 12px) var(--font-tech); letter-spacing: .24em; color: var(--muted-fg); }

/* ---------- footer ---------- */
.g-ft {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: end;
  gap: clamp(16px, 2vw, 40px);
  padding-top: clamp(10px, 1.3vh, 20px);
  border-top: 1px solid var(--border-soft);
}

/* scoreboard */
.board {
  border: 1px solid var(--border-soft);
  background: oklch(10% .01 25 / .72);
  padding: 10px 14px 12px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  max-width: 460px;
}
.board.focus {
  border-color: oklch(67% .23 30 / .7);
  box-shadow: 0 0 46px -18px oklch(67% .23 30 / .9);
  transform: translateY(-6px) scale(1.015);
}
.board-hd {
  font: 800 clamp(8.5px, .6vw, 10.5px) var(--font-tech);
  letter-spacing: .3em; color: var(--subtle);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.board.focus .board-hd { color: var(--hot); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.board-list li {
  display: flex; align-items: center; gap: 10px;
  font: 700 clamp(12px, .95vw, 17px)/1.15 var(--font-display);
  letter-spacing: .06em;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  background: oklch(18% .012 27 / .5);
  transition: .3s var(--ease-out);
}
.board-list li .bn {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-tech); font-size: clamp(10px, .74vw, 13px); font-weight: 700; letter-spacing: .14em;
  color: var(--muted-fg);
}
.board-list li .bs { font-variant-numeric: tabular-nums; font-weight: 900; font-size: clamp(14px, 1.1vw, 20px); }
.board-list li.active { border-left-color: var(--primary); background: oklch(26% .05 30 / .55); }
.board-list li.active .bn { color: var(--foreground); }
.board-list li.active .bs { color: var(--hot); }

/* timer */
.clock {
  justify-self: center;
  text-align: center;
  min-width: clamp(190px, 17vw, 300px);
  padding: 6px 24px 12px;
  position: relative;
}
.clock-time {
  font: 900 clamp(58px, 6vw, 118px)/.86 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--foreground);
  transition: color .3s, text-shadow .3s;
}
.clock-state {
  margin-top: 4px;
  font: 800 clamp(11px, .9vw, 16px) var(--font-tech);
  letter-spacing: .5em; text-indent: .5em;
  color: var(--cyan);
  transition: color .3s;
}
.clock-track {
  margin-top: 10px; height: 3px;
  background: oklch(70% .08 225 / .14);
  overflow: hidden;
}
.clock-track i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, oklch(70% .13 225), var(--cyan));
  transform-origin: left;
  transition: background .3s;
}

/* timer states */
.clock[data-status="running"] .clock-time { text-shadow: 0 0 44px oklch(70% .13 225 / .4); }
.clock[data-status="running"] .clock-state { color: oklch(80% .12 155); }
.clock[data-status="running"] .clock-track i { background: linear-gradient(90deg, oklch(70% .13 225), oklch(76% .14 160)); }

.clock[data-phase="warn"] .clock-time { color: oklch(84% .15 70); text-shadow: 0 0 44px oklch(76% .16 55 / .55); }
.clock[data-phase="warn"] .clock-state { color: var(--amber); }
.clock[data-phase="warn"] .clock-track i { background: linear-gradient(90deg, var(--amber), var(--hot)); }
.clock[data-phase="warn"] { animation: warn-throb 1.4s ease-in-out infinite; }
@keyframes warn-throb { 0%, 100% { transform: none; } 50% { transform: scale(1.014); } }

.clock[data-phase="alert"] .clock-time {
  color: oklch(72% .21 25);
  text-shadow: 0 0 52px oklch(62% .22 28 / .75);
  animation: alert-blink 1s steps(2) infinite;
}
.clock[data-phase="alert"] .clock-state { color: oklch(74% .18 25); }
.clock[data-phase="alert"] .clock-track i { background: linear-gradient(90deg, var(--red), oklch(72% .21 25)); }
.clock[data-phase="alert"] { animation: warn-throb .8s ease-in-out infinite; }
@keyframes alert-blink { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.clock[data-status="paused"] .clock-time { color: var(--amber); text-shadow: 0 0 40px oklch(76% .16 55 / .5); }
.clock[data-status="paused"] .clock-state { color: var(--amber); }
.clock[data-status="paused"] .clock-track i { background: linear-gradient(90deg, var(--amber), var(--hot)); }

.clock[data-status="up"] .clock-time {
  color: oklch(72% .21 25);
  font-size: clamp(46px, 4.4vw, 84px);
  text-shadow: 0 0 60px oklch(62% .22 28 / .8);
  animation: up-slam .45s var(--ease-out) both;
}
.clock[data-status="up"] .clock-state {
  color: oklch(76% .19 25);
  letter-spacing: .3em;
  animation: up-slam .5s var(--ease-out) .06s both;
}
.clock[data-status="up"] { border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }
@keyframes up-slam {
  0% { opacity: 0; transform: scale(1.35); filter: blur(9px); }
  60% { opacity: 1; transform: scale(.97); filter: none; }
  100% { opacity: 1; transform: none; }
}

/* system status */
.status { justify-self: end; display: grid; gap: 7px; min-width: clamp(210px, 17vw, 300px); }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px dashed oklch(34% .016 30 / .5);
}
.status-v { font-size: clamp(10px, .76vw, 13px); font-weight: 700; letter-spacing: .16em; color: oklch(84% .06 225); }
.status-v.hot { color: var(--hot); }

/* ===================== COMPLETE ===================== */
.screen-done { align-items: center; justify-content: center; text-align: center; }
.done-center { position: relative; z-index: 6; width: min(1100px, 92vw); animation: rise-in .7s var(--ease-out) both; }
.done-title {
  margin: 14px 0 0;
  font: 900 clamp(52px, 7.6vw, 130px)/.9 var(--font-display);
  letter-spacing: .03em;
}
.done-sub {
  margin-top: clamp(20px, 2.6vw, 44px);
  font: 800 clamp(11px, .95vw, 16px) var(--font-tech);
  letter-spacing: .5em; text-indent: .5em;
  color: var(--primary);
}

.final { list-style: none; margin: clamp(18px, 2.2vw, 34px) 0 0; padding: 0; display: grid; gap: 8px; }
.final li {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(10px, 1.1vh, 16px) clamp(16px, 1.8vw, 30px);
  border: 1px solid var(--border-soft);
  background: oklch(13% .012 26 / .8);
  animation: rise-in .5s var(--ease-out) both;
}
.final li:nth-child(1) { border-color: oklch(76% .16 55 / .75); background: linear-gradient(90deg, oklch(30% .09 55 / .5), oklch(13% .012 26 / .85)); animation-delay: .1s; }
.final li:nth-child(2) { animation-delay: .22s; }
.final li:nth-child(3) { animation-delay: .34s; }
.final li:nth-child(4) { animation-delay: .46s; }
.final li:nth-child(5) { animation-delay: .58s; }
.final li:nth-child(6) { animation-delay: .7s; }
.final .rank { font: 900 clamp(20px, 2vw, 38px)/1 var(--font-display); color: var(--subtle); width: 1.4em; }
.final .name { flex: 1; text-align: left; font: 800 clamp(16px, 1.5vw, 28px)/1 var(--font-tech); letter-spacing: .16em; }
.final .score { font: 900 clamp(26px, 2.6vw, 50px)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--hot); }
.final li:first-child .score { color: oklch(84% .16 60); }

.done-sign { margin-top: clamp(24px, 3vw, 50px); display: grid; gap: 6px; }
.done-ignus { font: 900 clamp(26px, 2.6vw, 46px)/1 var(--font-display); letter-spacing: .1em; color: var(--primary); }
.done-proto { font: 700 clamp(11px, .9vw, 15px) var(--font-tech); letter-spacing: .46em; text-indent: .46em; color: oklch(80% .04 225); }
.done-phase {
  margin-top: 12px;
  font: 800 clamp(10px, .8vw, 14px) var(--font-tech);
  letter-spacing: .5em; text-indent: .5em;
  color: var(--subtle);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1500px), (max-height: 800px) {
  .g-ft { grid-template-columns: minmax(180px, 1fr) auto minmax(170px, 1fr); }
  .board { max-width: 330px; }
  .q-frame img { max-height: min(38vh, 380px); }
}
@media (max-width: 1040px) {
  .g-ft { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .board, .status { justify-self: center; width: min(560px, 100%); min-width: 0; }
  .status { order: -1; }
  .g-hd { padding-right: 0; flex-wrap: wrap; }
  .mark { top: 12px; right: 12px; }
  .home-rules { grid-template-columns: 1fr; }
  .home-rule { border-right: 0; border-bottom: 1px solid var(--border); }
  .home-rule:last-child { border-bottom: 0; }
}

/* ============================================================
   SHOW FLOOR REDESIGN — asymmetrical editorial split
   ============================================================ */
.screen-home {
  align-items: stretch;
  background: #080706;
}
.screen-home .hud-grid { opacity: .28; background-size: 88px 88px; }
.home-art { opacity: .72; clip-path: polygon(49% 0, 100% 0, 100% 100%, 32% 100%); filter: saturate(.72) contrast(1.08); }
.home-art::after { background: linear-gradient(90deg, #080706 0%, transparent 55%), linear-gradient(0deg, #080706 0%, transparent 40%); }
.home-center {
  width: min(720px, 56vw);
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(40px, 8vh, 110px) 0 clamp(70px, 10vh, 130px) clamp(30px, 7vw, 120px);
}
.home-brand { font-size: clamp(22px, 1.8vw, 32px); letter-spacing: .09em; }
.home-eyebrow { margin-top: 38px; margin-left: 2px; gap: 0; font-size: 10px; letter-spacing: .24em; }
.home-eyebrow .line { display: none; }
.home-title { margin-top: 22px; font-size: clamp(68px, 9.4vw, 160px); line-height: .82; letter-spacing: -.015em; }
.home-title em { color: var(--primary); background: none; -webkit-text-fill-color: initial; }
.home-rules { margin-top: 34px; grid-template-columns: repeat(2, auto); border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; }
.home-rule { padding: 14px 28px 14px 0; border-right: 0; font-size: 10px; letter-spacing: .14em; color: var(--muted-fg); }
.home-rule + .home-rule { padding-left: 28px; border-left: 1px solid var(--border); }
.home-cta { margin-top: 42px; min-height: 58px; height: auto; padding-inline: 26px; }
.home-cta::after { border-radius: 999px; inset: -5px; animation: cta-breathe 3.8s var(--ease-out) infinite; }
.home-hint { max-width: 430px; margin-top: 20px; line-height: 1.7; letter-spacing: .14em; }
.home-link { margin-top: 32px; }
.home-footer { justify-content: flex-start; padding-left: clamp(30px, 7vw, 120px); background: transparent; border-top-color: oklch(55% .025 55 / .18); }
.screen-game { padding: clamp(20px, 3vh, 42px) clamp(28px, 5vw, 92px); }
.screen-game .hud-grid { opacity: .22; background-size: 96px 96px; }
.g-hd { padding: 0 0 18px; border-bottom-color: var(--border); padding-right: 0; }
.g-hd-title { font-size: clamp(18px, 1.5vw, 28px); letter-spacing: .08em; }
.g-hd-sub { color: var(--subtle); }
.g-hd-r { gap: 10px; }
.g-body { align-items: stretch; justify-content: center; text-align: left; padding: clamp(28px, 5vh, 80px) 0; }
.q-meta { margin-left: 2px; }
.q-num { font-size: clamp(30px, 3.2vw, 56px); letter-spacing: .06em; }
.q-type { margin-top: 8px; color: var(--primary); letter-spacing: .28em; }
.q-stage { margin-top: clamp(24px, 4vh, 56px); display: grid; grid-template-columns: minmax(0, .88fr) minmax(280px, 1.12fr); grid-template-rows: auto auto; grid-template-areas: 'copy visual' 'hint visual'; align-items: center; column-gap: clamp(28px, 6vw, 120px); row-gap: 24px; animation: fade-in .5s var(--ease-out) both; }
.q-text { grid-area: copy; max-width: 760px; font-size: clamp(38px, 4.3vw, 78px); line-height: .98; letter-spacing: -.018em; text-wrap: pretty; }
.q-figure { grid-area: visual; margin: 0; align-self: stretch; display: flex; align-items: center; }
.q-frame { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.q-frame img { width: 100%; max-width: none; max-height: min(52vh, 560px); aspect-ratio: 1.12; object-fit: cover; filter: saturate(.7) contrast(1.12); }
.q-frame-tag { top: 14px; left: auto; right: 20px; border-radius: 999px; background: var(--primary); padding: 7px 11px; font-size: 8px; }
.q-frame-scan { background: linear-gradient(180deg, transparent, oklch(75% .12 30 / .2), transparent); }
.q-stage:not(.has-image) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'hint'; }
.q-hint { grid-area: hint; align-items: flex-start; margin: 0; gap: 12px; }
.q-hint-tag { color: var(--muted-fg); letter-spacing: .28em; }
.q-hint-tiles { justify-content: flex-start; gap: 7px; max-width: 100%; }
.q-tile { width: clamp(28px, 3.4vw, 52px); height: clamp(28px, 3.4vw, 52px); border-radius: 5px; border-color: oklch(70% .03 55 / .24); background: oklch(100% 0 0 / .045); }
.q-tile.on { background: var(--primary); border-color: oklch(80% .13 35 / .7); color: var(--primary-fg); }
.result { border-radius: 10px; border-color: var(--border); background: oklch(18% .025 30 / .78); }
.g-ft { gap: clamp(20px, 4vw, 72px); padding-top: 18px; border-top-color: var(--border); }
.clock { min-width: clamp(170px, 13vw, 260px); padding: 16px 24px 20px; border: 1px solid var(--border); border-radius: 16px; background: oklch(100% 0 0 / .035); }
.clock-time { font-size: clamp(52px, 5.2vw, 100px); }
.clock-track { height: 4px; background: oklch(100% 0 0 / .1); }
.clock-track i { background: var(--primary); }
.status-row { border-bottom-color: var(--border-soft); }
.screen-done { background: #080706; }
.done-title { letter-spacing: -.01em; }

@media (max-width: 900px) {
  .home-art { opacity: .3; clip-path: none; }
  .home-center { width: 100%; padding: 52px 28px 86px; }
  .home-title { font-size: clamp(64px, 17vw, 120px); }
  .q-stage, .q-stage.has-image { grid-template-columns: 1fr; grid-template-areas: 'visual' 'copy' 'hint'; }
  .q-figure { width: min(640px, 100%); justify-self: end; }
  .q-frame img { max-height: 36vh; }
  .q-text { max-width: 900px; }
}
@media (max-width: 620px) {
  .g-hd { align-items: flex-start; flex-direction: column; }
  .g-hd-r { align-self: flex-start; }
  .q-text { font-size: clamp(34px, 10vw, 56px); }
  .home-rules { grid-template-columns: 1fr; }
  .home-rule, .home-rule + .home-rule { padding: 12px 0; border: 0; }
  .home-rule + .home-rule { border-top: 1px solid var(--border); }
  .g-ft { gap: 14px; }
  .clock { width: 100%; }
}
