/* ============================================================
   RPG Network – Königliches Design passend zum Server-Logo
   Krone & Schrift in Gold, Wappen in Königsviolett, Burgmauern in Stein, Diamant-Akzente.
   Wird nach style.css/epic.css geladen und überschreibt nur Farben/Rahmen/Hintergrund.
   ============================================================ */
:root {
  --royal: #6d28d9;
  --royal-hi: #a855f7;
  --royal-lo: #3b0f73;
  --gold: #f5b82e;
  --gold-hi: #ffe08a;
  --gold-lo: #8a5a06;
  --stone: #2b2733;
  --stone-hi: #4a4458;
  --stone-lo: #15121b;
  --diamond: #5ee7f0;
  --bg: #120c1d;
  --panel: #241d30;
  --panel2: #2f2640;
  --bevel-hi: #5a4d70;
  --bevel-lo: #0d0914;
  --brand: var(--gold);
  --muted: #c4b8d9;
  --aqua: var(--diamond);
}

/* Himmel: Abenddämmerung in Violett und Gold wie der Logo-Hintergrund, funkelnde Sterne */
body { background: linear-gradient(180deg, #1a0b33 0, #3b1466 140px, #8a3c8f 250px, #d98a3a 320px, #1b1426 340px) fixed; }
.sky .layer.day { background: linear-gradient(180deg, #1a0b33, #4a1a7a 45%, #b0569a 75%, #f0a640) !important; opacity: 1 !important; }
.sky .layer.dusk, .sky .layer.night { opacity: 0 !important; }
.sky .layer.stars { opacity: .9 !important; }
.sky .clouds { opacity: .25 !important; filter: hue-rotate(250deg) saturate(1.4); }
.royal-stars { position: fixed; inset: 0 0 auto 0; height: 300px; pointer-events: none; z-index: -1; }
.royal-stars i { position: absolute; width: 3px; height: 3px; background: #fff7d6; box-shadow: 0 0 6px #ffd76a; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* Kopfzeile: Burgmauer mit goldener Kante */
.topbar {
  background: linear-gradient(180deg, rgba(36, 24, 52, .96), rgba(20, 13, 30, .96));
  border-bottom: 3px solid var(--gold-lo);
  box-shadow: 0 2px 0 var(--gold), 0 8px 24px rgba(109, 40, 217, .35);
}
.brand { font-weight: 800; letter-spacing: .03em; }
.brand img { image-rendering: auto; filter: drop-shadow(0 0 8px rgba(245, 184, 46, .55)); }
.brand b, .grad {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c97a10);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(2px 2px 0 #3a2203);
}
.nav a:hover { background: var(--royal) !important; box-shadow: inset 2px 2px 0 var(--royal-hi), inset -2px -2px 0 var(--royal-lo) !important; }
.nav a.active { outline-color: var(--gold) !important; background: var(--panel2) !important; }

/* Überschriften: goldene Prägeschrift */
h1, h2 { color: var(--gold-hi); text-shadow: 2px 2px 0 #3a2203, 0 0 18px rgba(245, 184, 46, .25); }
h3 { color: #e9d8ff; }
a { color: var(--gold); }

/* Tafeln: dunkler Burgstein mit Goldrahmen und violettem Schimmer */
.panel {
  background: linear-gradient(160deg, var(--panel2), var(--panel) 60%, #1c1626);
  border: 3px solid var(--stone-lo);
  box-shadow: inset 0 0 0 2px var(--gold-lo), inset 3px 3px 0 var(--bevel-hi), inset -3px -3px 0 var(--bevel-lo),
    0 0 0 1px rgba(245, 184, 46, .25), 6px 6px 0 rgba(0, 0, 0, .4), 0 0 30px rgba(109, 40, 217, .18);
}

/* Knöpfe: Königsviolett mit Goldkante, Diamant-Glanz beim Darüberfahren */
.btn {
  background: linear-gradient(180deg, var(--royal-hi), var(--royal) 55%, #4c1d95);
  border: 3px solid #1c0b33;
  box-shadow: inset 0 0 0 2px var(--gold), inset 3px 3px 0 #d8b4fe, inset -3px -3px 0 var(--royal-lo);
  text-shadow: 2px 2px 0 #1c0b33;
}
.btn:hover { filter: brightness(1.12) drop-shadow(0 0 10px rgba(168, 85, 247, .6)); }
.btn:active { box-shadow: inset 0 0 0 2px var(--gold-lo), inset -3px -3px 0 #d8b4fe, inset 3px 3px 0 var(--royal-lo); }
.btn.ghost { background: linear-gradient(180deg, var(--stone-hi), var(--stone)); box-shadow: inset 0 0 0 2px var(--gold-lo), inset 3px 3px 0 #6b6280, inset -3px -3px 0 var(--stone-lo); }
.btn.ok { background: linear-gradient(180deg, #34d399, #0f766e); box-shadow: inset 0 0 0 2px var(--gold), inset 3px 3px 0 #a7f3d0, inset -3px -3px 0 #064e3b; }

/* Produktkarten: Pergament-Grau → helles Burgstein mit Goldrand */
.product {
  background: linear-gradient(180deg, #efe7ff, #d9cdee);
  box-shadow: inset 0 0 0 2px var(--gold), inset 3px 3px 0 #fff, inset -3px -3px 0 #8f80aa, 6px 6px 0 rgba(0, 0, 0, .35), 0 0 22px rgba(168, 85, 247, .2);
}
.product:hover { box-shadow: inset 0 0 0 2px var(--gold-hi), inset 3px 3px 0 #fff, inset -3px -3px 0 #8f80aa, 0 0 26px rgba(245, 184, 46, .55); }

/* Startseite: Logo mit Goldschein, Untertitel-Band wie das Wappen-Banner */
.hero-logo { filter: drop-shadow(0 0 22px rgba(245, 184, 46, .45)) drop-shadow(0 12px 30px rgba(109, 40, 217, .5)); }
.hero .lead { background: linear-gradient(90deg, rgba(109, 40, 217, .35), rgba(109, 40, 217, .08)); border-left: 4px solid var(--gold); padding: 10px 14px; }
.ip-box { border-color: var(--gold) !important; box-shadow: 0 0 0 2px var(--gold-lo), 0 0 18px rgba(245, 184, 46, .3) !important; }

/* Fußzeile */
.footer { background: linear-gradient(180deg, #1b1426, #0d0914); border-top: 3px solid var(--gold-lo); box-shadow: 0 -2px 0 var(--gold); }

/* Lesbarkeit & Bewegung */
@media (prefers-reduced-motion: reduce) { .royal-stars i { animation: none; } }

/* Reiter (Kategorien): Stein → aktiv Königsviolett mit Gold */
.tab { background: linear-gradient(180deg, var(--stone-hi), var(--stone)); box-shadow: inset 0 0 0 2px var(--gold-lo), inset 3px 3px 0 #6b6280, inset -3px -3px 0 var(--stone-lo); }
.tab:hover { background: linear-gradient(180deg, #7c3aed, var(--royal)); box-shadow: inset 0 0 0 2px var(--gold-lo), inset 3px 3px 0 #c4b5fd, inset -3px -3px 0 var(--royal-lo); }
.tab.active { background: linear-gradient(180deg, var(--royal-hi), var(--royal)); box-shadow: inset 0 0 0 2px var(--gold), inset 3px 3px 0 #e9d5ff, inset -3px -3px 0 var(--royal-lo), 0 0 14px rgba(245, 184, 46, .45); }

/* Produktbild: Schatzkammer statt grauer Fläche */
.product .art { background: radial-gradient(circle at 50% 65%, var(--accent) 0, transparent 60%), linear-gradient(180deg, #2d1b4e, #160d26) !important;
  box-shadow: inset 0 0 0 2px var(--gold-lo), inset 0 0 22px rgba(0, 0, 0, .6) !important; }
.product h3 { color: #2e1065; text-shadow: none; }

/* ============================================================ Neue Startseiten-Abschnitte */
.section-head { margin-bottom: 18px; }
.section-head.row { display: flex; align-items: flex-end; gap: 12px; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  background: rgba(245, 184, 46, .1); border: 1px solid rgba(245, 184, 46, .35); padding: 3px 10px; margin-bottom: 8px; }
.countdown { display: inline-block; margin-top: 6px; padding: 6px 12px; background: rgba(109, 40, 217, .25); border: 2px solid var(--royal-hi);
  color: #f3e8ff; font-weight: 700; animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); } 50% { box-shadow: 0 0 22px rgba(168, 85, 247, .55); } }

/* Trailer */
.trailer-frame { position: relative; aspect-ratio: 16 / 9; max-width: 1100px; margin: 0 auto; border: 3px solid var(--gold-lo);
  box-shadow: 0 0 0 2px var(--gold), 0 20px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(109, 40, 217, .35); overflow: hidden; background: #000; }
.trailer-poster { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: brightness(.75); }
.trailer-poster:hover img { transform: scale(1.04); filter: brightness(.95); }
.trailer-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 110px; height: 110px; display: grid; place-items: center;
  font-size: 2.6rem; color: #fff; border-radius: 50%; background: radial-gradient(circle, var(--royal-hi), var(--royal));
  box-shadow: 0 0 0 4px var(--gold), 0 0 50px rgba(245, 184, 46, .6); animation: playPulse 2s ease-in-out infinite; }
@keyframes playPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
.trailer-cap { position: absolute; left: 18px; bottom: 14px; color: #fff; text-shadow: 2px 2px 0 #000; background: rgba(0, 0, 0, .45); padding: 6px 12px; }
.trailer-video { width: 100%; height: 100%; display: block; background: #000; }

/* Welten-Galerie */
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.world-card { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 3px solid #0d0914; cursor: zoom-in;
  box-shadow: inset 0 0 0 2px var(--wc), 0 10px 26px rgba(0, 0, 0, .45); animation: pageIn .5s ease-out both; animation-delay: var(--d); }
.world-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s; filter: saturate(1.05); }
.world-card:hover img { transform: scale(1.12); filter: saturate(1.25) brightness(1.08); }
.world-card figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; display: flex; flex-direction: column;
  background: linear-gradient(transparent, rgba(10, 6, 20, .92)); }
.world-card figcaption b { color: var(--wc); font-size: 1.15rem; text-shadow: 2px 2px 0 #000; }
.world-card figcaption span { color: #e9e3f5; font-size: .82rem; }
.world-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) 48%, transparent 66%); background-size: 250% 100%; }
.world-card:hover::after { opacity: 1; animation: glint 1.2s linear; }

/* Pässe */
.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.pass-card { position: relative; padding: 20px; background: linear-gradient(160deg, #2a1f3d, #170f24); border: 3px solid #0d0914;
  box-shadow: inset 0 0 0 2px var(--pc), 0 0 40px color-mix(in srgb, var(--pc) 30%, transparent), 6px 6px 0 rgba(0, 0, 0, .4); overflow: hidden; }
.pass-card::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%); pointer-events: none; }
.pass-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pass-top h3 { margin: 0; font-size: 1.5rem; color: var(--gold-hi); }
.pass-rows { display: grid; gap: 6px; margin-bottom: 12px; }
.pass-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #cbd5e1; }
.pass-label.premium { color: var(--gold); }
.pass-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.pt { position: relative; height: 54px; display: flex; align-items: flex-end; padding: 4px; font-size: .58rem; line-height: 1.15; color: #e5e7eb;
  overflow: hidden; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .12); transition: transform .2s, border-color .2s; }
.pt i { position: absolute; top: 3px; left: 5px; font-style: normal; font-weight: 800; color: rgba(255, 255, 255, .55); font-size: .7rem; }
.pt.prem { background: linear-gradient(180deg, rgba(168, 85, 247, .28), rgba(76, 29, 149, .25)); border-color: rgba(168, 85, 247, .5); }
.pt.prem.hl { background: linear-gradient(180deg, rgba(245, 184, 46, .4), rgba(168, 85, 247, .3)); border-color: var(--gold); box-shadow: 0 0 12px rgba(245, 184, 46, .5); }
.pt:hover { transform: translateY(-3px) scale(1.06); z-index: 1; border-color: var(--gold-hi); }

/* Neu im Shop */
.new-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 16px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--royal) transparent; }
.new-row .product { scroll-snap-align: start; }
.product .ribbon { position: absolute; top: 10px; left: -32px; transform: rotate(-35deg); padding: 3px 38px; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  color: #2e1065; background: linear-gradient(90deg, var(--gold-hi), var(--gold)); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); z-index: 2; }

/* Neuigkeiten */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.news-item { padding: 16px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 3px solid var(--stone-lo);
  box-shadow: inset 0 0 0 2px var(--gold-lo), 4px 4px 0 rgba(0, 0, 0, .35); transition: transform .2s; }
.news-item:hover { transform: translateY(-4px); }
.news-item h3 { margin: 6px 0; color: var(--gold-hi); }
.news-meta { display: flex; gap: 10px; align-items: center; }
.news-tag { font-size: .7rem; font-weight: 800; padding: 2px 8px; background: var(--royal); color: #fff; letter-spacing: .08em; }
.news-tag.neu { background: linear-gradient(90deg, var(--gold), #f97316); color: #2e1065; }
.news-tag.spawn { background: #0e7490; }
.news-tag.event { background: linear-gradient(90deg, #f43f5e, #f59e0b); }

@media (max-width: 700px) { .passes { grid-template-columns: 1fr; } .pass-strip { grid-template-columns: repeat(5, 1fr); } .pt { height: 48px; } }

/* Sterne: Positionen per CSS (CSP erlaubt keine Inline-Styles) */
.royal-stars i:nth-child(1) { left: 31%; top: 70px; animation-delay: 1.11s; }
.royal-stars i:nth-child(2) { left: 78%; top: 246px; animation-delay: 1.88s; }
.royal-stars i:nth-child(3) { left: 9%; top: 10px; animation-delay: 2.73s; }
.royal-stars i:nth-child(4) { left: 61%; top: 136px; animation-delay: 1.65s; }
.royal-stars i:nth-child(5) { left: 25%; top: 244px; animation-delay: 1.62s; }
.royal-stars i:nth-child(6) { left: 71%; top: 247px; animation-delay: 1.19s; }
.royal-stars i:nth-child(7) { left: 20%; top: 122px; animation-delay: 1.90s; }
.royal-stars i:nth-child(8) { left: 67%; top: 203px; animation-delay: 2.22s; }
.royal-stars i:nth-child(9) { left: 86%; top: 36px; animation-delay: 0.48s; }
.royal-stars i:nth-child(10) { left: 76%; top: 25px; animation-delay: 0.90s; }
.royal-stars i:nth-child(11) { left: 4%; top: 141px; animation-delay: 1.42s; }
.royal-stars i:nth-child(12) { left: 93%; top: 202px; animation-delay: 2.14s; }
.royal-stars i:nth-child(13) { left: 55%; top: 206px; animation-delay: 2.18s; }
.royal-stars i:nth-child(14) { left: 74%; top: 231px; animation-delay: 2.89s; }
.royal-stars i:nth-child(15) { left: 18%; top: 191px; animation-delay: 0.29s; }
.royal-stars i:nth-child(16) { left: 18%; top: 257px; animation-delay: 0.65s; }
.royal-stars i:nth-child(17) { left: 87%; top: 227px; animation-delay: 2.34s; }
.royal-stars i:nth-child(18) { left: 39%; top: 219px; animation-delay: 1.52s; }
.royal-stars i:nth-child(19) { left: 50%; top: 183px; animation-delay: 1.60s; }
.royal-stars i:nth-child(20) { left: 53%; top: 122px; animation-delay: 2.71s; }
.royal-stars i:nth-child(21) { left: 88%; top: 18px; animation-delay: 2.57s; }
.royal-stars i:nth-child(22) { left: 78%; top: 87px; animation-delay: 2.10s; }
.royal-stars i:nth-child(23) { left: 42%; top: 57px; animation-delay: 2.14s; }
.royal-stars i:nth-child(24) { left: 28%; top: 140px; animation-delay: 0.85s; }
.royal-stars i:nth-child(25) { left: 9%; top: 250px; animation-delay: 2.56s; }
.royal-stars i:nth-child(26) { left: 62%; top: 49px; animation-delay: 1.03s; }
.royal-stars i:nth-child(27) { left: 9%; top: 214px; animation-delay: 2.69s; }
.royal-stars i:nth-child(28) { left: 3%; top: 154px; animation-delay: 1.28s; }
.royal-stars i:nth-child(29) { left: 54%; top: 64px; animation-delay: 0.13s; }
.royal-stars i:nth-child(30) { left: 79%; top: 27px; animation-delay: 1.13s; }
.royal-stars i:nth-child(31) { left: 76%; top: 173px; animation-delay: 1.65s; }
.royal-stars i:nth-child(32) { left: 36%; top: 124px; animation-delay: 3.00s; }
.royal-stars i:nth-child(33) { left: 40%; top: 7px; animation-delay: 0.23s; }
.royal-stars i:nth-child(34) { left: 77%; top: 20px; animation-delay: 2.85s; }
.royal-stars i:nth-child(35) { left: 53%; top: 153px; animation-delay: 1.83s; }
.royal-stars i:nth-child(36) { left: 20%; top: 25px; animation-delay: 2.94s; }
.royal-stars i:nth-child(37) { left: 44%; top: 164px; animation-delay: 1.08s; }
.royal-stars i:nth-child(38) { left: 18%; top: 197px; animation-delay: 1.13s; }
.royal-stars i:nth-child(39) { left: 67%; top: 201px; animation-delay: 1.93s; }
.royal-stars i:nth-child(40) { left: 77%; top: 56px; animation-delay: 1.86s; }

/* Kostüm-Vitrine */
.costume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.costume { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, rgba(244, 114, 182, .10), rgba(124, 58, 237, .08)); border: 1px solid rgba(244, 114, 182, .22);
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; }
.costume canvas, .costume img, .costume svg { animation: costume-float 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); image-rendering: pixelated; }
.costume b { font-size: .86rem; text-align: center; }
.costume:hover { transform: translateY(-4px); border-color: #f472b6; box-shadow: 0 10px 30px rgba(244, 114, 182, .25); }
.costume.rare { border-color: rgba(250, 204, 21, .45); background: linear-gradient(160deg, rgba(250, 204, 21, .12), rgba(168, 85, 247, .12)); }
.costume-tier { position: absolute; top: 6px; right: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px;
  background: linear-gradient(90deg, #facc15, #a855f7); color: #1c1023; }
@keyframes costume-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .costume canvas, .costume img, .costume svg { animation: none; } }

/* Rechnungsangaben im Warenkorb */
fieldset.billing { border: 1px solid rgba(245, 184, 46, .35); border-radius: 14px; padding: 14px 16px 6px; margin: 14px 0 18px; background: rgba(28, 16, 51, .35); }
fieldset.billing legend { padding: 0 8px; font-weight: 800; color: var(--gold, #f5b82e); }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.billing-grid .field.wide { grid-column: 1 / -1; }
.billing-grid input, .billing-grid select { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(10, 6, 20, .55); color: inherit; font: inherit; }
.billing-grid input:focus, .billing-grid select:focus { outline: 2px solid #f5b82e; outline-offset: 1px; }
.billing-grid .invalid, .billing .invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239, 68, 68, .35); }
.billing .check.parent { background: rgba(250, 204, 21, .08); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 640px) { .billing-grid { grid-template-columns: 1fr; } }

/* Geschenk */
fieldset.gift { border: 1px solid rgba(244, 114, 182, .35); border-radius: 14px; padding: 10px 16px 6px; margin: 10px 0 14px; background: rgba(244, 114, 182, .06); }
fieldset.gift.on { border-color: #f472b6; box-shadow: 0 0 0 1px rgba(244, 114, 182, .25), 0 8px 26px rgba(244, 114, 182, .15); }
.gift-toggle strong { color: #f9a8d4; }
.gift-body input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(10, 6, 20, .55); color: inherit; font: inherit; }
.gift-body input.valid { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, .25); }
.gift-body input.invalid { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, .3); }
.gift-status { min-height: 1.2em; margin: -6px 0 10px; font-size: .88rem; }
.gift-status.ok { color: #4ade80; }
.gift-status.bad { color: #f87171; }
.gift-status.wait { color: var(--muted, #9ca3af); }
.owned-gift { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gift-btn { background: linear-gradient(90deg, #ec4899, #a855f7) !important; color: #fff !important; }

/* ---------- Startseite: Kapitelstruktur ---------- */
.chapter-nav { position: sticky; top: 64px; z-index: 30; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px auto 6px;
  padding: 8px; border-radius: 14px; background: rgba(20, 10, 36, .82); backdrop-filter: blur(8px); border: 1px solid rgba(245, 184, 46, .3); max-width: 760px; }
.chapter-nav button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: inherit; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.chapter-nav button b { color: #f5b82e; font-size: .8rem; }
.chapter-nav button:hover, .chapter-nav button.on { background: rgba(245, 184, 46, .12); border-color: rgba(245, 184, 46, .45); }
.chapter { scroll-margin-top: 130px; padding-top: 18px; }
.chapter-head { display: flex; gap: 18px; align-items: center; margin: 46px 0 6px; padding-bottom: 14px; border-bottom: 2px solid rgba(245, 184, 46, .35); }
.chapter-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chapter-head p { margin: 4px 0 0; }
.chapter-num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px #f5b82e; opacity: .85; }
.quickstart { display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 18px; align-items: stretch; }
.qs-steps h2 { margin-top: 0; }
.qs-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.qs-step { display: flex; gap: 12px; align-items: flex-start; }
.qs-step p { margin: 2px 0 6px; }
.qs-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1c1033;
  background: linear-gradient(135deg, #facc15, #f59e0b); box-shadow: 0 0 0 3px rgba(245, 184, 46, .25); }
.ip-box.small { padding: 4px 6px 4px 10px; }
.qs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qs-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 10px; border-radius: 14px; text-align: center;
  text-decoration: none; color: inherit; background: linear-gradient(160deg, rgba(168, 85, 247, .14), rgba(28, 16, 51, .5)); border: 1px solid rgba(168, 85, 247, .3);
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.qs-tile:hover { transform: translateY(-3px); border-color: #f5b82e; box-shadow: 0 10px 28px rgba(245, 184, 46, .18); }
.more-btn { display: block; margin: 14px auto 0; }
@media (max-width: 900px) { .quickstart { grid-template-columns: 1fr; } .qs-tiles { grid-template-columns: repeat(2, 1fr); } .chapter-nav { top: 56px; } }

.ticker[hidden] { display: none !important; }

/* Stripe */
.stripe-info { border: 1px solid rgba(99, 91, 255, .45); background: rgba(99, 91, 255, .08); border-radius: 12px; padding: 4px 14px 8px; margin: 10px 0; }
.spinner { width: 42px; height: 42px; margin: 10px auto; border-radius: 50%; border: 4px solid rgba(245, 184, 46, .25); border-top-color: #f5b82e; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
