/* ==========================================================================
   MEGA MOOLAH SPEL — Midnight Editorial
   Unified responsive stylesheet (mobile-first).
   Breakpoint: 768px — below it the mobile layout (sticky header, trust bar,
   sticky bottom CTA); above it the desktop layout (fixed 120px brand rail).
   Tokens come from DESIGN.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --background: #141312;
  --background-pure: #070706;
  --surface: #151413;
  --surface-charcoal: #1c1b19;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #20201f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353535;

  /* Content */
  --on-surface: #e5e2e1;
  --on-surface-variant: #d0c6ab;
  --text-dim: #a0a0a0;

  /* Primary (gold) */
  --primary: #fff6df;
  --primary-container: #ffd700;
  --on-primary-container: #705e00;
  --primary-fixed: #ffe16d;
  --primary-fixed-dim: #e9c400;
  --accent-gold-muted: #c5a059;

  /* Secondary (purple) */
  --secondary: #d2bcfa;
  --on-secondary: #38265a;
  --secondary-container: #4f3d72;
  --on-secondary-container: #c1abe8;

  /* Outline & status */
  --outline: #999077;
  --outline-variant: #4d4732;
  --compliance-red: #ff4b4b;

  /* Type */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale */
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --gutter: 24px;
  --section-gap: 72px;
  --rail-width: 138px;
  --content-max: 1088px;

  /* Radius (Soft-Mechanical) */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* below the sticky mobile header */
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 3%, rgba(255, 215, 0, 0.09), transparent 24rem),
    radial-gradient(circle at 20% 18%, rgba(79, 61, 114, 0.26), transparent 26rem),
    linear-gradient(180deg, #181716 0%, var(--background) 34%, #11100f 100%);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 88px; /* room for the sticky mobile CTA */
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-container);
}

:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography roles (from DESIGN.md)
   -------------------------------------------------------------------------- */
.display-lg {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 24px; /* headline-lg-mobile */
  font-weight: 800;
  line-height: 1.2;
}

.headline-md {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.label-caps {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.body-sm {
  font-size: 14px;
  line-height: 1.4;
}

.text-dim {
  color: var(--text-dim);
}

.text-gold {
  color: var(--accent-gold-muted);
}

@media (min-width: 768px) {
  .display-lg {
    font-size: 42px;
  }

  .headline-lg {
    font-size: 28px;
    letter-spacing: 0;
  }
}

.brand-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.local-icon {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  min-width: 1.15em;
  font-family: var(--font-mono);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. Mobile header, drawer & trust bar  (hidden on desktop)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 var(--margin-mobile);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-gold-muted);
}

.menu-toggle {
  padding: 8px;
  color: var(--on-surface);
}

/* Slide-in drawer, driven by js/main.js */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(320px, 85vw);
  padding: 24px;
  background: var(--surface-container-lowest);
  border-left: 1px solid var(--outline-variant);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__close {
  align-self: flex-end;
  padding: 8px;
  color: var(--text-dim);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  margin-top: auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.trust-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-top: 64px; /* clear the fixed header */
  padding: 8px var(--margin-mobile);
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--surface-container-highest);
  overflow: hidden;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-dim);
  white-space: nowrap;
}

.trust-bar__item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--compliance-red);
  border-radius: 50%;
  color: var(--compliance-red);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Desktop brand rail  (hidden on mobile)
   -------------------------------------------------------------------------- */
.rail {
  display: none;
}

@media (min-width: 768px) {
  .site-header,
  .trust-bar,
  .drawer,
  .drawer-overlay {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  html {
    scroll-padding-top: 24px;
  }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: var(--rail-width);
    padding: 16px 12px;
    background:
      linear-gradient(180deg, rgba(255, 215, 0, 0.035), rgba(79, 61, 114, 0.08) 44%, rgba(0, 0, 0, 0)),
      #090908;
    border-right: 1px solid rgba(197, 160, 89, 0.18);
    box-shadow: 14px 0 38px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
  }

  .rail__top {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 14px 8px 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 14px;
  }

  .rail__brand {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
    color: var(--primary-container);
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.16);
    margin-bottom: 0;
  }

  .rail__brand span {
    color: var(--primary-fixed);
    font-size: 15px;
  }

  .rail__logo {
    width: 74px;
    height: auto;
    object-fit: contain;
  }

  .rail__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .rail__link {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .rail__link .local-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.06);
    color: var(--accent-gold-muted);
  }

  .rail__link:hover,
  .rail__link.is-active {
    color: var(--on-surface);
    background: rgba(255, 215, 0, 0.075);
    border-color: rgba(255, 215, 0, 0.28);
    transform: translateX(2px);
  }

  .rail__cta {
    margin-bottom: 16px;
  }

  .rail__trust {
    display: grid;
    gap: 8px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: auto;
  }

  .rail__trust-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid rgba(197, 160, 89, 0.24);
    border-radius: var(--radius-pill);
    color: var(--on-surface-variant);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .rail__trust-chip--age {
    width: 42px;
    justify-self: center;
    color: var(--compliance-red);
    border-color: rgba(255, 75, 75, 0.52);
    background: rgba(255, 75, 75, 0.055);
  }

  .rail__trust-copy {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
  }

  .rail__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    color: var(--text-dim);
  }

  .rail__footer button:hover {
    color: var(--on-surface);
  }

  .rail__footer a:hover {
    color: var(--on-surface);
  }

  .rail__clock {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--radius-pill);
  }
}

/* --------------------------------------------------------------------------
   6. Page shell
   -------------------------------------------------------------------------- */
.page {
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page {
    margin-left: var(--rail-width);
  }
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 var(--gutter);
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--stack-md) 0;
  margin-top: var(--stack-md);
  color: var(--text-dim);
}

.breadcrumb .local-icon {
  font-size: 14px;
}

.breadcrumb [aria-current] {
  color: var(--on-surface);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: var(--gutter) 0 calc(var(--section-gap) + 16px);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--primary-container);
  color: #000;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.btn--primary:hover {
  background: var(--primary-fixed);
  color: #000;
}

.btn--ghost {
  border: 2px solid var(--secondary-container);
  color: var(--on-surface);
}

.btn--ghost:hover {
  background: var(--secondary-container);
  color: var(--on-surface);
}

.btn--outline {
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
}

.btn--outline:hover {
  border-color: var(--primary-container);
  color: var(--on-surface);
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  gap: var(--stack-lg);
  padding: clamp(16px, 2.4vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(79, 61, 114, 0.13) 58%, rgba(0, 0, 0, 0)),
    rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.hero > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(220px, 0.82fr) minmax(300px, 1.1fr);
    align-items: start;
  }

  .info-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(230px, 0.86fr) minmax(330px, 1.15fr) minmax(250px, 0.92fr);
    gap: 28px;
  }

  .info-card {
    grid-column: auto;
  }
}

.hero__media {
  position: relative;
  aspect-ratio: 688 / 445;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--background-pure);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46), 0 0 24px rgba(197, 160, 89, 0.12);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-gold-muted);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
}

.rating-chip .local-icon {
  font-size: 16px;
  color: var(--accent-gold-muted);
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__stars {
  display: flex;
  color: var(--primary-container);
}

.hero__stars .local-icon {
  font-size: 18px;
}

.hero__lead {
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 64ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  margin-top: var(--stack-sm);
}

@media (min-width: 768px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--stack-md);
  }
}

/* Snabbfakta / Information card */
.info-card {
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.035), rgba(0, 0, 0, 0)),
    var(--surface-charcoal);
  border: 1px solid color-mix(in srgb, var(--primary-container) 34%, transparent);
  border-radius: var(--radius-xl);
  padding: var(--gutter);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.info-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold-muted);
  padding-bottom: 12px;
  margin-bottom: var(--stack-md);
  border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 60%, transparent);
}

.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-container-highest);
}

.info-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.info-card__value {
  font-size: 14px;
  font-weight: 600;
}

.info-card__value--gold {
  color: var(--primary-container);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Gallery (purple-framed, scroll-snap on mobile)
   -------------------------------------------------------------------------- */
.gallery {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(79, 61, 114, 0.28), rgba(22, 21, 28, 0.92)),
    var(--surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--secondary) 42%, transparent);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 70px rgba(0, 0, 0, 0.34);
}

.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-md);
  padding-bottom: var(--stack-md);
  margin-bottom: var(--gutter);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-gold-muted) 38%, transparent);
}

.gallery__title {
  color: var(--on-surface);
}

.gallery__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery__control {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--secondary) 54%, transparent);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.28);
  color: var(--on-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.gallery__control:hover {
  transform: translateY(-1px);
  border-color: var(--primary-container);
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary-container);
}

.gallery__control:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.gallery__viewport {
  position: relative;
  margin-inline: calc(var(--gutter) * -0.35);
}

.gallery__track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--stack-md);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px var(--stack-md) 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold-muted) rgba(255, 255, 255, 0.08);
}

.gallery__track::-webkit-scrollbar {
  height: 10px;
}

.gallery__track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
}

.gallery__track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-gold-muted), var(--primary-container));
  border-radius: var(--radius-pill);
}

.gallery__item {
  position: relative;
  flex: 0 0 min(78vw, 520px);
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--primary-container) 36%, transparent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--background-pure);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery__item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-container);
}

@media (min-width: 768px) {
  .gallery__item {
    flex-basis: clamp(360px, 36vw, 500px);
  }

  .gallery__item--cover {
    flex-basis: clamp(380px, 38vw, 520px);
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--cover img {
  object-position: center;
}

.gallery__item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.72);
  color: var(--primary-fixed);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Intro + table of contents
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  gap: var(--stack-lg);
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.prose h2 {
  color: var(--primary-container);
  scroll-margin-top: 88px;
}

.prose img {
  width: 100%;
  max-width: 768px;
  margin: var(--stack-md) auto;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.prose blockquote {
  margin: var(--stack-md) 0;
  padding: var(--stack-sm) var(--stack-md);
  border-left: 4px solid var(--accent-gold-muted);
  background: var(--surface-charcoal);
  font-style: italic;
  color: var(--text-dim);
}

.prose .highlight {
  color: var(--accent-gold-muted);
  font-weight: 500;
}

/* TOC: <details> on mobile, sticky card on desktop */
.toc {
  background: var(--surface-charcoal);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
}

.toc__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--stack-md) 20px;
  cursor: pointer;
  list-style: none;
}

.toc__summary::-webkit-details-marker {
  display: none;
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 20px var(--stack-md);
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}

.toc__list a.is-active {
  color: var(--primary-container);
}

@media (min-width: 768px) {
  .toc {
    position: sticky;
    top: var(--gutter);
  }

  .toc__summary {
    pointer-events: none;
  }

  .toc__summary .local-icon {
    display: none;
  }

  .toc[open] .toc__summary,
  .toc__summary {
    border-bottom: 1px solid var(--surface-container);
    margin-bottom: var(--stack-md);
  }
}

/* --------------------------------------------------------------------------
   11. Data tables
   -------------------------------------------------------------------------- */
.data-table {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.035), transparent 120px),
    var(--surface-charcoal);
  border: 1px solid color-mix(in srgb, var(--accent-gold-muted) 36%, var(--outline-variant));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.data-table::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-container), var(--secondary));
  opacity: 0.9;
}

.data-table table {
  font-size: 14px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.data-table th {
  padding: 18px var(--stack-md);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.11), rgba(79, 61, 114, 0.28));
  border-bottom: 1px solid color-mix(in srgb, var(--primary-container) 45%, transparent);
  color: var(--primary-container);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px var(--stack-md);
  border-top: 1px solid color-mix(in srgb, var(--outline-variant) 70%, transparent);
  color: var(--on-surface);
  font-weight: 500;
}

.data-table td + td,
.data-table th + th {
  border-left: 1px solid color-mix(in srgb, var(--outline-variant) 55%, transparent);
}

.data-table td:first-child {
  color: var(--text-dim);
  width: 50%;
  font-weight: 650;
}

.table-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-gold-muted) 48%, transparent);
  border-radius: 50%;
  color: var(--primary-container);
  background: rgba(255, 215, 0, 0.07);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.data-table tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-container) 50%, transparent);
  box-shadow: inset 4px 0 0 var(--primary-container);
}

.data-table .gold {
  color: var(--primary-container);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  padding: var(--gutter);
  background:
    linear-gradient(90deg, rgba(210, 188, 250, 0.14), rgba(255, 215, 0, 0.06)),
    color-mix(in srgb, var(--secondary-container) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 72%, var(--accent-gold-muted));
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

@media (min-width: 768px) {
  .cta-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cta-strip__intro {
  display: flex;
  align-items: center;
  gap: var(--stack-md);
}

.cta-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: var(--radius);
  color: var(--secondary-container);
}

.cta-strip__icon .local-icon {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.cta-strip__actions {
  display: flex;
  gap: var(--stack-md);
}

.cta-strip__actions .btn {
  flex: 1;
}

@media (min-width: 768px) {
  .cta-strip__actions .btn {
    flex: none;
  }
}

/* --------------------------------------------------------------------------
   12b. Demo embed panel
   -------------------------------------------------------------------------- */
.demo-panel {
  display: grid;
  gap: var(--gutter);
  align-items: stretch;
  min-width: 0;
  padding: var(--gutter);
  background:
    linear-gradient(135deg, rgba(79, 61, 114, 0.46), rgba(26, 26, 26, 0.98)),
    var(--surface-container-low);
  border: 1px solid color-mix(in srgb, var(--secondary) 55%, var(--accent-gold-muted));
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

@media (min-width: 900px) {
  .demo-panel {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  }
}

.demo-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--stack-md);
  min-width: 0;
}

.demo-panel__copy p {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.demo-panel__note {
  padding: var(--stack-md);
  background: rgba(0, 0, 0, 0.26);
  border-left: 4px solid var(--primary-container);
}

.demo-panel code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--primary-fixed);
  overflow-wrap: anywhere;
}

/* Local playable demo */
.mm-demo {
  position: relative;
  min-width: 0;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 215, 0, 0.12), transparent 15rem),
    #050505;
  border: 1px solid color-mix(in srgb, var(--primary-container) 48%, transparent);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mm-demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 215, 0, 0.34);
  border-radius: var(--radius-pill);
  color: var(--primary-fixed);
  background: rgba(255, 215, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-demo__badge::before {
  content: "◆";
  color: var(--primary-container);
}

.mm-demo__screen {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #19140b, #050505);
  border: 1px solid rgba(255, 215, 0, 0.26);
  border-radius: var(--radius-lg);
}

.mm-demo canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
}

.mm-demo__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--primary-container);
  text-align: center;
  z-index: 2;
}

.mm-demo__overlay canvas {
  width: min(240px, 72vw);
  max-width: 100%;
}

.mm-demo__overlay p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
}

.mm-demo__overlay-note {
  max-width: 28ch;
  color: var(--text-dim);
  font-family: var(--font-body) !important;
  font-size: 12px !important;
}

.mm-demo__status {
  margin: 12px 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--on-surface);
  font-size: 13px;
  line-height: 1.35;
}

.mm-demo__status.is-win {
  border-color: rgba(255, 215, 0, 0.48);
  color: var(--primary-fixed);
}

.mm-demo__status.is-fs {
  border-color: rgba(210, 188, 250, 0.62);
  color: var(--secondary);
}

.mm-demo__controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 680px) {
  .mm-demo__controls {
    grid-template-columns: minmax(150px, 1fr) auto auto auto auto;
    align-items: center;
  }
}

.mm-demo__bets {
  display: flex;
  gap: 8px;
}

.mm-demo__bet,
.mm-demo__auto,
.mm-demo__reset {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-demo__bet.is-active,
.mm-demo__bet:hover,
.mm-demo__auto:hover,
.mm-demo__reset:hover {
  border-color: var(--primary-container);
  color: var(--primary-container);
}

.mm-demo__spin {
  min-height: 40px;
}

.mm-demo__snabb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-demo__snabb input {
  accent-color: var(--primary-container);
}

.mm-demo__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

@media (min-width: 680px) {
  .mm-demo__stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.mm-demo__stats div {
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.mm-demo__stats dt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-demo__stats dd {
  margin: 4px 0 0;
  color: var(--primary-fixed);
  font-family: var(--font-display);
  font-size: 13px;
}

.mm-demo__note {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  margin-top: var(--gutter);
}

.faq__item {
  background: var(--surface-charcoal);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease;
}

.faq__item[open] {
  background: var(--surface-container-low);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--stack-md);
  padding: var(--stack-md);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question .local-icon {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question .local-icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 var(--stack-md) var(--stack-md);
  border-top: 1px solid var(--surface-container);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.faq__answer p {
  margin-top: var(--stack-sm);
}

/* --------------------------------------------------------------------------
   14. Card grids (similar games / related articles)
   -------------------------------------------------------------------------- */
.section-divided {
  border-top: 1px solid var(--outline-variant);
  padding-top: calc(var(--section-gap) / 2);
}

.section-divided > h2 {
  margin-bottom: var(--gutter);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--stack-md);
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.game-card {
  background: var(--surface-charcoal);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.game-card:hover {
  border-color: var(--primary-container);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card__name {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.game-card:hover .game-card__name {
  color: var(--primary-container);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.article-card {
  display: flex;
  gap: var(--stack-md);
  padding: var(--stack-md);
  background: var(--surface-charcoal);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.article-card:hover {
  border-color: var(--primary-container);
}

.article-card img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.article-card p {
  font-size: 12px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-gap);
  padding: calc(var(--section-gap) / 2) 0;
  background: var(--surface-charcoal);
  border-top: 1px solid var(--outline-variant);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  align-items: center;
  text-align: center;
  padding-bottom: var(--stack-lg);
  margin-bottom: var(--stack-lg);
  border-bottom: 1px solid var(--surface-container-highest);
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-brand__name {
  color: var(--accent-gold-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-brand__blurb {
  max-width: 480px;
  color: var(--text-dim);
}

.footer-brand__icons {
  display: flex;
  gap: var(--stack-md);
  color: var(--text-dim);
}

.footer-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--outline-variant);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-container);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-lg);
  padding-bottom: var(--stack-lg);
  margin-bottom: var(--stack-lg);
  border-bottom: 1px solid var(--surface-container);
}

@media (min-width: 768px) {
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-nav h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--stack-md);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gutter);
  font-size: 12px;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-meta__logos {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-meta__logos:hover {
  opacity: 1;
  filter: grayscale(0);
}

.footer-meta__logos img {
  height: 16px;
  width: auto;
}

.footer-meta__logos--text span {
  padding: 8px 10px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta__badges {
  display: flex;
  align-items: center;
  gap: var(--stack-md);
}

.footer-meta__badges span {
  padding: 8px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
}

.footer-meta__badges .age {
  font-size: 18px;
  font-weight: 700;
}

.footer-meta__legal {
  max-width: 640px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-meta__legal {
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   16. Sticky bottom CTA (mobile only)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--stack-md);
  padding: 12px var(--margin-mobile);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface-container) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline-variant);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.sticky-cta__name {
  font-size: 14px;
  font-weight: 700;
}

.sticky-cta__rtp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-gold-muted);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   14. UI polish pass 2026-07-03 — icons, header, hero, focus (concept intact)
   -------------------------------------------------------------------------- */

/* SVG-иконки в существующем боксе .local-icon */
svg.local-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.icon-sprite {
  position: absolute;
}

/* Видимый фокус — единый по сайту, в золоте токенов */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-fixed-dim);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible,
.menu-toggle:focus-visible {
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* Шапка: явная зона нажатия бургера + состояние прокрутки */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-lg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-toggle:hover {
  background: var(--surface-container-high);
  color: var(--primary-fixed);
}

.menu-toggle .local-icon {
  width: 22px;
  height: 22px;
}

.site-header {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background-pure) 88%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.site-header__brand {
  transition: color 0.15s ease;
}

.site-header__brand:hover {
  color: var(--primary-fixed);
}

.site-header__brand .brand-logo {
  border-radius: var(--radius-sm);
}

/* Hero: звёзды, чип, кнопки, карточка фактов */
.hero__stars {
  gap: 3px;
  align-items: center;
}

.hero__stars .local-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.rating-chip {
  gap: 6px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}

.rating-chip .local-icon {
  width: 15px;
  height: 15px;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%);
  pointer-events: none;
}

.btn {
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary:hover {
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.26);
}

.btn .local-icon {
  width: 1.05em;
  height: 1.05em;
}

.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent);
}

.info-card__row:last-of-type {
  border-bottom: 0;
}

.info-card__value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .menu-toggle,
  .site-header__brand,
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

svg.footer-symbol {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

/* table-icon остаётся круглым бейджем 24px, ромб внутри с отступом */
svg.table-icon {
  padding: 5px;
  vertical-align: middle;
}


/* --------------------------------------------------------------------------
   15. Display typeface swap 2026-07-03: Unbounded → Archivo Expanded
   Восприятие казино-аудитории: билборд-импакт вместо крипто-техно.
   Вес/ширина добираются здесь, не трогая структуру ролей.
   -------------------------------------------------------------------------- */
.display-lg,
.display-md,
.display-sm,
.headline-lg,
.headline-md {
  font-stretch: 122%;
  font-weight: 900;
  letter-spacing: 0.005em;
}

.headline-md {
  font-weight: 800;
}

.site-header__brand,
.rail__brand {
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.display-lg {
  line-height: 1.02;
}

.drawer__nav {
  font-stretch: 116%;
  font-weight: 700;
}

.badge-18 {
  font-stretch: 110%;
  font-weight: 800;
}

.cta-strip__icon .local-icon,
.mm-demo__overlay p,
.mm-demo__stats dd {
  font-stretch: 120%;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   16. Demo + RTP polish 2026-07-03
   -------------------------------------------------------------------------- */
.demo-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-panel__eyebrow .local-icon {
  width: 14px;
  height: 14px;
}

.table-icon--rtp {
  padding: 4px;
}

.cta-strip {
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 215, 0, 0.16), transparent 9rem),
    linear-gradient(135deg, rgba(210, 188, 250, 0.16), rgba(255, 215, 0, 0.07) 68%, rgba(0, 0, 0, 0.2)),
    color-mix(in srgb, var(--secondary-container) 30%, var(--surface-container-low));
}

.cta-strip__icon--rtp {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #120f05;
  background:
    radial-gradient(circle at 35% 30%, #fff6bd, transparent 38%),
    linear-gradient(145deg, var(--primary-container), #b88a00);
  border: 1px solid rgba(255, 246, 223, 0.56);
  box-shadow: 0 16px 34px rgba(255, 215, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cta-strip__icon--rtp .local-icon {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22));
}

.cta-strip__actions .btn {
  min-height: 50px;
}

.mm-demo {
  padding: clamp(12px, 2.6vw, 18px);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 215, 0, 0.15), transparent 13rem),
    radial-gradient(circle at 90% 0%, rgba(210, 188, 250, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(18, 16, 11, 0.98), rgba(4, 4, 4, 0.98));
  border-color: rgba(255, 215, 0, 0.42);
}

.mm-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mm-demo__badge {
  margin-bottom: 0;
}

.mm-demo__mode {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(210, 188, 250, 0.28);
  border-radius: var(--radius-pill);
  color: var(--secondary);
  background: rgba(210, 188, 250, 0.07);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-demo__screen {
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.mm-demo__status {
  margin: 12px 0;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 215, 0, 0.16);
}

.mm-demo__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.mm-demo__field {
  min-width: 0;
}

.mm-demo__field--bets,
.mm-demo__spin {
  grid-column: 1 / -1;
}

.mm-demo__field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mm-demo__bets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mm-demo__bet,
.mm-demo__auto,
.mm-demo__reset,
.mm-demo__snabb {
  min-height: 42px;
  border-radius: var(--radius-pill);
}

.mm-demo__bet {
  background: rgba(0, 0, 0, 0.32);
}

.mm-demo__bet.is-active {
  background: rgba(255, 215, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.34);
}

.mm-demo__spin {
  min-height: 50px;
  font-size: 12px;
  box-shadow: 0 14px 28px rgba(255, 215, 0, 0.16);
}

.mm-demo__auto,
.mm-demo__reset,
.mm-demo__snabb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  background: rgba(0, 0, 0, 0.26);
}

.mm-demo__snabb {
  border: 1px solid rgba(210, 188, 250, 0.22);
}

.mm-demo__snabb input {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(255, 215, 0, 0.38);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
}

.mm-demo__snabb input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--primary-container);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.mm-demo__snabb input:checked::before {
  transform: scale(1);
}

.mm-demo__reset {
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.14);
}

.mm-demo__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mm-demo__stats div {
  padding: 12px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.024));
  border-color: rgba(255, 255, 255, 0.1);
}

.mm-demo__stats dd {
  font-size: 15px;
}

.mm-demo__note {
  padding: 0 2px;
}

@media (max-width: 560px) {
  .cta-strip {
    gap: 18px;
  }

  .cta-strip__intro {
    align-items: flex-start;
  }

  .cta-strip__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cta-strip__actions .btn {
    min-width: 0;
    padding-inline: 14px;
  }

  .demo-panel {
    padding: 16px;
  }

  .mm-demo__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-demo__badge,
  .mm-demo__mode {
    max-width: 100%;
  }

  .mm-demo__controls {
    padding: 10px;
  }

  .mm-demo__reset {
    grid-column: 1 / -1;
  }
}

@media (min-width: 680px) {
  .mm-demo__controls {
    grid-template-columns: minmax(210px, 1fr) minmax(140px, auto) auto auto;
    align-items: end;
  }

  .mm-demo__field--bets,
  .mm-demo__spin {
    grid-column: auto;
  }

  .mm-demo__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .mm-demo__stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   17. External demo iframe + affiliate protector
   -------------------------------------------------------------------------- */
.demo-embed {
  position: relative;
  min-width: 0;
  padding: clamp(12px, 2.6vw, 18px);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 215, 0, 0.16), transparent 13rem),
    radial-gradient(circle at 90% 0%, rgba(210, 188, 250, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(14, 12, 8, 0.98), rgba(3, 3, 3, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-embed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-embed__badge,
.demo-embed__launch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-embed__badge {
  gap: 8px;
  color: var(--primary-fixed);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.34);
}

.demo-embed__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-container);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.58);
}

.demo-embed__launch {
  flex: none;
  color: var(--secondary);
  background: rgba(210, 188, 250, 0.07);
  border: 1px solid rgba(210, 188, 250, 0.28);
}

.demo-embed__frame {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0)),
    #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.demo-embed__frame::before {
  content: "Loading demo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-embed iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: min(76vh, 720px);
  min-height: 560px;
  border: 0;
  background: #050505;
}

.demo-embed__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.demo-embed__actions .btn {
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
}

.demo-embed__note {
  margin: 12px 2px 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .demo-embed__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-embed__badge,
  .demo-embed__launch {
    max-width: 100%;
  }

  .demo-embed__frame,
  .demo-embed iframe {
    min-height: 520px;
  }

  .demo-embed iframe {
    height: 68vh;
  }

  .demo-embed__actions {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   18. Static demo screenshot preview
   -------------------------------------------------------------------------- */
.demo-shot {
  position: relative;
  min-width: 0;
  padding: clamp(12px, 2.6vw, 18px);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 215, 0, 0.16), transparent 13rem),
    radial-gradient(circle at 90% 0%, rgba(210, 188, 250, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(14, 12, 8, 0.98), rgba(3, 3, 3, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-shot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-shot__badge,
.demo-shot__mode {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-shot__badge {
  gap: 8px;
  color: var(--primary-fixed);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.34);
}

.demo-shot__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-container);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.58);
}

.demo-shot__mode {
  flex: none;
  color: var(--secondary);
  background: rgba(210, 188, 250, 0.07);
  border: 1px solid rgba(210, 188, 250, 0.28);
}

.demo-shot__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.demo-shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1471 / 1069;
  object-fit: cover;
}

.demo-shot__image-link {
  display: block;
  color: inherit;
  cursor: pointer;
}

.demo-shot__image-link img {
  transition: transform 0.24s ease, filter 0.24s ease;
}

.demo-shot__image-link:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.012);
}

.demo-shot__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(0, 0, 0, 0.16));
}

.demo-shot__frame figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.72);
  color: var(--primary-fixed);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-shot__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.demo-shot__actions .btn {
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
}

.demo-shot__note {
  margin: 12px 2px 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .demo-shot__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-shot__badge,
  .demo-shot__mode {
    max-width: 100%;
  }

  .demo-shot__frame figcaption {
    font-size: 9px;
  }

  .demo-shot__actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Utility / legal pages (Om oss, Villkor, Integritetspolicy,
   Cookiepolicy, Ansvarsfullt spelande, Kontakt) — added 2026-07
   ============================================================ */
.prose h1 {
  color: var(--on-surface);
  scroll-margin-top: 88px;
}
.prose h3 {
  color: var(--on-surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: var(--stack-sm);
  scroll-margin-top: 88px;
}
.prose p a,
.prose li a {
  color: var(--accent-gold-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose p a:hover,
.prose li a:hover {
  color: var(--primary-container);
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
}
.prose li {
  line-height: 1.6;
}
.prose li::marker {
  color: var(--accent-gold-muted);
}
.prose strong {
  color: var(--on-surface);
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--outline-variant);
  margin: var(--stack-md) 0;
}

/* Page lead + meta line under the H1 */
.legal-lead {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 62ch;
}
.legal-meta {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
}

/* Highlighted note / disclaimer box */
.note-box {
  border: 1px solid var(--outline-variant);
  border-left: 4px solid var(--accent-gold-muted);
  background: var(--surface-charcoal);
  border-radius: var(--radius-lg);
  padding: var(--stack-md);
  color: var(--on-surface-variant);
  line-height: 1.6;
}
.note-box--warn {
  border-left-color: var(--compliance-red);
}
.note-box h2,
.note-box h3 {
  margin-top: 0;
  color: var(--on-surface);
}

/* Contact cards */
.contact-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: var(--stack-md);
}
.contact-card h3 {
  margin: 0 0 4px;
}
.contact-card p {
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}
.contact-card a {
  color: var(--accent-gold-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* Footer legal / utility links row */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: var(--stack-md);
  font-size: 13px;
}
.footer-legal a {
  color: var(--text-dim);
}
.footer-legal a:hover {
  color: var(--primary-container);
}
.footer-legal span[aria-hidden] {
  color: var(--outline-variant);
}
