/* The Hybrid Challenge kiosk — drawn on a fixed 1920×1080 stage that kiosk.js scales to fit the window. */
@font-face { font-family: 'Display'; src: url('assets/fonts/BarlowCondensed-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: block; }
@font-face { font-family: 'Display'; src: url('assets/fonts/BarlowCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'KioskMono'; src: url('assets/fonts/DejaVuSansMono.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'KioskMono'; src: url('assets/fonts/DejaVuSansMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'KioskSans'; src: url('assets/fonts/DejaVuSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }

:root {
  /* Swap the headline face here if a licensed brand font is supplied. */
  --font-display: 'Display', 'Arial Narrow', sans-serif;
  --font-mono: 'KioskMono', 'DejaVu Sans Mono', Menlo, monospace;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-bold-sans: 'KioskSans', 'DejaVu Sans', Verdana, sans-serif;
  --pink: #ff3597;
  --focus: #ff87be;
  --divider: #777;
  --accent: linear-gradient(90deg, #e8ad29 0%, #f5654c 4%, #fd3464 9%, #fd1279 45%, #e40889 75%, #aa0b91 90%, #601294 100%);
  --cta: linear-gradient(90deg, #ff5a00 0%, #ff3a2a 8%, #ff0047 15%, #ff0063 40%, #ff0080 58%, #d4008a 72%, #8e0096 87%, #6a00a0 100%);
  --rank: linear-gradient(100deg, #a66a00 0%, #bf0047 21%, #a70068 70%, #500063 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { color: #fff; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; user-select: none; }
p, h1, h2, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #000; transform-origin: 0 0; }
h1:focus { outline: none; }
button:focus-visible, .consent input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.field input:focus { outline: none; border-bottom-color: var(--pink); }

/* ---------- Shared chrome ---------- */
.logo { position: absolute; left: 76px; top: 38px; }
.title-block { position: absolute; right: 80px; top: 52px; text-align: right; }
.title { font: 700 32px/1 var(--font-bold-sans); letter-spacing: .04em; }
.subtitle { margin-top: 10px; font: 400 22px/1 var(--font-mono); letter-spacing: .12em; }
.rule { position: absolute; left: 77px; top: 190px; width: 1766px; height: 8px; background: var(--accent); }

.chrome-bottom { position: absolute; left: 0; top: 1000px; width: 1920px; height: 80px; border-top: 2px solid #5a5a5a; }
.tagline { position: absolute; left: 96px; top: 18px; font: 800 46px/1 var(--font-display); letter-spacing: .01em; }
.progress { position: absolute; left: 1538px; top: 37px; display: flex; gap: 12px; }
.progress i { width: 31px; height: 5px; background: #5c5c5c; }
.progress i.on { background: var(--pink); }
.admin-link { position: absolute; left: 1330px; top: 22px; padding: 12px 20px; border: 1px solid #444; border-radius: 4px;
  color: #8a8a8a; font: 400 18px/1 var(--font-mono); letter-spacing: .12em; text-decoration: none; }
.admin-link:hover { color: #fff; border-color: #8a8a8a; }
#stage:not([data-screen="home"]) .admin-link { display: none; }
.step { position: absolute; left: 1772px; top: 33px; font: 400 20px/1 var(--font-mono); letter-spacing: .06em; }

/* ---------- Screens ---------- */
.screen { display: none; }
#stage[data-screen="home"] .screen[data-screen="home"],
#stage[data-screen="countdown"] .screen[data-screen="countdown"],
#stage[data-screen="running"] .screen[data-screen="running"],
#stage[data-screen="details"] .screen[data-screen="details"],
#stage[data-screen="result"] .screen[data-screen="result"] { display: block; }

.kicker { font: 700 24px/1 var(--font-mono); letter-spacing: .08em; }

.cta { position: absolute; border: 0; padding: 0; cursor: pointer; color: #fff; background: var(--cta);
  font: 800 50px/1 var(--font-display); letter-spacing: .01em; }
.cta:active { filter: brightness(1.15); }
.cta:disabled { filter: grayscale(.6) brightness(.7); cursor: progress; }
.screen[data-screen="home"] .cta, .screen[data-screen="running"] .cta { left: 489px; top: 855px; width: 942px; height: 104px; }

/* ---------- Leaderboards ---------- */
.board-cols { display: grid; grid-template-columns: 120px 1fr auto; padding: 0 16px 12px 3px; font: 700 22px/1 var(--font-mono); letter-spacing: .08em; border-bottom: 3px solid #fff; }
.board-rows { list-style: none; }
.board-rows li { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; padding: 0 14px; border-bottom: 2px solid var(--divider); }
.board-rows li.highlight { background: var(--rank); }
.board-rows .rank { font: 700 26px/1 var(--font-mono); }
.board-rows .name { font: 700 28px/1 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 24px; }
.board-rows .time { font: 700 28px/1 var(--font-mono); letter-spacing: .02em; }

/* Home */
.home-headline { position: absolute; left: 76px; top: 225px; font-family: var(--font-display); font-weight: 800; line-height: .86; }
.home-headline span { display: block; }
.home-headline .l1 { font-size: 118px; }
.home-headline .l2, .home-headline .l3 { font-size: 214px; margin-top: 6px; }
.home-headline .l3 { letter-spacing: -.005em; }

.board-home { position: absolute; left: 1087px; top: 226px; width: 756px; }
.board-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.board-heading h2 { font: 800 92px/.9 var(--font-display); }
.finisher-count { font: 700 22px/1 var(--font-mono); color: var(--pink); letter-spacing: .06em; }
.board-home .board-rows li { height: 45px; }
.board-home .board-rows .name, .board-home .board-rows .time { font-size: 26px; }
.board-home .board-rows .rank { font-size: 24px; }
.board-empty { padding-top: 40px; font: 700 28px/1.3 var(--font-mono); color: #bbb; }

/* Countdown + running */
.stopwatch-screen .kicker { position: absolute; left: 115px; top: 238px; width: 1689px; padding-bottom: 18px; border-bottom: 2px solid #ddd; }
.status-dot { position: absolute; left: 115px; top: 335px; font: 700 24px/1 var(--font-mono); color: var(--pink); letter-spacing: .04em; display: flex; align-items: center; gap: 18px; }
.status-dot::before { content: ''; width: 21px; height: 21px; border-radius: 50%; background: var(--pink); }
.count-word { position: absolute; left: 0; top: 420px; width: 1920px; text-align: center; font: 700 220px/1 var(--font-bold-sans); }
.count-word.small { top: 460px; font-size: 150px; }
.clock { position: absolute; left: 0; top: 400px; width: 1920px; text-align: center; font: 700 280px/1 var(--font-mono); letter-spacing: -.01em; }
.ruler { position: absolute; left: 116px; top: 687px; width: 1686px; height: 53px; border-bottom: 12px solid #fff; display: flex; justify-content: space-evenly; padding: 0 80px 0 70px; }
.ruler i { width: 13px; height: 41px; background: #fff; }

/* Finisher time panel (client amendment: the time is the dominant element) */
.your-time { position: absolute; left: 80px; top: 244px; width: 800px; }
.your-time-label { margin-top: 170px; font: 700 34px/1 var(--font-mono); letter-spacing: .14em; color: var(--pink); }
.your-time-value { margin-top: 24px; padding-bottom: 34px; border-bottom: 3px solid #fff; font: 700 180px/1 var(--font-mono); letter-spacing: -.025em; white-space: nowrap; }
.your-time-value.long { font-size: 156px; }

/* Details form */
.details-form { position: absolute; left: 958px; top: 244px; width: 826px; }
.display-heading { margin-top: 44px; font: 800 124px/.85 var(--font-display); white-space: nowrap; }
.fields { display: grid; grid-template-columns: 400px 400px; column-gap: 26px; row-gap: 40px; margin-top: 64px; }
.field span { display: block; font: 700 22px/1 var(--font-mono); letter-spacing: .04em; }
.field input { display: block; width: 100%; height: 66px; margin-top: 12px; padding: 0 18px; border: 0; border-bottom: 3px solid #fff; border-radius: 0;
  background: #000; color: #fff; font: 400 26px/1 var(--font-sans); user-select: text; }
.field input::placeholder { color: #c4c4c8; opacity: 1; }
.consent { position: relative; display: block; margin-top: 46px; padding-left: 46px; font: 400 26px/1.3 var(--font-sans); cursor: pointer; }
.consent input { position: absolute; left: 0; top: 2px; width: 30px; height: 30px; margin: 0; appearance: none; border: 3px solid #fff; background: #000; cursor: pointer; }
.consent input:checked { background: #ff338d; }
.consent input:checked::after { content: '✓'; display: grid; place-items: center; height: 100%; color: #fff; font: 700 20px/1 var(--font-sans); }
.cta-small { left: 150px; top: 652px; width: 540px; height: 62px; font-size: 44px; background: var(--rank); }

/* Result */
.board-result { position: absolute; left: 986px; top: 244px; width: 858px; }
.board-title { margin: 16px 0 16px; font: 800 92px/.85 var(--font-display); }
.board-result .board-rows li { height: 42px; }
.board-result .board-rows .name, .board-result .board-rows .time { font-size: 25px; }
.board-result .board-rows .rank { font-size: 23px; }
.cta-return { left: 986px; top: 870px; width: 858px; height: 90px; font-size: 48px; background: var(--rank); }

/* Error / notice banner */
.error { position: absolute; left: 77px; bottom: 96px; max-width: 1766px; padding: 14px 22px; background: #381127; border-left: 6px solid var(--pink); font: 400 26px/1.3 var(--font-sans); }
