/* ============ Hausvorteil · site styles ============ */
:root {
  --bg: #0B1020;
  --bg2: #10162C;
  --bg3: #161E3A;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #F4F1EA;
  --muted: #A3AAC4;
  --gold: #E8B53F;
  --gold-2: #F6D27A;
  --green: #19C37D;
  --red: #E5484D;
  --felt: #0F5B3E;
  --felt-2: #0B4630;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  --glow: rgba(232, 181, 63, .22);
  --radius: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F1E8;
  --bg2: #EDE7DA;
  --bg3: #E4DCCB;
  --surface: rgba(11, 16, 32, .04);
  --surface-2: rgba(11, 16, 32, .07);
  --line: rgba(11, 16, 32, .11);
  --text: #0B1020;
  --muted: #4B5272;
  --gold: #B07D0E;
  --gold-2: #D29B1F;
  --green: #0C9A5E;
  --red: #CF2F35;
  --felt: #127049;
  --felt-2: #0E5A3A;
  --shadow: 0 30px 70px -25px rgba(30, 25, 10, .35);
  --glow: rgba(176, 125, 14, .18);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #0B1020; }

/* background atmosphere */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.bg-fx .orb.a { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(25, 195, 125, .35), transparent 65%); top: -12vw; right: -10vw; }
.bg-fx .orb.b { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(232, 181, 63, .28), transparent 65%); bottom: -10vw; left: -12vw; animation-delay: -8s; }
.bg-fx .orb.c { width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(229, 72, 77, .18), transparent 65%); top: 40%; left: 40%; animation-delay: -14s; }
:root[data-theme="light"] .bg-fx .orb { opacity: .35; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .6;
}
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.1); } }

.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  transform: translate(-50%, -50%); left: -600px; top: -600px; transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 24px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .3s, background .5s;
}
.nav.scrolled { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand b { color: var(--gold); font-weight: 800; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-ctrls { display: flex; gap: 6px; }
.ctrl {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  transition: transform .2s, background .2s;
}
.ctrl:hover { transform: translateY(-1px); background: var(--surface); }
.ctrl svg { width: 18px; height: 18px; }
.lang-btn .flag { display: inline-flex; gap: 4px; align-items: center; }
.lang-btn .on { color: var(--gold); }
.lang-btn .off { opacity: .45; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .25s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav-ctrls { margin-left: auto; }
}

/* ============ HERO ============ */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 110px 0 40px; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 900; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(42px, 6.2vw, 92px); margin: 18px 0 22px;
}
.hero h1 .l2 {
  display: block;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 40%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }
.hero p.sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--gold); color: #0B1020; box-shadow: 0 12px 30px -10px var(--gold); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 20px; height: 20px; }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: center; }
.hero-stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.hero-stage .halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(25, 195, 125, .25), transparent 65%); filter: blur(30px); z-index: -1; }
.hero-hud {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg2) 80%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap;
}
.hero-hud .res { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.res-num { min-width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; background: #1A2038; font-size: 15px; transition: transform .3s; }
.res-num.pop { animation: pop .5s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.n-red { background: #C8102E !important; color: #fff !important; }
.n-black { background: #151A2C !important; color: #fff !important; }
.n-green { background: #12A866 !important; color: #fff !important; }
.n-yellow { background: #F2C200 !important; color: #111 !important; }
.scroll-cue { position: absolute; left: 0; bottom: 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; text-align: left; gap: 8px; }
  .hero-stage { max-width: 480px; order: -1; margin-top: -10px; }
  .scroll-cue { display: none; }
}

/* ============ TICKER ============ */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 48px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
section.block { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* tilt */
.tilt { transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.tilt .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 45%); opacity: 0; transition: opacity .3s; }
.tilt:hover .shine { opacity: 1; }

/* ============ VIDEOS ============ */
.vid-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.vid-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.long-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 56px; perspective: 1200px; }
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg2); border: 1px solid var(--line); display: block; }
.vcard .thumb { position: relative; overflow: hidden; }
.vcard .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.vcard:hover .thumb img { transform: scale(1.06); }
.vcard .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%; transform: translate(-50%, -50%) scale(.8) translateZ(40px);
  background: var(--gold); color: #0B1020; display: grid; place-items: center; opacity: 0; transition: .35s; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.vcard:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vcard .play svg { width: 26px; height: 26px; margin-left: 4px; }
.vcard .meta { padding: 20px 22px 24px; transform: translateZ(30px); }
.vcard h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 8px; }
.vcard p { color: var(--muted); font-size: 15px; }
.vcard .tag { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: rgba(11, 16, 32, .75); color: #F4F1EA; backdrop-filter: blur(6px); }
.shorts-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; perspective: 1000px; }
.scard { position: relative; border-radius: 18px; overflow: hidden; display: block; background: var(--bg2); border: 1px solid var(--line); }
.scard img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .8s; }
.scard:hover img { transform: scale(1.06); }
.scard .cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; font-size: 14px; font-weight: 700; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(5, 8, 18, .92)); }
.videos-foot { margin-top: 40px; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .long-grid { grid-template-columns: 1fr; }
  .shorts-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .scard { scroll-snap-align: start; }
}

/* ============ ARCADE ============ */
.arcade-shell { padding: 18px; border-radius: 30px; background: linear-gradient(160deg, var(--bg2), var(--bg)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.arcade-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 6px 6px 18px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.tab { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .25s; }
.tab.active { color: #0B1020; }
.tab-pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--gold); transition: left .35s cubic-bezier(.2, .9, .3, 1.2), width .35s; z-index: 0; }
.wallet { display: flex; align-items: center; gap: 12px; }
.balance { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.balance .coin { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(var(--gold) 0 12.5%, #fff 0 25%, var(--gold) 0 37.5%, #fff 0 50%, var(--gold) 0 62.5%, #fff 0 75%, var(--gold) 0 87.5%, #fff 0); position: relative; }
.balance .coin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold); }
.balance small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.balance strong { font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.balance.bump strong { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); color: var(--green); } }
.balance.dip strong { animation: dip .5s; }
@keyframes dip { 40% { transform: scale(.92); color: var(--red); } }
.novalue { font-size: 12px; color: var(--muted); padding: 0 6px 14px; }

.game { display: none; }
.game.active { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.table-area { border-radius: 24px; padding: 18px; background: radial-gradient(ellipse at 50% 0%, var(--felt), var(--felt-2) 75%); border: 1px solid rgba(255, 255, 255, .08); color: #F4F1EA; position: relative; overflow: hidden; box-shadow: inset 0 0 80px rgba(0, 0, 0, .35); }
.table-area::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 4px 4px; pointer-events: none; }
.wheel-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: center; position: relative; }
.wheel-box { position: relative; aspect-ratio: 1; width: 100%; }
.wheel-box canvas { width: 100% !important; height: 100% !important; display: block; }
.wheel-box .res-num { position: absolute; right: 4px; top: 4px; width: 48px; height: 48px; font-size: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.side-panel { display: flex; flex-direction: column; gap: 14px; }
.panel { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; position: relative;
  background: var(--c, #2A3150);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .0), 0 4px 0 rgba(0, 0, 0, .35), 0 8px 16px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.chip::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .7); }
.chip::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.chip span { position: relative; z-index: 1; }
.chip:hover { transform: translateY(-3px); }
.chip.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), 0 10px 20px rgba(0, 0, 0, .3); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat small { display: block; font-size: 11px; color: var(--muted); }
.stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.stat b.pos { color: var(--green); } .stat b.neg { color: var(--red); }
.info { font-size: 13px; color: var(--muted); line-height: 1.5; }
.msg { min-height: 26px; font-weight: 700; text-align: center; margin-top: 12px; transition: color .3s; position: relative; }
.msg.win { color: var(--gold-2); }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; position: relative; }
.btn-felt { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #F4F1EA; }
.btn-felt:hover { background: rgba(255, 255, 255, .18); }
.last-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.last-nums .res-num { box-shadow: 0 0 0 1px rgba(255,255,255,.18); width: 30px; height: 30px; min-width: 30px; font-size: 12px; }

/* roulette board */
.board { display: grid; grid-template-columns: 44px repeat(12, 1fr) 44px; grid-template-rows: repeat(3, 40px) 38px 38px; gap: 3px; user-select: none; position: relative; }
.cell {
  position: relative; display: grid; place-items: center; font-weight: 800; font-size: 14px; border-radius: 6px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background .15s, transform .15s, box-shadow .2s;
}
.cell:hover { background: rgba(255, 255, 255, .16); }
.cell.red { background: #B3122B; } .cell.black { background: #141A2A; } .cell.green { background: #109A5E; } .cell.yellow { background: #E9B800; color: #111; }
.cell.red:hover, .cell.black:hover, .cell.green:hover, .cell.yellow:hover { filter: brightness(1.25); }
.cell.hit { box-shadow: 0 0 0 3px var(--gold-2), 0 0 24px var(--gold-2); z-index: 2; animation: pulse 1s ease 2; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.cell .stake {
  position: absolute; right: -6px; top: -8px; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px; display: grid; place-items: center; z-index: 3;
  background: var(--gold); color: #0B1020; font-size: 11px; font-weight: 900; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); border: 2px dashed rgba(255, 255, 255, .8);
  animation: drop .3s cubic-bezier(.2, .9, .3, 1.5);
}
@keyframes drop { from { transform: translateY(-14px) scale(1.4); opacity: 0; } }
.cell.zero { grid-row: 1 / 4; grid-column: 1; }
.cell.sm { font-size: 12px; font-weight: 700; }

/* boule board */
.bboard { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; user-select: none; }
.bboard .cell { height: 52px; font-size: 18px; }
.bboard .wide { grid-column: span 3; height: 42px; font-size: 13px; }

/* blackjack */
.bj-table { display: flex; flex-direction: column; gap: 14px; min-height: 420px; position: relative; }
.bj-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bj-row h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; display: flex; gap: 10px; align-items: center; }
.bj-row h5 .tot { background: rgba(0, 0, 0, .35); padding: 2px 10px; border-radius: 999px; font-size: 13px; letter-spacing: 0; }
.hand { display: flex; justify-content: center; min-height: 130px; perspective: 900px; }
.card {
  width: 88px; height: 124px; margin: 0 -14px; position: relative; transform-style: preserve-3d;
  animation: deal .55s cubic-bezier(.2, .8, .3, 1.1) both; transition: transform .6s;
}
.card .back { display: none; }
.card.down .back { display: grid; }
.card.down .face { display: none; }
.card.flipping { animation: flipc .5s ease-in-out; }
@keyframes flipc { 50% { transform: rotateY(90deg) scale(1.05); } }
.card .face, .card .back {
  position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}
.card .face { background: #FBFAF6; color: #141A2A; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; }
.card .face.r { color: #C8102E; }
.card .face .c { font-size: 34px; text-align: center; line-height: 1; }
.card .face .tl { font-size: 18px; line-height: 1; }
.card .face .br { font-size: 18px; line-height: 1; transform: rotate(180deg); }
.card .back { background: repeating-linear-gradient(45deg, #0B1020 0 6px, #1A2038 6px 12px); border: 4px solid #F4F1EA; place-items: center; }
.card .back::after { content: "H"; font-weight: 900; color: var(--gold); font-size: 30px; }
@keyframes deal { from { transform: translate(260px, -220px) rotate(-30deg); opacity: 0; } }
.bj-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; position: relative; }
.bet-adj { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 4px; }
.bet-adj button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-weight: 900; font-size: 18px; }
.bet-adj b { min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.bj-tip { font-size: 13px; opacity: .85; text-align: center; min-height: 20px; position: relative; }

@media (max-width: 1000px) {
  .game.active { grid-template-columns: 1fr; }
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel-box { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wheel-box { max-width: 230px; }
}
@media (max-width: 640px) {
  .arcade-shell { padding: 10px; border-radius: 24px; }
  .table-area { padding: 12px; }
  .board { grid-template-columns: 30px repeat(12, 1fr) 30px; grid-template-rows: repeat(3, 34px) 34px 34px; gap: 2px; }
  .cell { font-size: 11px; border-radius: 4px; }
  .cell.sm { font-size: 9px; }
  .cell .stake { min-width: 20px; height: 20px; font-size: 9px; right: -4px; top: -6px; }
  .card { width: 70px; height: 100px; margin: 0 -12px; }
  .card .face .c { font-size: 26px; }
  .chip { width: 44px; height: 44px; font-size: 12px; }
  .tab { padding: 9px 14px; }
}

/* ============ LIBRARY (flip cards) ============ */
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1400px; }
.flip { height: 340px; cursor: pointer; position: relative; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip .side { position: absolute; inset: 0; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 24px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.flip .front { background: linear-gradient(160deg, var(--bg3), var(--bg2)); }
.flip .front .art { position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; opacity: .9; transition: transform 1.2s; }
.flip:hover .front .art { transform: rotate(40deg) scale(1.05); }
.flip .front h3 { margin-top: auto; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.flip .front .orig { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.flip .front p { font-size: 14px; color: var(--muted); margin-top: 10px; }
.flip .front .hint { position: absolute; top: 20px; left: 24px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.flip .back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--felt), var(--felt-2)); color: #F4F1EA; }
.flip .back p { font-size: 15px; line-height: 1.55; }
.flip .back .edge { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; }
.flip .back .edge small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.flip .back .edge b { font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: #F6D27A; }
.flip .back h3 { font-size: 18px; margin-bottom: 10px; }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lib-grid { grid-template-columns: 1fr; } .flip { height: 300px; } }

/* ============ EDGE CHART ============ */
.edge-chart { padding: clamp(18px, 3vw, 36px); }
.erow { display: grid; grid-template-columns: 260px 1fr 90px; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.erow:last-child { border-bottom: 0; }
.erow .lbl { font-weight: 600; font-size: 15px; }
.erow .bar { height: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.erow .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold) 55%, var(--red)); background-size: var(--bs, 100%) 100%; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.erow .val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }
.erow:hover .lbl { color: var(--gold); }
.edge-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (max-width: 700px) { .erow { grid-template-columns: 1fr 70px; gap: 6px 12px; } .erow .bar { grid-column: 1 / -1; grid-row: 2; } .erow .lbl { font-size: 14px; } }

/* ============ LAB ============ */
.lab { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.lab-form { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field label b { color: var(--text); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: var(--surface-2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); cursor: pointer; }
.lab-out { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lab-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.kpi small { font-size: 12px; color: var(--muted); display: block; }
.kpi b { font-size: clamp(18px, 2.2vw, 26px); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lab canvas { width: 100%; height: 300px; display: block; border-radius: 14px; background: var(--surface); }
.lab .note { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } .lab-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ============ TIMELINE ============ */
.timeline { overflow-x: auto; padding: 30px 0 30px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.timeline.drag { cursor: grabbing; }
.timeline::-webkit-scrollbar { height: 6px; } .timeline::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }
.tl-track { display: flex; gap: 22px; width: max-content; padding: 0 max(16px, calc((100vw - 1200px) / 2)); position: relative; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--green), transparent); }
.tl-item { width: 280px; flex: none; position: relative; padding-top: 80px; user-select: none; }
.tl-item .yr { position: absolute; top: 0; left: 0; line-height: 1; font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -.04em; color: var(--gold); }
.tl-item .dot { position: absolute; top: 38px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 20%, transparent); }
.tl-item .card-t { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; transition: transform .3s, border-color .3s; }
.tl-item:hover .card-t { transform: translateY(-6px); border-color: var(--gold); }

/* ============ MYTHS ============ */
.myth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.myth { position: relative; min-height: 210px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.myth > div { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.myth .q { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.myth .q::before { content: "MYTH"; display: block; font-size: 11px; letter-spacing: .16em; color: var(--red); margin-bottom: 10px; }
.myth .a { background: linear-gradient(160deg, var(--green), #0C7A4C); color: #fff; transform: translateY(101%); font-size: 16px; }
.myth .a::before { content: "MATH"; display: block; font-size: 11px; letter-spacing: .16em; font-weight: 800; opacity: .85; margin-bottom: 10px; }
:root[lang="de"] .myth .q::before { content: "MYTHOS"; } :root[lang="de"] .myth .a::before { content: "MATHE"; }
.myth:hover .a, .myth.open .a { transform: none; }
.myth:hover .q, .myth.open .q { transform: translateY(-30%); opacity: 0; }
@media (max-width: 900px) { .myth-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .myth-grid { grid-template-columns: 1fr; } }

/* ============ QUIZ ============ */
.quiz { max-width: 720px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); text-align: center; position: relative; overflow: hidden; }
.quiz .qcount { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quiz .qtext { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 26px; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opt { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 17px; text-align: left; transition: transform .2s, background .2s, border-color .2s; }
.quiz .opt:hover { transform: translateX(6px); border-color: var(--gold); }
.quiz .opt.right { background: var(--green); color: #fff; border-color: var(--green); }
.quiz .opt.wrong { background: var(--red); color: #fff; border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz .progress { height: 4px; border-radius: 4px; background: var(--surface-2); margin: 0 0 24px; overflow: hidden; }
.quiz .progress i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .5s; }
.quiz .big { font-family: var(--display); font-size: clamp(56px, 10vw, 110px); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--gold); margin: 10px 0; }
.quiz .actions { margin-top: 24px; }

/* ============ ABOUT / FOOTER ============ */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 48px); }
.about .logo3d { width: 200px; height: 200px; border-radius: 50%; animation: spinY 12s linear infinite; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
@keyframes spinY { to { transform: rotate(360deg); } }
.about h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.04em; margin-bottom: 14px; }
.about p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; text-align: center; } .about .logo3d { margin: 0 auto; width: 150px; height: 150px; } .about .cta { justify-content: center; } }

footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 60px; font-size: 13px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
footer .brand { color: var(--text); }
footer p { max-width: 640px; margin-top: 6px; }
.foot-right { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; gap: 8px; }
.socials .ctrl { color: var(--text); }
.badge18 { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--muted); font-weight: 900; color: var(--text); flex: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 80; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; transition: transform .4s cubic-bezier(.2, .9, .3, 1.3); }
.toast.show { transform: translate(-50%, 0); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
