/* Buddyspin NL: shared stylesheet. Mobile-first. Palette chosen by us (not official). */
:root {
  --bg: #0d0d0d;
  --bg-2: #151515;
  --bg-3: #1d1d1d;
  --line: #2c2c2c;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --orange: #ff7a00;
  --orange-dark: #e06a00;
  --yellow: #ffc400;
  --on-accent: #111111;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --font: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--on-accent); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Buttons (min height 44px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.btn--outline { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.btn--outline:hover { background: var(--yellow); color: var(--on-accent); }
.btn--lg { min-height: 52px; padding: 12px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13, 13, 13, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 8px 14px;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-menu { width: 100%; flex-basis: 100%; }
.header-inner { flex-wrap: wrap; }
.js .site-menu { display: none; padding-bottom: 16px; }
.js .site-menu.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; border-top: 1px solid var(--line); }
.nav-list a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 4px;
  color: var(--text); text-decoration: none; font-weight: 700;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--yellow); }
.nav-sub { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; }
.nav-sub li { margin: 0; }
.nav-sub a { font-weight: 400; color: var(--muted); }
.header-actions { display: flex; gap: 10px; margin-top: 12px; }
.header-actions .btn { flex: 1; }

/* Hero */
.hero {
  position: relative; padding: 36px 0 40px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255, 122, 0, .22), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgba(255, 196, 0, .10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: 2rem; }
.hero h1 span, .accent { color: var(--orange); }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
.hero__note { font-size: .85rem; color: var(--muted); margin: 0; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Sections */
.section { padding: 36px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__intro { color: var(--muted); max-width: 70ch; }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.toc { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.toc__title { font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .95rem; }
.table-wrap caption { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--yellow); caption-side: top; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--bg-3); color: var(--yellow); border-top: 0; }
.table-wrap tbody th { width: 38%; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .02); }

/* Block: review */
.review__box { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review__grid { display: grid; gap: 20px; }
.review__facts { list-style: none; padding: 0; margin: 0 0 16px; }
.review__facts li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.review__facts li:first-child { border-top: 0; }
.review__facts strong { color: var(--yellow); text-align: right; }

/* Block: text-image */
.text-image { display: grid; gap: 22px; align-items: center; }
.text-image__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Block: how-to */
.how-to__steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.how-to__steps li {
  counter-increment: step; position: relative; margin: 0;
  padding: 14px 16px 14px 62px; min-height: 56px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
}
.how-to__steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--yellow)); color: var(--on-accent); font-weight: 700;
}
.how-to__steps strong { display: block; }

/* Block: games */
.games__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0 0 1em; }
.game-card { margin: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.game-card__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-card__title { font-size: 1rem; margin: 0; }
.game-card__title a { color: var(--text); text-decoration: none; }
.game-card__title a:hover { color: var(--yellow); }
.game-card__provider { font-size: .85rem; color: var(--muted); margin: 0; }
.game-card__actions { margin-top: auto; padding-top: 8px; }

/* Block: card-buttons */
.card-buttons__grid { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.card-button {
  display: flex; flex-direction: column; gap: 4px; margin: 0; min-height: 44px; padding: 16px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s;
}
.card-button:hover { border-color: var(--orange); color: var(--text); transform: translateY(-2px); }
.card-button__title { font-weight: 700; color: var(--yellow); }
.card-button__text { font-size: .92rem; color: var(--muted); }

/* Block: faq */
.faq__list { max-width: 860px; }
.faq__item { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.faq__item summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 12px 48px 12px 16px; position: relative; font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 1.5rem; color: var(--orange); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 16px 14px; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* Widget slots: filled by later steps (games, sports). Empty slots take no space. */
.widget-slot:empty { display: none; }
.widget-slot { margin: 20px 0 0; }
.text-image__text .how-to__steps { margin-bottom: 1em; }

/* Final CTA, notes, legal */
.cta-final { text-align: center; background: linear-gradient(135deg, rgba(255, 122, 0, .18), rgba(255, 196, 0, .10)); border: 1px solid var(--orange); border-radius: var(--radius); padding: 28px 18px; }
.cta-final p { color: var(--muted); max-width: 56ch; margin-left: auto; margin-right: auto; }
.note { background: var(--bg-3); border-left: 4px solid var(--yellow); border-radius: 8px; padding: 12px 16px; font-size: .92rem; color: var(--muted); margin: 0 0 1em; }
.page-legal .prose { padding: 8px 0 24px; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.link-list li { margin: 0; }
.error-page { text-align: center; padding: 64px 0; }
.error-page__code { font-size: 4.5rem; font-weight: 700; color: var(--orange); line-height: 1; margin: 0 0 12px; }

/* Footer */
.site-footer { background: #090909; border-top: 1px solid var(--line); padding: 36px 0 24px; margin-top: 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-bottom: 24px; }
.footer-col h2 { font-size: 1rem; color: var(--yellow); margin-bottom: .6em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0; }
.footer-col a { display: inline-block; padding: 6px 0; min-height: 32px; color: var(--muted); text-decoration: none; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--yellow); }
.footer-col--games { grid-column: 1 / -1; }
.footer-col--games ul { columns: 2; column-gap: 16px; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .88rem; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 10px;
  border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); font-weight: 700; vertical-align: middle;
}
.footer-legal p { margin: 0 0 .7em; }
.footer-copy { margin-top: 12px; }

/* >= 600px */
@media (min-width: 600px) {
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 2.4rem; }
  .games__grid { grid-template-columns: repeat(3, 1fr); }
  .card-buttons__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-col--games ul { columns: 3; }
}

/* >= 900px: desktop header */
@media (min-width: 900px) {
  h2 { font-size: 1.8rem; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 60px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero__inner--single { grid-template-columns: 1fr; }
  .text-image { grid-template-columns: 1fr 1fr; gap: 40px; }
  .text-image--reverse .text-image__media { order: -1; }
  .review__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .games__grid { grid-template-columns: repeat(4, 1fr); }
  .card-buttons__grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-col--games { grid-column: auto; }
  .footer-col--games ul { columns: 1; }

  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-menu, .js .site-menu { display: flex !important; align-items: center; justify-content: flex-end; gap: 20px; width: auto; flex: 1; padding: 0; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a { padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .nav-sub {
    display: none; position: absolute; left: 0; top: 100%; min-width: 190px; margin: 0; padding: 8px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .nav-item--has-sub:hover > .nav-sub, .nav-item--has-sub:focus-within > .nav-sub { display: block; }
  .nav-sub a { padding: 8px 10px; border-radius: 6px; }
  .nav-sub a:hover { background: var(--bg-3); }
  .header-actions { margin: 0; }
  .header-actions .btn { flex: none; padding: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-button { transition: none; }
}
