/* stargames-app.de — unabhängiger Ratgeber. Rubin & Gold. */
:root {
  --bg: #14060b;
  --bg-2: #240b15;
  --bg-3: #331120;
  --gold: #d4af37;
  --gold-hi: #f3dc8a;
  --gold-lo: #9a7a1f;
  --ruby: #e63946;
  --ink: #f6ecdc;
  --muted: #cdb8ad;
  --line: rgba(212, 175, 55, 0.24);
  --line-soft: rgba(212, 175, 55, 0.12);
  --ok: #7fd6a0;
  --warn: #f2b84b;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(230, 57, 70, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
h3 { font-size: 1.1875rem; letter-spacing: 0.02em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
strong { color: #fff; font-weight: 600; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.measure { max-width: 68ch; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #1a0a0f; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.foil {
  background: linear-gradient(175deg, #fff3c4 0%, var(--gold-hi) 28%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Statushinweis ganz oben */
.status-bar { background: #0d0407; border-bottom: 1px solid var(--line-soft); font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.status-bar .wrap { padding-block: 0.55rem; }
.status-bar strong { color: var(--gold-hi); }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(20, 6, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--body); font-weight: 500; font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.02em; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 0.5rem 0.7rem; font: 600 0.875rem var(--body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 10px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b8922a); color: #1d0a10; box-shadow: 0 1px 0 #fff6cf inset, 0 8px 24px -10px rgba(212, 175, 55, 0.7); }
.btn-gold:hover { color: #1d0a10; box-shadow: 0 1px 0 #fff6cf inset, 0 12px 30px -10px rgba(212, 175, 55, 0.95); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(36, 11, 21, 0.6); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.ad-note { font-size: 0.8125rem; color: var(--muted); margin: 0.7rem 0 0; }

/* Hero */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(20, 6, 11, 0.93) 38%, rgba(20, 6, 11, 0.45) 72%, rgba(20, 6, 11, 0.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero .wrap { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy { max-width: 40rem; }
.hero .lead { font-size: 1.1875rem; color: var(--ink); max-width: 36rem; }
.page-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(36, 11, 21, 0.85), transparent); }
.page-hero .wrap { padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(1.8rem, 4vw, 2.8rem); }
.page-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.875rem); max-width: 22ch; }
.page-hero .lead { max-width: 62ch; font-size: 1.125rem; }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.stand { font: 500 0.8125rem var(--mono); color: var(--muted); }

/* Faktenleiste */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20, 6, 11, 0.78); backdrop-filter: blur(6px); }
.facts div { padding: 1rem 1.2rem; border-left: 1px solid var(--line-soft); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font: 600 0.9375rem/1.35 var(--mono); color: var(--gold-hi); }

/* Abschnitte */
.section { padding-block: clamp(2.8rem, 6vw, 4.8rem); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-alt { background: linear-gradient(180deg, rgba(36, 11, 21, 0.75), rgba(36, 11, 21, 0.35)); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Ratgeber-Übersicht */
.guides { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; }
.guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; color: var(--ink); overflow: hidden; }
.guide:hover { border-color: var(--gold); color: var(--ink); }
.guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-body { padding: 1.2rem 1.35rem 1.4rem; }
.guide-body p { color: var(--muted); margin-bottom: 0.8rem; font-size: 0.9688rem; }
.guide-more { font-weight: 700; color: var(--gold-hi); font-size: 0.9375rem; }
.guide-stack { display: grid; gap: 1.25rem; }
.guide-row { flex-direction: row; align-items: stretch; }
.guide-row img { width: 38%; aspect-ratio: auto; }

/* Spiele-Galerie: Bogenrahmen */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.game { margin: 0; }
.game-frame { border-radius: 999px 999px var(--radius) var(--radius); padding: 7px; background: linear-gradient(170deg, var(--gold-hi), var(--gold-lo) 45%, #5d4712 70%, var(--gold)); }
.game-frame svg { width: 100%; border-radius: 999px 999px 9px 9px; background: radial-gradient(circle at 50% 38%, #5a1426, #2a0a15 62%, #14060b); aspect-ratio: 1 / 1.08; }
.game h3 { margin: 1rem 0 0.25rem; }
.game p { font-size: 0.9375rem; color: var(--muted); margin: 0 0 0.4rem; }
.game .spec { font: 500 0.8125rem var(--mono); color: var(--gold-hi); }

/* Rechner */
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.calc form { padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.calc .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field select { width: 100%; padding: 0.65rem 0.75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 1rem var(--mono); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }
.field small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.3rem; line-height: 1.4; }
.calc-out { padding: 1.5rem; background: var(--bg); border-left: 1px solid var(--line); }
.calc-out h3 { margin-bottom: 1rem; }
.out-list { margin: 0; }
.out-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line-soft); }
.out-list dt { color: var(--muted); font-size: 0.9375rem; }
.out-list dd { margin: 0; font: 600 1rem var(--mono); color: var(--gold-hi); text-align: right; white-space: nowrap; }
.verdict { margin: 1.1rem 0 0; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid var(--line); font-size: 0.9375rem; background: var(--bg-2); }
.verdict[data-tone="warn"] { border-color: var(--warn); }
.verdict[data-tone="bad"] { border-color: var(--ruby); }
.verdict[data-tone="ok"] { border-color: var(--ok); }
.fineprint { font-size: 0.8125rem; color: var(--muted); margin-top: 1rem; }

/* Gerätecheck */
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px dashed var(--line-soft); font-size: 0.9375rem; margin: 0; }
.check-list .mark { font: 700 0.8125rem var(--mono); min-width: 3.2rem; }
.check-list .is-ok .mark { color: var(--ok); }
.check-list .is-warn .mark { color: var(--warn); }
.check-list .is-bad .mark { color: var(--ruby); }
.check-list .val { margin-left: auto; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); text-align: right; }

/* Zahlungs-Logos */
.pay-row { display: flex; flex-wrap: wrap; gap: 0.9rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pay-row li { margin: 0; }
.pay-row svg { width: 132px; height: 56px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }

/* Tabellen */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 640px; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font: 700 0.875rem var(--body); color: var(--gold-hi); background: var(--bg-2); }
tbody th { font-weight: 600; color: #fff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Schritte (echte Abfolgen) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.2rem; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); font: 700 0.9375rem var(--display); color: var(--gold-hi); background: var(--bg-2); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: 0.2rem; width: 1px; background: var(--line); }

/* Zweispalter, Kästen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-2); padding: 1.1rem 1.3rem; margin: 0 0 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-ruby { border-left-color: var(--ruby); }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.rule-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.rule-list b { display: block; font: 600 1rem var(--mono); color: var(--gold-hi); }
.rule-list span { color: var(--muted); font-size: 0.9375rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font: 400 1.5rem var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 68ch; }

/* Rechtstexte */
.prose h2 { font-size: 1.375rem; margin-top: 2.2rem; }
.prose { max-width: 70ch; }
.placeholder { background: rgba(230, 57, 70, 0.18); border: 1px dashed var(--ruby); border-radius: 6px; padding: 0.1rem 0.4rem; font-family: var(--mono); font-size: 0.875rem; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: #0d0407; padding-block: 2.8rem 6.5rem; font-size: 0.9063rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.site-footer h2 { font: 700 0.9375rem var(--body); color: var(--ink); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-hi); }
.age { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ruby); color: #fff; font: 700 0.875rem var(--mono); margin-right: 0.8rem; flex: none; }
.footer-legal { display: flex; align-items: flex-start; border-top: 1px solid var(--line-soft); padding-top: 1.5rem; }
.footer-legal p { margin-bottom: 0.6rem; max-width: 90ch; }

/* Feste Leiste mobil */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.6rem 1.25rem 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.8rem 0.6rem; }
  .header-cta { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .guides, .calc, .split, .rule-list { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .games { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-art::after { background: linear-gradient(180deg, rgba(20, 6, 11, 0.78), rgba(20, 6, 11, 0.94) 60%, var(--bg)); }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)); background: rgba(13, 4, 7, 0.96); border-top: 1px solid var(--gold); font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
}
@media (max-width: 520px) {
  .calc form { grid-template-columns: 1fr; }
  .guide-row { flex-direction: column; }
  .guide-row img { width: 100%; aspect-ratio: 16 / 9; }
  .out-list dd { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  .btn { transition: none; }
}

/* === V5 MULTI-DEVICE & INTERACTIVE UPGRADE === */
:root {
  --sg-accent: #ffd166;
  --sg-accent2: #ef476f;
  --sg-bg-card: #1b0d1e;
  --sg-bg-dark: #110714;
}
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
}
body {
  padding-bottom: 76px !important;
}
/* Hide any legacy duplicate sticky bars */
.sticky-bar, .sticky-cta, div.sticky, .aff-bar, .top-notice, .gov-bar, .disc-bar {
  display: none !important;
}

/* 1. Responsive Sticky Bonus Ribbon (#sgPrizeRibbon) */
.sg4-prize-ribbon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: linear-gradient(90deg, var(--sg-bg-dark) 0%, var(--sg-bg-card) 55%, var(--sg-bg-dark) 100%);
  border-top: 2px solid var(--sg-accent);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.68);
  padding: 8px 16px;
  transform: translateY(115%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  font-family: inherit;
}
.sg4-prize-ribbon.is-visible {
  transform: translateY(0);
}
.sg4-prize-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.sg4-prize-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.sg4-prize-gift {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 17px;
}
.sg4-prize-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.sg4-prize-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg4-prize-title strong {
  color: var(--sg-accent);
}
.sg4-prize-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.sg4-prize-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.09);
  border: 1px dashed var(--sg-accent);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sg-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.sg4-prize-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sg4-prize-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sg-accent) 0%, var(--sg-accent2) 100%);
  color: #080c14 !important;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.18s ease;
}
.sg4-prize-cta:hover {
  transform: translateY(-1px) scale(1.02);
}
.sg4-prize-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

/* 2. Floating Mid-Scroll Wheel Teaser Pill (#sgWheelFloat) */
.sg4-wheel-float {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 9991;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--sg-bg-card), var(--sg-bg-dark));
  border: 2px solid var(--sg-accent);
  border-radius: 999px;
  padding: 7px 14px 7px 9px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0,0,0,0.6);
  cursor: pointer;
  transform: translateY(130%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sg4-wheel-float.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.sg4-wheel-float-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(var(--sg-accent) 0 45deg, var(--sg-accent2) 45deg 90deg, #fff 90deg 135deg, var(--sg-accent) 135deg 180deg, var(--sg-accent2) 180deg 225deg, #fff 225deg 270deg, var(--sg-accent) 270deg 315deg, var(--sg-accent2) 315deg 360deg);
  animation: v4SpinSlow 5s linear infinite;
  border: 2px solid #fff;
  flex-shrink: 0;
}
@keyframes v4SpinSlow {
  to { transform: rotate(360deg); }
}

/* 3. Interactive Slot Catalog + Provider Filter + Demo Trigger */
.sg5-catalog-wrap {
  margin: 24px 0 10px;
}
.sg5-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sg5-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  scrollbar-width: none;
}
.sg5-filter-tabs::-webkit-scrollbar { display: none; }
.sg5-filter-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.84);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.sg5-filter-btn.is-active, .sg5-filter-btn:hover {
  background: var(--sg-accent);
  color: #080c14;
  border-color: var(--sg-accent);
}
.sg4-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sg4-slot-card {
  background: var(--sg-bg-card);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.sg4-slot-card:hover {
  transform: translateY(-4px);
  border-color: var(--sg-accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.48);
}
.sg4-slot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #070a12;
  overflow: hidden;
}
.sg4-slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.sg4-slot-card:hover .sg4-slot-media img {
  transform: scale(1.06);
}
.sg4-slot-rtp {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(8, 12, 20, 0.86);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--sg-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.sg5-slot-fav {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 2;
}
.sg5-slot-fav.is-fav {
  color: #ff4d6d;
  border-color: #ff4d6d;
}
.sg4-slot-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sg4-slot-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.sg4-slot-prov {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.sg5-slot-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.sg5-btn-demo {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.sg5-btn-demo:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--sg-accent);
}
.sg5-btn-real {
  padding: 7px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent2));
  color: #080c14 !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 4. Interactive Bonus Spin Wheel Section (#bonus-wheel) */
.sg4-wheel-sec {
  margin: 36px 0;
  padding: 24px 0;
}
.sg4-wheel-box {
  max-width: 1140px;
  margin: 0 auto;
  background: radial-gradient(circle at 25% 50%, rgba(255,255,255,0.07), transparent 65%), linear-gradient(135deg, var(--sg-bg-card) 0%, var(--sg-bg-dark) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.sg4-wheel-stage {
  position: relative;
  width: 290px;
  height: 290px;
  margin: 0 auto;
}
.sg4-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--sg-accent2);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.65));
  z-index: 4;
}
.sg4-wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.1), 0 12px 32px rgba(0,0,0,0.65);
  transition: transform 4.4s cubic-bezier(0.14, 0.82, 0.18, 1);
}
.sg4-wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-accent) 0%, var(--sg-accent2) 100%);
  color: #080c14;
  font-weight: 900;
  font-size: 12px;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  cursor: pointer;
  z-index: 5;
}
.sg4-wheel-copy h2 {
  font-size: clamp(21px, 2.6vw, 30px);
  color: #fff !important;
  margin: 0 0 10px;
  line-height: 1.2;
}
.sg4-wheel-copy p {
  color: rgba(255,255,255,0.82) !important;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.sg4-wheel-spin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sg-accent) 0%, var(--sg-accent2) 100%);
  color: #080c14;
  font-weight: 900;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.sg4-wheel-result {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--sg-accent);
  color: #fff;
}
.sg4-wheel-result.is-shown {
  display: block;
}
.sg4-wheel-result-prize {
  font-size: 18px;
  font-weight: 900;
  color: var(--sg-accent);
  margin: 4px 0 12px;
}

/* 5. Playable Free Demo Modal (<dialog id="sgDemoModal">) */
.sg5-demo-modal {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background: var(--sg-bg-dark);
  color: #fff;
  width: min(940px, 95vw);
  max-height: 92vh;
  padding: 0;
  box-shadow: 0 24px 70px rgba(0,0,0,0.85);
  overflow: hidden;
}
.sg5-demo-modal::backdrop {
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(6px);
}
.sg5-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sg-bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.sg5-demo-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sg5-demo-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}
.sg5-demo-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}
.sg5-demo-mode-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.sg5-demo-mode-btn.is-active {
  background: var(--sg-accent);
  color: #080c14;
}
.sg5-demo-stage {
  position: relative;
  width: 100%;
  height: min(500px, 66vh);
  background: #060911;
}
.sg5-demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.sg5-sim-stage {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), transparent 70%), #070b14;
}
.sg5-sim-stage.is-active {
  display: flex;
}
.sg5-sim-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: min(520px, 92%);
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--sg-accent);
  border-radius: 16px;
  padding: 18px 12px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.7);
}
.sg5-sim-reel {
  height: 86px;
  background: rgba(8,12,20,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 36px;
  user-select: none;
}
.sg5-sim-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile & Tablet Multi-Device Rules */
@media (max-width: 960px) {
  .sg4-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sg4-wheel-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 16px;
    gap: 20px;
  }
}
@media (max-width: 680px) {
  .sg4-prize-ribbon {
    padding: 7px 10px;
  }
  .sg4-prize-gift {
    display: none;
  }
  .sg4-prize-title {
    font-size: 12.5px;
  }
  .sg4-prize-meta {
    font-size: 10.5px;
    gap: 5px;
  }
  .sg4-prize-cta {
    padding: 8px 12px;
    font-size: 12px;
  }
  .sg4-prize-close {
    padding: 2px 4px;
    font-size: 18px;
  }
  .sg4-wheel-float {
    right: 10px;
    bottom: 68px;
    padding: 6px 12px 6px 8px;
    font-size: 11.5px;
  }
  .sg4-wheel-stage {
    width: 245px;
    height: 245px;
  }
  .sg4-slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sg4-slot-body {
    padding: 10px;
  }
  .sg4-slot-title {
    font-size: 13.5px;
  }
  .sg5-slot-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* Mobile 390px Zero-Overflow & Control Fit Guard */
html, body { max-width: 100% !important; overflow-x: hidden !important; }
main, section, header, footer, div[class*="grid"], div[class*="wrap"] { min-width: 0; }
.tr-tablewrap, .dz-tablewrap { width: 100%; max-width: calc(100vw - 32px); overflow-x: auto; }
@media (max-width: 640px) {
  .hcb-tag, .ins-tag, .vpz-tag, .wrb-tag, [id$="-pwa-badge"] {
    white-space: normal !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
  .bb-calc__in, .bb-calc__out {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  [id$="-wheel-float"] {
    right: 10px !important;
    left: auto !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
  }
  [id$="-wheel-float"][class*="show"] {
    transform: translateY(0) !important;
  }
  .pc4-prize-ribbon, .sg4-prize-ribbon, .mn4-prize-ribbon,
  .pc4-prize-inner, .sg4-prize-inner, .mn4-prize-inner {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 10px !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow: hidden !important;
  }
  .pc4-prize-text, .sg4-prize-text, .mn4-prize-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
  }
  .pc4-prize-close, .sg4-prize-close, .mn4-prize-close {
    flex: 0 0 auto !important;
    position: static !important;
    margin-left: auto !important;
  }
  header .container, header .nav, .header__inner, .site-header__inner {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 10px !important;
    gap: 6px !important;
  }
  .nav__cta, header .btn-gold, header .btn--primary {
    padding: 7px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .nav__burger {
    flex: 0 0 auto !important;
    margin-left: 2px !important;
  }
}
