/* protradinglife.com - landingspagina.
   Eén thema (donker, zoals het spel), één accentkleur (groen), één hoekradius (2px). */
@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --panel: #161a22;
  --panel-2: #1f2530;
  --line: #2c3442;
  --text: #e8ecf1;
  --dim: #a3adbb;
  --accent: #3ddc84;
  --accent-ink: #06130b;
  --radius: 2px;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --body: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --page: min(1180px, 100% - 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; margin: 0; line-height: 1.5; }
h2 { font-size: clamp(15px, 2vw, 22px); margin-bottom: 28px; }
h3 { font-size: 12px; color: var(--accent); margin-bottom: 10px; }
p { margin: 0; color: var(--dim); max-width: 62ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 22px; border-radius: var(--radius);
  font: 12px/1 var(--pixel); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-small { padding: 12px 14px; font-size: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 #1d7a4a; }
.btn-primary:hover { background: #5cf09d; }
.btn-primary:active { box-shadow: 0 2px 0 #1d7a4a; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-store { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn-store:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Navigatie */
.nav {
  width: var(--page); margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 11px/1 var(--pixel); }
.brand img { border-radius: var(--radius); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--dim); }
.nav nav a:hover { color: var(--text); }

section { width: var(--page); margin: 0 auto; padding: 72px 0; }

/* Hero: tekst links, het spel zelf rechts */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  min-height: calc(100dvh - 68px); padding: 24px 0 48px;
}
.hero h1 { font-size: clamp(20px, 3vw, 38px); }
.lead { font-size: 18px; margin: 24px 0 32px; color: var(--text); opacity: 0.86; max-width: 46ch; }
.hero-game { display: flex; justify-content: center; }
.phone {
  position: relative; overflow: hidden;
  height: min(700px, calc(100dvh - 140px)); aspect-ratio: 9 / 17;
  background: var(--panel); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 10px 10px 0 #07080b;
}
.phone img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.phone-status {
  position: absolute; inset: auto 0 24px 0; text-align: center; max-width: none;
  font: 9px/1.6 var(--pixel); color: var(--text);
}
.phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; }
.phone.is-live iframe { opacity: 1; }
.phone.is-live .phone-status { display: none; }

/* Stores */
.stores {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 28px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
}
.stores h2 { margin-bottom: 8px; font-size: 14px; }

/* Functies: bento met 5 cellen */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell {
  position: relative; overflow: hidden; min-height: 220px; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
}
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cell > div { position: relative; padding: 16px; margin: -8px; background: rgba(13, 15, 20, 0.96); border: 2px solid var(--line); border-radius: var(--radius); }
.cell-chart { grid-column: span 4; min-height: 340px; }
.cell-accent { grid-column: span 2; background: var(--accent); border-color: var(--accent); }
.cell-accent h3 { color: var(--accent-ink); }
.cell-accent p { color: #12331f; }
.cell-empire { grid-column: span 2; min-height: 300px; }
.cell-plain { grid-column: span 2; background: var(--panel-2); }
.cell-score { grid-column: span 2; }

/* Het pad van een run */
.path ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 2px solid var(--line);
}
.path li { padding: 24px 20px 0 0; position: relative; }
.path li::before {
  content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent);
}
.path strong { display: block; font: 18px/1.4 var(--pixel); color: var(--text); margin-bottom: 12px; }
.path p { font-size: 14px; }

/* Screenshots */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 72vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
}
.strip img { scroll-snap-align: start; border: 2px solid var(--line); border-radius: var(--radius); }

/* Begrippen */
.terms dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.terms dt { font: 12px/1.5 var(--pixel); color: var(--accent); margin-bottom: 10px; }
.terms dd { margin: 0; color: var(--dim); max-width: 52ch; }

/* Vragen */
.faq-list { max-width: 820px; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--pixel); font-size: 12px; }
.faq details[open] summary::after { content: '-'; }
.faq details p { padding: 0 0 20px; }

.terms dt a { text-decoration: none; }
.terms dt a:hover { text-decoration: underline; }
.more { margin-top: 32px; }
.more a { color: var(--accent); }

/* Uitlegpagina's */
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--dim); margin-bottom: 28px; }
.crumbs a { color: var(--dim); }
.article-head { padding: 48px 0 24px; }
.article-head h1, .article h1 { font-size: clamp(18px, 2.6vw, 30px); }
.article { width: min(720px, 100% - 32px); margin: 0 auto; padding: 48px 0 24px; }
.article .lead { margin: 24px 0 8px; max-width: none; }
.article h2 { font-size: 14px; margin: 44px 0 14px; color: var(--accent); }
.article p { max-width: none; margin-bottom: 16px; color: #c3cbd6; }
.in-game { margin: 48px 0 24px; padding: 28px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); }
.in-game h2 { margin-top: 0; }
.in-game p { margin-bottom: 24px; }
.note { font-size: 14px; color: var(--dim) !important; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related .guide-list { grid-template-columns: repeat(3, 1fr); }
section.guide-list { padding-top: 24px; }
.guide {
  display: block; padding: 24px; text-decoration: none;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.12s ease;
}
.guide:hover { border-color: var(--accent); }
.guide h2, .guide h3 { font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.guide p { font-size: 14px; }

/* Afsluiting en footer */
.end { text-align: center; padding: 96px 0; }
.end h2 { font-size: clamp(16px, 2.6vw, 28px); margin-bottom: 32px; }
footer {
  width: var(--page); margin: 0 auto; padding: 32px 0 48px; border-top: 2px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; font-size: 14px;
}
footer p { flex: 1 1 320px; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--dim); }
footer .copy { flex: 0 0 auto; }

/* Beweging: functies schuiven in beeld tijdens het scrollen. Uit bij "minder beweging". */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Smal scherm: alles in één kolom, het spel zelf achter de knop "Speel nu" */
@media (max-width: 959px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding: 48px 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding: 24px 0 40px; }
  .lead { font-size: 16px; }
  .phone { height: auto; width: min(100%, 420px); aspect-ratio: 900 / 781; box-shadow: 6px 6px 0 #07080b; }
  .phone img { opacity: 1; }
  .phone-status, .phone iframe { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-chart, .cell-accent, .cell-empire, .cell-plain, .cell-score { grid-column: auto; }
  .cell-accent, .cell-plain { min-height: 0; }
  .path ol { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); }
  .path li { padding: 0 0 28px 24px; }
  .path li::before { top: 4px; left: -7px; }
  .terms dl { grid-template-columns: 1fr; gap: 28px; }
  .end { padding: 64px 0; }
  .guide-list, .related .guide-list { grid-template-columns: 1fr; }
}
