/*
 * bitma.nl/stedenstrijd: de voorpagina en de stadspagina's. Plat en licht, zoals de app; de kaart is
 * het enige rijke element. Kleuren en bewegingen komen uit apps/mobile/src/styles/tokens.json.
 */

:root {
  --bg: #f4f2ee;
  --ink: #16150f;
  --muted: #6b665c;
  --rule: #d9d4ca;
  --paper: #ffffff;
  --faint: #b3aea4;
  --land: #e9e5dd;
  --land-cell: #dcd6cb;
  --water: #cfe0ea;
  --water-deep: #a9cce0;
  --neutral: #e3ddd1;
  --neutral-badge: #7a7468;
  --color1: #ce361e;
  --color2: #2346c8;
  --color3: #1e6b4a;
  --color4: #773c00;
  --color5: #626f09;
  --color6: #753073;
  --accent: var(--color1);
  --accent-on-ink: #ffb4a6;
  --ok: #198751;
  --district-line: color-mix(in srgb, var(--ink) 35%, transparent);
  --on-ink-line: color-mix(in srgb, var(--paper) 18%, transparent);
  --shadow-float: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.6, 0.5, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --font: 'Archivo', 'Helvetica Neue', sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 13vw, 190px);
  --city: var(--color1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- type ------------------------------------------------------------------------------------ */

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-on-ink {
  color: var(--faint);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(44px, 7vw, 108px);
  font-stretch: 112%;
}

h3 {
  font-size: 22px;
  font-stretch: 105%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.h-mid {
  font-size: clamp(26px, 3vw, 40px);
  font-stretch: 110%;
  line-height: 1.02;
}

.lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
  color: var(--muted);
}

.small {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.muted-inline {
  color: var(--faint);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.arrow {
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.25s var(--ease-out);
}

a:hover .arrow {
  transform: translate(3px, 0);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-ok {
  background: var(--ok);
}

/* ---- intro ----------------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  pointer-events: none;
}

.js .intro {
  display: flex;
  animation: intro-out 0.7s var(--ease-in-out) 1.35s forwards;
}

.js.no-intro .intro {
  display: none;
}

.intro-mark {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.intro-mark path {
  fill: var(--color1);
  stroke: var(--bg);
  stroke-width: 1.6;
  stroke-linejoin: round;
  animation: intro-part 0.7s var(--ease-spring) both;
}

.intro-mark path:nth-child(1) {
  --from: translate(16px, -40px) rotate(25deg);
  animation-delay: 0.05s;
}

.intro-mark path:nth-child(2) {
  --from: translate(22px, 40px) rotate(-20deg);
  animation-delay: 0.16s;
}

.intro-mark path:nth-child(3) {
  --from: translate(-40px, 8px) rotate(-30deg);
  animation-delay: 0.27s;
}

.intro-word {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  clip-path: inset(0 100% 0 0);
  animation: intro-word 0.6s var(--ease-out) 0.55s forwards;
}

@keyframes intro-part {
  from {
    transform: var(--from);
    opacity: 0;
  }
}

@keyframes intro-word {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes intro-out {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

/* ---- bar ------------------------------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.bar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.mark {
  width: 26px;
  height: 26px;
  background: url('/stedenstrijd/assets/mark.svg') center / contain no-repeat;
}

.brand-word {
  font-size: 17px;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.bar-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.bar-nav a {
  position: relative;
  text-decoration: none;
  padding: 12px 0;
}

.bar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.bar-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.bar-cta:hover {
  background: color-mix(in srgb, var(--ink), var(--paper) 12%);
}

@media (max-width: 820px) {
  .bar-nav {
    display: none;
  }

  .bar-cta {
    margin-left: auto;
  }
}

/* De taalkeuze: NL en EN. Breed staat hij in de balk, smal onderaan bij de links. */
.lang {
  display: flex;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover,
.lang a[aria-current] {
  color: var(--ink);
}

.lang a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.bar .lang {
  margin: 0 -12px;
}

.foot-meta .lang {
  display: none;
  margin-left: -14px;
}

@media (max-width: 820px) {
  .bar .lang {
    display: none;
  }

  .foot-meta .lang {
    display: flex;
  }
}

/* ---- hero ------------------------------------------------------------------------------------ */

main > section,
.foot {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main > section > *,
.foot > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: 40px;
}

.hero > * {
  max-width: none;
  margin: 0;
}

.hero-text {
  /* De kop meet zich aan deze kolom (cqi), niet aan het venster: de kolom stopt bij de breedte van de pagina. */
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero-title {
  /* "Pak de" is 3,63 keer de lettergrootte breed: 26.5cqi past dus altijd in de kolom. */
  font-size: clamp(72px, min(10.4vw, 26.5cqi), 176px);
  font-stretch: 112%;
  letter-spacing: -0.05em;
  line-height: 0.84;
  margin-left: -0.04em;
}

/* "Take the" is twee letters langer dan "Pak de": dezelfde kop, een maat kleiner. */
:lang(en) .hero-title {
  font-size: clamp(56px, min(8.3vw, 21cqi), 142px);
}

.hero-title .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .word {
  display: inline-block;
}

.word-accent {
  color: var(--accent);
}

.js .hero-title .word {
  transform: translateY(105%);
  animation: word-up 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--start, 1.55s) + var(--w, 0) * 0.08s);
}

.js .hero-title .line:nth-child(1) .word:nth-child(1) {
  --w: 0;
}

.js .hero-title .line:nth-child(1) .word:nth-child(2) {
  --w: 1;
}

.js .hero-title .line:nth-child(2) .word {
  --w: 2;
}

.js.no-intro .hero-title .word {
  --start: 0.1s;
}

@keyframes word-up {
  to {
    transform: translateY(0);
  }
}

.js .hero-kicker,
.js .hero-lead,
.js .hero-actions,
.js .hero-meta,
.js .hero-stage {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--start, 1.55s) + var(--d, 0.2s));
}

.js.no-intro .hero-kicker,
.js.no-intro .hero-lead,
.js.no-intro .hero-actions,
.js.no-intro .hero-meta,
.js.no-intro .hero-stage {
  --start: 0.1s;
}

.hero-kicker {
  --d: 0s;
}

.hero-lead {
  --d: 0.3s;
}

.hero-actions {
  --d: 0.4s;
}

.hero-meta {
  --d: 0.5s;
}

.hero-stage {
  --d: 0.15s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 22px 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store span {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.store small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
  margin-bottom: 3px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.hero-stage {
  position: relative;
  height: min(88svh, 920px);
  min-height: 520px;
}

.hero-map {
  position: absolute;
  inset: 0;
}

.scoreboard {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.4s ease;
}

.score.is-out {
  opacity: 0.4;
}

.score-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--seat);
  color: var(--paper);
  font-size: 13px;
}

.score-count {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.score-count b {
  color: var(--ink);
}

.fight {
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: 3;
  width: min(380px, 100%);
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

.fight-line {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
}

.fight-line.is-new {
  animation: line-in 0.35s var(--ease-out);
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.fight-dice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin-top: 10px;
}

.fight-dice:empty {
  display: none;
}

.fight-vs {
  margin: 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-toggle {
  position: absolute;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  cursor: pointer;
}

.icon-pause {
  width: 12px;
  height: 14px;
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
}

.stage-toggle[aria-pressed='true'] .icon-pause {
  width: 0;
  height: 0;
  border-left: 12px solid var(--ink);
  border-right: none;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: calc(96px + env(safe-area-inset-top));
  }

  .hero-stage {
    height: 118vw;
    max-height: 760px;
    min-height: 460px;
    margin: 0 calc(-1 * var(--gutter));
  }

  .scoreboard {
    left: var(--gutter);
    right: var(--gutter);
    justify-content: flex-start;
  }

  .fight {
    left: var(--gutter);
    width: calc(100% - 2 * var(--gutter) - 56px);
  }

  .stage-toggle {
    right: var(--gutter);
  }
}

/* ---- ticker ---------------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker span {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.ticker .ticker-muted {
  color: var(--accent-on-ink);
}

.ticker i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---- the board ------------------------------------------------------------------------------- */

.board {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

.board-land {
  fill: var(--land);
}

.board-water {
  fill: var(--water);
}

.board-cell {
  stroke: var(--paper);
  stroke-width: 0.8;
  stroke-linejoin: round;
  transition:
    opacity 0.35s ease,
    fill-opacity 0.2s ease;
}

.board-cells.has-focus .board-cell:not(.is-focus) {
  opacity: 0.28;
}

.board-cell.is-hover {
  fill-opacity: 0.8;
}

.board-cell.is-pulse {
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  40% {
    fill-opacity: 0.45;
  }
}

.board-cell.is-target {
  animation: target 0.9s ease-in-out infinite alternate;
}

@keyframes target {
  to {
    fill-opacity: 0.55;
  }
}

.board-district {
  fill: none;
  stroke: var(--district-line);
  stroke-width: 0.9;
  stroke-linejoin: round;
  pointer-events: none;
  transition:
    stroke 0.3s ease,
    stroke-width 0.3s ease;
}

.board-district.is-shown {
  stroke: var(--ink);
  stroke-width: 2.2;
}

.board-districts,
.board-bridges,
.board-fx,
.board-fx-fill,
.board-held,
.board-badges,
.board-landmarks,
.board-top {
  pointer-events: none;
}

.board-bridge {
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.board-veer {
  stroke-dasharray: 1.4 1.4;
}

.board-taken {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  animation: taken 0.9s ease-out both;
}

@keyframes taken {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.board-ring {
  fill: none;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 0.8s var(--ease-out) both;
}

.board-ring.is-late {
  animation-delay: 0.2s;
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.board-badge-in {
  transform-box: fill-box;
  transform-origin: center;
}

.board-badge-in.is-pop {
  animation: pop 0.34s var(--ease-spring);
}

@keyframes pop {
  from {
    transform: scale(0.55);
  }
}

.board-badge-disc {
  stroke: var(--paper);
  stroke-width: 1.2;
  transition: fill 0.3s ease;
}

.board-badge-count,
.board-bonus-text {
  fill: var(--paper);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.board-chip-disc {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 0.6;
}

.board-chip-text {
  fill: var(--ink);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.board-landmark-disc {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
}

.board-landmark-icon {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-delta {
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 1.8;
  stroke-linejoin: round;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  animation: delta 1.1s ease-out both;
}

@keyframes delta {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.board-aim-halo {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.board-aim-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.board-route-halo {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-route-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-route-dot {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1;
}

.board-hatch {
  clip-path: inset(0 0 0 0);
  animation: hatch 0.9s ease-in-out backwards;
}

@keyframes hatch {
  from {
    clip-path: inset(0 100% 0 0);
  }
}

.board-hold {
  animation: fade 0.5s ease-out backwards;
}

.board-hold-edge {
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.board-bonus-in {
  transform-box: fill-box;
  transform-origin: center;
  animation: bonus 0.55s var(--ease-spring) backwards;
}

@keyframes bonus {
  from {
    transform: scale(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.map-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 14px 0 0 14px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
}

.map-tip span {
  font-size: 12px;
  color: var(--faint);
}

/* ---- dice ------------------------------------------------------------------------------------ */

.die {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  --s: 34px;
  gap: calc(var(--s) * 0.04);
  width: var(--s);
  height: var(--s);
  padding: calc(var(--s) * 0.16);
  border-radius: 22%;
  background: var(--die);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 25%, transparent);
  flex: none;
  animation: die-in 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--n, 0) * 0.06s);
}

.die i {
  border-radius: 50%;
  visibility: hidden;
  background: var(--paper);
}

.die i.on {
  visibility: visible;
}

.die.is-small {
  --s: 26px;
}

.die.is-lost {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--die);
  opacity: 0.7;
}

.die.is-lost i {
  background: var(--ink);
}

.die.is-lost::after {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(-20deg) scaleX(0);
  transform-origin: left;
  animation: strike 0.25s ease-out 0.45s forwards;
}

@keyframes die-in {
  from {
    transform: translateY(-14px) rotate(-120deg) scale(0.4);
    opacity: 0;
  }
}

@keyframes strike {
  to {
    transform: rotate(-20deg) scaleX(1);
  }
}

/* ---- story ----------------------------------------------------------------------------------- */

.story {
  padding-top: var(--section);
}

.story-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
}

.story-stage {
  position: sticky;
  top: 84px;
  height: calc(100svh - 110px);
  max-height: 900px;
}

.story-map {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.story-dice {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-out);
}

.story-dice:empty {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.story-caption:empty {
  display: none;
}

.story-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 86svh;
  padding: 40px 0;
  opacity: 0.25;
  transition: opacity 0.5s ease;
}

.step.is-active {
  opacity: 1;
}

.step:last-child {
  min-height: 100svh;
}

.step-no {
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.step.is-active .step-no {
  color: var(--ink);
  transition: color 0.5s ease 0.1s;
}

.step h3 {
  font-size: clamp(30px, 3.4vw, 50px);
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.step p:not(.kicker) {
  margin: 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .story-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-stage {
    top: 64px;
    height: 56svh;
    z-index: 1;
    margin: 0 calc(-1 * var(--gutter));
    background: var(--bg);
    box-shadow: 0 1px 0 var(--rule);
  }

  .story-map {
    border-radius: 0;
  }

  .story-dice {
    left: var(--gutter);
  }

  .story-caption {
    left: var(--gutter);
  }

  .step {
    min-height: 70svh;
    justify-content: flex-start;
    padding-top: 48px;
  }

  .step:last-child {
    min-height: 80svh;
  }

  .step-no {
    font-size: 56px;
  }
}

/* ---- play ------------------------------------------------------------------------------------ */

.play {
  margin-top: var(--section);
  padding-top: var(--section);
  padding-bottom: var(--section);
  background: var(--ink);
  color: var(--paper);
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.play-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.play h2 {
  font-size: clamp(64px, 10vw, 160px);
  font-stretch: 118%;
  letter-spacing: -0.045em;
}

.play .lead {
  color: var(--faint);
}

.play-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 22px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--on-ink-line);
}

.play-status {
  margin: 0;
  min-height: 2.9em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.play-dice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.play-dice .die {
  --s: 42px;
  box-shadow: none;
}

.play-dice .die.is-lost {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--die);
}

.play-dice .die.is-lost i {
  background: var(--paper);
}

.play-dice .die.is-lost::after {
  background: var(--paper);
}

.play-dice .fight-vs {
  color: var(--faint);
}

.play-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: none;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.12s ease,
    opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.btn-accent {
  flex: 1;
  background: var(--accent);
  color: var(--paper);
}

.btn-accent:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent), var(--ink) 12%);
}

.btn-quiet {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--on-ink-line);
}

.btn-quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--paper);
}

.play-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--on-ink-line);
}

.play-score dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.play-score dd {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 900;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

.play-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  cursor: crosshair;
}

.play-map .board-cells.has-options .board-cell:not(.is-option):not(.is-mine):not(.is-chosen) {
  opacity: 0.38;
}

.play-map .board-cell.is-option {
  cursor: pointer;
  animation: option 1.2s ease-in-out infinite alternate;
}

.play-map .board-cell.is-mine {
  cursor: default;
}

@keyframes option {
  to {
    fill-opacity: 0.62;
  }
}

.play-map .board-cell.is-chosen {
  animation: none;
  fill-opacity: 0.55;
}

@media (max-width: 900px) {
  .play-grid {
    grid-template-columns: 1fr;
  }

  .play-map {
    order: -1;
    margin: 0 calc(-1 * var(--gutter) + 8px);
  }
}

.text-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--faint);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--paper);
}

/* ---- cards ----------------------------------------------------------------------------------- */

.cards {
  padding-top: var(--section);
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.cards .section-head {
  margin-bottom: 0;
}

.sets {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 460px;
}

.sets li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}

.sets li:last-child {
  border-bottom: 1px solid var(--rule);
}

.sets strong {
  font-size: 30px;
  font-weight: 900;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

.set-icons {
  display: flex;
  gap: 4px;
}

.set-icons svg {
  width: 22px;
  height: 22px;
}

.hand {
  position: relative;
  height: clamp(340px, 34vw, 460px);
  perspective: 1200px;
}

.card-play {
  --w: clamp(120px, 13vw, 190px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: calc(var(--w) * 1.36);
  margin: calc(var(--w) * -0.68) 0 0 calc(var(--w) * -0.5);
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 7px 0 var(--ink);
  transform-origin: 50% 120%;
  transform: translateX(calc((var(--i) - 1.5) * var(--w) * var(--spread, 0.6))) rotate(calc((var(--i) - 1.5) * 6deg));
  transition: transform 0.55s var(--ease-spring);
  cursor: default;
}

.js .hand:not(.is-in) .card-play {
  transform: translateY(40px) rotate(0deg) scale(0.92);
}

.js .hand .card-play {
  transition-delay: calc(var(--i) * 0.06s);
}

.hand:hover .card-play {
  transform: translateX(calc((var(--i) - 1.5) * var(--w) * var(--spread-open, 0.74))) rotate(calc((var(--i) - 1.5) * 8deg)) translateY(-6px);
  transition-delay: 0s;
}

.hand .card-play:hover {
  transform: translateX(calc((var(--i) - 1.5) * var(--w) * var(--spread-open, 0.74))) rotate(calc((var(--i) - 1.5) * 8deg)) translateY(-34px);
}

.card-kicker {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-dot {
  position: absolute;
  right: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.card-symbol {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  display: flex;
  justify-content: center;
}

.card-symbol svg {
  width: 44%;
  height: auto;
}

.card-wijk {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 16px;
  text-align: center;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
}

.is-joker {
  background: var(--ink);
  color: var(--paper);
}

.is-joker .card-kicker {
  color: var(--faint);
}

.is-joker .card-dot {
  border-color: var(--paper);
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hand {
    order: -1;
    height: 330px;
  }
}

/* ---- landmarks ------------------------------------------------------------------------------- */

.landmarks {
  padding-top: var(--section);
}

.lm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}

.lm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 36px 0;
}

.lm-card + .lm-card {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.lm-card h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-stretch: 110%;
}

.lm-card > p:not(.kicker):not(.lm-cities) {
  margin: 0;
  color: var(--muted);
}

.lm-glyph {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  overflow: visible;
}

.lm-glyph path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.js .lm-card:not(.is-in) .lm-glyph path {
  stroke-dashoffset: 60;
}

.js .lm-card.is-in .lm-glyph path {
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.2s;
}

.lm-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.lm-cities span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 13px;
  font-weight: 700;
}

.lm-cities span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

@media (max-width: 900px) {
  .lm-grid {
    grid-template-columns: 1fr;
  }

  .lm-card + .lm-card {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
}

/* ---- modes ----------------------------------------------------------------------------------- */

.modes {
  padding-top: var(--section);
}

.goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  padding: 24px;
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.goal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.goal-no {
  font-size: 96px;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.8;
  color: var(--land);
  margin-bottom: auto;
  transition: color 0.35s ease;
}

.goal:hover .goal-no {
  color: var(--accent);
}

.goal p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.rivals {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 20px clamp(24px, 5vw, 80px);
  margin-top: clamp(72px, 9vw, 130px);
}

.rivals-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.level {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.level strong {
  font-size: 19px;
  font-weight: 900;
  font-stretch: 108%;
  letter-spacing: -0.01em;
}

.level > span:last-child {
  font-size: 15px;
  color: var(--muted);
}

.level-meter {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.level-meter i {
  width: 100%;
  height: 8px;
  border-radius: 2px;
  background: var(--rule);
}

.level-meter i:nth-child(-n + 1) {
  background: var(--accent);
}

.level[style*='--lv: 2'] .level-meter i:nth-child(-n + 2),
.level[style*='--lv: 3'] .level-meter i:nth-child(-n + 3),
.level[style*='--lv: 4'] .level-meter i:nth-child(-n + 4) {
  background: var(--accent);
}

.js .level:not(.is-in) .level-meter i {
  transform: scaleX(0);
}

.level-meter i {
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.level-meter i:nth-child(2) {
  transition-delay: 0.08s;
}

.level-meter i:nth-child(3) {
  transition-delay: 0.16s;
}

.level-meter i:nth-child(4) {
  transition-delay: 0.24s;
}

.gemeente {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--neutral);
  font-size: 15px;
}

.gemeente-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-badge);
  color: var(--paper);
  font-weight: 900;
  box-shadow: 0 0 0 3px var(--paper);
}

@media (max-width: 1000px) {
  .goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rivals {
    grid-template-columns: 1fr;
  }

  .gemeente {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .goals,
  .levels {
    grid-template-columns: 1fr 1fr;
  }

  .hand {
    --spread: 0.48;
    --spread-open: 0.52;
  }

  .goal {
    min-height: 220px;
    padding: 18px;
  }

  .goal-no {
    font-size: 64px;
  }
}

/* ---- tempo ----------------------------------------------------------------------------------- */

.tempo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: var(--section);
}

.tempo > * {
  max-width: none;
  margin: 0;
}

.tempo-card {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 10px;
  background: var(--paper);
}

.tempo-card p {
  margin: 0;
}

.tempo-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tempo-card > div:last-child > p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.tempo-big {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 900;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.clock {
  position: relative;
  flex: none;
  width: clamp(104px, 11vw, 150px);
  aspect-ratio: 1;
}

.clock svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.clock-track {
  fill: none;
  stroke: var(--land);
  stroke-width: 8;
}

.clock-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
}

.clock-slow .clock-arc {
  stroke: var(--ink);
}

.clock-num {
  position: absolute;
  inset: 0;
  /* Het getal en zijn eenheid naast elkaar op één regel, samen in het midden van de ring. */
  display: flex;
  align-items: baseline;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 0.04em;
  line-height: 1;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 900;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

.clock-num small {
  font-size: 0.45em;
  font-weight: 800;
}

@media (max-width: 900px) {
  .tempo {
    grid-template-columns: 1fr;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

@media (max-width: 480px) {
  .tempo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- samen spelen: het bord op tv, en de vouw ------------------------------------------------- */

.together {
  padding-top: var(--section);
}

.tv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.tv-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Alles in het scherm rekent in cqw: een honderdste van de breedte van de tv, zoals --u in de app. */
.tv-screen {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  width: 100%;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: clamp(6px, 0.9vw, 12px) solid var(--ink);
  border-radius: clamp(10px, 1.4vw, 18px);
  background: var(--bg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.tv-stand {
  width: 22%;
  height: clamp(6px, 0.8vw, 10px);
  margin-top: clamp(8px, 1vw, 14px);
  border-radius: 999px;
  background: var(--ink);
}

.tv-left {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  min-width: 0;
  padding: 3.4cqw 0 3.4cqw 3.4cqw;
}

.tv-title {
  margin: 0;
  font-size: 4.4cqw;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tv-seats {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-seat {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0.7cqw 1.8cqw 0.7cqw 0.7cqw;
  border-radius: 999px;
  background: var(--paper);
  font-size: 2.1cqw;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.4s ease;
}

.tv-seat.is-out {
  opacity: 0.4;
}

.tv-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 4cqw;
  height: 4cqw;
  border-radius: 50%;
  background: var(--seat);
  color: var(--paper);
  font-size: 2cqw;
}

.tv-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-seat b {
  font-variant-numeric: tabular-nums;
}

.tv-fight {
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  margin-top: auto;
  padding: 1.8cqw;
  border-radius: 1.6cqw;
  background: var(--paper);
}

.tv-line {
  margin: 0;
  min-height: 2.6em;
  font-size: 1.9cqw;
  font-weight: 700;
  line-height: 1.3;
}

.tv-line.is-new {
  animation: line-in 0.35s var(--ease-out);
}

.tv-dice {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  min-height: 2.7cqw;
  font-size: 1.6cqw;
  font-weight: 700;
  color: var(--muted);
}

.tv-dice .fight-vs {
  font-size: 1.3cqw;
  letter-spacing: 0.08em;
}

.tv-dice .die {
  --s: 2.7cqw;
  box-shadow: 0 0.4cqw 0 color-mix(in srgb, var(--ink) 25%, transparent);
}

.tv-map {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 2cqw;
}

.tv-how {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-how li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
}

.tv-how .step-no {
  grid-row: span 2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--accent);
}

.tv-how p {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  color: var(--muted);
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 110px);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 10px;
  background: var(--paper);
}

/* Open is hij 951 bij 669 punten. De kaart loopt door over de vouw; de kop staat links, de beurt rechts. */
.duo-device {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 951 / 669;
  box-sizing: border-box;
  border: clamp(5px, 0.7vw, 9px) solid var(--ink);
  border-radius: clamp(16px, 2.4vw, 30px);
  background: var(--bg);
  overflow: hidden;
}

.duo-map {
  position: absolute;
  inset: 3cqw 20cqw 3cqw 3cqw;
}

.duo-fold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1.5cqw);
  width: 3cqw;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 9%, transparent) 50%, transparent);
}

.duo-head {
  position: absolute;
  top: 3cqw;
  left: 3cqw;
  padding: 1.4cqw 2.4cqw;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 2.3cqw;
  font-weight: 800;
  line-height: 1;
}

.duo-panel {
  position: absolute;
  right: 3cqw;
  bottom: 3cqw;
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
  width: 40cqw;
  box-sizing: border-box;
  padding: 3cqw;
  border-radius: 2.4cqw;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

.duo-panel .kicker {
  font-size: 1.9cqw;
}

.duo-phase {
  margin: 0;
  font-size: 4.4cqw;
  font-weight: 900;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.duo-btn {
  display: grid;
  place-items: center;
  height: 7.4cqw;
  border-radius: 1.6cqw;
  background: var(--ink);
  color: var(--paper);
  font-size: 2.4cqw;
  font-weight: 800;
}

.duo-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duo-text p {
  margin: 0;
}

.duo-text > p:not(.kicker):not(.tempo-big),
.duo-list {
  font-size: 15px;
  color: var(--muted);
}

.duo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.duo-list li {
  padding-left: 18px;
  background: radial-gradient(circle at 4px 0.7em, var(--accent) 3px, transparent 3.5px) no-repeat;
}

@media (max-width: 900px) {
  .tv-row,
  .duo {
    grid-template-columns: 1fr;
  }
}

/* ---- cities ---------------------------------------------------------------------------------- */

.cities {
  padding-top: var(--section);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.city-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s ease;
}

a.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.city-card-map {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.2;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.city-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.city-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-card-name {
  font-size: 34px;
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1;
}

.city-card-facts {
  font-size: 14px;
  font-weight: 700;
}

.city-card-lm {
  font-size: 14px;
  color: var(--muted);
}

.city-card-go {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--city);
}

a.city-card:hover .arrow {
  transform: translate(4px, 0);
}

.city-vote {
  justify-content: flex-end;
  min-height: 320px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--rule);
  box-shadow: inset 0 0 0 2px var(--rule);
  outline: 2px dashed var(--faint);
  outline-offset: -2px;
}

.vote-mark {
  display: grid;
  place-items: center;
  flex: 1;
  font-size: 160px;
  font-weight: 900;
  font-stretch: 125%;
  color: var(--rule);
}

/* ---- price ----------------------------------------------------------------------------------- */

.price {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.price h2 {
  font-size: clamp(38px, 5.4vw, 84px);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 44px);
  border-radius: 10px;
  background: var(--paper);
}

.plan-price {
  margin: 0 0 12px;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price small {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

.plan li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.plan-full {
  background: var(--ink);
  color: var(--paper);
}

.plan-full .kicker,
.plan-full .plan-price small {
  color: var(--faint);
}

.plan-full li {
  border-top-color: var(--on-ink-line);
}

.plan-full li::before {
  background: var(--accent);
}

.price-note {
  margin: 24px auto 0;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 760px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- footer ---------------------------------------------------------------------------------- */

.foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: var(--section);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow: hidden;
}

.foot > * {
  margin: 0;
}

.foot-map {
  position: relative;
  grid-row: span 2;
  aspect-ratio: 390 / 520;
  max-height: 80svh;
  width: 100%;
}

.foot-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.foot-big {
  margin: 0;
  font-size: clamp(48px, 7vw, 116px);
  font-weight: 900;
  font-stretch: 116%;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.foot-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.foot-meta p {
  margin: 0;
}

.foot-meta nav {
  display: flex;
  gap: 20px;
  font-weight: 700;
  color: var(--ink);
}

.foot-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.city-page .foot {
  grid-template-columns: 1fr;
}

@media (max-width: 800px) {
  .foot {
    grid-template-columns: 1fr;
  }

  .foot-map {
    grid-row: auto;
    max-height: 70svh;
    margin: 0 auto;
  }
}

/* ---- reveal ---------------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.07s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- city page ------------------------------------------------------------------------------- */

.city-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: calc(88px + env(safe-area-inset-top));
  padding-bottom: 40px;
}

.city-hero > * {
  max-width: none;
  margin: 0;
}

.city-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.city-name {
  font-size: clamp(64px, 11.5vw, 190px);
  font-stretch: 120%;
  letter-spacing: -0.05em;
  line-height: 0.84;
  margin-left: -0.04em;
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

.city-name .ch {
  display: inline-block;
}

.js .city-name .ch {
  animation: ch-in 0.8s var(--ease-out) backwards;
  animation-delay: calc(0.1s + var(--c) * 0.035s);
}

@keyframes ch-in {
  from {
    transform: translateY(60%);
    opacity: 0;
  }
}

.city-name .ch-dot {
  color: var(--city);
}

.stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.stats dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 4px 0 0;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 700;
}

.city-hero-map {
  position: relative;
  height: min(86svh, 880px);
  min-height: 480px;
}

.wijk-callout {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-float);
  animation: fade-up 0.6s var(--ease-out) 0.8s backwards;
}

.wijk-callout .kicker {
  color: var(--faint);
}

.wijk-callout strong {
  font-size: 30px;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.wijk-callout span:last-child {
  color: var(--accent-on-ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .city-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .city-hero-map {
    height: 110vw;
    max-height: 720px;
    min-height: 0;
  }

  .wijk-callout {
    position: static;
  }
}

.reels {
  padding-top: var(--section);
}

.reels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.reel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--ink);
  overflow: hidden;
}

.reel-map {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.reel-map .board-land {
  fill: color-mix(in srgb, var(--paper) 7%, var(--ink));
}

.reel-map .board-water {
  fill: color-mix(in srgb, var(--water) 22%, var(--ink));
}

.reel-map .board-cell {
  stroke: var(--ink);
}

.reel-map .board-district {
  stroke: color-mix(in srgb, var(--paper) 25%, transparent);
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

.reel-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, transparent 30%, color-mix(in srgb, var(--ink) 70%, transparent));
}

.reel-soon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 14%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--paper) 40%, transparent);
}

.reel-soon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -13px 0 0 -7px;
  border-left: 24px solid var(--paper);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  opacity: 0.85;
}

.reel-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .reels-grid {
    grid-template-columns: 1fr;
  }
}

.city-districts {
  padding-top: var(--section);
}

.sd-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}

.sd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sd;
}

.sd {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 0 4px;
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    padding 0.3s var(--ease-out);
}

.sd-list li:last-child .sd {
  border-bottom: 1px solid var(--rule);
}

.sd:hover,
.sd[aria-pressed='true'] {
  padding-left: 14px;
  background: var(--paper);
}

.sd-name {
  font-size: 24px;
  font-weight: 900;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.sd-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.sd-bonus {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.sd[aria-pressed='true'] .sd-bonus {
  background: var(--city);
}

.sd-map {
  position: sticky;
  top: 90px;
  height: min(80svh, 760px);
}

@media (max-width: 900px) {
  .sd-wrap {
    grid-template-columns: 1fr;
  }

  .sd-map {
    order: -1;
    position: relative;
    top: 0;
    height: 100vw;
    max-height: 560px;
  }
}

.city-landmarks {
  padding-top: var(--section);
}

.lm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 10px;
  background: var(--paper);
}

.lm div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lm strong {
  font-size: 30px;
  font-weight: 900;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lm-where {
  font-weight: 700;
  color: var(--city);
}

.lm p:not(.kicker) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lm-icon {
  width: 64px;
  height: 64px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.lm-icon path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .lm-list {
    grid-template-columns: 1fr;
  }
}

.city-title {
  padding-top: var(--section);
  text-align: center;
}

.city-title > * {
  margin-left: auto;
  margin-right: auto;
}

.title-word {
  margin: 12px auto 16px;
  font-size: clamp(56px, 12vw, 200px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.85;
  overflow-wrap: anywhere;
}

.next {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 20px;
}

.next-city {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 14px;
  border-radius: 10px;
  background: var(--paper);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

.next-city:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.next-map {
  position: relative;
  display: block;
  width: 72px;
  height: 90px;
  flex: none;
}

.next-name {
  font-size: 30px;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.next-city:hover .next-name {
  color: var(--city);
}

/* ---- less motion ----------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .intro {
    display: none;
  }

  .ticker-track {
    animation: none;
  }
}
