/* OV Delay — ovdelay.nl. Colours and type follow the 2014 app (docs/original-design.md):
   warm off-white #F3F1F0, tint RGB 200,0,0, grey tile 105,104,102, Open Sans Light titles. */

@font-face {
  font-family: "Open Sans";
  src: url(fonts/open-sans-latin.woff2) format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url(fonts/open-sans-latin-ext.woff2) format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f3f1f0;
  --paper-2: #e9e6e3;
  --card: #fbfaf9;
  --ink: #191919;
  --ink-2: #4a4846;
  --muted: #8a8683;
  --line: rgb(25 25 25 / .09);
  --red: #c80000;
  --red-2: #e3261f;
  --red-soft: #f6dcda;
  --tile: #696866;
  --purple: #6f419d;
  --land: #e4e0dc;
  --land-on: #f0d9d6;
  --sea: #f3f1f0;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(60 30 20 / .18);
  --radius: 22px;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --paper-2: #1b1a19;
    --card: #1c1b1a;
    --ink: #f3f1f0;
    --ink-2: #c9c5c1;
    --muted: #8f8a86;
    --line: rgb(255 255 255 / .09);
    --red: #e3261f;
    --red-2: #ff4a3d;
    --red-soft: #3a1513;
    --tile: #5b5a58;
    --land: #262422;
    --land-on: #3b1d1a;
    --sea: #121110;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Line tile: the grey/red rounded square from every row of the app */
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--tile); color: #e6e6e6;
  font: 600 18px/1 var(--ui); letter-spacing: -.02em;
}
.tile svg { width: 24px; height: 24px; }
.tile--red { background: var(--red); color: #fff; }
.tile--sm { width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
.tile--sm svg { width: 16px; height: 16px; }

/* Header ------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.appicon { display: block; flex: none; border-radius: 22.4%; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.brand__icon { width: 34px; height: 34px; }
.brand__name { font: 400 21px/1 var(--sans); letter-spacing: -.01em; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.top__nav a:hover { color: var(--red); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-2); padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  display: grid; padding: 6px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.lang__menu a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.lang__menu a:hover { background: var(--paper-2); }
.lang__menu a[aria-current] { color: var(--red); font-weight: 600; }

/* Hero -------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 56px 16px 40px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--red); color: #fff; font: 600 14px/1 var(--ui); letter-spacing: .01em;
  box-shadow: 0 6px 18px -6px rgb(200 0 0 / .55);
  transform-origin: left center; animation: wobble 6s ease-in-out 1.6s infinite;
}
/* On, then off: no fade in between (steps() would cut a fade into stutters). */
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: .25; } }
@keyframes breathe { 50% { opacity: .3; } }
@keyframes wobble { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-3deg); } 96% { transform: rotate(2.5deg); } 98% { transform: rotate(-1deg); } }

.hero__title {
  display: flex; align-items: center; gap: .12em;
  margin: 0; font: 300 clamp(64px, 11vw, 148px)/.95 var(--sans); letter-spacing: -.045em;
  white-space: nowrap;
}
.hero__icon {
  width: .78em; height: .78em; margin-right: .08em;
  box-shadow: 0 .06em .16em -.04em rgb(200 0 0 / .45);
  animation: drop .9s cubic-bezier(.3, 1.6, .5, 1) .15s both;
}
@keyframes drop { from { transform: translateY(-120%) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__lede { font: 400 clamp(19px, 2vw, 23px)/1.45 var(--sans); margin: 26px 0 12px; max-width: 34em; letter-spacing: -.01em; }
.hero__sub { color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 14px; background: var(--ink); color: var(--paper);
  font: 600 17px/1.1 var(--ui); cursor: not-allowed; position: relative; overflow: hidden;
}
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.store::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 255 255 / .06) 10px 20px);
}

/* Phone mock-up of the trip screen */
.hero__phone { display: grid; place-items: center; perspective: 1400px; }
.phone {
  width: min(330px, 78vw); aspect-ratio: 330 / 680; padding: 12px;
  border-radius: 54px; background: linear-gradient(145deg, #2b2a29, #0d0d0d);
  box-shadow: inset 0 0 0 2px #444, 0 50px 80px -30px rgb(60 20 10 / .45), 0 20px 30px -20px rgb(0 0 0 / .4);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  animation: float 7s ease-in-out infinite;
}
.phone:hover { transform: rotateY(-4deg) rotateX(2deg); }
@keyframes float { 50% { translate: 0 -10px; } }
.phone__screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #ede9e3; color: #191919; }
.city { position: absolute; inset: 0; width: 100%; height: 100%; }
.city__land { fill: #ede9e3; }
.city__park { fill: #cfe3c0; }
.city__water { fill: #aacbe6; }
.city__roads path { stroke: #fff; stroke-width: 9; fill: none; stroke-linecap: round; }
.city__roads .city__road--small { stroke-width: 4; }
.city__a2 { stroke: #f5b85b; stroke-width: 11; fill: none; }
.city__line { stroke: var(--purple); stroke-opacity: .75; stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.city__walk { stroke: #c80000; stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 2 9; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -11; } }
.city__stop rect { fill: #555; }
.city__stopsign { fill: #f4c51c !important; stroke: #555; stroke-width: 1.5; }
.city__stoplines { stroke: #555; stroke-width: 1.5; }
.city__pin { fill: #c80000; stroke: #fff; stroke-width: 2; }
.city__medot { fill: #1a7cf5; stroke: #fff; stroke-width: 3; }
.city__mepulse { fill: #1a7cf5; opacity: .25; animation: pulse 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { from { transform: scale(.5); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
.phone__bar {
  position: absolute; inset: 0 0 auto; padding: 10px 14px 12px;
  background: rgb(248 247 245 / .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.phone__status { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--ui); padding: 4px 10px 0; }
.phone__notch { width: 90px; height: 24px; border-radius: 20px; background: #0d0d0d; margin-top: -4px; }
.phone__title { font: 300 54px/1 var(--sans); letter-spacing: -.03em; margin: 12px 0 4px -2px; }
.phone__advice { margin: 0; font: 300 13px/1.35 var(--sans); color: #191919; min-height: 2.7em; }
.phone__advice .caret { display: inline-block; width: 1px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s linear infinite; }
.phone__toolbar {
  position: absolute; inset: auto 0 0; height: 58px; padding: 0 18px 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; color: #c80000; font: 400 13px/1 var(--ui);
}
.phone__toolbar span:nth-child(2) { background: #f9dede; padding: 5px 8px; border-radius: 6px; }

/* Departure board ----------------------------------------------------------- */
.board-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.board { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.board__head { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 24px 14px; gap: 16px; }
.board__head h2 { margin: 0; font: 300 clamp(26px, 3.4vw, 38px)/1.1 var(--sans); letter-spacing: -.02em; }
.board__clock { font: 300 26px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.alert { background: var(--red); color: #fff; overflow: hidden; font: 400 13px/26px var(--sans); white-space: nowrap; }
.alert__track { display: inline-flex; animation: marquee 38s linear infinite; }
.alert__track span { padding-right: 80px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rows { list-style: none; margin: 0; padding: 6px 0 10px; }
.row {
  display: grid; grid-template-columns: 44px 76px 1fr auto; gap: 16px; align-items: center;
  padding: 10px 24px; transition: background .2s;
}
.row:hover { background: var(--paper-2); }
.row__time { display: grid; justify-items: center; align-content: center; gap: 3px; font: 300 15px/1.2 var(--sans); text-align: center; }
.row__time s, .row__time > span { color: var(--muted); }
.row__time s { text-decoration-color: var(--red); }
.row__time em { font-style: normal; color: var(--red); font-size: 13px; font-weight: 500; }
.row__time .row__new { color: #fff; background: var(--red); border-radius: 4px; padding: 2px 5px 1px; font-size: 10.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.row__what b { display: block; font: 400 19px/1.25 var(--sans); }
.row__what small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.row__when { font: 600 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--red); animation: breathe 2.4s ease-in-out infinite; }

/* Sections ------------------------------------------------------------------ */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 16px 24px; }
.section__head { max-width: 760px; margin-bottom: 36px; }
.kicker { margin: 0 0 10px; color: var(--red); font: 600 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .12em; }
.big { margin: 0 0 16px; font: 300 clamp(40px, 6.4vw, 76px)/1.02 var(--sans); letter-spacing: -.035em; }
.section__intro { margin: 0; color: var(--ink-2); font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font: 600 15px/1 var(--ui); cursor: pointer; text-decoration: none;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--white { background: #fff; color: var(--red); border-color: #fff; }

/* Game */
.game__card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 22px; display: grid; gap: 22px;
}
.game__vehicles { display: flex; gap: 6px; flex-wrap: wrap; }
.game__vehicles button {
  border: 0; background: none; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font: 300 18px/1.2 var(--sans); color: var(--muted);
}
.game__vehicles button[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.game__vehicles button:hover { color: var(--red); }
.game__screen { min-height: 150px; }
.game__title { font: 300 clamp(56px, 9vw, 104px)/1 var(--sans); letter-spacing: -.04em; }
.game__advice { margin: 10px 0 0; font: 300 clamp(18px, 2.2vw, 24px)/1.4 var(--sans); max-width: 40em; min-height: 2.8em; }
.game__advice b { font-weight: 600; color: var(--red); }

.track { position: relative; height: 104px; border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.track__road { position: absolute; left: 0; right: 0; top: 52px; height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px); }
.track__stop { position: absolute; left: 56%; transform: translateX(-50%); top: 14px; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.track__sign { width: 16px; height: 40px; background: linear-gradient(#f4c51c 0 18px, #555 18px) center / 3px 100% no-repeat; position: relative; }
.track__sign::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 18px; border-radius: 3px; background: #f4c51c; border: 1.5px solid #555; box-sizing: border-box; }
.track__you { position: absolute; top: 40px; left: 4%; display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.track__dot { width: 18px; height: 18px; border-radius: 50%; background: #1a7cf5; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(26 124 245 / .2); }
.track__vehicle { position: absolute; top: 30px; left: 0; transform: translateX(-50%); }
.track__vehicle .tile { width: 40px; height: 40px; box-shadow: 0 6px 12px -4px rgb(200 0 0 / .5); }
.track__stamp {
  position: absolute; left: 82%; top: 50%; translate: -50% -50%; rotate: -8deg; background: var(--card);
  font: 700 28px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 14px; border: 3px solid currentColor; border-radius: 8px;
  opacity: 0; scale: 1.6; transition: opacity .25s, scale .35s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.track__stamp.is-on { opacity: 1; scale: 1; }
.track__stamp.made { color: #1a8a3c; }
.track__stamp.missed { color: var(--red); }

.game__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.slider { display: grid; gap: 10px; }
.slider__label { font-size: 15px; color: var(--ink-2); }
.slider output { font: 500 22px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--fill, 50%), var(--paper-2) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--paper-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--red); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 8px; background: var(--red); border: 3px solid var(--card); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--red); border: 3px solid var(--card); }
.game__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__name { max-width: 470px; margin: 26px 0 0; padding-left: 14px; border-left: 3px solid var(--red); color: var(--muted); font-size: 14px; line-height: 1.5; }
.hero__name b { display: block; color: var(--ink); font-weight: 600; }
.hero__name:has(b:empty) { display: none; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; font: 400 21px/1.2 var(--sans); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.new { margin-top: 28px; padding: 26px; border-radius: 18px; background: var(--paper-2); }
.new h3 { margin: 0 0 14px; font: 300 28px/1.2 var(--sans); }
.new ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.new li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }

/* Map */
.stats { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.stats b { font: 300 30px/1 var(--sans); color: var(--ink); display: block; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.atlas {
  display: grid; grid-template-columns: 340px 1fr; min-height: 640px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.markets { list-style: none; margin: 0; padding: 10px 0; border-right: 1px solid var(--line); overflow: auto; max-height: 640px; }
.market {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 18px; cursor: pointer;
  border-left: 3px solid transparent; transition: background .2s, border-color .2s;
}
.market:hover, .market.is-active { background: var(--paper-2); }
.market.is-active { border-left-color: var(--red); }
.market .tile { width: 40px; height: 40px; font-size: 13px; text-transform: uppercase; }
.market__name { display: flex; justify-content: space-between; gap: 8px; font: 400 18px/1.3 var(--sans); }
.market__count { font: 500 12px/1.9 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.market__note { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.market__modes { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.market__modes span { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
.market__places { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.market__places button { font: inherit; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.market__places button:hover { border-color: var(--red); color: var(--red); }
.markets__head { padding: 14px 21px 4px; font: 600 11px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.markets__head:first-child { padding-top: 6px; }
.market--wish .tile { background: transparent; border: 2px dashed var(--tile); color: var(--tile); }
.market--wish a { color: var(--red); }
.atlas__map { position: relative; min-height: 420px; background: var(--sea); touch-action: none; }
.atlas__map canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.atlas__map canvas.is-dragging { cursor: grabbing; }
.atlas__ctl { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.atlas__regions {
  position: absolute; left: 14px; bottom: 32px; right: 14px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.atlas__regions::-webkit-scrollbar { display: none; }
.atlas__regions button {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: 600 13px/1 var(--ui);
}
.atlas__regions button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.atlas__ctl button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow); cursor: pointer; font: 400 20px/1 var(--ui);
}
.atlas__ctl .atlas__reset { font-size: 13px; font-weight: 600; padding: 0 12px; }
.atlas__hint { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 12px; color: var(--muted); pointer-events: none; }
.atlas__tip {
  position: absolute; pointer-events: none; z-index: 2; translate: -50% calc(-100% - 14px);
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap;
}
.atlas__tip b { font: 400 16px/1.2 var(--sans); display: block; }
.atlas__toast {
  position: absolute; left: 50%; bottom: 40px; translate: -50% 0; z-index: 3;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  text-align: center; max-width: calc(100% - 32px); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1);
}
.atlas__toast b { display: block; font: 400 19px/1.3 var(--sans); }
.atlas__toast span { font-size: 13px; opacity: .85; }
@keyframes pop { from { scale: .7; opacity: 0; } }

/* CTA + footer */
.cta {
  max-width: 1180px; margin: 96px auto 0; padding: 64px 24px; border-radius: 32px;
  background: radial-gradient(120% 140% at 0% 0%, #e3261f, #c80000 50%, #8c0000);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
@media (min-width: 1212px) { .cta { margin-inline: auto; } }
@media (max-width: 1211px) { .cta { margin-inline: 16px; } }
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' width='84' height='84'%3E%3Cg transform='translate%280 1024%29 scale%28.1 -.1%29'%3E%3Cpath fill='%23fff' d='M5595 8799 c-384 -36 -896 -151 -1361 -304 -169 -56 -436 -154 -447 -165 -10 -9 80 -140 96 -140 7 0 91 29 187 64 862 316 1722 439 2170 309 125 -36 189 -74 248 -147 214 -264 619 -1150 1101 -2414 69 -181 69 -183 48 -192 -12 -6 -1109 -414 -2437 -909 -1819 -677 -2417 -896 -2422 -886 -25 44 -401 1115 -462 1318 -15 48 -28 87 -30 87 -4 0 -238 -121 -245 -126 -18 -15 410 -1148 850 -2252 159 -398 328 -824 375 -945 48 -122 88 -225 90 -228 2 -4 129 40 281 97 153 57 281 104 284 104 3 0 39 -89 79 -197 40 -109 82 -214 93 -233 79 -134 212 -210 366 -210 169 0 310 91 384 248 30 63 32 74 31 172 l-1 105 -77 204 c-42 112 -73 207 -69 211 21 17 2496 931 2503 923 4 -4 35 -84 70 -178 78 -211 110 -272 172 -331 259 -242 682 -95 737 256 15 94 2 156 -80 378 -39 106 -70 194 -68 196 2 1 129 49 282 105 152 57 277 104 277 105 0 1 -30 85 -66 187 -36 101 -164 468 -284 814 -441 1274 -630 1794 -855 2355 -316 787 -597 1314 -780 1464 -89 74 -258 131 -450 155 -103 12 -456 12 -590 0z m1821 -3927 c285 -145 277 -544 -14 -680 -83 -39 -221 -39 -304 0 -321 150 -288 598 52 709 14 5 66 7 115 6 78 -3 98 -8 151 -35z m-3353 -1230 c234 -110 284 -405 100 -584 -220 -214 -584 -77 -610 230 -23 274 262 471 510 354z M2902 8126 c-582 -418 -995 -834 -1191 -1197 -138 -256 -134 -432 21 -824 51 -131 189 -435 197 -435 9 0 147 331 143 344 -2 6 -28 70 -59 141 -70 164 -140 373 -148 445 -34 287 414 844 1074 1335 l133 99 -7 73 c-13 138 0 137 -163 19z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 84px 84px;
  animation: buses 30s linear infinite;
}
@keyframes buses { to { background-position: 840px 0; } }
.cta > * { position: relative; }
.cta__title { margin: 0 0 14px; font: 300 clamp(44px, 8vw, 96px)/1 var(--sans); letter-spacing: -.04em; }
.cta p { max-width: 560px; margin: 0 auto; font-size: 18px; opacity: .92; }

.foot { max-width: 1180px; margin: 0 auto; padding: 56px 16px 64px; color: var(--muted); font-size: 14px; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 400 20px/1 var(--sans); margin-bottom: 14px; }
.foot p { margin: 6px 0; }
.foot__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0; }
.foot__langs a { text-decoration: none; }
.foot__langs a[aria-current] { color: var(--red); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .atlas { grid-template-columns: 1fr; }
  .markets { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; display: grid; grid-template-columns: 1fr 1fr; }
  .atlas__map { min-height: 520px; order: -1; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; }
  .hero__phone { order: 2; }
  .phone { transform: none; }
  .top__nav { display: none; }
  .lang { margin-left: auto; }
  .new ul { grid-template-columns: 1fr; }
  .game__controls { grid-template-columns: 1fr; gap: 14px; }
  .section { padding-top: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .markets { grid-template-columns: 1fr; }
  .row { grid-template-columns: 40px 62px 1fr; gap: 12px; padding: 10px 16px; }
  .row .tile { width: 40px; height: 40px; }
  .row__when { display: none; }
  .board__head { padding: 18px 16px 12px; }
  .atlas__map { min-height: 440px; }

  .game__card { padding: 16px; }
  .lang summary span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
}
