:root {
  --y: #EFD71D;          /* VoetbalVitrine geel (logo) */
  --y-ink: #151513;      /* zwart op geel */
  --bg: #0A0A09;
  --surface: #151513;
  --ink: #F4F1E6;
  --ink-soft: #A8A496;
  --line: rgba(244, 241, 230, .14);
  --f-display: "Stardos Stencil", "Archivo", serif;
  --f-ui: "Archivo", system-ui, sans-serif;
  --f-text: "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--f-text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--y); color: var(--y-ink); padding: 10px 14px; border-radius: 8px; font: 700 14px var(--f-ui); }
.skip:focus { top: 12px; }

/* ---------- the world ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 50% 40%, #1b1a16 0%, #0a0a09 70%); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
body.ready #world { opacity: 1; }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 50% { transform: translate(-4%, 3%) } 100% { transform: translate(3%, -2%) } }
.flash { position: absolute; inset: 0; pointer-events: none; background: var(--y); opacity: 0; mix-blend-mode: screen; }
.flash.on { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { opacity: .55 } 100% { opacity: 0 } }

/* the scroll track: the only thing in the document flow that gives the page its length */
.track { height: 820vh; }

/* ---------- chrome ---------- */
.bar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--y); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.brand-mark svg { width: 26px; height: 26px; fill: var(--y-ink); }
.brand-word { font: 700 19px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.bar-cta { font: 700 13px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--y); color: var(--y); transition: background .2s, color .2s; }
.bar-cta:hover { background: var(--y); color: var(--y-ink); }

.map { position: fixed; z-index: 10; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; gap: 14px; align-items: stretch; }
.map ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; text-align: right; }
.map a { display: block; text-decoration: none; font: 600 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 2px 0; transition: color .25s, transform .25s var(--ease); }
.map a b { font-weight: 700; }
.map a:hover, .map a.on { color: var(--ink); }
.map a.on { transform: translateX(-6px); color: var(--y); }
.map-rail { width: 2px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.map-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--y); }

/* ---------- the copy layer ---------- */
.copy { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.wp { position: absolute; opacity: 0; visibility: hidden; transform: translate3d(0, var(--dy, 24px), 0); will-change: opacity, transform; }
.wp.vis { visibility: visible; pointer-events: auto; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--y); color: var(--y-ink); font: 800 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.live { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
h1, h2 { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .92; }
.wp-sub { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; max-width: 46ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 800 14px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s; }
.btn-y { background: var(--y); color: var(--y-ink); box-shadow: 0 10px 30px -10px rgba(239, 215, 29, .55); }
.btn-y:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(239, 215, 29, .7); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: rgba(10, 10, 9, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-s { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn:focus-visible, .map a:focus-visible, .bar-cta:focus-visible, .brand:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.link { color: var(--y); text-underline-offset: 3px; }

/* a soft scrim only where text sits over the world (desktop; the phone has its own below) */
@media (min-width: 761px) {
  .wp-hero::before, .wp-coll::before, .wp-live::before, .wp-nums::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -90px -120px -70px calc(-1 * var(--gut)); background: radial-gradient(ellipse at 30% 65%, rgba(8, 8, 7, .78), rgba(8, 8, 7, .35) 55%, transparent 75%); }
  .wp-nums::before { inset: -90px calc(-1 * var(--gut) - 170px) -70px -120px; background: radial-gradient(ellipse at 70% 65%, rgba(8, 8, 7, .78), rgba(8, 8, 7, .35) 55%, transparent 75%); }
}
/* hero: lead corner, huge */
.wp-hero { left: var(--gut); bottom: clamp(48px, 10vh, 120px); width: min(700px, 52vw); opacity: 1; visibility: visible; pointer-events: auto; }
.hero-title { font-size: clamp(44px, 6.1vw, 104px); text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero-meta { margin: 18px 0 0; font: 600 13px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--y); }
.hero-sum { margin: 14px 0 0; max-width: 52ch; color: var(--ink); opacity: .86; font-size: 17px; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* live: trailing side, next to the light board */
.wp-live { left: var(--gut); bottom: 8vh; width: min(620px, 46vw); }
.wp-live h2 { font-size: clamp(32px, 3.4vw, 56px); }
.tag-live { background: #E8352B; color: #fff; }
.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.leagues button { font: 700 12px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: rgba(21, 21, 19, .72); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.leagues button[aria-selected="true"] { background: var(--y); color: var(--y-ink); border-color: var(--y); }
.live-list { margin-top: 14px; display: grid; gap: 6px; max-height: 38vh; overflow: auto; }
@media (min-width: 761px) { body:not(.flat) .live-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.live-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(21, 21, 19, .78); border: 1px solid var(--line); font: 600 13px var(--f-ui); }
.live-row .h { text-align: right; } .live-row .s { font: 800 15px var(--f-ui); color: var(--y); min-width: 54px; text-align: center; }
.live-row .st { grid-column: 1 / -1; text-align: center; font: 600 11px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: -2px; }
.live-row.in .st { color: #ff6b5e; }
.live-empty { color: var(--ink-soft); font-size: 14px; }

/* collection: bottom lead, small, the vitrines are the content */
.wp-coll { left: var(--gut); bottom: 8vh; width: min(400px, 32vw); }
.wp-coll h2 { font-size: clamp(34px, 3.6vw, 60px); }
.wp-coll .wp-sub { font-size: 14px; }
.focus { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: rgba(21, 21, 19, .82); border: 1px solid var(--line); backdrop-filter: blur(8px); display: grid; gap: 6px; }
.focus-k { font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.focus-t { font: 800 20px/1.15 var(--f-ui); }
.focus-m { font-size: 13px; color: var(--ink-soft); }
.focus .btn { justify-self: start; margin-top: 8px; }

/* numbers: trailing, scoreboard figures */
.wp-nums { right: calc(var(--gut) + 170px); bottom: 14vh; width: min(560px, 46vw); text-align: right; }
.wp-nums h2 { font-size: clamp(38px, 4.6vw, 76px); }
.wp-nums .wp-sub { margin-left: auto; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; }
@media (min-width: 761px) { body:not(.flat) .nums { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.nums div { padding: 14px 14px 12px; border-radius: 12px; background: rgba(21, 21, 19, .8); border: 1px solid var(--line); text-align: left; }
.nums dt { font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nums dd { margin: 6px 0 0; font: 800 clamp(22px, 2.6vw, 38px)/1 var(--f-ui); color: var(--y); font-variant-numeric: tabular-nums; }

/* the field: centred above the empty vitrine, the one centred moment */
.wp-veld { left: 50%; top: 10vh; bottom: 6vh; width: min(760px, 88vw); margin-left: calc(min(760px, 88vw) / -2); text-align: center; display: flex; flex-direction: column; }
.wp-veld .suggest { margin-top: auto; width: 100%; }
.wp-veld h2 { font-size: clamp(48px, 7vw, 120px); }
.wp-veld .wp-sub { margin-left: auto; margin-right: auto; }
.suggest { margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; text-align: left; }
.suggest label { display: grid; gap: 6px; }
.suggest label span { font: 700 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.suggest input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(21, 21, 19, .85); color: var(--ink); font: 500 15px var(--f-text); }
.suggest input:focus { outline: 2px solid var(--y); outline-offset: 1px; border-color: transparent; }
.suggest-ok { grid-column: 1 / -1; margin: 4px 0 0; color: var(--y); font: 700 14px var(--f-ui); text-align: center; }

/* the real list of stories: shown when 3D is off, and for keyboards */
.all { position: relative; z-index: 6; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }
.all:focus-within { opacity: 1; pointer-events: auto; height: auto; position: fixed; inset: auto var(--gut) var(--gut) var(--gut); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-height: 60vh; overflow: auto; }
.all h2 { font-size: 28px; margin-bottom: 12px; }
.all-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.all-list a { display: grid; gap: 8px; text-decoration: none; padding: 10px; border-radius: 12px; background: #1c1c19; border: 1px solid var(--line); }
.all-list img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.all-list b { font: 700 15px/1.25 var(--f-ui); }
.all-list span { font-size: 12px; color: var(--ink-soft); }

/* ---------- no 3D (no WebGL, or reduced motion): one calm, complete page ---------- */
body.flat .stage { background: #0A0A09; }
body.flat #world, body.flat .map, body.flat .track { display: none; }
body.flat .copy { position: static; }
body.flat .wp { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; width: auto; margin: 0 auto; padding: 96px var(--gut) 24px; max-width: 1100px; text-align: left; left: auto; right: auto; top: auto; bottom: auto; pointer-events: auto; }
body.flat .wp-hero { padding-top: 140px; }
body.flat .wp-nums .wp-sub, body.flat .wp-veld .wp-sub { margin-left: 0; }
body.flat .suggest { margin-left: 0; }
body.flat .all { position: static; opacity: 1; pointer-events: auto; height: auto; padding: 48px var(--gut) 96px; max-width: 1100px; margin: 0 auto; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .brand-word { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; } .brand-mark svg { width: 22px; height: 22px; }
  .bar-cta { padding: 9px 13px; font-size: 12px; }
  .map { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); flex-direction: column; gap: 0; }
  .map ol { flex-direction: row; gap: 4px; background: rgba(21, 21, 19, .82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
  .map a { font-size: 10px; letter-spacing: .06em; padding: 9px 10px; border-radius: 999px; }
  .map a.on { transform: none; background: var(--y); color: var(--y-ink); }
  .map .lg { display: none; } .map .sm { display: inline; }

  .map-rail { display: none; }
  .wp { left: var(--gut) !important; right: var(--gut) !important; width: auto !important; margin-left: 0 !important; text-align: left !important; }
  .wp::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--gut)) -30px; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 9, .9), rgba(10, 10, 9, .55) 70%, transparent); pointer-events: none; }
  .wp-hero { top: auto; bottom: 92px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 64px); }
  .hero-sum { display: none; }
  .wp-live { top: auto; bottom: 86px; } .wp-live h2 { font-size: 34px; } .wp-live .wp-sub { display: none; }
  .leagues { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 12px; } .leagues button { flex: none; }
  .live-list { max-height: 21vh; margin-top: 10px; } .live-row { padding: 7px 10px; }
  .wp-coll { top: auto; bottom: 86px; } .wp-coll h2 { font-size: 44px; }
  .wp-nums { top: auto; bottom: 86px; } .nums { grid-template-columns: repeat(3, 1fr); } .nums dd { font-size: 20px; }
  .wp-veld { top: 84px; bottom: 88px; } .wp-veld h2 { font-size: 52px; } .wp-veld::before { background: linear-gradient(to bottom, rgba(10, 10, 9, .9), rgba(10, 10, 9, .5) 75%, transparent); }
  .suggest { grid-template-columns: 1fr; }
  body.flat .wp::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .dot.live { animation: none; } .btn, .map a { transition: none; } }
@media (min-width: 761px) { .map .sm { display: none; } }
