/* ============================================================
   Plinko Guide — design tokens
   Palette derived from logo.png (gold/orange bubble letters) and
   banner.png (indigo/purple background, pink ball, gold coins).
   ============================================================ */
:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-alt: #f1eef8;
  --border: #e3dff0;
  --text: #201c33;
  --text-muted: #5c5870;
  --text-faint: #8b86a0;
  --brand: #c9600a;
  --brand-dark: #9c4a08;
  --accent: #f5a300;
  --accent-hover: #d98b00;
  --hero-bg: #13123a;
  --hero-bg-2: #2c1464;
  --pink: #ec1f88;
  --warning-bg: #fff4e5;
  --warning-border: #f0c36d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 18, 58, 0.06), 0 1px 3px rgba(19, 18, 58, 0.08);
  --shadow-md: 0 4px 14px rgba(19, 18, 58, 0.12);
  --max-width: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wide-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: flex; align-items: center; flex: none; }
.logo-link img { height: 34px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--surface-alt); text-decoration: none; color: var(--text); }
.main-nav a.active { color: var(--brand); background: #fbeedd; }

/* Stationary login/register buttons — always visible, independent of the
   collapsible .main-nav, on every breakpoint. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  padding: 7.5px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-login:hover { background: #fbeedd; text-decoration: none; color: var(--brand-dark); }

.btn-register {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #201200;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-register:hover { background: var(--accent-hover); text-decoration: none; color: #201200; }

/* Checkbox-hack mobile menu — no JS. The checkbox is visually hidden; the
   label is the visible hamburger button; CSS alone toggles .main-nav. */
.nav-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: radial-gradient(1100px 380px at 15% -10%, var(--hero-bg-2), var(--hero-bg));
  color: #f2f1fb;
  padding: 36px 0 32px;
}
.hero .container { max-width: 860px; }

/* Hero visual (homepage only): banner image with hero text overlaid on its
   empty left side on wider screens; stacked above the text on narrow ones
   (the fixed aspect-ratio box is too short to hold overlaid text there). */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}
.hero-visual-bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.hero-scrim { display: none; }

@media (min-width: 700px) {
  .hero-visual {
    aspect-ratio: 1400 / 788;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0;
  }
  .hero-visual-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  .hero-scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,14,45,0.8) 0%, rgba(15,14,45,0.55) 38%, rgba(15,14,45,0.05) 68%);
  }
  .hero-visual-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 56%;
    padding: 30px 36px;
    z-index: 1;
  }
  .hero-visual-content .byline { border-top-color: rgba(255,255,255,0.2); }
}
.breadcrumb {
  font-size: 13px;
  color: #a9a4c9;
  margin-bottom: 14px;
}
.breadcrumb a { color: #c4bfe6; }
h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-dek {
  font-size: 17px;
  color: #d3cfec;
  max-width: 620px;
  margin: 0 0 20px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13.5px;
  color: #a9a4c9;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 15px;
}
.byline strong { color: #ded9f2; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ded9f2;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ============================================================
   Callouts
   ============================================================ */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 20px 0;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout.age {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--hero-bg);
  color: #e7e4f7;
  border: none;
}
.callout.age strong, .callout.age a { color: #ffffff; }
.age-badge {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #201200;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Table of contents
   ============================================================ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.toc summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "\25BE";
  color: var(--text-faint);
  transition: transform 0.15s ease;
}
.toc[open] summary::after { transform: rotate(180deg); }
.toc-list {
  padding: 0 16px 14px;
  margin: 0;
  columns: 2;
  column-gap: 24px;
  list-style: none;
}
.toc-list li { break-inside: avoid; margin-bottom: 8px; font-size: 14px; }
.toc-list a { color: var(--text-muted); }
.toc-list a:hover { color: var(--brand); }

/* ============================================================
   Article body
   ============================================================ */
main { padding: 8px 0 8px; }
.article h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 76px;
}
.article h3 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
  scroll-margin-top: 76px;
}
.article p { margin: 0 0 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 16px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.5px;
}
.article th, .article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.article th { background: var(--surface-alt); font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius-sm); }
.table-scroll table { margin: 0; }
.meta-auteur { color: var(--text-faint); font-size: 13.5px; margin: -6px 0 20px; }

/* ============================================================
   CTA buttons & blocks
   ============================================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #201200;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  transition: background 0.15s ease, transform 0.05s ease;
}
.cta-button:hover { background: var(--accent-hover); text-decoration: none; color: #201200; }
.cta-button:active { transform: translateY(1px); }

.cta-block {
  text-align: center;
  margin: 30px 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================================
   Steps list
   ============================================================ */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Info / tip cards
   ============================================================ */
.tip-list { list-style: none; margin: 0 0 20px; padding: 0; }
.tip-list li {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14.5px;
}
.tip-list li strong { color: var(--text); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-top: 0; }
.info-card p:last-child { margin-bottom: 0; }

/* ============================================================
   Responsible gambling block
   ============================================================ */
.rg-block {
  background: var(--hero-bg);
  color: #e7e4f7;
  border-radius: var(--radius);
  padding: 22px;
  margin: 30px 0;
}
.rg-block h2 { color: #fff; margin-top: 0; }
.rg-block p { color: #cdc8e8; margin-bottom: 0; }
.rg-block a { color: var(--accent); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { margin: 0 0 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  flex: none;
  transition: transform 0.15s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a-inner {
  padding: 0 4px 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================================
   Related guides grid
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
}
.related-card:hover { border-color: var(--brand); text-decoration: none; }
.related-card span {
  display: block;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================================
   Sources footnote
   ============================================================ */
.sources { margin: 30px 0 10px; }
.sources h2 { font-size: 1.05rem; color: var(--text-muted); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { font-size: 13px; margin-bottom: 6px; }
.sources a { color: var(--text-faint); }
.sources a:hover { color: var(--brand); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--hero-bg);
  color: #aca7c9;
  margin-top: 56px;
  padding: 40px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .footer-heading {
  color: #e7e4f7;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-grid a { color: #aca7c9; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-disclaimer {
  padding-top: 20px;
  line-height: 1.7;
  color: #8f89ae;
}
.footer-disclaimer strong { color: #cdc8e8; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #756fa0;
  font-size: 12.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1099px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .nav-right { gap: 8px; }
  .header-actions { gap: 6px; }
  .btn-login, .btn-register { padding: 7px 10px; font-size: 12.5px; }
  .nav-toggle-checkbox:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle span { background: transparent; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 720px) {
  .toc-list { columns: 1; }
  .cta-block { padding: 18px; }
}
