/* Look of the map videos: black, Barlow, orange condensed italic headlines, blue / red teams, the game's map.
   One small design system: every colour, size, space, radius and motion below comes from the tokens in :root. */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: dark;
  /* colour: the video's palette */
  --ink: #0a0a0a;          /* video INK */
  --ink-2: #141414;        /* surfaces */
  --ink-3: #1f1f1f;        /* pressed / current */
  --line: #262626;         /* dividers */
  --edge: #3a3a3a;         /* borders of controls */
  --edge-hi: #5c5c5c;      /* borders of controls: hover, on */
  --white: #f4f2ee;        /* video WHITE */
  --grey: #9a9893;         /* video GREY, 6.8 : 1 on ink */
  --orange: #e4841c;       /* video ORANGE: the accent (headlines, kills, the main action) */
  --orange-hi: #f2973a;
  --north: #4f9cff;        /* video BLUE */
  --south: #ff5a3d;        /* video RED */
  --good: #4fd39b;
  --bad: #b99af0;
  --warn: #fab219;
  --dead: #6b6b6b;
  /* type: Barlow for reading, Barlow Condensed for labels, numbers and headlines */
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: 12px; --t-s: 13px; --t-m: 15px; --t-l: 18px; --t-xl: 22px; --t-2xl: 32px; --t-3xl: 40px;
  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  /* shape and motion */
  --r: 2px;
  --fast: 120ms; --mid: 220ms; --ease: cubic-bezier(.2, .7, .2, 1);
  /* layout: on a desktop the map is as tall as the window allows; header, tabs and footer take the width of map + panel */
  --panel: 440px;
  --page: 1560px;
  --mapw: max(480px, min(calc(100vh - 190px), calc(100vw - 52px - var(--panel) - var(--s5))));   /* 190: header, the tab boxes, timeline */
}
@media (min-width: 1000px) { :root { --page: calc(var(--mapw) + var(--panel) + var(--s5)); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--white); font: var(--t-m)/1.5 var(--body); font-variant-numeric: tabular-nums;
  padding: 0 max(var(--s4), env(safe-area-inset-left)) env(safe-area-inset-bottom);
}
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* icons: one set, 24 px grid, 2 px stroke, the colour of the text */
.ic {
  width: 16px; height: 16px; flex: none; vertical-align: -3px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic .f { fill: currentColor; stroke: none; }

/* buttons: outline by default; .primary (orange) only for the main action of a view */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 34px; padding: 0 var(--s3);
  border: 1px solid var(--edge); border-radius: var(--r); background: none; color: var(--white); cursor: pointer;
  font: 600 var(--t-m)/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--edge-hi); background: var(--ink-2); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-hi); border-color: var(--orange-hi); }

/* ---------- header and tabs ---------- */
.top { display: flex; align-items: center; gap: var(--s4); max-width: var(--page); margin: 0 auto; padding: var(--s3) 0 var(--s2); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; font-family: var(--cond); }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand-name span { color: var(--orange); }      /* THUNDER + orange SPOTS: the name is one word (user, 6 Dec 2026) */
.brand-sub { font-size: var(--t-s); color: var(--grey); letter-spacing: .18em; margin-top: 3px; font-weight: 600; }
.mapname { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-left: var(--s4); border-left: 1px solid var(--line); }
/* map menu: the map name, a native select (keyboard and phone friendly) */
.mapsel { position: relative; display: inline-block; }
.mapsel::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg);
}
.mapsel select {
  appearance: none; -webkit-appearance: none; background: var(--ink-2); color: var(--white);
  border: 1px solid var(--edge); border-radius: var(--r); cursor: pointer; max-width: 100%;
  font: 600 var(--t-xl)/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; padding: 6px 32px 6px 10px;
}
.mapsel select:hover { border-color: var(--edge-hi); }
.mapsel select option { font: 500 var(--t-m) var(--body); text-transform: none; background: var(--ink-2); }
#map-mode { font: 500 var(--t-m) var(--cond); color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }
.top > .btn { margin-left: auto; }
.top > .btn .ic { color: #ff3b30; }

/* the five features: the main choice of a map page, so big boxes over the whole width (user, 5 Dec 2026: "větší,
   po celé délce … i čtvereček, jako mají jiné věci"); the current one has the orange bar of the other controls */
.tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: var(--s2);
  max-width: var(--page); margin: var(--s2) auto var(--s4); overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: var(--ink-2); border: 1px solid var(--edge); border-radius: var(--r); padding: var(--s4) var(--s4) 14px; cursor: pointer;
  white-space: nowrap; font: 600 var(--t-xl)/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--grey);
  box-shadow: inset 0 -3px 0 transparent;
}
.tabs button:hover { color: var(--white); border-color: var(--edge-hi); }
.tabs button[aria-selected="true"] { color: var(--white); background: var(--ink-3); border-color: var(--edge-hi); box-shadow: inset 0 -3px 0 var(--orange); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); max-width: var(--page); margin: 0 auto; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: var(--mapw) var(--panel); justify-content: start; align-items: start; gap: var(--s5); }
  /* no scroll box inside the page (user, 5 Dec 2026: "odstranil slidebary, a to jak dolů tak do strany"): the page scrolls
     as one and the map stays in view beside the panel */
  .map-col { position: sticky; top: var(--s3); }
}
/* nothing may be wider than its column: long words wrap, wide rows shrink */
.panel { min-width: 0; overflow-wrap: anywhere; }

/* ---------- map (the game's map as in the video, not darkened) ---------- */
.map { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-2); user-select: none; }
/* only the map's own layers: an icon inside the tooltip is an svg too and must keep its 16 px */
.map > img, .map > canvas, .map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map img:not([src]), .map.loading img { opacity: .3; }
#heat, #lines, #dots, #marks { pointer-events: none; }
#overlay .grid line { stroke: rgba(20, 20, 18, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
#overlay .glab { font: 600 19px var(--cond); fill: rgba(20, 20, 18, .85); paint-order: stroke; stroke: rgba(244, 242, 238, .5); stroke-width: 3px; }
#overlay .zone text, #marks .zone text { font: 700 21px var(--cond); fill: #fff; text-anchor: middle; dominant-baseline: central; }
#overlay .tag text { font: 600 18px var(--cond); letter-spacing: 1px; text-anchor: middle; dominant-baseline: central; fill: var(--white); }
#overlay .hit { cursor: pointer; }
#overlay .hit:focus-visible { outline: none; stroke: #fff; stroke-width: 5; }
#overlay .pct, #marks .pct {
  font: 600 19px var(--cond); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(10, 10, 10, .85); stroke-width: 5px;
}
#overlay .rk text, #marks .rk text { font: 700 24px var(--cond); text-anchor: middle; dominant-baseline: central; fill: #fff; }
#marks .sqlab {
  font: 700 40px var(--cond); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(10, 10, 10, .9); stroke-width: 7px;
}
/* loading: the map stays, dimmed, with what is being loaded (#loading only: the map itself has the class too) */
#loading {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: var(--s3);
  background: rgba(10, 10, 10, .35); font: 600 var(--t-l) var(--cond); text-transform: uppercase; letter-spacing: .06em;
}
#loading[hidden] { display: none; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(244, 242, 238, .25); border-top-color: var(--orange); }
.tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 170px; max-width: 260px;
  background: rgba(10, 10, 10, .94); border: 1px solid var(--edge); border-radius: var(--r); padding: var(--s2) var(--s3);
  font-size: var(--t-s); line-height: 1.4; color: var(--grey);
}
.tip b { font: 700 var(--t-l) var(--cond); color: var(--white); letter-spacing: .02em; }
.tip .v { color: var(--white); font-weight: 700; }
.tip .up { color: var(--good); font-weight: 700; }
.tip .down { color: var(--bad); font-weight: 700; }
.tip .w { color: var(--warn); display: inline-flex; gap: var(--s1); align-items: center; }

/* under the map: the timeline of the routes, or the options and legend of the current feature */
.strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); min-height: 56px; padding: var(--s2) 0;
  font-size: var(--t-s); color: var(--grey);
}
.strip .play {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; flex: none;
}
.strip .play:hover { background: var(--orange-hi); }
.strip .play .ic { width: 20px; height: 20px; }
.strip .play[aria-label="Play"] .ic { transform: translateX(1px); }     /* a triangle looks centred a little right of centre */
.strip input[type="range"] { flex: 1 1 260px; accent-color: var(--orange); min-width: 160px; height: 28px; margin: 0; }
.strip .clock { font: 700 var(--t-xl) var(--cond); color: var(--white); min-width: 92px; }
.strip .clock small { font-size: var(--t-m); color: var(--grey); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r); }
.seg button {
  background: none; border: 0; padding: 0 var(--s3); min-height: 32px; cursor: pointer; color: var(--grey);
  font: 600 var(--t-m) var(--cond); text-transform: uppercase; letter-spacing: .04em;
}
.seg button + button { border-left: 1px solid var(--edge); }
.seg button:hover { color: var(--white); }
.seg button[aria-pressed="true"] { background: var(--ink-3); color: var(--white); box-shadow: inset 0 -2px 0 var(--orange); }
.strip .lg { display: inline-flex; align-items: center; gap: var(--s2); }
.strip .ramp { width: 110px; height: 8px; display: inline-block; }
.strip .sw { width: 14px; height: 14px; display: inline-block; border-radius: 50%; }
.strip .ln { width: 22px; height: 0; border-top: 2px solid; display: inline-block; }

/* ---------- panel ---------- */
.panel { background: var(--ink); }
.filters { display: grid; gap: var(--s3); }
.flabel { display: block; margin-bottom: var(--s1); font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip {
  background: none; border: 1px solid var(--edge); border-radius: var(--r); color: var(--grey); padding: 0 var(--s2); min-height: 30px; cursor: pointer;
  font: 600 var(--t-m) var(--cond); letter-spacing: .02em; display: inline-flex; align-items: center; gap: var(--s1);
}
.chip:hover { color: var(--white); border-color: var(--edge-hi); }
.chip[aria-pressed="true"] { color: var(--white); background: var(--ink-3); border-color: var(--edge-hi); }
.chip small { color: var(--grey); font: 500 var(--t-xs) var(--body); }
.chip.team i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: .35; margin-right: 2px; }
.chip.team.north i { background: var(--north); }
.chip.team.south i { background: var(--south); }
.chip.team[aria-pressed="true"] i { opacity: 1; }
.chip.team.north[aria-pressed="true"] { border-color: var(--north); }
.chip.team.south[aria-pressed="true"] { border-color: var(--south); }
/* vehicle classes: the game's class icon over the name and the count, six equal boxes */
#vcls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
#vcls .chip { flex-direction: column; justify-content: center; gap: 3px; padding: var(--s2) 2px 6px; min-height: 64px; line-height: 1; }
#vcls .chip span { white-space: nowrap; }
#vcls .veh { width: 40px; height: 18px; opacity: .55; }
#vcls .chip:hover .veh, #vcls .chip[aria-pressed="true"] .veh { opacity: 1; }
.fmeta { margin: 0; font-size: var(--t-s); color: var(--grey); }
.fmeta b { color: var(--white); font-weight: 600; }

.feature { padding-top: var(--s5); }
.feature h2 { margin: 0; font: italic 700 var(--t-2xl)/1.02 var(--cond); text-transform: uppercase; letter-spacing: .01em; color: var(--orange); }
.feature h2.north { color: var(--north); }
.feature h2.south { color: var(--south); }
.feature .sub { margin: var(--s1) 0 0; font: 600 var(--t-l) var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.feature .desc { margin: var(--s2) 0 0; color: var(--grey); }
.feature .desc b { color: var(--white); font-weight: 600; }
.panel[aria-busy="true"] > section { opacity: .45; }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.big3 b { display: block; font: 700 var(--t-3xl)/1 var(--cond); }
.big3 span { display: block; color: var(--grey); font-size: var(--t-s); margin-top: var(--s1); }
.big3 .up { color: var(--good); }
.big3 .down { color: var(--bad); }
.range { width: 100%; height: auto; display: block; margin: var(--s3) 0 0; }
.range .axis { stroke: var(--edge); stroke-width: 2; }
.range .avg { stroke: var(--grey); stroke-width: 2; stroke-dasharray: 3 3; }
.range text { fill: var(--grey); font: 400 11px var(--body); }
.verdict { margin: var(--s1) 0 0; font-size: var(--t-s); color: var(--grey); }
.warn { display: flex; gap: var(--s2); margin: var(--s3) 0 0; padding-left: var(--s3); border-left: 2px solid var(--warn); font-size: var(--t-s); }
.warn .ic { color: var(--warn); margin-top: 1px; }
.feature > .warn:first-child { margin: 0 0 var(--s4); }
.small { margin: var(--s2) 0 0; font-size: var(--t-s); color: var(--grey); }
.sect { margin: var(--s5) 0 var(--s2); font: 600 var(--t-m) var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.toggles { display: grid; gap: var(--s2); }
.toggle { display: flex; align-items: flex-start; gap: var(--s2); cursor: pointer; font-size: var(--t-s); }
.toggle input { accent-color: var(--orange); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.toggle svg { width: 30px; height: 12px; flex: none; margin-top: 3px; }
.toggle small { display: block; color: var(--grey); font-size: var(--t-xs); }

/* lists: a header row names the columns once; the rows keep their text on the panel's edge, the hover reaches past it */
.lhead, .lrow { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) 72px 50px; gap: var(--s2); align-items: center; }
.lhead { padding: 0 0 var(--s1); white-space: nowrap; border-bottom: 1px solid var(--line); font: 600 var(--t-xs) var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.lhead span:nth-child(n + 4) { text-align: right; }
/* the row is exactly as wide as the panel; the hover colour reaches 4 px past it as a shadow, which takes no space (as
   a wider box it made the panel 4 px too wide and gave it a sideways scrollbar, 5 Dec 2026) */
.lrow {
  width: 100%; margin: 0; padding: var(--s2) 0;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font-size: var(--t-m);
}
.lrow:hover { background: var(--ink-2); box-shadow: calc(-1 * var(--s1)) 0 0 var(--ink-2), var(--s1) 0 0 var(--ink-2); }
.lrow[aria-current="true"] { background: var(--ink-3); box-shadow: calc(-1 * var(--s1)) 0 0 var(--ink-3), var(--s1) 0 0 var(--ink-3); }
.lrow .i {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 700 var(--t-s) var(--cond); color: #fff; background: var(--ink); border: 2px solid var(--grey);
}
.lrow .i .ic { width: 12px; height: 12px; stroke-width: 3; }
.lrow .s { font: 700 var(--t-l) var(--cond); }
.lrow .w { color: var(--grey); font-size: var(--t-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .p, .lrow .d { font: 700 var(--t-l) var(--cond); text-align: right; }
.lrow .d { font-size: var(--t-m); }
.lrow .d.up { color: var(--good); }
.lrow .d.down { color: var(--bad); }
.list + .small { margin-top: var(--s2); }
/* small sample: dotted, like the dashed circles on the map */
.ss { text-decoration: underline dotted var(--warn); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.empty { margin: var(--s3) 0 0; padding: var(--s3); background: var(--ink-2); color: var(--grey); font-size: var(--t-s); }
.back {
  display: inline-flex; align-items: center; gap: var(--s1); background: none; border: 0; padding: 0; margin: 0 0 var(--s2);
  color: var(--grey); cursor: pointer; font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .08em;
}
.back:hover { color: var(--white); }

.bars { display: grid; gap: var(--s2); margin-top: var(--s2); }
.bars div { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: var(--s2); align-items: center; font-size: var(--t-s); }
.bars i { height: 12px; background: var(--orange); display: block; }
.bars span:last-child { text-align: right; }
.side-h { margin: var(--s4) 0 0; font: 600 var(--t-m) var(--cond); text-transform: uppercase; letter-spacing: .06em; }

/* the video: its own thumbnail with one play button, then the YouTube player at the chapter */
.gameplay { margin-top: var(--s5); }
.gameplay:empty { display: none; }
.gameplay .cap {
  display: flex; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2);
  font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--orange);
}
.gameplay .cap .t { color: var(--grey); }
.frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border-radius: var(--r); overflow: hidden;
  background: var(--ink-2) center / cover no-repeat;
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .face { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.frame .go {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); box-shadow: 0 2px 16px rgba(10, 10, 10, .6);
}
.frame .face:hover .go { background: var(--orange-hi); }
.frame .go .ic { width: 28px; height: 28px; transform: translateX(2px); }     /* optical centre of the triangle */
.frame .at {
  position: absolute; left: var(--s2); bottom: var(--s2); padding: 2px var(--s2); border-radius: var(--r);
  background: rgba(10, 10, 10, .85); color: var(--white); font: 600 var(--t-s) var(--cond); letter-spacing: .04em;
}
.frame.off .face { cursor: default; }
.frame.off .go, .frame.off .face:hover .go { background: var(--edge-hi); transform: none; }
.frame .spin { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; }
.gameplay .row { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); font-size: var(--t-s); color: var(--grey); }
.gameplay .row a { color: var(--white); display: inline-flex; align-items: center; gap: var(--s1); text-decoration: none; }
.gameplay .row a:hover { text-decoration: underline; }
.soon { display: grid; gap: var(--s2); justify-items: start; padding: var(--s4); background: var(--ink-2); border-radius: var(--r); }
.soon b { font: 700 var(--t-xl)/1.1 var(--cond); text-transform: uppercase; }
.soon p { margin: 0 0 var(--s1); color: var(--grey); font-size: var(--t-s); }
.foot-note { margin: var(--s4) 0 0; font-size: var(--t-xs); color: var(--grey); }

.foot { max-width: var(--page); margin: var(--s5) auto 0; padding: var(--s4) 0 var(--s6); border-top: 1px solid var(--line); font-size: var(--t-s); color: var(--grey); }
.foot p { margin: var(--s1) 0; }
.foot strong { color: var(--white); font-weight: 600; }

/* ---------- home: the headline and the channels, the video, the five features, the maps ---------- */
body:not(.is-home) .home, body.is-home .map-only { display: none !important; }
.home { max-width: var(--page); margin: 0 auto; padding-top: var(--s2); }
/* the hero: one box with the squares of the game's map behind it, lit orange from the headline (user, 5 Dec 2026:
   "upravil hlavní stránku, ať to tam je hezčí") */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5);
  padding: var(--s5) var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(228, 132, 28, .18), transparent 70%),
    linear-gradient(rgba(244, 242, 238, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(244, 242, 238, .05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 130% 110% at 0% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 130% 110% at 0% 0%, #000 35%, transparent 80%);
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 40px; }
}
.eyebrow {
  display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3);
  font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .14em; color: var(--grey);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.hero-side h1 { margin: 0; font: italic 700 44px/.98 var(--cond); text-transform: uppercase; letter-spacing: .005em; color: var(--orange); }
.hero-side h1 span { color: var(--white); }
@media (min-width: 1200px) { .hero-side h1 { font-size: 58px; } }
.lead { margin: var(--s4) 0 0; max-width: 34em; color: var(--grey); font-size: var(--t-l); line-height: 1.45; }
.lead b { color: var(--white); font-weight: 600; }
/* the channels: one primary (YouTube, where the videos are), the rest outline */
.cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.btn.lg { min-height: 46px; padding: 0 18px; font-size: var(--t-l); }
.btn.lg .ic { width: 20px; height: 20px; }
.hero-video .cap {
  display: flex; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2);
  font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--orange);
}
.hero-video .frame { box-shadow: 0 16px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 242, 238, .06); }
.hero-video .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s2); font-size: var(--t-s); color: var(--grey); }
.hero-video .row a { color: var(--white); display: inline-flex; align-items: center; gap: var(--s1); text-decoration: none; white-space: nowrap; }
.hero-video .row a:hover { text-decoration: underline; }
/* under the map: to the comments of the map's video (same box as the links on the home page) */
.discuss { margin-top: var(--s2); }
.discuss[hidden] { display: none; }
.discuss-link {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border: 1px solid var(--edge); border-radius: var(--r); text-decoration: none; color: var(--white);
}
.discuss-link:hover { border-color: var(--edge-hi); background: var(--ink-2); }
.discuss-link .ic { width: 22px; height: 22px; color: #ff3b30; }
.discuss-link .go-ic { width: 16px; height: 16px; color: var(--grey); }
.discuss-link b { display: block; font: 600 var(--t-l)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.discuss-link small { display: block; color: var(--grey); font-size: var(--t-s); }
/* section heads of the home page: white, with the count on the right */
.home .sect { margin: 0 0 var(--s3); font-size: var(--t-xl); color: var(--white); letter-spacing: .06em; }
.sect-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.sect-row .sect { margin: 0; }
.count { font: 600 var(--t-s) var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
/* the five features of every map, each opens a map at its tab: 3 + 2 on a phone, one row on a desktop */
.feats { margin-top: var(--s6); }
.feat-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.feat {
  grid-column: span 2; display: grid; align-content: start; gap: var(--s1); padding: var(--s3);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--white);
  box-shadow: inset 0 -3px 0 transparent;
}
.feat:nth-child(n+4) { grid-column: span 3; }
.feat .ic { width: 26px; height: 26px; color: var(--orange); margin-bottom: var(--s1); }
.feat b { font: 600 var(--t-l)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.feat span { font-size: var(--t-s); line-height: 1.35; color: var(--grey); }
.feat:hover { background: var(--ink-3); border-color: var(--edge-hi); box-shadow: inset 0 -3px 0 var(--orange); }
/* on a phone: two columns of icon + name (the line under it is left out), the last one over both */
@media (max-width: 640px) {
  .feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat, .feat:nth-child(n+4) { grid-column: auto; display: flex; align-items: center; gap: var(--s2); padding: var(--s3); }
  .feat:last-child { grid-column: 1 / -1; }
  .feat .ic { margin: 0; }
  .feat b { font-size: var(--t-m); }
  .feat span { display: none; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 900px) {
  .feat-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
  .feat, .feat:nth-child(n+4) { grid-column: auto; padding: var(--s4); }
}
.maps { margin-top: var(--s6); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--white);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.tile .pic { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--ink-3); overflow: hidden; }
.tile .pic > img, .tile .pic > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.tile .pic text { font: 700 52px var(--cond); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.tile .pic .z rect { fill: var(--ink); stroke: #fff; stroke-width: 5; }
.tile .pic .z text { font-size: 40px; }
.tile .badge {
  position: absolute; left: var(--s2); top: var(--s2); display: inline-flex; align-items: center; gap: var(--s1);
  padding: 3px 7px; border-radius: var(--r); background: rgba(10, 10, 10, .82); color: var(--grey);
  font: 600 var(--t-xs)/1.2 var(--cond); text-transform: uppercase; letter-spacing: .08em;
}
.tile .badge.on { background: var(--orange); color: var(--ink); }
.tile .badge .ic { width: 14px; height: 14px; vertical-align: 0; }
.tile .body { flex: 1; display: grid; align-content: start; gap: 2px; padding: var(--s3); }
.tile .name { font: italic 700 var(--t-xl)/1.05 var(--cond); text-transform: uppercase; }
.tile .meta { font-size: var(--t-s); color: var(--grey); }
.tile .best { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s1); margin-top: var(--s2); font: 600 var(--t-m) var(--cond); letter-spacing: .02em; }
.tile .best small { flex-basis: 100%; font: 600 var(--t-xs) var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.tile:hover { background: var(--ink-3); border-color: var(--orange); }
.tile:hover .name { color: var(--orange); }
@media (max-width: 640px) {
  /* on a phone the hero runs edge to edge */
  .hero { margin: 0 calc(-1 * var(--s4)); border-width: 1px 0; border-radius: 0; }
  .hero-side h1 { font-size: 40px; }
  .lead { font-size: var(--t-m); }
  .tile .name { font-size: var(--t-l); }
}

/* ---------- motion: only feedback (what changed, what is loading), never decoration ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring-in { from { opacity: .4; transform: scale(1.3); } }
@keyframes flash { from { color: var(--orange); } }
@media (prefers-reduced-motion: no-preference) {
  .chip, .seg button, .tabs button, .lrow, .btn, .back, .strip .play, .frame .go, .mapsel select {
    transition: color var(--fast), background-color var(--fast), border-color var(--fast), transform var(--fast) var(--ease);
  }
  .chip:active, .btn:active, .seg button:active, .strip .play:active, .lrow:active { transform: scale(.97); }
  .frame .face:hover .go { transform: scale(1.06); }
  .tile, .feat { transition: background-color var(--fast), border-color var(--fast), box-shadow var(--fast); }
  .tile img { transition: transform var(--mid) var(--ease); }
  .tile:hover img { transform: scale(1.04); }
  .tile:active, .feat:active { transform: scale(.99); }
  .panel > section { transition: opacity var(--mid); }
  .spin { animation: spin .8s linear infinite; }
  .map img { transition: opacity var(--mid); }
  #marks .ring { transform-box: fill-box; transform-origin: center; animation: ring-in var(--mid) var(--ease); }
  .flash { animation: flash .9s ease-out; }
}

@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: var(--s2) var(--s4); }
  .mapname { order: 3; width: 100%; padding-left: 0; border-left: 0; }
  .feature h2 { font-size: 28px; }
  .big3 b { font-size: var(--t-2xl); }
  .tabs button { padding: var(--s3) var(--s3) 10px; font-size: var(--t-l); }
}
