/* CPH Train Dispatcher: landing page (dwinnovation.dk/dsb/cph-train-dispatcher/, Danish /da/). DW Innovation.
   Mobile first. Colours, top bar and buttons match the game (/play/) and The Danish Train Journey page. */

@font-face { font-family: "Barlow SC"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow SC"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0d0e11;
  --bg-2: #14161b;
  --bg-3: #1b1e25;
  --panel: #16181c;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0f3;
  --muted: #a5abb6;
  --faint: #79808c;
  --red: #d2122e;
  --red-2: #ef3349;
  --red-glow: rgba(210, 18, 46, .35);
  --amber: #eab839;
  --green: #2fbf71;
  --green-2: #45e08c;
  --blue: #1d5fa8;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --gutter: 16px;
  --top: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --disp: "Barlow SC", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); scrollbar-gutter: stable; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.01em; font-family: var(--disp); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: center; }
.btn .ico { width: 20px; height: 20px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px var(--red-glow); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: var(--line-2); color: var(--text); }
.btn--dark { background: #3a3f49; color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.btn--big { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--red-2); transform: translateY(-1px); box-shadow: 0 14px 32px -10px var(--red-glow); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .14); }
  .btn--dark:hover { background: #4a505b; }
}
.btn:active { transform: translateY(1px); }

/* top bar (as the game) */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(13, 14, 17, .72); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .topbar { background: rgba(13, 14, 17, .96); } }
.topbar__in { height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; flex: none; }
.brand__text { font-size: 15px; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.so-lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.so-lang a { position: relative; display: grid; place-items: center; min-width: 42px; min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.so-lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.tb-play { min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; gap: 6px; }
.tb-play .ico { width: 16px; height: 16px; }
@media (max-width: 379px) { .tb-play span { display: none; } .tb-play { width: 44px; padding: 0; } .tb-play .ico { width: 20px; height: 20px; } }
/* the brand name gives way before anything squeezes the DW square or touches EN/DA (checked every width 320 to 520) */
@media (max-width: 429px) { .brand__text { display: none; } }

/* ============ HERO ============ */
.hero { position: relative; padding-top: var(--top); background: #050607; }
.hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050607; }
@supports not (aspect-ratio: 16 / 9) { .hero__media { height: 0; padding-top: 56.25%; } .hero__media > * { position: absolute; inset: 0; } }
.hero__media video, .hero__media .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(to bottom, rgba(5, 6, 7, 0), #050607); pointer-events: none; }
.hero__vc { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 11, 13, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero__vc .ico { width: 18px; height: 18px; }
.hero__body { position: relative; z-index: 2; padding: 4px 0 40px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 113, .18); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { background: var(--red); box-shadow: 0 0 0 4px rgba(210, 18, 46, .2); } }
.hero h1 { margin-top: 10px; font-size: clamp(42px, 11.5vw, 96px); line-height: .95; letter-spacing: -.005em; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--amber); }
.hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .7); margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.55; color: #d6d9de; }
.hero__lead b { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn--primary { flex: 1 1 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 600; color: #d6d9de; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (min-width: 560px) { .hero__cta .btn--primary { flex: 0 0 auto; } }

@media (min-width: 900px) {
  .hero { padding-top: 0; }
  .hero__media { aspect-ratio: auto; height: min(100vh, 56.25vw, 980px); min-height: 600px; }
  .hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 6, 7, .92) 0%, rgba(5, 6, 7, .74) 30%, rgba(5, 6, 7, .2) 58%, rgba(5, 6, 7, 0) 75%); pointer-events: none; }
  .hero__media::after { height: 30%; z-index: 1; }
  .hero__body { position: absolute; inset: 0; display: flex; align-items: center; padding: calc(var(--top) + 20px) 0 40px; }
  .hero__body .wrap { pointer-events: none; }
  .hero__body .wrap > * { pointer-events: auto; }
  .hero__text { max-width: 560px; }
  .hero__vc { right: 20px; bottom: 20px; }
}

/* ============ sections ============ */
.sec { padding: 56px 0; }
.sec + .sec { padding-top: 0; }
.sec.sec--band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 56px; }
.sec.sec--band + .sec { padding-top: 56px; }
.sec__head { max-width: 760px; margin-bottom: 36px; }
.sec__eyebrow { display: inline-block; margin-bottom: 14px; font: 750 12px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.sec h2 { font-size: clamp(30px, 7.6vw, 52px); }
.sec__lead { margin-top: 16px; max-width: 640px; color: var(--muted); font-size: 17px; }
@media (min-width: 960px) {
  .sec { padding: 80px 0; }
  .sec.sec--band, .sec.sec--band + .sec { padding-top: 80px; }
}
/* same page width and side margins as The Danish Train Journey page and the other DSB pages */
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --wrap: 1200px; } }

/* the real game picture */
.screen { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #0a0b0d; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .03); }
.screen img { width: 100%; }
.screen__tag { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #1d2025; color: #fff; font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.screen__tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.tclock, .scene__txt p.tclock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 12px 6px; border-radius: 8px; background: var(--blue); color: #fff; font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 24px; line-height: 1; font-family: var(--disp); letter-spacing: .02em; font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px -10px rgba(29, 95, 168, .9); text-shadow: none; }
.tclock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); animation: blink 2s steps(1) infinite; }
.sec__head--c { margin-left: auto; margin-right: auto; text-align: center; }
.sec__head--c .sec__lead { margin-left: auto; margin-right: auto; }

/* what makes it stand out: four promises right under the hero */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stats__grid li { padding: 22px 14px 22px 0; border-bottom: 1px solid var(--line); }
.stats__grid li:nth-child(even) { padding-left: 14px; padding-right: 0; border-left: 1px solid var(--line); }
.stats__grid li:nth-last-child(-n+2) { border-bottom: 0; }
.stats__grid b { display: block; font: 700 clamp(22px, 5.6vw, 30px)/1.02 var(--disp); color: #fff; text-transform: uppercase; }
.stats__grid em { display: block; font-style: normal; color: var(--amber); }
.stats__grid span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats__grid li, .stats__grid li:nth-child(even) { padding: 30px 22px; border-bottom: 0; border-left: 1px solid var(--line); }
  .stats__grid li:first-child { padding-left: 0; border-left: 0; }
  .stats__grid li:last-child { padding-right: 0; }
}

/* play together: challenge, today's top ten, a new shift every day, your own record */
.so { display: grid; gap: 14px; }
.so__card { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); overflow: hidden; }
.so__card h3 { font-size: 26px; color: #fff; }
.so__card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.so__eye { margin: 0 0 12px !important; font: 750 12px/1.2 var(--font) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--amber) !important; }
.so__card--ch { display: grid; gap: 22px; border-color: rgba(210, 18, 46, .45); background: radial-gradient(120% 80% at 0% 0%, rgba(210, 18, 46, .2), rgba(210, 18, 46, 0) 60%), var(--bg-3); }
.so__pic { position: relative; width: 260px; max-width: 100%; margin: 0 auto 14px; transform: rotate(-2.5deg); }
.so__q { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(2.5deg); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--amber); color: #111; font: 700 17px/1 var(--disp); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8); }
.so__steps { display: grid; gap: 12px; margin: 16px 0 26px; padding: 0; list-style: none; counter-reset: so; }
.so__steps li { position: relative; padding-left: 44px; color: #d6d9de; font-size: 15.5px; line-height: 1.5; counter-increment: so; }
.so__steps li::before { content: counter(so); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font: 700 17px/1 var(--disp); }
.board { margin-bottom: 18px; border: 1px solid #2a2f37; border-radius: 12px; background: #0b0d10; overflow: hidden; }
.board__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #15181d; border-bottom: 1px solid #2a2f37; font: 700 18px/1 var(--disp); color: #fff; }
.board__head img { width: 30px; height: 30px; }
.board__head time { margin-left: auto; font: 600 12px/1 var(--font); color: var(--muted); }
.board ol { margin: 0; padding: 6px 0; list-style: none; }
.board li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; height: 26px; padding: 0 12px; }
.board li b { font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 15px; line-height: 1; font-family: var(--disp); color: var(--amber); text-align: right; font-variant-numeric: tabular-nums; }
.board li span { height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #262b33 0 10px, #1c2026 10px 14px); }
.board li:nth-child(n+6) span { opacity: .55; }
.board li.is-you { height: 34px; margin: 2px 6px; padding: 0 6px; border-radius: 8px; background: rgba(234, 184, 57, .14); box-shadow: inset 0 0 0 1px rgba(234, 184, 57, .6); }
.board li.is-you span { height: auto; background: none; color: #fff; font: 700 15px/1 var(--disp); letter-spacing: .02em; animation: blinkt 1.6s steps(1) infinite; }
@keyframes blinkt { 50% { color: var(--amber); } }
.nd { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nd img { width: 54px; height: 54px; flex: none; }
.nd__lbl { display: block; font: 750 12px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nd__left { display: block; margin-top: 4px; font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 40px; line-height: 1; font-family: var(--disp); color: #fff; font-variant-numeric: tabular-nums; }
.so__art { height: 54px; margin-bottom: 16px; }
.so__art img { height: 100%; width: auto; }
@media (min-width: 640px) {
  .so__card--ch { grid-template-columns: 240px 1fr; align-items: center; gap: 30px; padding: 28px; }
  .so__pic { margin: 0 0 14px; }
}
@media (min-width: 1000px) {
  .so { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .so__card--ch { grid-column: span 2; }
  .so__card--tt { grid-column: 3; grid-row: 1 / span 2; }
  .so__card--nd { grid-column: 1; grid-row: 2; }
  .so__card--sf { grid-column: 2; grid-row: 2; }
}

/* the challenge: IC 107 in 20 seconds, on the signal panel close-up */
.chal { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 70% at 50% 0%, rgba(29, 95, 168, .22), rgba(13, 14, 17, 0) 70%), #0b0d11; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chal__bg { position: absolute; inset: 0; z-index: -1; }
.chal__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.chal__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0d0e11 0%, rgba(13, 14, 17, .55) 30%, rgba(13, 14, 17, .7) 70%, #0d0e11 100%); }
.ch { max-width: 1040px; margin: 0 auto; border: 1px solid rgba(234, 184, 57, .45); border-radius: 18px; background: rgba(14, 16, 20, .94); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 6px rgba(234, 184, 57, .06); overflow: hidden; }
.ch.is-alarm { animation: alarm .5s 3; }
@keyframes alarm { 50% { border-color: var(--red); box-shadow: 0 0 0 6px rgba(210, 18, 46, .35), 0 40px 90px -30px rgba(0, 0, 0, .95); } }
.ch__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #1a1d22; }
.ch__t { flex: 1; min-width: 0; font: 700 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .ch__t2 { display: none; } }
.ch__timer { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: #262a31; color: #fff; font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 17px; line-height: 1; font-family: var(--disp); font-variant-numeric: tabular-nums; }
.ch__timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ch.is-run .ch__timer i { background: var(--green); animation: blink 1s steps(1) infinite; }
.ch.is-hurry .ch__timer { background: var(--red); }
.ch__clock { padding: 5px 9px; border-radius: 6px; background: var(--blue); color: #fff; font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 17px; line-height: 1; font-family: var(--disp); font-variant-numeric: tabular-nums; }
.ch__grid { display: grid; }
.ch__panel { position: relative; background: #0f1318; }
.ch__svg { width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ch__svg .trk { fill: none; stroke: #4a505b; stroke-width: 5; stroke-linecap: round; }
.ch__svg .trk.is-set { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(69, 224, 140, .7)); }
.ch__svg .trk.is-occ { stroke: var(--red); }
.ch__svg .sw { transition: opacity .25s; }
.ch__svg .sig { cursor: pointer; }
.ch__svg .sig__lamp { fill: var(--red); transition: fill .2s; }
.ch__svg .sig.is-green .sig__lamp { fill: var(--green-2); }
.ch__svg .sig__ring { fill: none; stroke: var(--amber); stroke-width: 2.5; opacity: 0; }
.ch__svg .sig.is-ask .sig__ring { opacity: 1; animation: ring 1.2s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
.ch__svg .sig.is-sel .sig__ring { opacity: 1; animation: none; }
@keyframes ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.ch__svg .hit { fill: transparent; cursor: pointer; }
.ch__svg [role="button"]:focus { outline: none; }
.ch__svg .spor:focus-visible .pnum { stroke: var(--amber); stroke-width: 3; }
.ch__svg .sig:focus-visible .sig__ring { opacity: 1; stroke-width: 3.5; }
.ch__svg .plat { fill: #23272e; stroke: #3a3f49; stroke-width: 1; }
.ch__svg .pnum { fill: #e8eaee; stroke: #0a0b0d; stroke-width: 1; }
.ch__svg .pnum-t { fill: #111; font: 700 14px var(--disp); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ch__svg .spor.is-ask .pnum { fill: var(--amber); animation: pulse 1s ease-in-out infinite alternate; }
.ch__svg .spor.is-bad .pnum { fill: var(--red); }
@keyframes pulse { to { fill: #fff3c7; } }
.ch__svg .lbl { fill: #c9cdd3; font: 700 12px var(--disp); }
.ch__svg .lbl--dim { fill: #79808c; font: 500 11px var(--font); }
.ch__svg .trn rect { fill: #fff; }
.ch__svg .trn text { fill: #111; font: 700 11px var(--disp); text-anchor: middle; dominant-baseline: central; }
.ch__start { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 13, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ch.is-on .ch__start { display: none; }
.no-js .ch__start { display: none; }
.ch__cam { position: relative; aspect-ratio: 1280 / 611; overflow: hidden; background: #000; border-top: 1px solid var(--line); }
@supports not (aspect-ratio: 1 / 1) { .ch__cam { height: 0; padding-top: 47.7%; } }
.ch__cam picture, .ch__cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch__cam img { filter: brightness(.22) grayscale(.7) blur(5px); transform: scale(1.14); transition: filter 1.6s var(--ease), transform 2.6s var(--ease); }
.ch.is-arr .ch__cam img { filter: none; transform: none; }
.ch__osd { position: absolute; z-index: 2; color: #fff; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); }
.ch__osd--tl { left: 10px; top: 10px; }
.ch__osd--tr { right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.ch__osd--tr i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
.ch__osd--bl { left: 10px; bottom: 10px; }
.ch__wait { position: absolute; inset: 0; display: grid; place-items: center; color: #c9cdd3; font: 700 15px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; animation: blinkt2 1.4s steps(1) infinite; }
@keyframes blinkt2 { 50% { opacity: .35; } }
.ch.is-arr .ch__wait { display: none; }
.ch__stamp { position: absolute; z-index: 3; right: 14px; bottom: 34px; display: flex; flex-direction: column; align-items: center; padding: 10px 18px; border: 3px solid var(--green-2); border-radius: 12px; background: rgba(8, 30, 18, .78); color: var(--green-2); font: 700 15px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .08em; opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity .3s, transform .45s cubic-bezier(.2, 1.6, .4, 1); }
.ch__stamp b { font-size: 34px; letter-spacing: 0; color: #fff; }
.ch.is-won .ch__stamp { opacity: 1; transform: scale(1) rotate(-8deg); }
.ch__msg { min-height: 54px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: #d6d9de; }
.ch__msg b { color: #fff; }
.ch__msg.is-ok { background: rgba(47, 191, 113, .12); border-top-color: rgba(47, 191, 113, .45); }
.ch__msg.is-bad { background: rgba(210, 18, 46, .16); border-top-color: rgba(210, 18, 46, .6); }
.ch__foot { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.ch__foot .btn { flex: 1 1 220px; }
.ch__foot[hidden] { display: none; }
@media (min-width: 900px) {
  .ch__grid { grid-template-columns: 1.05fr 1fr; }
  .ch__cam { aspect-ratio: auto; border-top: 0; border-left: 1px solid var(--line); }
  .ch__osd { font-size: 12px; }
}

/* welcome: the two dispatchers greet the new colleague */
.welcome { position: relative; overflow: hidden; padding-bottom: 0; background: radial-gradient(70% 90% at 18% 100%, rgba(234, 184, 57, .16), rgba(234, 184, 57, 0) 60%), radial-gradient(60% 80% at 90% 0%, rgba(29, 95, 168, .22), rgba(29, 95, 168, 0) 65%), var(--bg); }
.welcome__in { display: grid; gap: 0; align-items: end; }
.welcome__crew { justify-self: center; width: 200px; height: 230px; overflow: hidden; margin-bottom: -6px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.welcome__crew img { width: 100%; height: auto; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .65)); }
.welcome__card { position: relative; padding: 24px 22px; border: 1px solid rgba(234, 184, 57, .35); border-radius: var(--radius); background: rgba(22, 24, 28, .92); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.welcome__card::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--amber); }
.welcome__card h2 { font-size: clamp(30px, 7.6vw, 52px); }
.welcome__card p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.welcome__card .welcome__lead { margin-top: 16px; color: #fff; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.welcome__sign { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--line); font: 700 19px/1.25 var(--disp) !important; color: var(--amber) !important; }
.welcome__sign span { display: block; font: 500 14px/1.4 var(--font); color: var(--muted); }
.welcome .hero__cta { margin-top: 26px; }
@media (min-width: 900px) {
  .welcome { padding-top: 60px; }
  .welcome__in { grid-template-columns: 320px 1fr; gap: 40px; }
  .welcome__crew { width: 300px; height: auto; overflow: visible; margin-bottom: 0; -webkit-mask-image: none; mask-image: none; }
  .welcome__card { align-self: center; margin-bottom: 60px; padding: 34px 38px; }
}

/* full-width pictures with the story on them */
.scene { position: relative; background: #050607; overflow: hidden; }
.scene__pic { position: relative; aspect-ratio: 16 / 9; }
.scene__pic img { width: 100%; height: 100%; object-fit: cover; }
.scene__pic::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(rgba(5, 6, 7, 0), #050607); }
.scene__body { position: relative; padding: 4px 0 52px; }
.scene__txt h2 { font-size: clamp(30px, 7.6vw, 52px); }
.scene__txt .sec__eyebrow, .scene__txt p.sec__eyebrow { margin-bottom: 14px; font-size: 12px; line-height: 1.2; color: var(--amber); }
.scene__txt h2 + p { margin-top: 16px; }
.scene__txt p + p { margin-top: 12px; }
.scene__txt p { font-size: 17px; line-height: 1.6; color: #d6d9de; }
.scene__txt .hero__cta { margin-top: 26px; }
@media (min-width: 900px) {
  .scene__pic { position: absolute; inset: 0; aspect-ratio: auto; }
  .scene__pic::after { inset: 0; height: auto; background: linear-gradient(90deg, rgba(5, 6, 7, .94) 0%, rgba(5, 6, 7, .78) 34%, rgba(5, 6, 7, .12) 64%, rgba(5, 6, 7, 0) 80%); }
  .scene--right .scene__pic::after { background: linear-gradient(270deg, rgba(5, 6, 7, .94) 0%, rgba(5, 6, 7, .78) 34%, rgba(5, 6, 7, .12) 64%, rgba(5, 6, 7, 0) 80%); }
  .scene__body { display: flex; align-items: center; min-height: min(86vh, 50vw, 820px); padding: 80px 0; }
  .scene__body .wrap { width: 100%; }
  .scene__txt { max-width: 520px; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
  .scene--right .scene__txt { margin-left: auto; }
}

/* why you will love it */
.rsg { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rs { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.rs__icon { width: 54px; height: 54px; margin-bottom: 14px; }
.rs__art { height: 54px; margin-bottom: 14px; }
.rs__chips { display: flex; flex-wrap: wrap; align-content: center; gap: 6px; min-height: 54px; margin-bottom: 14px; }
.rs__chips span { padding: 6px 10px; border: 1px solid rgba(234, 184, 57, .7); border-radius: 8px; background: #161616; color: var(--amber); font: 700 15px/1 var(--disp); }
.rs__art img { height: 100%; width: auto; }
.rs h3 { font-size: 23px; color: #fff; }
.rs p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 760px) { .rsg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rsg { gap: 16px; } }

/* inside the game: cameras, 3D, phone and PC */
.feats { display: grid; gap: 14px; }
.feat { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); overflow: hidden; }
.feat__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0b0d; border-bottom: 1px solid var(--line); }
.feat__pic img { width: 100%; height: 100%; object-fit: cover; }
.feat__body { padding: 18px 20px 20px; }
.feat__icon { width: 54px; height: 54px; margin-bottom: 12px; }
.feat h3 { font-size: 23px; }
.feat p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.dev { display: grid; gap: 22px; margin-top: 16px; padding: 22px 20px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.dev h3 { font-size: 26px; }
.dev p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.dev__pics { position: relative; padding-bottom: 6%; }
.dev__pc { width: 84%; }
.dev__ph { position: absolute; right: 0; bottom: 0; width: 26%; border: 2px solid #3a3f49; border-radius: 18px; overflow: hidden; background: #0a0b0d; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .95); }
.dev__ph img { width: 100%; }
@media (min-width: 900px) { .dev { grid-template-columns: 1fr 2.1fr; align-items: center; gap: 36px; padding: 30px; } }

/* who it is for */
.whg { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wh { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); background: var(--bg-3); }
.wh h3 { font-size: 22px; color: #fff; }
.wh p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) { .whg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .whg { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* questions and answers */
.fqs { max-width: 860px; border-top: 1px solid var(--line-2); }
.fq { border-bottom: 1px solid var(--line-2); }
.fq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23eab839' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.fq[open] summary::after { transform: rotate(45deg); }
.fq summary h3 { font-size: 21px; color: #fff; }
.fq p { padding: 0 2px 20px; max-width: 46em; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (hover: hover) { .fq summary:hover h3 { color: var(--amber); } }

/* shifts */
.shifts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shift { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 148px; padding: 14px 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, #1d2025, #16181c); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; -webkit-tap-highlight-color: transparent; }
.shift__time { font-style: normal; font-variant: normal; font-weight: 700; font-stretch: normal; font-size: 30px; line-height: 1; font-family: var(--disp); color: #fff; font-variant-numeric: tabular-nums; }
.shift__name { font: 700 18px/1.15 var(--disp); color: var(--amber); }
.shift__info { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.shift__busy { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; }
.shift__busy i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f49; }
.shift__busy i.on { background: var(--red); box-shadow: 0 0 8px rgba(210, 18, 46, .6); }
.shift__go { position: absolute; right: 12px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.shift__go .ico { width: 14px; height: 14px; }
.shift--day { grid-column: 1 / -1; min-height: 0; border-color: rgba(234, 184, 57, .55); background: linear-gradient(120deg, rgba(234, 184, 57, .14), rgba(234, 184, 57, .02) 60%), #16181c; }
.shift--day .shift__time, .shift--xmas .shift__time { font-size: 24px; }
.shift__tag { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 3px 9px; border-radius: 6px; background: var(--amber); color: #111; font: 700 12px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.shift--xmas { grid-column: 1 / -1; min-height: 0; border-color: rgba(210, 18, 46, .6); background: linear-gradient(120deg, rgba(210, 18, 46, .18), rgba(210, 18, 46, .02) 60%), #16181c; }
@media (hover: hover) { .shift:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .32); } }
.ends { display: none; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(210, 18, 46, .08); color: #d6d9de; font-size: 15px; }
.ends b { color: #fff; }
@media (min-width: 900px) {
  .shifts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .shifts.has-xmas .shift--day, .shifts.has-xmas .shift--xmas { grid-column: span 2; }
}

/* final call */
.final { position: relative; overflow: hidden; padding: 64px 0; text-align: center; background: radial-gradient(80% 100% at 50% 100%, rgba(29, 95, 168, .3), rgba(13, 14, 17, 0) 65%), var(--bg-2); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(34px, 8vw, 64px); text-transform: uppercase; line-height: .98; }
.final h2 span { color: var(--amber); }
.final p { margin: 12px auto 0; color: #c9cdd3; font-size: 17px; max-width: 30em; }
.final .hero__cta { justify-content: center; margin-top: 26px; }
.final .hero__cta .btn { flex: 0 1 280px; }
@media (min-width: 960px) { .final { padding: 90px 0; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: #0a0b0d; font-size: 13.5px; color: var(--muted); }
.foot__credit { color: #c9cdd3; line-height: 1.6; }
.foot__credit a { color: #fff; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.foot__tm { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .04); color: #c9cdd3; line-height: 1.6; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.foot__links a { color: var(--muted); text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
@media (hover: hover) { .foot__links a:hover { color: var(--text); } }

/* reveal on scroll (only with JS, never hides content without it) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

:where(body *) { max-height: 1000000px; } /* phones with large system text: a max-height on every block stops Android (WebView, Messenger, Facebook) from enlarging some text blocks and not others; it changes nothing else */
