/* =================================================================
   MASTERWIN TOMBOLA — Krypto-Jahrmarkt
   Design-System · reines CSS, keine externen Bilddateien.
   Jahrmarkt: rot-weiße Zelte, Nachtblau, Neon, Lichterketten.
   Marke: Nachtblau + Gold/Orange (MasterWin „Neon Edition“ Wallet).
   ================================================================= */

/* ---------- 1. Variablen ---------- */
:root {
  /* Nacht-Hintergrund */
  --bg-0: #05070f;
  --bg-1: #0a0e22;
  --bg-2: #121a3e;
  --bg-3: #1b2454;
  --panel: rgba(16, 22, 56, 0.82);
  --panel-2: rgba(26, 34, 78, 0.85);
  --line: rgba(120, 138, 220, 0.22);
  --line-soft: rgba(120, 138, 220, 0.12);

  /* Tinte */
  --ink: #fff6e9;
  --ink-dim: #97a0cc;
  --ink-faint: #5e689a;

  /* Gold / Orange — Marken-Akzent der Wallet */
  --gold-1: #ffe785;
  --gold-2: #ffb52e;
  --gold-3: #ff7d16;
  --gold-deep: #b3550a;

  /* Jahrmarkt */
  --red: #e22338;
  --red-deep: #8c0f20;
  --cream: #fff3da;

  /* Neon */
  --pink: #ff45e0;
  --cyan: #25e9ff;
  --neon-yellow: #ffe23d;
  --green: #38e07e;
  --loss: #ff5d77;

  /* Maße */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --topbar-h: 66px;

  --f-display: "Arial Black", "Arial Bold", Impact, Haettenschweiler, sans-serif;
  --f-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: Consolas, "Cascadia Mono", "SF Mono", "DejaVu Sans Mono", ui-monospace, monospace;
}

/* ---------- 2. Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html, body { height: 100%; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* radialer Nacht-Verlauf hinter allem */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 620px at 50% -8%, #2a2068 0%, transparent 62%),
    radial-gradient(900px 700px at 88% 12%, #3a1450 0%, transparent 58%),
    radial-gradient(1000px 800px at 8% 90%, #11244f 0%, transparent 60%),
    linear-gradient(180deg, #0a0c22 0%, #05060f 70%, #04040a 100%);
}

img, canvas { display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }
a { color: var(--cyan); }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--gold-2); color: #2a1500; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-2), var(--gold-3));
  border-radius: 20px;
  border: 2px solid var(--bg-0);
}

/* ---------- 3. Hintergrund-Canvas & Kulisse ---------- */
#sky, #fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#sky { z-index: -2; }
#fx { z-index: 60; pointer-events: none; }

#skyline { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.sky-moon {
  position: absolute;
  top: 7%; right: 11%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff8e2, #ffe9a6 55%, #d9b85e 100%);
  box-shadow: 0 0 60px 16px rgba(255, 230, 160, 0.34), inset -14px -10px 0 rgba(0,0,0,0.12);
}

/* ferne Riesenrad-Silhouette */
/* ===============================================================
   Karneval-Hintergrund-Silhouetten — verschiedene Fahrgeschäfte
   =============================================================== */

/* Pirate-Ship-Swing: Boot schwingt hin & her am Tragarm */
.sky-swing {
  position: absolute;
  right: 8%; bottom: 12%;
  width: 140px; height: 160px;
  opacity: 0.32;
  z-index: -2;
  pointer-events: none;
}
.sky-swing-frame {
  position: absolute;
  top: 0; left: 50%;
  width: 130px; height: 130px;
  transform-origin: 50% 0;
  animation: swing-sway 4.6s ease-in-out infinite;
  margin-left: -65px;
}
.sky-swing-arm {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 110px;
  background: linear-gradient(180deg, rgba(160, 200, 255, 0.6), rgba(160, 200, 255, 0.2));
  transform: translateX(-50%);
}
.sky-swing-boat {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 30px;
  background: linear-gradient(180deg, rgba(226, 35, 56, 0.65), rgba(140, 22, 38, 0.4));
  border: 2px solid rgba(255, 215, 130, 0.4);
  border-radius: 6px 6px 60% 60% / 6px 6px 100% 100%;
  box-shadow: 0 0 12px rgba(226, 35, 56, 0.3);
}
.sky-swing-boat::before {
  /* kleine Fenster */
  content: "";
  position: absolute; top: 6px; left: 14px; right: 14px;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    rgba(255, 215, 130, 0.5) 0 6px, transparent 6px 14px);
}
@keyframes swing-sway {
  0%, 100% { transform: rotate(-26deg); }
  50%      { transform: rotate( 26deg); }
}

/* Fallturm / Drop-Tower mit auf-und-ab fahrender Gondel */
.sky-tower {
  position: absolute;
  left: 36%; bottom: 18%;
  width: 22px; height: 220px;
  opacity: 0.28;
  z-index: -2;
  pointer-events: none;
}
.sky-tower-mast {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, rgba(160, 200, 255, 0.55), rgba(160, 200, 255, 0.15));
  transform: translateX(-50%);
}
.sky-tower-top {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 215, 130, 0.6), rgba(255, 181, 46, 0.2));
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 215, 130, 0.4);
}
.sky-tower-cab {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 12px;
  background: linear-gradient(180deg, rgba(56, 224, 126, 0.5), rgba(20, 119, 74, 0.3));
  border-radius: 3px;
  animation: tower-drop 5.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 8px rgba(56, 224, 126, 0.4);
}
@keyframes tower-drop {
  0%   { top: 10%; }
  35%  { top: 84%; }
  45%  { top: 86%; }
  85%  { top: 10%; }
  100% { top: 10%; }
}

/* Heißluftballon: detaillierterer großer Ballon mit Korb, treibt langsam diagonal */
.sky-hotair {
  position: absolute;
  left: 64%; top: 22%;
  width: 44px; height: 70px;
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
  animation: hotair-drift 26s ease-in-out infinite;
}
.sky-hotair-balloon {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 46px;
  border-radius: 50% 50% 38% 38% / 60% 60% 40% 40%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 230, 160, 0.4), transparent 55%),
    repeating-linear-gradient(90deg,
      rgba(226, 35, 56, 0.65) 0 6px,
      rgba(255, 243, 218, 0.65) 6px 12px);
  border: 1.5px solid rgba(255, 215, 130, 0.5);
  box-shadow: 0 0 14px rgba(255, 181, 46, 0.3);
}
.sky-hotair-basket {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 10px;
  background: linear-gradient(180deg, rgba(196, 138, 73, 0.55), rgba(110, 70, 30, 0.4));
  border: 1px solid rgba(255, 215, 130, 0.4);
  border-radius: 1px 1px 3px 3px;
}
.sky-hotair-basket::before, .sky-hotair-basket::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 1px; height: 14px;
  background: rgba(255, 215, 130, 0.35);
}
.sky-hotair-basket::before { left: 3px; }
.sky-hotair-basket::after  { right: 3px; }
@keyframes hotair-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-30px, -12px); }
  100% { transform: translate(0, 0); }
}

/* Aufsteigende Ballons */
.sky-balloons { position: absolute; inset: 0; pointer-events: none; }
.sky-balloon {
  position: absolute;
  bottom: -40px;
  width: var(--bs, 14px);
  height: calc(var(--bs, 14px) * 1.25);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), var(--bc, #ff45e0) 70%);
  box-shadow: 0 0 12px var(--bc, #ff45e0);
  opacity: 0;
  animation: balloon-rise var(--bd, 32s) linear infinite;
  animation-delay: var(--ba, 0s);
}
.sky-balloon::after {
  content: "";
  position: absolute;
  bottom: -16px; left: 50%;
  width: 1px; height: 18px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}
@keyframes balloon-rise {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  8%   { opacity: 0.6; }
  92%  { opacity: 0.6; }
  100% { transform: translateY(-115vh) translateX(20px); opacity: 0; }
}

.ferris-far {
  position: absolute;
  left: 5%; bottom: 4%;
  width: 250px; height: 250px;
  opacity: 0.5;
}
.ferris-far-wheel {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(120, 150, 255, 0.5);
  animation: spin-slow 46s linear infinite;
  background:
    repeating-conic-gradient(from 0deg,
      transparent 0deg 28deg,
      rgba(120, 150, 255, 0.4) 28deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 24%, #000 25%);
          mask: radial-gradient(circle, transparent 0 24%, #000 25%);
}
.ferris-far-wheel::after {
  content: "";
  position: absolute; inset: 36%;
  border-radius: 50%;
  border: 3px solid rgba(120, 150, 255, 0.6);
}

/* Boden-Silhouette: ferne Zeltspitzen */
#ground {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(10,12,30,0.9) 38px 40px),
    linear-gradient(180deg, transparent, #070912 86%);
  -webkit-mask: repeating-linear-gradient(90deg,
      #000 0 60px, transparent 60px 64px, #000 64px 124px, transparent 124px 128px);
  opacity: 0.85;
}

/* =================================================================
   4. WIEDERVERWENDBARE BAUSTEINE
   ================================================================= */

/* ---- Neon-Schrift ---- */
.neon {
  font-family: var(--f-display);
  letter-spacing: 0.5px;
  line-height: 1.05;
}
.neon-pink {
  color: #ffe7fb;
  text-shadow:
    0 0 4px #fff, 0 0 12px var(--pink), 0 0 26px var(--pink),
    0 0 48px var(--pink), 0 0 80px #c800b0;
}
.neon-cyan {
  color: #e6ffff;
  text-shadow:
    0 0 4px #fff, 0 0 12px var(--cyan), 0 0 26px var(--cyan),
    0 0 48px var(--cyan), 0 0 80px #009ec8;
}
.neon-gold {
  color: #fff7df;
  text-shadow:
    0 0 4px #fff, 0 0 12px var(--gold-1), 0 0 26px var(--gold-2),
    0 0 48px var(--gold-3), 0 0 78px #a64f00;
}
.flicker { animation: neon-flicker 5.5s infinite; }

/* ---- MW-Münze (CSS-Coin) ---- */
.mw-coin {
  width: 42px; height: 42px;
  background: url(../img/mw.png) center / contain no-repeat;
  display: inline-block;
  flex: none;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
}
.mw-coin b { display: none; }
.mw-coin--xl { width: 96px; height: 96px; }
.mw-coin--sm { width: 30px; height: 30px; }

/* ---- Knöpfe ---- */
.btn {
  --btn-bg: linear-gradient(180deg, #2a345f, #1a2147);
  --btn-ink: var(--ink);
  font-family: var(--f-display);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-radius: var(--r-md);
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 6px 0 rgba(0,0,0,0.4), 0 10px 18px rgba(0,0,0,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  user-select: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.4); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5); transform: none; }

.btn--gold {
  --btn-bg: linear-gradient(180deg, #ffe680 0%, #ffb22e 46%, #ff7d16 100%);
  --btn-ink: #3a1c00;
  box-shadow: 0 6px 0 #9a4f06, 0 12px 22px rgba(255,140,0,0.35);
  text-shadow: 0 1px 0 rgba(255,240,190,0.6);
}
.btn--gold:active { box-shadow: 0 2px 0 #9a4f06, 0 5px 10px rgba(255,140,0,0.3); }

.btn--cyan {
  --btn-bg: linear-gradient(180deg, #7ff6ff, #18c4dd 55%, #0c8fb0);
  --btn-ink: #062a32;
  box-shadow: 0 6px 0 #075b70, 0 12px 22px rgba(37,233,255,0.28);
}
.btn--cyan:active { box-shadow: 0 2px 0 #075b70; }

.btn--ghost {
  --btn-bg: rgba(255,255,255,0.05);
  --btn-ink: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.1); }
.btn--ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px var(--line); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: 0.74rem; }
.btn--xl { padding: 18px 24px; font-size: 1.12rem; }
.btn--demo { position: relative; }
.btn .btn-cost {
  font-family: var(--f-mono);
  font-size: 0.82em;
  background: rgba(0,0,0,0.26);
  padding: 2px 9px;
  border-radius: 999px;
}
.demo-tag {
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 700;
  background: #06222a;
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* Glanz-Sweep entfernt — wirkte unruhig. Buttons behalten ihren Gradient + Border. */

/* ---- Eingabefelder ---- */
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  background: rgba(4, 6, 18, 0.72);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.96rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input::placeholder { color: var(--ink-faint); }
input:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(255,181,46,0.16), 0 0 16px rgba(255,181,46,0.2);
}
input[type="number"] { font-family: var(--f-mono); }

/* ---- Spielmarken / Chips ---- */
.bet-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: var(--f-display);
  font-size: 0.86rem;
  color: #fff;
  position: relative;
  background:
    repeating-conic-gradient(var(--chip-c, #444) 0deg 18deg, #fff 18deg 36deg);
  box-shadow: 0 4px 9px rgba(0,0,0,0.5), inset 0 0 0 3px rgba(0,0,0,0.18);
  transition: transform 0.13s ease, box-shadow 0.18s ease;
}
.chip::before {
  content: "";
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2c3566, #141a3a);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.14);
}
.chip span { position: relative; z-index: 1; line-height: 1; }
.chip small { position: relative; z-index: 1; font-family: var(--f-body); font-size: 0.5rem; opacity: 0.7; letter-spacing: 1px; }
.chip:hover { transform: translateY(-3px) scale(1.04); }
.chip.is-active {
  box-shadow: 0 0 0 3px var(--gold-1), 0 0 22px var(--gold-2), 0 6px 12px rgba(0,0,0,0.5);
  transform: translateY(-3px) scale(1.07);
}
.chip:disabled { opacity: 0.32; cursor: not-allowed; filter: grayscale(0.7); }
.chip--5   { --chip-c: #c0392b; }
.chip--10  { --chip-c: #2563b0; }
.chip--25  { --chip-c: #1d8a4c; }
.chip--50  { --chip-c: #7d3cc0; }
.chip--100 { --chip-c: #1a1a24; }
.chip--250 { --chip-c: #c98a13; }

/* ---- Lichterkette (Glühbirnen) ---- */
.bulb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--blb, var(--neon-yellow));
  box-shadow: 0 0 8px 2px var(--blb, var(--neon-yellow)), 0 0 18px 5px var(--blb, var(--neon-yellow));
  animation: bulb-blink 1.4s ease-in-out infinite;
  position: relative;
  flex: none;
}
.bulb::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 7px;
  background: #2a2f55;
  border-radius: 2px 2px 0 0;
}

/* ---- Panels ---- */
.panel {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.panel-h {
  font-family: var(--f-display);
  font-size: 1.04rem;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  color: var(--gold-1);
}
.panel-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sub-h {
  font-family: var(--f-display);
  font-size: 0.82rem;
  color: var(--cyan);
  margin: 20px 0 10px;
  letter-spacing: 0.4px;
}
.muted { color: var(--ink-dim); font-size: 0.88rem; }
.hint-line { color: var(--ink-faint); font-size: 0.76rem; margin-top: 9px; }
.section-h {
  font-family: var(--f-display);
  font-size: 1.15rem;
  margin: 36px 0 16px;
  text-align: center;
  position: relative;
}
.section-h span {
  background: var(--bg-0);
  padding: 0 18px;
  position: relative;
  color: var(--gold-1);
}
.section-h::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* =================================================================
   5. LADEBILDSCHIRM
   ================================================================= */
.screen { min-height: 100vh; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(800px 600px at 50% 30%, #1a1550, #06070f 75%);
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-tent { position: relative; width: 240px; height: 200px; }
.loader-tent-roof {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 92px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-conic-gradient(from 90deg at 50% 0,
    var(--red) 0deg 16deg, var(--cream) 16deg 32deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
}
.loader-tent-roof::after {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 14px var(--gold-2);
}
.loader-tent-body {
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 116px;
  background: linear-gradient(180deg, #14193c, #0a0d22);
  border: 2px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: repeating-linear-gradient(180deg,
    var(--red) 0 16px, var(--red-deep) 16px 32px);
  z-index: 2;
}
.loader-curtain--l { left: 0; transform-origin: left; animation: curtain-l 1.4s 0.5s ease forwards; }
.loader-curtain--r { right: 0; transform-origin: right; animation: curtain-r 1.4s 0.5s ease forwards; }
.loader-logo { animation: pop-in 0.6s 1.2s both; }

.loader-title {
  font-family: var(--f-display);
  font-size: 2.4rem;
  margin-top: 14px;
  color: var(--gold-1);
  text-shadow: 0 0 18px var(--gold-3);
}
.loader-title span { color: #fff; }
.loader-sub { color: var(--ink-dim); font-size: 0.9rem; }
.dots i { animation: dot 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

.loader-bar {
  width: 240px; height: 9px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
  box-shadow: 0 0 14px var(--gold-2);
  animation: load-bar 2.1s ease-in-out forwards;
}
.loader-skip {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  cursor: pointer;
}

/* =================================================================
   6. ANMELDUNG — Kassenhäuschen
   ================================================================= */
#auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  gap: 18px;
  position: relative;
}
.auth-lights {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4%;
}

.booth {
  width: min(440px, 100%);
  position: relative;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.6));
}
.booth-roof {
  height: 56px;
  clip-path: polygon(8% 100%, 50% 0, 92% 100%);
  background: repeating-conic-gradient(from 90deg at 50% 0,
    var(--red) 0deg 18deg, var(--cream) 18deg 36deg);
  position: relative;
  z-index: 2;
}
.booth-flag {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: flag-wave 2.6s ease-in-out infinite;
}
.booth-sign {
  background: linear-gradient(180deg, #1a1140, #0d0a28);
  border: 2px solid var(--gold-2);
  border-radius: 10px;
  margin: -10px auto 0;
  width: 78%;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.05rem;
  padding: 8px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px var(--gold-3);
  position: relative;
  z-index: 3;
  box-shadow: 0 0 22px rgba(255,181,46,0.34);
}
.booth-body {
  background: linear-gradient(180deg, #141a3e, #0c0f28);
  border: 2px solid var(--line);
  border-radius: 0 0 18px 18px;
  margin-top: -6px;
  padding: 26px 24px 22px;
  /* rot-weiße Streifenkanten links/rechts */
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.booth-body::before, .booth-body::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 12px;
  background: repeating-linear-gradient(180deg,
    var(--red) 0 14px, var(--cream) 14px 28px);
}
.booth-body::before { left: -12px; border-radius: 0 0 0 6px; }
.booth-body::after  { right: -12px; border-radius: 0 0 6px 0; }

.auth-title {
  font-family: var(--f-display);
  text-align: center;
  font-size: 1.5rem;
  color: var(--ink);
}
.auth-title span { color: var(--gold-1); text-shadow: 0 0 14px var(--gold-3); }
.auth-tag { text-align: center; color: var(--ink-dim); font-size: 0.84rem; margin: 4px 0 18px; }

.auth-tabs {
  display: flex;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-dim);
  transition: all 0.16s;
}
.auth-tab.is-active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: #3a1c00;
  box-shadow: 0 3px 10px rgba(255,140,0,0.4);
}

.auth-error {
  background: rgba(255,93,119,0.14);
  border: 1px solid var(--loss);
  color: #ffc6cf;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  margin-top: 4px;
}
.auth-hint {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: rgba(37,233,255,0.06);
  border: 1px dashed rgba(37,233,255,0.3);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.auth-hint strong { color: var(--cyan); }
.auth-hint b { color: var(--gold-1); }
.booth-coins {
  text-align: center;
  font-size: 1.4rem;
  margin-top: -2px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  animation: bob 3s ease-in-out infinite;
}
.auth-foot { color: var(--ink-faint); font-size: 0.78rem; text-align: center; }
.auth-foot b { color: var(--gold-1); }

/* =================================================================
   7. KOPFLEISTE & NAVIGATION
   ================================================================= */
#topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(10,13,35,0.97), rgba(8,10,26,0.9));
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand-name { font-family: var(--f-display); font-size: 1.04rem; color: var(--ink); }
.brand-sub {
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 3.5px;
  color: var(--gold-2);
  margin-top: 2px;
}

#nav { display: flex; gap: 4px; margin: 0 auto; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-dim);
  transition: all 0.15s;
  position: relative;
}
.nav-btn .nav-ico { font-size: 1.1rem; }
.nav-btn:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-btn.is-active {
  color: var(--gold-1);
  background: linear-gradient(180deg, rgba(255,181,46,0.16), rgba(255,181,46,0.05));
  box-shadow: inset 0 0 0 1.5px rgba(255,181,46,0.4);
}
.nav-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -11px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 10px var(--gold-2);
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.balance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1c1442, #120d2e);
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 18px rgba(255,181,46,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.12s;
}
.balance-pill:hover { transform: scale(1.04); }
.balance-pill.is-bumping { animation: pill-bump 0.5s ease; }
.balance-num {
  font-family: var(--f-mono);
  font-size: 1.06rem;
  color: var(--gold-1);
  text-shadow: 0 0 10px rgba(255,181,46,0.6);
  letter-spacing: 0.5px;
}
.balance-unit { font-family: var(--f-display); font-size: 0.7rem; color: var(--gold-2); }
.coin-spin { display: inline-block; animation: coin-flip 3.4s ease-in-out infinite; }

.topbar-tools { display: flex; gap: 5px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--line);
  transition: all 0.14s;
}
.icon-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.icon-btn[aria-pressed="false"] { opacity: 0.42; }
.menu-btn { display: none; }

/* Lichterkette unter der Kopfleiste */
.garland {
  position: sticky;
  top: var(--topbar-h);
  z-index: 49;
  height: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 9px 3% 0;
  background: linear-gradient(180deg, rgba(8,10,26,0.65), transparent);
  pointer-events: none;
}

/* =================================================================
   8. BÜHNE / ANSICHTEN
   ================================================================= */
#stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 18px 60px;
  position: relative;
  z-index: 1;
}
.view { animation: view-in 0.4s ease; }
.view[hidden] { display: none; }

.view-head { text-align: center; margin: 12px 0 26px; }
.view-title { font-family: var(--f-display); font-size: 1.9rem; }
.view-sub { color: var(--ink-dim); font-size: 0.92rem; margin-top: 4px; }

/* =================================================================
   9. PROMENADE / LOBBY
   ================================================================= */
.tent-hero {
  position: relative;
  margin: 8px 0 30px;
  padding-top: 96px;
}
/* 3D-Kuppel: Streifen + Wölbungs-Highlight + tiefe Verschattung am unteren Rand */
.tent-roof {
  position: absolute;
  top: 0; left: -2%; right: -2%;
  height: 134px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse 110% 70% at 50% 100%, rgba(0,0,0,0.42) 0%, transparent 55%),
    radial-gradient(ellipse 35% 60% at 50% 0%, rgba(255,255,255,0.55) 0%, transparent 60%),
    repeating-conic-gradient(from 90deg at 50% 0,
      var(--red) 0deg 11deg, var(--cream) 11deg 22deg);
  filter:
    drop-shadow(0 4px 6px rgba(0,0,0,0.42))
    drop-shadow(0 14px 26px rgba(0,0,0,0.58));
}
.tent-roof::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse 60% 75% at 50% 8%, rgba(255,255,255,0.28) 0%, transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,0.32) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.32) 100%);
  mix-blend-mode: overlay; pointer-events: none;
}
.tent-roof::after {
  content: ""; position: absolute; top: -32px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 28px;
  background:
    linear-gradient(180deg, #c2c8da 0%, #6b7088 100%) 50% 100%/2px 28px no-repeat,
    linear-gradient(120deg, var(--red) 0%, #ff6c84 60%, var(--red) 100%) 0 0/20px 16px no-repeat;
  border-radius: 1px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  transform-origin: 50% 100%;
  animation: flag-wave 2.8s ease-in-out infinite;
}
.tent-valance {
  position: absolute;
  top: 112px; left: -2%; right: -2%;
  height: 30px;
  background:
    radial-gradient(circle 17px at 17px 0, var(--red) 15px, transparent 16px) 0 0/68px 30px repeat-x,
    radial-gradient(circle 17px at 51px 0, var(--cream) 15px, transparent 16px) 0 0/68px 30px repeat-x;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4));
  z-index: 2;
}
/* Wenn das Dach nicht da ist: oben volle Border + Padding-Reset des Wrappers */
.tent-hero--noroof { padding-top: 0; }
.tent-hero--noroof .tent-inner {
  border-top: 2px solid var(--line);
  border-radius: var(--r-xl);
}

/* Loader ohne Dach — Container schrumpft auf Body-Höhe */
.loader-tent--noroof { height: 120px; }
.loader-tent--noroof .loader-tent-body {
  border-top: 2px solid var(--line);
  border-radius: 14px;
}

/* Auth-Booth ohne Dach — Schild beginnt direkt oben mit voller Border */
.booth--noroof .booth-sign { margin-top: 0; }
.tent-inner {
  background: linear-gradient(180deg, rgba(20,26,62,0.92), rgba(9,12,32,0.95));
  border: 2px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 40px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-flags {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  display: flex;
  justify-content: center;
  gap: 0;
}
.pennant {
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 20px solid var(--pn, var(--gold-2));
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  margin: 6px 0 10px;
}
.hero-tag { color: var(--ink-dim); font-size: 0.96rem; }
.hero-greet {
  margin-top: 12px;
  font-family: var(--f-mono);
  color: var(--cyan);
  font-size: 0.9rem;
}
.hero-greet b { color: var(--gold-1); }

.lobby-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  margin-bottom: 8px;
}
.panel--bonus { text-align: center; }
.panel-deco {
  font-size: 2.6rem;
  animation: bob 2.6s ease-in-out infinite;
  margin-bottom: 2px;
}
.panel--bonus .btn { margin-top: 12px; }
.daily-status { margin-top: 9px; font-size: 0.8rem; color: var(--ink-dim); min-height: 1.1em; }
.daily-status.is-claimed { color: var(--green); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.stat {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
}
.stat-ico { font-size: 1.5rem; display: block; }
.stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--gold-1);
  margin: 2px 0;
}
.stat small { color: var(--ink-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.6px; }

/* Attraktionen */
.attractions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.attraction {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.16s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  perspective: 680px;
}
.attraction::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 90px at 50% 0, rgba(255,181,46,0.16), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.attraction:hover {
  transform: translateY(-7px);
  border-color: var(--gold-2);
  box-shadow: 0 18px 34px rgba(0,0,0,0.55), 0 0 24px rgba(255,181,46,0.22);
}
.attraction:hover::before { opacity: 1; }
/* 3D-Medaillon als Spiel-Icon */
.attraction-badge {
  width: 90px;
  height: 90px;
  margin: 2px auto 14px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.3, 1.35);
  background:
    radial-gradient(circle at 50% 30%, #474f93 0%, #2c3168 40%, #181c44 72%, #0c0f2e 100%);
  border: 3px solid;
  border-color: #ffe187 #b6811d #6f4c0e #dca740;
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.26),
    inset 0 -13px 20px rgba(0, 0, 0, 0.68),
    inset 0 0 0 4px rgba(255, 181, 46, 0.14),
    0 13px 22px rgba(0, 0, 0, 0.58);
}
.attraction-shine {
  position: absolute;
  top: 7px;
  left: 15px;
  right: 15px;
  height: 40%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.attraction-emoji {
  width: 58px;
  height: 58px;
  display: block;
  font-size: 2.7rem;
  line-height: 58px;
  transform: translateZ(28px);
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.3, 1.35);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.62));
}
.attraction-emoji svg { width: 100%; height: 100%; display: block; }
.attraction:hover .attraction-badge {
  transform: rotateX(17deg) rotateY(-16deg) scale(1.07);
}
.attraction:hover .attraction-emoji {
  transform: translateZ(46px) scale(1.13);
}
.attraction--flag .attraction-badge {
  border-color: #ffe890 #d49b2e #8a5f12 #ffd169;
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.32),
    inset 0 -13px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 0 4px rgba(255, 181, 46, 0.3),
    0 13px 22px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(255, 181, 46, 0.42);
}
.attraction h3 { font-family: var(--f-display); font-size: 1.04rem; margin: 8px 0 4px; color: var(--ink); }
.attraction p { color: var(--ink-dim); font-size: 0.8rem; min-height: 2.6em; }
.attraction-cta {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 0.78rem;
  color: var(--gold-1);
}
.attraction--kasse { border-style: dashed; }

/* Über den Coin */
.panel--coin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.coin-about p { margin-bottom: 10px; font-size: 0.92rem; }
.coin-about b { color: var(--gold-1); }
.coin-specs { display: flex; flex-direction: column; gap: 7px; }
.coin-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 9px 13px;
}
.coin-specs span { color: var(--ink-dim); font-size: 0.8rem; }
.coin-specs b { font-family: var(--f-mono); color: var(--cyan); font-size: 0.9rem; }

/* =================================================================
   10. KASSE
   ================================================================= */
.kasse-balance {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,181,46,0.1), transparent);
  border: 1.5px solid rgba(255,181,46,0.3);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.kasse-balance-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.74rem;
  color: var(--ink-dim);
}
.kasse-balance-val {
  font-family: var(--f-mono);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold-1);
  text-shadow: 0 0 22px rgba(255,181,46,0.55);
}
.kasse-balance-val em { font-family: var(--f-display); font-size: 0.4em; color: var(--gold-2); font-style: normal; }

.kasse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.qr-row { display: flex; gap: 16px; align-items: center; margin: 14px 0; }
.qr-canvas {
  width: 140px; height: 140px;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 8px;
  flex: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.deposit-meta { display: flex; flex-direction: column; gap: 7px; }
.net-badge {
  background: rgba(56,224,126,0.14);
  border: 1px solid rgba(56,224,126,0.4);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  align-self: flex-start;
}
.net-line { font-size: 0.8rem; color: var(--ink-dim); }
.net-line b { color: var(--ink); font-family: var(--f-mono); }

.address-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 6px 0 14px;
}
.address {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  background: rgba(4,6,18,0.8);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  color: var(--cyan);
  word-break: break-all;
  display: flex;
  align-items: center;
}
.address.is-copied { border-color: var(--green); color: var(--green); }

.amount-wrap { position: relative; display: block; }
.chip-max {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: #3a1c00;
  font-family: var(--f-display);
  font-size: 0.66rem;
  padding: 5px 10px;
  border-radius: 6px;
}
.chip-max:hover { filter: brightness(1.1); }

.fee-summary { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.fee-summary li {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 6px 10px;
  background: rgba(0,0,0,0.28);
  border-radius: 6px;
}
.fee-summary span { color: var(--ink-dim); }
.fee-summary b { font-family: var(--f-mono); color: var(--ink); }
.fee-summary li:last-child b { color: var(--gold-1); }

/* Transaktionsliste */
.panel--tx { margin-top: 0; }
.tx-count { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-dim); }
.tx-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow-y: auto; }
.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--tx-c, var(--ink-dim));
  border-radius: var(--r-sm);
  padding: 10px 13px;
  animation: row-in 0.32s ease;
}
.tx-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  flex: none;
}
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-weight: 600; font-size: 0.88rem; }
.tx-sub { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amount { font-family: var(--f-mono); font-size: 0.94rem; font-weight: bold; text-align: right; flex: none; }
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--loss); }
.tx-time { font-size: 0.66rem; color: var(--ink-faint); display: block; text-align: right; }
.tx-badge {
  font-size: 0.6rem;
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.tx-badge.pending { background: rgba(255,181,46,0.16); color: var(--gold-1); }
.tx-badge.confirmed { background: rgba(56,224,126,0.16); color: var(--green); }
.tx-empty { text-align: center; color: var(--ink-dim); padding: 24px; font-size: 0.9rem; }

/* =================================================================
   11. SPIEL-LAYOUT (gemeinsam)
   ================================================================= */
.game-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.panel--stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(420px 280px at 50% 30%, rgba(40,30,90,0.6), transparent),
    var(--panel);
}
.panel--controls { position: sticky; top: calc(var(--topbar-h) + 34px); }

.result-banner {
  margin-top: 16px;
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.98rem;
  padding: 10px 14px;
  background: rgba(0,0,0,0.32);
  border: 1.5px dashed var(--line);
  color: var(--ink-dim);
  transition: all 0.25s;
}
.result-banner.is-win {
  background: linear-gradient(180deg, rgba(56,224,126,0.2), rgba(56,224,126,0.06));
  border: 1.5px solid var(--green);
  border-style: solid;
  color: #c9ffdd;
  text-shadow: 0 0 12px rgba(56,224,126,0.7);
}
.result-banner.is-loss {
  background: linear-gradient(180deg, rgba(255,93,119,0.16), rgba(255,93,119,0.04));
  border: 1.5px solid var(--loss);
  border-style: solid;
  color: #ffd0d8;
}
.result-banner.is-jackpot {
  background: linear-gradient(90deg, rgba(255,181,46,0.26), rgba(255,69,224,0.26), rgba(37,233,255,0.26));
  background-size: 200% 100%;
  border: 2px solid var(--gold-1);
  border-style: solid;
  color: #fff;
  font-size: 1.16rem;
  text-shadow: 0 0 16px var(--gold-2);
  animation: jackpot-pulse 0.8s ease infinite alternate, jackpot-shift 3s linear infinite;
}

/* Aufblitzen bei Gewinn */
.wheel-flash {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 65%);
}
.wheel-flash.fire { animation: flash 0.55s ease; }

.paytable { display: flex; flex-direction: column; gap: 5px; }
.paytable li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  padding: 6px 9px;
  background: rgba(0,0,0,0.26);
  border-radius: 6px;
}
.pay-swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.pay-label { flex: 1; color: var(--ink-dim); }
.pay-mult { font-family: var(--f-mono); color: var(--gold-1); font-weight: bold; }
.paytable--slots .pay-sym { font-size: 1rem; letter-spacing: 2px; }

.history-strip { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; align-items: center; }
.hist-pill {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: bold;
  animation: pop-in 0.3s ease;
}
.hist-pill.win { background: rgba(56,224,126,0.18); color: var(--green); border: 1px solid rgba(56,224,126,0.4); }
.hist-pill.loss { background: rgba(255,93,119,0.14); color: var(--loss); border: 1px solid rgba(255,93,119,0.34); }

/* =================================================================
   12. GLÜCKSRAD
   ================================================================= */
.wheel-stage { position: relative; width: 100%; display: flex; justify-content: center; padding: 10px 0; }
.wheel-frame {
  position: relative;
  width: min(440px, 78vw);
  aspect-ratio: 1;
}
.wheel-bulbs { position: absolute; inset: -4px; }
.wbulb {
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  margin: -5.5px;
  border-radius: 50%;
  background: var(--neon-yellow);
  box-shadow: 0 0 7px 2px var(--neon-yellow);
  animation: bulb-blink 1s ease-in-out infinite;
}
#wheel-canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.65));
}
.wheel-pointer {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-top: 38px solid var(--gold-1);
  filter: drop-shadow(0 4px 5px rgba(0,0,0,0.7));
  z-index: 5;
  transform-origin: 50% 18%;
}
.wheel-pointer.knock { animation: pointer-knock 0.09s ease; }
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 19%; height: 19%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2a2f5e, #0d0f24);
  border: 3px solid var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(255,181,46,0.5), inset 0 0 12px rgba(0,0,0,0.7);
  z-index: 4;
}
.wheel-hub .mw-coin { width: 64%; height: 64%; }

/* =================================================================
   13. HAU DEN LUKAS
   ================================================================= */
.striker-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
.striker-tower {
  position: relative;
  width: 200px;
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bell {
  font-size: 2.7rem;
  filter: drop-shadow(0 0 10px rgba(255,181,46,0.5));
  transform-origin: 50% 12%;
  z-index: 3;
  transition: filter 0.2s;
}
.bell.ring { animation: bell-ring 0.7s ease; filter: drop-shadow(0 0 26px var(--gold-1)); }

.tower-shaft {
  position: relative;
  width: 64px;
  flex: 1;
  margin-top: 2px;
  background: linear-gradient(90deg, #161c44, #232c63 50%, #161c44);
  border: 3px solid var(--gold-deep);
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.7);
}
.tower-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  top: 10px;
  width: 22px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
}
.puck {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px; height: 22px;
  border-radius: 6px;
  background: radial-gradient(circle at 40% 30%, #ff9a6b, var(--red) 60%, var(--red-deep));
  box-shadow: 0 0 12px rgba(226,35,56,0.7), inset 0 2px 3px rgba(255,255,255,0.4);
  z-index: 2;
}
.tower-scale {
  position: absolute;
  right: -86px;
  top: 10px; bottom: 8px;
  width: 78px;
}
.scale-mark {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(50%);
}
.scale-mark::before {
  content: "";
  width: 12px; height: 2px;
  background: var(--line);
}
.scale-mark span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.scale-mark.jackpot span { color: var(--gold-1); font-weight: bold; }

.tower-base {
  position: relative;
  width: 150px;
  height: 46px;
  background: linear-gradient(180deg, #2a3372, #141a40);
  border: 3px solid var(--gold-deep);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strike-pad {
  width: 56px; height: 12px;
  border-radius: 4px;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold-3);
}
.strike-pad.hit { animation: pad-hit 0.3s ease; }
.hammer {
  position: absolute;
  left: -34px;
  top: -20px;
  font-size: 2.5rem;
  transform-origin: 70% 80%;
  transform: rotate(-58deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
  z-index: 4;
}
.hammer.swing { animation: hammer-swing 0.4s cubic-bezier(0.5, 0, 0.6, 1.4); }

/* Kraftmesser */
.power-meter {
  position: relative;
  height: 30px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 16px;
}
.power-zone { position: absolute; top: 0; bottom: 0; }
.power-zone--good {
  left: 36%; width: 28%;
  background: linear-gradient(90deg, rgba(56,224,126,0.18), rgba(56,224,126,0.34), rgba(56,224,126,0.18));
}
.power-zone--perfect {
  left: 45.5%; width: 9%;
  background: linear-gradient(90deg, rgba(255,181,46,0.5), rgba(255,224,61,0.7), rgba(255,181,46,0.5));
  box-shadow: 0 0 14px var(--gold-2);
}
.power-marker {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 0;
  width: 6px;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 18px var(--cyan);
  border-radius: 3px;
  z-index: 2;
}
.power-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(255,255,255,0.12) 10%);
}

/* =================================================================
   14. SPIELAUTOMAT
   ================================================================= */
.slot-cabinet {
  position: relative;
  width: min(420px, 88vw);
  background: linear-gradient(180deg, #2b1b52, #1a1138);
  border: 3px solid var(--gold-2);
  border-radius: 22px 22px 16px 16px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.5);
}
.slot-marquee {
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.92rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 12px var(--gold-3);
  padding: 6px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  border: 1px solid var(--gold-deep);
}
.slot-window {
  position: relative;
  background: #05060f;
  border-radius: 12px;
  padding: 10px;
  border: 3px solid #0d0f26;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.9);
}
.slot-reels { display: flex; gap: 8px; }
.reel {
  flex: 1;
  height: 234px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ec, #ffeccb);
  border-radius: 8px;
  position: relative;
  box-shadow: inset 0 12px 16px -8px rgba(0,0,0,0.6), inset 0 -12px 16px -8px rgba(0,0,0,0.6);
}
.reel-strip { display: flex; flex-direction: column; will-change: transform; }
.reel-symbol {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  flex: none;
}
.slot-payline {
  position: absolute;
  left: 4px; right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 78px;
  border: 2px solid var(--gold-2);
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 18px rgba(255,181,46,0.45);
}
.slot-payline.win { animation: payline-win 0.5s ease infinite alternate; }
.slot-base { margin-top: 10px; }
.slot-lights {
  display: flex;
  justify-content: space-around;
  padding: 4px 6px;
}
.slot-lights .bulb { width: 10px; height: 10px; }
.reel.spinning { filter: blur(0.4px); }

/* ---- SVG-Grafiken (gfx.js) ---- */
.gfx { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }
.reel-symbol .gfx { width: 62px; height: 62px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.paytable--slots .pay-sym { display: flex; gap: 2px; }
.paytable--slots .pay-sym .gfx { width: 22px; height: 22px; }
.result-banner .gfx { width: 30px; height: 30px; margin: 0 2px; }

/* ---- gamekit: Spiel-Bühne ---- */
.gk-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
}
.attraction--flag {
  border-color: var(--gold-2);
  box-shadow: 0 0 22px rgba(255, 181, 46, 0.25);
}

/* =================================================================
   15. TOASTS & MODALE
   ================================================================= */
#toasts {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 14px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 340px;
  pointer-events: none;
}
.toast {
  background: linear-gradient(180deg, #1a2150, #11163a);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--toast-c, var(--cyan));
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  animation: toast-in 0.34s cubic-bezier(0.2, 1.2, 0.4, 1);
  pointer-events: auto;
}
.toast.is-leaving { animation: toast-out 0.3s ease forwards; }
.toast-ico { font-size: 1.25rem; flex: none; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 0.88rem; }
.toast-msg { font-size: 0.8rem; color: var(--ink-dim); }
.toast--win { --toast-c: var(--green); }
.toast--loss { --toast-c: var(--loss); }
.toast--gold { --toast-c: var(--gold-2); }
.toast--info { --toast-c: var(--cyan); }

#modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3,4,12,0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.22s ease;
}
.modal {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #161d48, #0c1030);
  border: 2px solid var(--gold-2);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 40px rgba(255,181,46,0.2);
  animation: pop-in 0.3s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.modal-title { font-family: var(--f-display); font-size: 1.2rem; color: var(--gold-1); margin-bottom: 8px; }
.modal-text { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 8px; }
.modal-detail {
  background: rgba(0,0,0,0.34);
  border-radius: var(--r-sm);
  padding: 12px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-detail div { display: flex; justify-content: space-between; font-size: 0.84rem; }
.modal-detail span { color: var(--ink-dim); }
.modal-detail b { font-family: var(--f-mono); }
.modal-detail .break { word-break: break-all; text-align: right; max-width: 62%; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* =================================================================
   16. FUSSZEILE
   ================================================================= */
#footer {
  border-top: 2px solid var(--line);
  background: rgba(6,8,22,0.7);
  padding: 28px 18px 18px;
  margin-top: 24px;
}
.footer-cols {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.footer-col h4 { font-family: var(--f-display); font-size: 0.84rem; color: var(--gold-1); margin-bottom: 5px; }
.footer-col p { font-size: 0.78rem; color: var(--ink-dim); }
.footer-col b { color: var(--ink); }
.footer-bar {
  max-width: 1100px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-faint);
}
.footer-rpc { font-family: var(--f-mono); }
.footer-rpc.is-live { color: var(--green); }

/* =================================================================
   17. KEYFRAMES
   ================================================================= */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}
@keyframes bulb-blink {
  0%, 100% { opacity: 1; filter: brightness(1.3); }
  50% { opacity: 0.28; filter: brightness(0.55); }
}
@keyframes sweep {
  0%, 62% { left: -55%; }
  88%, 100% { left: 130%; }
}
@keyframes curtain-l { to { transform: perspective(400px) rotateY(-92deg); } }
@keyframes curtain-r { to { transform: perspective(400px) rotateY(92deg); } }
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes load-bar { from { width: 0; } to { width: 100%; } }
@keyframes dot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes flag-wave {
  0%, 100% { transform: translateX(-50%) rotate(-7deg); }
  50% { transform: translateX(-50%) rotate(9deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes coin-flip {
  0%, 100% { transform: rotateY(0); }
  50% { transform: rotateY(180deg); }
}
@keyframes pill-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes row-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(120%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(120%); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes jackpot-pulse {
  from { box-shadow: 0 0 14px rgba(255,181,46,0.5); }
  to { box-shadow: 0 0 40px rgba(255,181,46,0.95), 0 0 70px rgba(255,69,224,0.5); }
}
@keyframes jackpot-shift { to { background-position: 200% 0; } }
@keyframes pointer-knock {
  from { transform: translateX(-50%) rotate(0); }
  to { transform: translateX(-50%) rotate(-15deg); }
}
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(17deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(11deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}
@keyframes hammer-swing {
  0% { transform: rotate(-58deg); }
  55% { transform: rotate(34deg); }
  100% { transform: rotate(-58deg); }
}
@keyframes pad-hit {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}
@keyframes payline-win {
  from { box-shadow: 0 0 14px rgba(255,181,46,0.4); }
  to { box-shadow: 0 0 30px rgba(255,181,46,0.95); }
}

/* =================================================================
   18. RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .game-layout { grid-template-columns: 1fr; }
  .panel--controls { position: static; }
  .lobby-grid { grid-template-columns: 1fr; }
  .panel--coin { grid-template-columns: 1fr; }
  .attractions { grid-template-columns: repeat(2, 1fr); }
  .kasse-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; }
  #topbar { gap: 8px; padding: 0 12px; }
  #nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(180deg, #0c1030, #090b22);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
    padding: 10px;
    margin: 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 48;
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }
  #nav.is-open { transform: translateY(0); }
  .nav-btn { justify-content: flex-start; padding: 13px 16px; }
  .nav-btn.is-active::after { display: none; }
  .menu-btn { display: flex; }
  .brand-sub { display: none; }
  .brand { gap: 8px; }
  .brand .mw-coin { width: 34px; height: 34px; }
  .brand .mw-coin b { font-size: 11px; }
  .brand-name { font-size: 0.96rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bar { justify-content: center; text-align: center; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  /* Sound/Musik/Abmelden wandern ins Klappmenü */
  #nav .topbar-tools {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
  #nav .topbar-tools .icon-btn { width: 46px; height: 46px; font-size: 1.15rem; }
}

@media (max-width: 460px) {
  .attractions { grid-template-columns: 1fr; }
  .view-title { font-size: 1.5rem; }
  .booth { width: 100%; }
  #stage { padding: 14px 12px 50px; }
  .panel { padding: 16px; }
  .bet-chips { gap: 7px; }
  .chip { width: 52px; height: 52px; font-size: 0.76rem; }
  .balance-num { font-size: 0.92rem; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =================================================================
   19. UI-ICONS (Inline-SVG-Ersatz für Emojis 🪙 🎟️ ⏻)
   ================================================================= */
[data-icon] {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; vertical-align: middle;
}
.ui-icon {
  display: inline-block;
  width: 1.1em; height: 1.1em;
  vertical-align: -0.15em;
  pointer-events: none;
  flex-shrink: 0;
}
.coin-spin .ui-icon,
.coin-spin [class*="ui-icon"] { width: 18px; height: 18px; }
.stat-ico .ui-icon { width: 1.6em; height: 1.6em; vertical-align: middle; }
.kasse-balance-val .ui-icon { width: 0.8em; height: 0.8em; }
.balance-pill .ui-icon { width: 18px; height: 18px; }
.nav-ico .ui-icon { width: 22px; height: 22px; }

/* Sprach-Toggle-Button — kompakt, Text statt Icon */
.lang-btn {
  font-family: var(--f-display);
  font-size: 0.74rem !important;
  font-weight: 800;
  letter-spacing: 1.5px;
  min-width: 38px;
  color: var(--gold-2);
}
.lang-btn:hover { color: var(--gold-1); }

/* =================================================================
   20. ZUSÄTZLICHE MOBILE-OPTIMIERUNG
   ================================================================= */
@media (max-width: 760px) {
  /* Kasse: alles 1-spaltig und mit luftigerem Padding */
  .kasse-balance-val { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .qr-row { gap: 14px; }
  .qr-canvas { width: 180px; height: 180px; }
  .address-box { flex-direction: column; align-items: stretch; gap: 8px; }
  .address-box .address { font-size: 0.78rem; word-break: break-all; }
  .address-box .btn { width: 100%; }
  .fee-summary li { font-size: 0.86rem; padding: 8px 10px; }

  /* Spiele-Galerie: bequemer auf schmalem Bildschirm */
  #game-gallery .attraction-card,
  .lp-game-card { flex: 0 1 calc(50% - 8px); }

  /* Login-Booth füllt fast die Bildschirmbreite */
  .booth { max-width: 96vw; }
  .auth-form .field { margin-bottom: 12px; }
  .auth-tabs { font-size: 0.94rem; }

  /* Balance-Pill in der Topbar lesbar lassen */
  .balance-pill { padding: 5px 10px; }
  .balance-num { font-size: 0.86rem; }
}

@media (max-width: 460px) {
  /* sehr schmale Handys: kompakte Stats, etwas größerer Tap-Bereich */
  .stat { padding: 11px 8px; }
  .stat b { font-size: 1.1rem; }
  .stat small { font-size: 0.66rem; }
  .icon-btn { width: 40px; height: 40px; font-size: 1.05rem; }
  .lang-btn { min-width: 34px; }
  .panel-h { font-size: 1.02rem; }
  .view-title { font-size: 1.35rem; }
  .view-sub { font-size: 0.84rem; }
  .hero-title { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .hero-tag { font-size: 0.78rem; }
  .pool-banner { padding: 13px 14px; }
  .pool-val b { font-size: 1.05rem; }
  .footer-bar { font-size: 0.74rem; gap: 7px; }
}

/* Mobile: Hintergrund-Karneval-Deko ausdünnen für Performance */
@media (max-width: 760px) {
  .sky-tower { display: none; }
  .sky-hotair { width: 32px; height: 52px; }
  .sky-swing { width: 100px; height: 120px; }
  .sky-balloon:nth-child(odd) { display: none; }
}
@media (max-width: 460px) {
  .sky-swing, .sky-hotair { display: none; }
  .sky-balloon:nth-child(3n) { display: none; }
}

/* Touch-freundliche Tap-Targets auf Touch-Geräten */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-btn { min-height: 44px; }
  .icon-btn { min-width: 42px; min-height: 42px; }
  .auth-tab { min-height: 44px; }
  .chip { min-width: 48px; min-height: 48px; }
}
