/* ============================================================================
   Be the GC: Build the Schedule
   Deacon Construction. Blueprint-derived visual system: deep navy ground,
   drafted linework, hi-vis accent, architectural condensed display type.
   ========================================================================= */

:root {
  /* Ground */
  --navy-900: #04101f;
  --navy-800: #071628;
  --navy-700: #0b2038;
  --navy-600: #17365d;        /* Deacon navy */
  --navy-500: #1f4674;

  /* Line + text */
  --line: rgba(125, 179, 240, .16);
  --line-soft: rgba(125, 179, 240, .08);
  --text: #eaf2fb;
  --text-dim: #9db6d4;
  --text-faint: rgba(157, 182, 212, .55);

  /* Accent */
  --hivis: #ffb833;
  --hivis-bright: #ffc960;
  --hivis-deep: #d98c00;

  /* Verdicts */
  --go: #23a55a;
  --works: #3d8bfd;
  --review: #f2751f;

  /* Paper */
  --card: #ffffff;
  --ink: #0d1f36;
  --ink-soft: #55708f;
  --ink-faint: #8fa4bd;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  --sh-1: 0 1px 2px rgba(2, 10, 20, .28), 0 2px 8px rgba(2, 10, 20, .18);
  --sh-2: 0 4px 10px rgba(2, 10, 20, .3), 0 12px 32px rgba(2, 10, 20, .3);
  --sh-3: 0 18px 50px rgba(2, 10, 20, .5);

  --ease: cubic-bezier(.22, .68, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font: 400 16px/1.55 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--navy-800);
  display: flex; flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Drafting grid + vignette, fixed so the page moves over the paper. */
.site-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(31, 70, 116, .55), transparent 70%),
    radial-gradient(700px 460px at 92% 4%, rgba(255, 184, 51, .1), transparent 70%),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 42%, var(--navy-900) 100%);
}
main, .topbar, .foot { position: relative; z-index: 1; }

h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
  font-weight: 700; letter-spacing: .01em; line-height: 1.05;
}

/* ------------------------------------------------------------------ mark -- */
/* Three bars stepping up: a schedule bar chart and a D in the corner mark. */
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.mark i { display: block; width: 6px; border-radius: 1.5px; background: var(--hivis); }
.mark i:nth-child(1) { height: 40%; opacity: .55; }
.mark i:nth-child(2) { height: 70%; opacity: .8; }
.mark i:nth-child(3) { height: 100%; }
.mark--sm { height: 16px; }
.mark--sm i { width: 4px; }

/* ---------------------------------------------------------------- topbar -- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px clamp(16px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(4, 16, 31, .98), rgba(4, 16, 31, .94));
  border-bottom: 1px solid rgba(125, 179, 240, .16);
  box-shadow: 0 1px 0 rgba(255, 184, 51, .5), 0 10px 30px rgba(2, 10, 20, .4);
  backdrop-filter: blur(10px);
}
.topbar__brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar__names { display: flex; flex-direction: column; min-width: 0; }
.topbar__title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 24px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
}
.topbar__sub {
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 3px;
}
.topbar__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__status { min-width: 210px; max-width: 320px; flex: 0 1 auto; }
.topbar__line { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.topbar__count {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim); text-align: right;
}
/* Booth clock: reads at a glance from a few feet back, and the tabular figures
   stop the whole line jittering every time a digit rolls over. */
.topbar__timer {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1; color: var(--hivis);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.booth-chip {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 12px; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hivis); border: 1px solid var(--hivis); background: rgba(255, 184, 51, .08);
  padding: 5px 11px; border-radius: 99px;
}
.progress {
  height: 5px; border-radius: 99px; background: rgba(125, 179, 240, .16); overflow: hidden;
}
.progress__bar {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--hivis-deep), var(--hivis-bright));
  box-shadow: 0 0 14px rgba(255, 184, 51, .6);
  transition: width .45s var(--ease);
}

main {
  flex: 1 0 auto; width: 100%;
  padding: 0 clamp(16px, 3vw, 34px) 56px; max-width: 1560px; margin: 0 auto;
}

/* ------------------------------------------------------------------ hero -- */
.hero { display: flex; justify-content: center; padding: clamp(40px, 9vh, 96px) 0 clamp(48px, 10vh, 104px); }
.hero__inner { width: 100%; max-width: 940px; }

.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px; font-size: 12px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--hivis);
}
.hero__rule { display: block; width: 52px; height: 2px; background: var(--hivis); flex: 0 0 auto; }

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(52px, 11vw, 128px);
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal; color: var(--hivis);
  text-shadow: 0 0 60px rgba(255, 184, 51, .35);
}

.hero__lede {
  margin: 0 0 40px; max-width: 60ch;
  font-size: clamp(16px, 1.55vw, 20px); line-height: 1.6; color: var(--text-dim);
}

.steps {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; gap: 1px; background: rgba(125, 179, 240, .18);
  border: 1px solid rgba(125, 179, 240, .18); border-radius: var(--r); overflow: hidden;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; flex-direction: column; gap: 7px;
  padding: 22px 24px; background: rgba(7, 22, 40, .72);
}
.step__n {
  font-family: "Barlow Condensed", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .2em; color: var(--hivis);
}
.step__t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.step__d { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

.hero__cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__note { margin: 0; font-size: 13px; color: var(--text-faint); max-width: 40ch; line-height: 1.6; }
.nowrap { white-space: nowrap; }
kbd {
  font: 600 11px/1 Inter, system-ui, sans-serif; padding: 3px 6px;
  border: 1px solid rgba(125, 179, 240, .35); border-bottom-width: 2px;
  border-radius: 5px; color: var(--text-dim);
}

/* --------------------------------------------------------------- panels --- */
.panel__head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.panel__title {
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--hivis);
}
.panel__hint { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.tray-wrap {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 32, 56, .8), rgba(7, 22, 40, .6));
  border: 1px solid rgba(125, 179, 240, .18);
  border-radius: var(--r-lg);
  padding: 20px clamp(16px, 2vw, 24px) 22px;
  margin-bottom: 34px;
  box-shadow: var(--sh-1);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.tray-wrap.is-over {
  border-color: var(--hivis);
  box-shadow: 0 0 0 3px rgba(255, 184, 51, .2), var(--sh-2);
}
.tray {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  min-height: 60px;
}
/* The tray is a grid now, so the empty note has to span it, not sit in one cell. */
.tray__empty { grid-column: 1 / -1; margin: 10px 2px; color: var(--text-faint); font-size: 14px; }

/* ---------------------------------------------------------------- tiles --- */
.tile {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 650; color: var(--ink);
  background: var(--card);
  border: 0; border-radius: 11px;
  padding: 12px 8px 11px;
  min-height: 86px; width: 100%;
  cursor: grab;
  box-shadow: var(--sh-1);
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
/* Entrance only when the board first appears, not on every re-render. */
.tile--in { animation: tileIn .3s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(13, 31, 54, .1); pointer-events: none;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile:active { cursor: grabbing; }
.tile:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }

.tile__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(180deg, #eef3fa, #e2eaf5);
  color: var(--navy-600);
}
.tile__icon svg { width: 22px; height: 22px; display: block; }
.tile__label { font-size: 13px; line-height: 1.2; letter-spacing: 0; min-width: 0; }

.tile.is-selected {
  box-shadow: 0 0 0 3px var(--hivis), var(--sh-2);
  transform: translateY(-2px);
}
.tile.is-selected .tile__icon { background: linear-gradient(180deg, #fff2d6, #ffe3ac); color: var(--hivis-deep); }
.tile.is-dragging { opacity: .3; }

.tile__badge {
  flex: 0 0 auto; margin-left: 0; margin-top: 1px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 99px; white-space: nowrap;
  background: #eef2f8; color: var(--ink-soft);
}
.tile--correct { box-shadow: inset 0 4px 0 0 var(--go), var(--sh-1); }
.tile--correct .tile__badge { background: #e2f6e9; color: #16743d; }
.tile--works { box-shadow: inset 0 4px 0 0 var(--works), var(--sh-1); }
.tile--works .tile__badge { background: #e6f0ff; color: #14559c; }
.tile--review { box-shadow: inset 0 4px 0 0 var(--review), var(--sh-1); }
.tile--review .tile__badge { background: #ffece0; color: #ad4708; }
/* Only shakes on the render that graded the schedule. */
.tile--nudge { animation: nudge .4s var(--ease) both; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

.tile--ghost {
  position: fixed; z-index: 200; pointer-events: none; animation: none;
  width: 128px;
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.05);
  box-shadow: var(--sh-3); opacity: .98;
}

/* ------------------------------------------------------------- timeline --- */
.timeline-wrap { margin-bottom: 30px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 4px 4px;
}

.phase {
  display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, rgba(23, 54, 93, .34), rgba(7, 22, 40, .3));
  border: 1px solid rgba(125, 179, 240, .16);
  border-radius: var(--r);
  padding: 14px 10px 12px;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.phase:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
.phase.is-over {
  background: linear-gradient(180deg, rgba(255, 184, 51, .18), rgba(255, 184, 51, .06));
  border-color: var(--hivis); transform: translateY(-3px);
}

/* The spine: a schedule line running through the phase numbers. */
.phase__head { position: relative; margin-bottom: 16px; padding-top: 4px; }
.phase__head::before {
  content: ""; position: absolute; left: -10px; right: -20px; top: 15px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(125,179,240,.34) 0 8px, transparent 8px 14px);
}
/* Last column in a row stops at the row edge instead of running into nothing. */
.phase:last-child .phase__head::before { right: -10px; }
.phase__num {
  position: relative; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--hivis); color: var(--navy-900);
  font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 700;
  box-shadow: 0 0 0 5px var(--navy-800), 0 4px 12px rgba(255, 184, 51, .3);
  margin-bottom: 9px;
}
.phase__name {
  margin: 0; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; color: var(--text);
  overflow-wrap: normal;
}
.phase__blurb { margin: 3px 0 0; font-size: 11.5px; color: var(--text-faint); line-height: 1.35; }

.phase__drop {
  display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 120px;
  border-radius: var(--r-sm);
}
.phase__hint {
  margin: auto 0; padding: 14px 4px; text-align: center;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(157, 182, 212, .35);
  border: 1px dashed rgba(125, 179, 240, .2); border-radius: var(--r-sm);
}

/* Fewer columns as the board narrows; the spine tracks the column count. */
@media (max-width: 1000px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phase:nth-child(4n) .phase__head::before,
  .phase:last-child .phase__head::before { right: -10px; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(2n) .phase__head::before,
  .phase:last-child .phase__head::before { right: -10px; }
}

/* -------------------------------------------------------------- actions --- */
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 4px 0 34px; }
.btn {
  position: relative; font: inherit; font-weight: 700; letter-spacing: .03em;
  padding: 13px 26px; min-height: 50px;
  border-radius: 11px; border: 1px solid transparent;
  background: var(--hivis); color: var(--navy-900);
  cursor: pointer; box-shadow: var(--sh-1);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), filter .14s var(--ease);
}
.btn--lg { padding: 17px 38px; min-height: 58px; font-size: 17px; }
.btn--sm { padding: 8px 15px; min-height: 34px; font-size: 12px; border-radius: 8px; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-2); filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn--go {
  background: linear-gradient(180deg, #2bbd68, var(--go)); color: #fff;
  box-shadow: 0 4px 16px rgba(35, 165, 90, .35), var(--sh-1);
}
.btn--ghost {
  background: transparent; color: var(--text-dim);
  border-color: rgba(125, 179, 240, .3); box-shadow: none;
}
.btn--ghost:hover:not(:disabled) { color: var(--text); border-color: rgba(125, 179, 240, .55); }

/* ------------------------------------------------------------- feedback --- */
.feedback { margin-top: 10px; }
.feedback__intro {
  margin: 0 0 20px; font-size: 16px; color: var(--text-dim); max-width: 70ch;
}
.feedback__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-items: start; }
@media (min-width: 960px) { .feedback__list { grid-template-columns: 1fr 1fr; } }

.fb {
  background: var(--card); color: var(--ink);
  border-radius: var(--r); padding: 18px 20px;
  box-shadow: inset 5px 0 0 var(--ink-faint), var(--sh-1);
  animation: fbIn .34s var(--ease) both;
}
@keyframes fbIn { from { opacity: 0; transform: translateY(10px); } }
.fb--correct { box-shadow: inset 5px 0 0 var(--go), var(--sh-1); }
.fb--works { box-shadow: inset 5px 0 0 var(--works), var(--sh-1); }
.fb--review { box-shadow: inset 5px 0 0 var(--review), var(--sh-1); }

.fb__head { margin: 0 0 10px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.fb__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: #eef3fa; color: var(--navy-600); flex: 0 0 auto;
}
.fb__icon svg { width: 19px; height: 19px; display: block; }
.fb__head strong { font-size: 16.5px; letter-spacing: -.01em; }
.fb__verdict {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; background: #eef2f8; color: var(--ink-soft);
}
.fb--correct .fb__verdict { background: #e2f6e9; color: #16743d; }
.fb--works .fb__verdict { background: #e6f0ff; color: #14559c; }
.fb--review .fb__verdict { background: #ffece0; color: #ad4708; }
.fb__why { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.fb__why:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- complete --- */
.done {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  color: var(--ink);
  border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 56px);
  text-align: center; box-shadow: var(--sh-3);
  max-width: 760px; margin: 0 auto;
  animation: doneIn .5s var(--ease) both;
}
@keyframes doneIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.done::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: linear-gradient(90deg, var(--go), var(--hivis));
}
.done__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #16743d; background: #e2f6e9; padding: 8px 15px; border-radius: 99px;
}
.done__title {
  margin: 0 0 18px; font-size: clamp(34px, 5vw, 52px);
  text-transform: uppercase; color: var(--ink);
}
.done__body { margin: 0 auto 16px; max-width: 54ch; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }
.done__body strong { color: var(--ink); }
.done .btn { margin-top: 14px; }

/* ----------------------------------------------------------------- foot --- */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 20px 40px; border-top: 1px solid rgba(125, 179, 240, .12);
  margin-top: 20px;
}
.foot p {
  margin: 0; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
}
.foot .btn--sm { letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------ celebrate --- */
/* A clean schedule gets a beat of applause. Deliberately short: the point is
   the finish card underneath it, not the fireworks. */
.tile--pop { animation: pop .5s var(--ease); }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.is-celebrating .progress__bar { animation: barFlash .8s 2; }
@keyframes barFlash {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.9) saturate(.15); }
}

/* ----------------------------------------------------------- booth mode --- */
/* Everything a career-fair kiosk needs and a walk-up player does not. */

/* Attract loop: the intro screen asking for the next student. */
#attract-note { display: none; }
body.is-attract #attract-note {
  display: block; margin: 20px 0 0;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--hivis);
  animation: fbIn .5s var(--ease) both;
}
body.is-attract #play { animation: pulseRing 1.6s var(--ease) infinite; }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(255, 184, 51, .55), 0 4px 16px rgba(35, 165, 90, .35); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 184, 51, 0), 0 4px 16px rgba(35, 165, 90, .35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 51, 0), 0 4px 16px rgba(35, 165, 90, .35); }
}
/* The three steps light up one after another, so the eye is walked through
   how it plays without anyone standing there explaining it. */
body.is-attract .step { animation: stepGlow 4.5s var(--ease) infinite; }
body.is-attract .step:nth-child(1) { animation-delay: 0s; }
body.is-attract .step:nth-child(2) { animation-delay: 1.5s; }
body.is-attract .step:nth-child(3) { animation-delay: 3s; }
body.is-attract .step__n { animation: stepNumGlow 4.5s var(--ease) infinite; animation-delay: inherit; }
@keyframes stepGlow {
  0%, 24%, 100% { background: rgba(7, 22, 40, .72); }
  8%, 16% { background: rgba(23, 54, 93, .9); }
}
@keyframes stepNumGlow {
  0%, 24%, 100% { color: var(--hivis); text-shadow: none; }
  8%, 16% { color: #fff; text-shadow: 0 0 14px rgba(255, 184, 51, .9); }
}

/* Today's fastest, on the intro screen. */
.board-intro {
  margin-top: 38px; max-width: 470px;
  padding: 18px 20px 16px;
  background: rgba(7, 22, 40, .6);
  border: 1px solid rgba(125, 179, 240, .18); border-radius: var(--r);
}
.board-intro .panel__title { margin-bottom: 12px; }
.board { list-style: none; margin: 0; padding: 0; }
.board__row {
  display: grid; grid-template-columns: 24px 1fr auto auto;
  align-items: baseline; gap: 14px;
  padding: 8px 9px; border-radius: var(--r-sm);
}
.board__row + .board__row { border-top: 1px solid var(--line-soft); }
.board__rank {
  font-family: "Barlow Condensed", sans-serif; font-size: 15px; color: var(--text-faint);
}
.board__who {
  font-family: "Barlow Condensed", sans-serif; font-size: 19px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.board__time {
  font-family: "Barlow Condensed", sans-serif; font-size: 19px; font-weight: 700;
  color: var(--hivis); font-variant-numeric: tabular-nums; text-align: right;
}
.board__rounds {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); min-width: 56px; text-align: right;
}
.board__row.is-you {
  background: rgba(255, 184, 51, .14); box-shadow: inset 3px 0 0 var(--hivis);
}
.board__empty { margin: 0; font-size: 14px; color: var(--text-faint); }

/* The same list on the finish card, which is paper rather than navy. */
.done__time {
  margin: 4px 0 2px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: clamp(42px, 8vw, 56px); line-height: 1;
  color: var(--hivis-deep); font-variant-numeric: tabular-nums;
}
.done__slot { margin: 22px auto 0; max-width: 430px; text-align: left; }
.done__slot .panel__title { color: var(--hivis-deep); margin-bottom: 10px; }
.done .board__rank { color: var(--ink-faint); }
.done .board__who { color: var(--ink); }
.done .board__time { color: var(--hivis-deep); }
.done .board__rounds { color: var(--ink-faint); }
.done .board__row + .board__row { border-top-color: rgba(13, 31, 54, .1); }
.done .board__row.is-you {
  background: #fff3d9; box-shadow: inset 3px 0 0 var(--hivis-deep);
}

/* Initials. One field, sized so it can be filled with a fingertip. */
.initials { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.initials__label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.initials__input {
  width: 210px; padding: 8px 0 6px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 46px;
  line-height: 1.1; text-align: center; text-transform: uppercase;
  letter-spacing: .3em; text-indent: .3em; color: var(--ink);
  background: #fff; border: 2px solid rgba(13, 31, 54, .18); border-radius: var(--r-sm);
}
.initials__input:focus {
  outline: 3px solid var(--hivis); outline-offset: 2px; border-color: var(--hivis-deep);
}
.initials__input.is-bad { border-color: var(--review); animation: nudge .4s var(--ease) both; }
.initials .btn { margin-top: 0; }

/* Idle reset banner. Floats over the board so it cannot be missed. */
.idle {
  position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  padding: 11px 14px 11px 22px;
  background: linear-gradient(180deg, rgba(11, 32, 56, .98), rgba(4, 16, 31, .98));
  border: 1px solid var(--hivis); border-radius: 99px;
  box-shadow: var(--sh-3);
  animation: fbIn .25s var(--ease) both;
}
.idle__text { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.idle__text span { color: var(--hivis); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- small --- */
@media (max-width: 700px) {
  .hero { padding: 34px 0 44px; }
  .hero__title { font-size: clamp(42px, 13vw, 64px); }
  .steps { margin-bottom: 34px; }
  .actions .btn { flex: 1 1 auto; }
  .topbar__status { min-width: 140px; }
  .topbar__count { font-size: 11px; }
  .foot { flex-direction: column; gap: 10px; text-align: center; }
  .board-intro { max-width: none; }
  .idle { left: 12px; right: 12px; bottom: 12px; transform: none; justify-content: center; }
  .idle__text { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
