/* Zelfde huisstijl als SwingJenga: donker walnoot, Archivo condensed, houtaccent en de drie blokkleuren. */
:root {
  --ink: #120c0a;
  --surface: #1b1310;
  --surface-2: #261b16;
  --line: #3a2b23;
  --paper: #f2e8dc;
  --muted: #b9a594;
  --wood: #d29a5c;
  --wood-light: #e6c398;
  --wood-dark: #c69764;
  --groen: #4fae62;
  /* Merkkleuren uit het logo: crème, rood en donker. Hout en groen/oranje horen alleen nog bij SwingJenga zelf. */
  --accent: #c0342c;
  --accent-hover: #d4453c;
  --accent-text: #e5584d;
  --oranje: #ef8a2a;
  --rood: #c0342c;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(192, 52, 44, 0.12), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

.g { --c: var(--groen); }
.o { --c: var(--oranje); }
.r { --c: var(--rood); }

/* ---------- Kop ---------- */

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { display: block; width: 40px; height: auto; }
.logo-word,
.foot-brand {
  font-size: 26px;
  font-weight: 900;
  font-stretch: 70%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-word span, .foot-brand span, .game h3 span { color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--paper); }
.age {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow,
.status {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
h1 {
  margin: 0;
  font-size: clamp(48px, 8.4vw, 96px);
  font-weight: 900;
  font-stretch: 66%;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lede {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: 19px;
  color: var(--paper);
  opacity: 0.86;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.link { color: var(--muted); font-weight: 600; text-decoration: none; }
.link:hover { color: var(--paper); }
.link::after { content: "\00a0\2193"; }

a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

/* Hero-beeld in lagen, zelfde opbouw als een productshot: gloed, lijntekening, browser, telefoon, losse kaart. */
.hero { position: relative; grid-template-columns: 1fr 1.15fr; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter)) 0 38%;
  background: url("img/avond.svg") center / 900px auto no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }

.stage {
  position: relative;
  aspect-ratio: 1.18;
  width: 100%;
}
.glow {
  position: absolute;
  inset: -12% -16% -8% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 52, 44, 0.2), rgba(242, 232, 220, 0.04) 60%, transparent);
}

.browser {
  position: absolute;
  top: 4%;
  left: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.url {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.url svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.browser img { display: block; width: 100%; height: auto; }

.phone {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 27%;
  padding: 6px;
  background: #0a0605;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 50px -16px rgba(0, 0, 0, 0.8);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 20px; }

.frag {
  position: absolute;
  left: -7%;
  bottom: -10%;
  width: 46%;
}
.ghost {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 40px;
  border-radius: 10px;
}
.ghost-far { bottom: -22px; left: 16%; right: 16%; background: var(--rood); opacity: 0.55; }
.ghost-near { bottom: -11px; background: var(--groen); opacity: 0.8; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 16px;
  background: var(--oranje);
  color: var(--ink);
  border-radius: 12px;
  outline: 1.5px solid rgba(18, 12, 10, 0.2);
  outline-offset: -7px;
  box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.75);
  transform: rotate(-2deg);
}
.card-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-text {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.15;
  text-wrap: balance;
}
.card-btn {
  align-self: stretch;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--oranje);
  font-weight: 800;
  font-size: 14px;
}
.cursor {
  position: absolute;
  right: 22%;
  bottom: 2px;
  width: 22px;
  height: 22px;
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

/* ---------- Secties ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px var(--gutter);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: 40px;
}
h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: 0.95;
}
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Spellen */
.games { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.game {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.game h3 {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 900;
  font-stretch: 70%;
  text-transform: uppercase;
  line-height: 1;
}
.game p { margin: 0 0 16px; color: var(--paper); opacity: 0.86; }
.status.live { color: var(--accent-text); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.status.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192, 52, 44, 0.22);
}
.facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.facts li { border: 1px solid var(--line); border-radius: 4px; padding: 2px 9px; }

.game-art { width: 96px; display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
.mini { display: flex; gap: 3px; height: 18px; }
.mini.ends i { flex: 1; border-radius: 2px; background: var(--c); }
.mini.side { border-radius: 2px; background: linear-gradient(180deg, var(--wood-light), var(--wood-dark)); }

.game.soon { grid-template-columns: 1fr; background: transparent; border-style: dashed; }
.game.soon .status { color: var(--muted); }
.game.soon h3 { color: var(--muted); }
.game.soon p { color: var(--muted); opacity: 1; }
.flask { flex-direction: row; gap: 6px; width: auto; padding: 0; }
.flask span { width: 22px; height: 6px; border-radius: 2px; background: var(--line); }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.rule { padding: 28px 28px 8px 0; }
.rule + .rule { border-left: 1px solid var(--line); padding-left: 28px; }
.rule-num { font-size: 40px; font-weight: 900; font-stretch: 62%; color: var(--accent-text); line-height: 1; }
.rule h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 800; font-stretch: 85%; line-height: 1.15; }
.rule p { margin: 0; color: var(--muted); }

/* ---------- Voet ---------- */

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot-brand { font-size: 22px; color: var(--paper); }

/* ---------- Kleinere schermen ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 64px; gap: 56px; }
  .stage { max-width: 560px; margin: 0 auto 40px; }
  .section-head { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding-top: max(16px, env(safe-area-inset-top)); }
  .nav a { display: none; }
  .hero::before { inset: 40% -20px 0; background-size: 600px auto; }
  .frag { left: -2%; width: 58%; }
  .phone { right: -2%; width: 30%; }
  .browser-bar { height: 26px; }
  .url { font-size: 10px; padding: 2px 10px; }
  .game { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .game-art { width: 72px; }
  .mini { height: 14px; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 24px 0 0; }
  .rule + .rule { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .section { padding: 56px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
