/* ZOCKARO — Neon-Casino-Lounge (v0.12 Neudesign: hell, satt, wertig).
   Sattes Indigo statt Schwarz · leuchtende Glas-Panels · glühende HUD-Werte ·
   Joker als Sammelkarten · Punkte fliegen sichtbar durchs UI. */
:root {
  color-scheme: dark;
  --bg:      #1a1638;
  --bg2:     #262052;
  --panel:   #2c2562;
  --panel2:  #3a3178;
  --line:    #5c4da2;
  --edge:    rgba(196,176,255,.3);    /* Innenkante (Glas-Highlight) */
  --text:    #f7f4ff;
  --dim:     #c6bbea;
  --chips:   #52b4ff;                 /* Blau  = Chips  */
  --mult:    #ff5d7e;                 /* Magenta-Rot = Faktor */
  --gold:    #ffd44d;
  --good:    #52e8a6;
  --bad:     #ff7488;
  --hot:     #ff9448;
  --violet:  #c3aaff;
  --glass:   rgba(66,54,124,.62);
  --radius:  16px;
  --shadow:  0 14px 42px rgba(12,8,34,.45);
  /* feine gebürstete Metall-Textur, liegt als oberste Schicht auf allen Flächen */
  --brush: repeating-linear-gradient(115deg, rgba(255,255,255,.032) 0 1px, rgba(255,255,255,0) 1px 4px);
  /* Metall-Bevel: Licht oben, Schatten unten, harte Innenkante */
  --bevel: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(10,6,30,.35), inset 0 0 0 1px rgba(255,255,255,.05);
  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, -apple-system, sans-serif;
  --glow-chips: 0 0 20px rgba(70,166,255,.55);
  --glow-mult:  0 0 20px rgba(255,77,109,.55);
  --glow-gold:  0 0 22px rgba(255,207,74,.55);
  --glow-good:  0 0 18px rgba(79,230,160,.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* min-height statt height: Mit height:100% war die Hintergrund-Fläche nur
   viewport-hoch und der Body-Verlauf KACHELTE auf langen Seiten (Landing) —
   harte Farbkante bei jedem Vielfachen der Fensterhöhe. */
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 640px at 50% -14%, #55349c 0%, transparent 62%),
    radial-gradient(900px 520px at 102% 108%, #58297c 0%, transparent 58%),
    radial-gradient(700px 700px at -8% 40%, #33296e 0%, transparent 62%),
    linear-gradient(180deg, #221c48, var(--bg));
  background-color: var(--bg); /* Fallback-Fläche, falls die Verläufe je enden */
  color: var(--text);
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px 8px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* Driftendes Aurora-Glühen im Hintergrund */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(82,180,255,.3), transparent 70%) 18% 22%/48% 48% no-repeat,
    radial-gradient(closest-side, rgba(255,93,126,.26), transparent 70%) 82% 30%/46% 46% no-repeat,
    radial-gradient(closest-side, rgba(195,170,255,.24), transparent 70%) 55% 88%/52% 52% no-repeat;
  filter: blur(28px); opacity: 1;
  animation: aurora 34s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-2%,-1%,0) scale(1); }
  50%  { transform: translate3d(3%,2%,0) scale(1.08); }
  100% { transform: translate3d(-1%,2%,0) scale(1.03); }
}
/* Feiner Film-Grain über allem */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app {
  position: relative; z-index: 1;
  width: 100%; max-width: 740px;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
  /* Spiel-Loop passt ohne Scrollen in den Viewport (Brett flext, Rest ist kompakt) */
  min-height: calc(100dvh - 24px);
}
::selection { background: rgba(70,166,255,.35); color: #fff; }

/* ---------- Topbar / HUD ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch;
  background: var(--brush), linear-gradient(180deg, rgba(82,64,150,.78), rgba(48,38,96,.78));
  backdrop-filter: blur(12px) saturate(1.25); -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 8px; box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
  animation: drop-in .5s cubic-bezier(.2,.9,.3,1) both;
}
.tb-item { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 3px 12px; flex: 1; min-width: 76px; }
.tb-item + .tb-item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(224,214,255,.45), transparent);
}
.tb-k { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tb-v { font-family: var(--font-display); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
/* Ziel-Wert in Metall-Gold (Verlauf statt Flachfarbe) */
.tb-target .tb-v {
  background: linear-gradient(180deg, #fff3c4 0%, #ffd44d 40%, #e8a92c 58%, #ffe27a 74%, #c08418 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255,212,77,.5));
}
.tb-money .tb-v { color: var(--good); text-shadow: var(--glow-good); }
.tb-lives .tb-v { text-shadow: 0 0 14px rgba(255,77,109,.6); letter-spacing: .01em; white-space: nowrap; }
/* verlorene Herzen: GRAU + durchsichtig — unmissverständlich (auch bei Emoji-Rendering) */
/* kompakter (.82em), damit bis zu 6 Herzen auch als breiteres Android-Emoji in die
   enge Mobile-Topbar-Zelle passen, ohne umzubrechen oder überzulaufen */
.hrt { display: inline-block; font-size: .82em; transition: filter .3s ease, opacity .3s ease; }
.hrt.off { filter: grayscale(1) brightness(.5); opacity: .3; }
@keyframes lives-lose {
  0% { transform: translateX(0); } 15% { transform: translateX(-5px) rotate(-4deg); }
  35% { transform: translateX(5px) rotate(4deg); } 55% { transform: translateX(-4px); }
  75% { transform: translateX(3px); } 100% { transform: translateX(0); }
}
.tb-lives .tb-v.lose { animation: lives-lose .55s ease; }
.tb-lives .tb-v.gain { animation: tick-pop .5s ease-out; }
.tb-v.good { color: var(--good); text-shadow: var(--glow-good); }
.boss-chip {
  align-self: center; margin-left: auto; padding: 7px 13px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,77,109,.22), rgba(255,77,109,.1));
  border: 1px solid var(--mult); color: #ffb3c0; font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: .03em; cursor: help;
  box-shadow: 0 0 18px rgba(255,77,109,.28), inset 0 1px 0 rgba(255,255,255,.12);
  animation: pulse-danger 2.4s ease-in-out infinite;
}
@keyframes pulse-danger { 0%,100% { box-shadow: 0 0 14px rgba(255,77,109,.22), inset 0 1px 0 rgba(255,255,255,.12); } 50% { box-shadow: 0 0 26px rgba(255,77,109,.45), inset 0 1px 0 rgba(255,255,255,.12); } }
/* Bonusjagd-Chip in der Topbar */
.bonus-chip {
  align-self: center; margin-left: auto; padding: 7px 13px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,212,77,.25), rgba(255,212,77,.1));
  border: 1px solid var(--gold); color: #ffe8a3; font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: .03em;
  box-shadow: 0 0 18px rgba(255,212,77,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.boss-chip + .bonus-chip { margin-left: 8px; }
/* Tages-Chip in der Topbar (Tägliche Herausforderung) */
.daily-chip {
  align-self: center; margin-left: auto; padding: 7px 13px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(58,160,255,.24), rgba(58,160,255,.1));
  border: 1px solid var(--chips, #3aa0ff); color: #bfe0ff; font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: .03em; cursor: help;
  box-shadow: 0 0 18px rgba(58,160,255,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.boss-chip + .daily-chip { margin-left: 8px; }
/* Teilbares Tagesergebnis im End-Screen */
.daily-share {
  margin: 6px auto 4px; max-width: 380px; width: 100%;
  background: var(--brush), linear-gradient(180deg, rgba(58,160,255,.14), rgba(40,32,80,.4));
  border: 1px solid color-mix(in srgb, var(--chips, #3aa0ff) 45%, var(--line));
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
}
.ds-head { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; margin-bottom: 8px; }
.ds-text { font-family: var(--font-body, inherit); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; margin: 0 0 12px; color: var(--text); }
.ds-copy { width: 100%; }

/* Freischalt-/Erfolg-Toasts (oben zentriert, stapelbar) */
#unlock-toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; max-width: 92vw; }
.unlock-toast {
  padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: #0e0b1e; background: linear-gradient(180deg, #ffe27a, #f5b53a);
  border: 1px solid #ffd873; box-shadow: 0 8px 26px rgba(0,0,0,.45), 0 0 20px rgba(245,181,58,.5);
  transform: translateY(-14px); opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease; white-space: nowrap;
}
.unlock-toast.show { transform: none; opacity: 1; }
.unlock-toast b { color: #2b1a00; }

/* Statistik & Erfolge */
.stats-note { color: #ffcf7a; font-size: 13px; margin: 0 0 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; box-shadow: inset 0 1px 0 var(--edge); }
.stat-v { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); }
.stat-k { display: block; font-size: 11px; letter-spacing: .04em; color: var(--dim); margin-top: 3px; }
.stats-daily { background: linear-gradient(180deg, rgba(58,160,255,.14), rgba(40,32,80,.3)); border: 1px solid color-mix(in srgb, var(--chips,#3aa0ff) 40%, var(--line)); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.stats-sub { font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 4px 0 10px; }
.ach-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.ach.done { border-color: color-mix(in srgb, var(--good,#4caf82) 55%, var(--line)); background: linear-gradient(180deg, rgba(76,175,130,.14), rgba(255,255,255,.02)); }
.ach.locked { opacity: .72; }
.ach-ic { font-size: 18px; line-height: 1.3; flex: 0 0 auto; }
.ach.done .ach-ic { color: var(--good,#4caf82); }
.ach-body { display: flex; flex-direction: column; gap: 2px; }
.ach-name { font-family: var(--font-display); font-size: 14.5px; }
.ach-body i { font-style: normal; font-size: 12.5px; color: var(--dim); }
.stats-reset { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.reset-warn { font-size: 13px; color: #ffb3c0; }

/* Tages-Streak-Notiz auf der Landingpage */
.lp-daily-note { margin: 12px 0 0; font-size: 14px; color: #bfe0ff; }
.lp-daily-note b { color: #fff; }

/* ---------- Stage / Panels ---------- */
.stage { flex: 1; display: flex; min-height: 0; }
.panel {
  position: relative; width: 100%;
  background: var(--brush), linear-gradient(180deg, rgba(72,56,134,.7), rgba(40,32,80,.74));
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 16px;
  animation: rise .5s cubic-bezier(.2,.9,.3,1) both;
}
/* Art-déco-Eckakzente — jetzt in Metall-Gold */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .9;
  filter: drop-shadow(0 0 6px rgba(255,212,77,.45));
}
.panel::before { top: 10px; left: 10px; border-top: 2px solid #e3c06a; border-left: 2px solid #b98f3a; border-top-left-radius: 6px; }
.panel::after  { bottom: 10px; right: 10px; border-bottom: 2px solid #b98f3a; border-right: 2px solid #e3c06a; border-bottom-right-radius: 6px; }
.panel.center { align-items: center; justify-content: center; text-align: center; gap: 15px; }

.logo {
  font-family: var(--font-display);
  font-size: clamp(46px, 12vw, 82px); font-weight: 700; letter-spacing: .06em; line-height: .95;
  background: linear-gradient(180deg, #ffffff 0%, #7ec3ff 46%, #ff4d6d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(70,166,255,.4));
}
.logo.win  { background: linear-gradient(180deg,#fff,#7ef0b8 60%,var(--good)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 26px rgba(79,230,160,.45)); }
.logo.gold { background: linear-gradient(180deg,#fff8dc,#ffd44d 55%,#e8a92c); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 26px rgba(255,212,77,.5)); font-size: clamp(38px, 9vw, 64px); }
.logo.lose { background: linear-gradient(180deg,#fff,#ff9aa8 60%,var(--bad)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 26px rgba(255,107,125,.4)); }
.sub { color: var(--dim); font-size: 15px; letter-spacing: .01em; }
.sub b { color: var(--text); }
.rules { color: var(--text); font-size: 14px; max-width: 46ch; line-height: 1.6; opacity: .92; }
.rules b { color: var(--gold); font-weight: 600; }

/* ---------- Play-Bereich ---------- */
/* Mobil: Brett oben (flext), darunter die Seitenspalte. Desktop: zwei Spalten (s. u.). */
.play { width: 100%; flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.aside-wrap {
  background: var(--brush), linear-gradient(180deg, rgba(46,37,92,.6), rgba(46,37,92,.32));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; box-shadow: inset 0 1px 0 var(--edge);
}
.aside-label { font-size: 13px; color: var(--dim); margin-bottom: 9px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aside-label .chips { font-family: var(--font-display); color: var(--chips); font-size: 16px; font-weight: 700; text-shadow: var(--glow-chips); }
.tag { font-family: var(--font-display); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(53,37,97,.5); border: 1px solid var(--line); color: var(--dim); letter-spacing: .02em; }
.tag.hot { color: var(--hot); border-color: var(--hot); background: rgba(255,138,61,.14); box-shadow: 0 0 14px rgba(255,138,61,.25); }
.tag.bust { color: var(--bad); border-color: var(--bad); background: rgba(255,107,125,.12); }
.tag.joker-plus { color: var(--chips); border-color: var(--chips); background: rgba(82,180,255,.12); }
/* verfallene Beiseite-Würfel nach Verzockt */
.aside-wrap.busted .die.locked { filter: grayscale(.85) brightness(.5); }

.dice-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.dice-row.small { gap: 7px; justify-content: flex-start; }
/* Beiseite-Zeile reserviert ihre Höhe auch leer — nichts rutscht beim ersten Sichern */
.aside-dice { min-height: 40px; align-items: center; }
.dice-row .empty, .jb-row .empty, .offer .empty { color: var(--dim); font-size: 13px; font-style: italic; }

.roll-wrap { padding: 18px 6px; display: flex; justify-content: center;
  background: radial-gradient(320px 130px at 50% 42%, rgba(70,166,255,.1), transparent 70%); }

/* ---------- 3D-Würfelbrett ---------- */
/* Die Zone flext in den verfügbaren Raum; Overlays (Würfeln-CTA, Rechnung, Verzockt)
   liegen ÜBER dem stehenbleibenden Canvas — kein Layout-Sprung zwischen den Phasen. */
.board-zone { position: relative; flex: 1; min-height: 280px; display: flex; }
.board-wrap {
  position: relative; width: 100%; flex: 1; min-height: 280px;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(560px 300px at 50% 36%, rgba(82,180,255,.2), transparent 72%),
    radial-gradient(closest-side at 50% 60%, rgba(48,38,96,.4), transparent),
    linear-gradient(180deg, rgba(58,46,110,.4), rgba(30,24,62,.5));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 40px rgba(12,8,34,.3), inset 0 1px 0 var(--edge);
  animation: rise .5s cubic-bezier(.2,.9,.3,1) both;
}
.board-overlay {
  position: absolute; inset: 0; z-index: 5; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 18px; text-align: center;
  background: radial-gradient(closest-side at 50% 50%, rgba(8,6,15,.62), rgba(8,6,15,.28) 72%, rgba(8,6,15,.08));
  animation: fade-in .25s ease-out both;
}
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
/* Würfeln-CTA im Brett: lädt das leere Brett zum Klicken ein */
.board-cta { background: radial-gradient(closest-side at 50% 50%, rgba(8,6,15,.35), transparent 78%); }
/* Phönix hat gerettet: unübersehbares Banner überm Würfeln-Knopf */
.phoenix-note {
  max-width: 46ch; padding: 12px 18px; border-radius: 13px;
  font-size: 15px; color: #ffd9b0;
  background: linear-gradient(180deg, rgba(255,148,72,.28), rgba(255,148,72,.12));
  border: 1px solid var(--hot);
  box-shadow: 0 0 28px rgba(255,148,72,.4), inset 0 1px 0 rgba(255,255,255,.2);
  animation: rise .35s ease-out both;
}
.phoenix-note b { color: var(--hot); font-family: var(--font-display); }
.board-cta .btn.big { box-shadow: 0 4px 0 #1b4a92, 0 0 34px rgba(70,166,255,.55), inset 0 1px 0 rgba(255,255,255,.35); animation: cta-pulse 2.2s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 0 #1b4a92, 0 0 22px rgba(70,166,255,.4), inset 0 1px 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 4px 0 #1b4a92, 0 0 42px rgba(70,166,255,.65), inset 0 1px 0 rgba(255,255,255,.35); }
}
/* zarter Leucht-Rahmen ums Brett */
.board-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(183,156,255,.14), inset 0 0 34px rgba(70,166,255,.08);
}
/* Canvas ABSOLUT: füllt die Brett-Zone, bestimmt aber NICHT deren Höhe. Als
   normales Inline-Block-Replaced-Element erzwang seine intrinsische Größe eine
   Mindesthöhe → die Brett-Zone flexte auf dem Handy nicht klein genug, #app
   sprengte seine feste Höhe und die Seite scrollte. */
.board-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.board-loading { width: 100%; height: 100%; display: grid; place-items: center; color: var(--dim); font-style: italic; letter-spacing: .03em; }

/* ---------- Würfel (2D-Fallback) ---------- */
.die {
  width: 62px; height: 62px; border-radius: 14px;
  background: linear-gradient(155deg, #fbf8ff 0%, #d7ccf3 62%, #bcaee8 100%);
  box-shadow: 0 5px 0 #6f61a6, 0 10px 20px rgba(0,0,0,.5), inset 0 2px 3px rgba(255,255,255,.7);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .1s ease, box-shadow .12s ease, filter .14s ease;
  user-select: none;
}
.die.small, .dice-row.small .die { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 3px 0 #6f61a6, 0 6px 10px rgba(0,0,0,.4), inset 0 1px 2px rgba(255,255,255,.6); cursor: default; }
.die.dead { filter: grayscale(.72) brightness(.6); cursor: not-allowed; }
.die.scoring:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #6f61a6, 0 12px 22px rgba(0,0,0,.5), inset 0 2px 3px rgba(255,255,255,.7); }
.die.sel {
  background: linear-gradient(155deg, #e2fff1 0%, #86f0bb 60%, #4fe6a0 100%);
  box-shadow: 0 5px 0 #2c9b66, 0 0 0 3px var(--good), 0 10px 22px rgba(79,230,160,.45), inset 0 2px 3px rgba(255,255,255,.7);
  transform: translateY(-4px);
}
.die.locked { background: linear-gradient(155deg, #ded6ff, #a99be0); opacity: .95; }

/* ---------- Joker-Würfel (2D/Beiseite/Shop): wertige, klar unterscheidbare Looks ---- */
.die { position: relative; }
.die[data-ic]::after {
  content: attr(data-ic); position: absolute; top: -7px; right: -7px;
  font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.dice-row.small .die[data-ic]::after { font-size: 11px; top: -6px; right: -6px; }
.die.dt-schief   { background: linear-gradient(155deg, #f3eaff 0%, #cdb1f5 62%, #a986e8 100%); box-shadow: 0 5px 0 #6b4fa8, 0 0 14px rgba(122,77,255,.45), inset 0 2px 3px rgba(255,255,255,.7); }
.die.dt-geld     { background: linear-gradient(155deg, #eafff2 0%, #a9ecc2 62%, #6fd695 100%); box-shadow: 0 5px 0 #2c8a55, 0 0 14px rgba(46,204,113,.5), inset 0 2px 3px rgba(255,255,255,.7); }
.die.dt-zwilling { background: linear-gradient(155deg, #eaf4ff 0%, #a9cdf5 62%, #79a9ee 100%); box-shadow: 0 5px 0 #2f5fae, 0 0 14px rgba(47,127,232,.5), inset 0 2px 3px rgba(255,255,255,.7); }
.die.dt-gold     { background: linear-gradient(155deg, #fff6d6 0%, #ffd44d 55%, #e8a92c 100%); box-shadow: 0 5px 0 #a4741a, 0 0 18px rgba(255,212,77,.65), inset 0 2px 3px rgba(255,255,255,.8); }
.die.dt-kamin    { background: linear-gradient(155deg, #8a6570 0%, #5c414c 55%, #3a2b33 100%); box-shadow: 0 5px 0 #26191f, 0 0 18px rgba(255,90,31,.6), inset 0 2px 3px rgba(255,150,90,.35); }
.die.dt-kamin .pip.on { background: radial-gradient(circle at 35% 30%, #ffd0a8, #ff5a1f); box-shadow: 0 0 6px rgba(255,90,31,.8); }
.die.dt-siebter  { background: linear-gradient(155deg, #eafcff 0%, #a9e9f5 62%, #6fd0e0 100%); box-shadow: 0 5px 0 #1a8ba1, 0 0 14px rgba(25,184,214,.5), inset 0 2px 3px rgba(255,255,255,.7); }
.die.dt-herz     { background: linear-gradient(155deg, #ffeef4 0%, #ffb9cd 62%, #f58aa8 100%); box-shadow: 0 5px 0 #b03858, 0 0 14px rgba(255,61,110,.5), inset 0 2px 3px rgba(255,255,255,.7); }
.die.dt-glas     { background: linear-gradient(155deg, rgba(240,252,255,.75) 0%, rgba(190,230,250,.55) 60%, rgba(160,210,240,.45) 100%); box-shadow: 0 5px 0 rgba(90,140,170,.55), 0 0 14px rgba(160,220,255,.45), inset 0 2px 4px rgba(255,255,255,.9); }

/* Pips */
.pips { width: 42px; height: 42px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 2px; }
.die.small .pips, .dice-row.small .pips { width: 27px; height: 27px; }
.pip { border-radius: 50%; }
.pip.on { background: radial-gradient(circle at 35% 30%, #4a3a72, #1e1440); box-shadow: inset 0 1px 2px rgba(0,0,0,.55); }

/* ---------- Readout / Score-Preview ---------- */
.readout {
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  min-height: 132px; /* fester Slot: Hinweis, Rechnung + Aufschlüsselung oder Phönix — gleiche Höhe */
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--brush), linear-gradient(180deg, rgba(46,37,92,.5), rgba(46,37,92,.22));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge);
}
/* einzeilig geklemmt — Umbruch würde die Buttons darunter verschieben */
.sel-info { font-size: 14px; color: var(--dim); min-height: 20px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sel-info b { font-family: var(--font-display); color: var(--chips); }
.sel-info .bad { color: var(--bad); }
.score-preview {
  display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: clamp(28px, 7.5vw, 44px);
}
.chips-box { color: var(--chips); text-shadow: var(--glow-chips); }
.mult-box  { color: var(--mult);  text-shadow: var(--glow-mult); }
.x, .eq { color: var(--dim); font-size: .6em; font-weight: 500; }
.total-box {
  background: linear-gradient(180deg, #fff3c4 0%, #ffd44d 40%, #e8a92c 58%, #ffe27a 74%, #c08418 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255,212,77,.5));
}
/* Solange nichts gewählt ist, leuchtet die Rechnung nicht */
.score-preview.idle { opacity: .3; filter: saturate(.35); transition: opacity .2s ease, filter .2s ease; }
/* Aufschlüsselung der Rechnung (Beiseite + Auswahl + Joker = Chips · Faktor) */
.calc-note { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.calc-note.idle { opacity: .55; }

/* ---------- Aktionen / Buttons ---------- */
.actionbar, .shop-controls { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

/* ---------- Händler: Joker-Würfel-Sektion ---------- */
.shop-sub { font-family: var(--font-display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 18px 0 10px; text-align: center; }
/* Joker-Karten-Grafik (Platzhalter: assets/jokers/<id>.svg — einfach ersetzen) */
.jart { margin: 0 0 9px; }
.jart img { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.jart.mini { margin-bottom: 6px; }
.jart.mini img { height: 50px; border-radius: 7px; }
.dice-locked { text-align: center; color: var(--dim); font-size: 14px; line-height: 1.5; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 4px; }
.dice-locked b { color: var(--gold); }
.dcard .dpreview { display: flex; justify-content: center; margin-bottom: 4px; }
.dcard .dpreview .die { cursor: default; width: 52px; height: 52px; }
.dcard .dpreview .pips { width: 34px; height: 34px; }
.dice-inv { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dice-inv .inv-row { justify-content: center; flex-wrap: wrap; gap: 10px; }
.inv-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.inv-cell .btn.xs { margin-top: 0; }
.die.swap-target { cursor: pointer; animation: swap-pulse 1s ease-in-out infinite; }
.die.swap-target:hover { transform: translateY(-3px) scale(1.06); }
@keyframes swap-pulse { 0%, 100% { box-shadow: 0 3px 0 #6f61a6, 0 0 0 2px rgba(82,180,255,.5); } 50% { box-shadow: 0 3px 0 #6f61a6, 0 0 0 5px rgba(82,180,255,.85); } }
/* Feste Slots im Spiel: Würfeln oben (volle Breite), darunter Bestes|Weiter|Sichern,
   Einsacken (Bonusjagd) als eigene volle Zeile — Positionen sind phasenstabil. */
.actionbar.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.actionbar.slots .a-roll, .actionbar.slots .a-cash { grid-column: 1 / -1; }
.actionbar.slots .btn { padding: 12px 8px; font-size: 14px; }
.actionbar.slots .btn.big { padding: 14px 10px; font-size: 17px; }
.btn {
  position: relative; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; cursor: pointer; color: var(--text);
  background: var(--brush), linear-gradient(180deg, #473c8c, var(--panel));
  border: 1px solid var(--line); border-radius: 13px; padding: 13px 20px; font-size: 15px;
  box-shadow: 0 4px 0 rgba(12,8,34,.45), var(--bevel);
  transition: transform .08s ease, filter .14s ease, box-shadow .12s ease;
}
/* Shimmer-Sweep beim Hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .5s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(12,8,34,.45), var(--bevel); }
.btn.primary {
  /* Chrom-Band oben = Metall-Anmutung */
  background: var(--brush), linear-gradient(180deg, #a5dcff 0%, #5fc0ff 26%, #3b82e8 62%, #2f6ac9 100%);
  border-color: #93d2ff; color: #06172c;
  box-shadow: 0 4px 0 #2356a4, 0 0 26px rgba(82,180,255,.5), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(16,44,96,.45);
}
.btn.primary:active { box-shadow: 0 1px 0 #2356a4, 0 0 20px rgba(82,180,255,.4), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(16,44,96,.45); }
.btn.ghost { background: rgba(255,255,255,.08); }
.btn.big { padding: 16px 34px; font-size: 18px; }
.btn.small { padding: 9px 12px; font-size: 13px; width: 100%; }
.btn.xs { padding: 6px 9px; font-size: 11px; margin-top: 6px; }
.btn.disabled { opacity: .38; pointer-events: none; filter: saturate(.5); }

/* ---------- Ziel-Skala (Seitenspalte) ---------- */
.goal-scale {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--brush), linear-gradient(180deg, rgba(46,37,92,.55), rgba(46,37,92,.28));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge);
}
.gs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.gs-head b { color: var(--gold); font-size: 13px; text-transform: none; letter-spacing: .02em; text-align: right; }
.gs-bar { position: relative; height: 13px; border-radius: 999px; background: rgba(22,16,48,.75); border: 1px solid var(--line); overflow: hidden; }
.gs-fill {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px;
  background: linear-gradient(90deg, #3b82e8, #52b4ff);
  box-shadow: 0 0 12px rgba(82,180,255,.55);
  transition: width .45s ease;
}
.gs-fill.done { background: linear-gradient(90deg, #e8a92c, #ffd44d); box-shadow: 0 0 14px rgba(255,212,77,.6); }
/* Potenzial des laufenden Zuges (würde beim Sichern dazukommen) */
.gs-pending { position: absolute; top: 0; bottom: 0; background: rgba(82,232,166,.5); transition: left .3s ease, width .3s ease; }
.gs-nums { display: flex; justify-content: space-between; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--dim); }
/* Meilensteine der Bonusjagd: Kerbe auf der Leiste + Belohnung/Punkte darunter */
.gs-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; transform: translateX(-1px); border-radius: 1px; background: rgba(255,255,255,.4); }
.gs-tick.hit { background: var(--gold); box-shadow: 0 0 8px rgba(255,212,77,.6); }
.gs-marks { position: relative; height: 30px; }
.gs-mark { position: absolute; top: 2px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; white-space: nowrap; font-family: var(--font-display); }
.gs-mark b { font-size: 11px; font-weight: 700; color: var(--text); }
.gs-mark i { font-style: normal; font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.gs-mark.hit b { color: var(--gold); text-shadow: 0 0 10px rgba(255,212,77,.5); }
.gs-mark.hit i { color: var(--gold); opacity: .8; }

/* ---------- Bonusjagd ---------- */
.bonus-modes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 720px; }
.bonus-card {
  flex: 1; min-width: 250px; max-width: 340px;
  background: var(--brush), linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  box-shadow: 0 6px 18px rgba(12,8,34,.4), inset 0 1px 0 var(--edge);
}
.bonus-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.bonus-card.safe { border-top: 3px solid var(--good); }
.bonus-card.safe h3 { color: var(--good); text-shadow: var(--glow-good); }
.bonus-card.risk { border-top: 3px solid var(--mult); box-shadow: 0 6px 18px rgba(12,8,34,.4), 0 0 22px rgba(255,93,126,.18), inset 0 1px 0 var(--edge); }
.bonus-card.risk h3 { color: var(--mult); text-shadow: var(--glow-mult); }
.bonus-card .tiers { font-size: 14.5px; color: var(--dim); }
.bonus-card .tiers b { color: var(--gold); }
.bonus-card .mini { font-size: 12.5px; color: var(--dim); flex: 1; }
.bonus-card .btn { width: 100%; }
.btn.danger {
  background: var(--brush), linear-gradient(180deg, #ff8ba1 0%, #ff5d7e 30%, #d63a5c 65%, #b52c4a 100%);
  border-color: #ff9db0; color: #2c0611;
  box-shadow: 0 4px 0 #8a2038, 0 0 26px rgba(255,93,126,.45), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(90,16,34,.45);
}
.btn.danger:active { box-shadow: 0 1px 0 #8a2038, 0 0 20px rgba(255,93,126,.35), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(90,16,34,.45); }
.gold-h { color: var(--gold) !important; text-shadow: var(--glow-gold) !important; }
.bonus-ratio {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 9vw, 72px);
  background: linear-gradient(180deg, #fff3c4 0%, #ffd44d 40%, #e8a92c 58%, #ffe27a 74%, #c08418 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,212,77,.5));
}

/* ---------- Verzockt-Overlay ---------- */
.overlay.bust {
  margin-top: 6px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
  padding: 18px; border: 1px solid var(--mult); border-radius: var(--radius);
  background: radial-gradient(400px 150px at 50% 0%, rgba(255,77,109,.16), rgba(255,77,109,.05));
  box-shadow: 0 0 30px rgba(255,77,109,.2), inset 0 1px 0 rgba(255,255,255,.06);
  animation: rise .35s ease-out both;
}
/* … überm Brett: kompakte Karte, kräftigerer Grund für Lesbarkeit über dem Canvas */
.board-overlay .overlay.bust {
  margin-top: 0; max-width: 420px; padding: 22px 26px;
  background: radial-gradient(400px 150px at 50% 0%, rgba(255,77,109,.2), rgba(24,8,16,.88));
}
.bust-big { font-family: var(--font-display); font-size: clamp(38px,11vw,50px); font-weight: 700; color: var(--mult); letter-spacing: .12em; text-shadow: 0 0 28px rgba(255,77,109,.6); }
.overlay.bust p { color: var(--dim); font-size: 14px; max-width: 42ch; }
.overlay.bust p b { color: var(--text); }
.overlay.bust .bust-folge { color: var(--text); font-size: 15px; }
.overlay.bust .bust-folge b { color: var(--good); }
.overlay.bust .bust-folge b.lifecost { color: var(--bad); }

/* ---------- Prüfung gewonnen / Belohnung ---------- */
.won-h {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .015em; line-height: 1.02;
  font-size: clamp(34px, 6vw, 60px); color: var(--good); text-shadow: var(--glow-good);
  animation: won-pop .5s cubic-bezier(.2,.9,.3,1.3) both;
}
/* Metall-Text (wie das Logo): normaler Sieg grün, ZERSCHMETTERT gold = Jackpot-Moment */
.won-h.clear { background: linear-gradient(180deg,#fff,#7ef0b8 58%,var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(79,230,160,.5)); text-shadow: none; }
.won-h.smash { background: linear-gradient(180deg,#fff8dc,#ffd44d 52%,#e8a92c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 32px rgba(255,212,77,.6)); text-shadow: none; letter-spacing: .02em; }
@keyframes won-pop { 0% { opacity: 0; transform: scale(.72) translateY(10px); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.hunt-note { color: var(--dim); font-size: 13px; font-style: italic; max-width: 44ch; }
.reward-lines { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--dim); }
.reward-lines b { font-family: var(--font-display); color: var(--good); }
/* Herz-Ereignisse in der Runden-Bilanz (Verlust rot, Hinweis dezent) */
.reward-lines .rl-life.lost { color: var(--bad); }
.reward-lines .rl-life.lost b { color: var(--bad); }
.reward-lines .rl-note { font-size: 13.5px; font-style: italic; opacity: .85; }
.reward-lines .rl-hearts { font-size: 14px; margin-top: 2px; }
.reward-lines .rl-hearts b { color: inherit; letter-spacing: .06em; }
.reward-lines .rl-hearts .hrt.off { filter: grayscale(1) brightness(.5); opacity: .3; }

/* ---------- Händler / Joker-Karten ---------- */
.shop-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.shop-head .money, .shop .money { font-family: var(--font-display); color: var(--good); font-weight: 700; font-size: 20px; text-shadow: var(--glow-good); }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* ---------- Händler: fold-sicher (kein Scrollen) ---------- */
body.in-shop #app { height: calc(100dvh - 24px); min-height: 0; }
.shop.foldfit {
  flex: 1; min-height: 0; width: 100%; max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: var(--brush), linear-gradient(180deg, rgba(72,56,134,.5), rgba(40,32,80,.5));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
}
.shop.foldfit .shop-head { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; justify-content: flex-start; }
.shop-head-actions { margin-left: auto; display: flex; gap: 8px; }
.shop-groups { flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-content: center; align-items: center; }
.shop-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sg-label { font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; }
.sg-cards { display: flex; gap: 10px; justify-content: center; }
/* Kompakte Kaufkarte (nur im Händler) */
.jcard.buy.shopc {
  width: 150px; min-width: 0; padding: 8px 9px; aspect-ratio: auto; height: auto; min-height: 0;
  display: flex; flex-direction: column;
}
.jcard.buy.shopc .jart, .jcard.buy.shopc .dpreview, .jcard.buy.shopc .iart { margin: 4px 2px; }
.jcard.buy.shopc .jart img, .jcard.buy.shopc .dpreview { height: 60px; }
.jcard.buy.shopc .dpreview { display: flex; justify-content: center; align-items: center; }
.jcard.buy.shopc.icard .iart { height: 60px; font-size: 34px; }
.jcard.buy.shopc .jname { font-size: 13px; }
.jcard.buy.shopc .jrar { font-size: 9px; }
.jcard.buy.shopc .jdesc { font-size: 10.5px; line-height: 1.28; margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.jcard.buy.shopc .btn.small { width: 100%; padding: 6px 8px; font-size: 12px; margin-top: auto; }
.jcard.buy.shopc .dice-locked { font-size: 11px; }
.sg-cards .dice-locked { max-width: 200px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px dashed var(--line); color: var(--dim); text-align: center; align-self: center; }
/* Besitz-Fuß */
.shop-foot { flex: 0 0 auto; }
.swap-prompt { text-align: center; color: #ffe8a3; font-size: 13px; margin-bottom: 8px; }
/* Tausch-Modus: Angebote weg, Würfel-Auswahl in den Fokus */
.shop.swapping .shop-groups { display: none; }
.shop.swapping .shop-foot { margin: auto 0; }
.shop.swapping .swap-prompt { font-size: 16px; margin-bottom: 14px; }
.shop.swapping .shop-foot .die { width: 44px; height: 44px; cursor: pointer; }
.shop.swapping .inv-grp:not(:first-child) { opacity: .5; }
.shop-inv { display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.inv-grp { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.inv-lbl { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.inv-strip { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.shop-foot .die { width: 30px; height: 30px; border-radius: 6px; }
.shop-foot .item-chip.mini { padding: 4px 7px; }
.shop-foot .item-chip.mini .item-ic { font-size: 17px; }
.jchip { width: 34px; height: 34px; border-radius: 7px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--r,#7cc4ff) 60%, var(--line)); box-shadow: 0 0 10px color-mix(in srgb, var(--r,#7cc4ff) 25%, transparent); }
.jchip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jcard {
  position: relative; overflow: hidden;
  background: var(--brush), linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-top: 3px solid var(--r, var(--line));
  border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 1px 0 var(--edge);
  transition: transform .14s ease, box-shadow .16s ease;
}
/* holografischer Sheen beim Hover */
.jcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--r, #fff) 30%, transparent) 50%, transparent 70%);
}
.jcard.buy:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 22px color-mix(in srgb, var(--r, #7cc4ff) 40%, transparent), inset 0 1px 0 var(--edge); }
.jcard.buy:hover::after { opacity: .5; }
.jcard .jname { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.jcard .jrar { font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--r); text-transform: uppercase; letter-spacing: .1em; }
.jcard .jdesc { font-size: 13.5px; color: #b6a8de; line-height: 1.5; flex: 1; }

/* Joker-Leiste */
.jokerbar {
  border-top: 1px solid var(--line); padding-top: 12px;
  background: var(--brush), linear-gradient(180deg, rgba(72,56,134,.55), rgba(40,32,80,.55));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
}
.jb-label { font-family: var(--font-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 9px; }
.jb-row { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.jb-row::-webkit-scrollbar { height: 6px; }
.jb-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.jcard.mini { min-width: 148px; max-width: 168px; padding: 9px 11px; flex-shrink: 0; }

/* Tinkturen (Verbrauchsgegenstände) — Leiste im Spiel + Kaufkarten im Händler */
.itembar {
  background: var(--brush), linear-gradient(180deg, rgba(72,56,134,.55), rgba(40,32,80,.55));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge); margin-bottom: 10px;
}
.item-chip {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 6px 9px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid color-mix(in srgb, var(--r, #7cc4ff) 55%, var(--line));
  box-shadow: inset 0 1px 0 var(--edge), 0 0 14px color-mix(in srgb, var(--r, #7cc4ff) 22%, transparent);
}
.item-ic { font-size: 22px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.item-use { margin: 0; }
/* Tinktur-Kaufkarte: wie Joker-Karte, aber Emoji-Illustration statt Bild */
.jcard.buy.icard .iart {
  display: flex; align-items: center; justify-content: center;
  height: 108px; margin: 8px 6px 4px; border-radius: 9px;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--r, #7cc4ff) 32%, transparent), rgba(0,0,0,.14) 72%);
  border: 1px solid color-mix(in srgb, var(--r, #7cc4ff) 45%, rgba(58,47,92,.3));
  font-size: 52px;
}
.item-offer .jcard.buy { min-width: 210px; }
.held-items { justify-content: center; flex-wrap: wrap; gap: 12px; }
.held-items .item-chip { padding: 8px 10px; }
.jcard.mini .jname { font-size: 13px; }
.jcard.mini .jdesc { font-size: 12px; }

/* ---------- Flash-Toasts ---------- */
.flash {
  position: fixed; left: 50%; top: 22%; transform: translateX(-50%) translateY(-10px);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(40,26,74,.92), rgba(20,13,38,.92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); padding: 13px 20px; border-radius: 13px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge); opacity: 0; transition: opacity .3s, transform .3s; z-index: 70;
}
.flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.flash.hot { color: var(--hot); border-color: var(--hot); box-shadow: 0 0 26px rgba(255,138,61,.35); }
.flash.shield { color: var(--hot); border-color: var(--hot); box-shadow: 0 0 26px rgba(255,138,61,.35); }
.flash.err { color: var(--bad); border-color: var(--bad); box-shadow: 0 0 26px rgba(255,107,125,.3); }

.foot { color: var(--dim); font-family: var(--font-display); font-size: 11px; letter-spacing: .04em; margin-top: 12px; opacity: .6; text-align: center; }

/* ---------- Entrance ---------- */
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes rise    { 0% { opacity: 0; transform: translateY(16px) scale(.99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Würfel-Animationen (2D-Fallback) ---------- */
@keyframes tumble {
  0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-12px) rotate(-14deg); }
  50% { transform: translateY(2px) rotate(10deg); } 75% { transform: translateY(-7px) rotate(-7deg); }
  100% { transform: translateY(0) rotate(0); }
}
.die.spin { animation: tumble .3s linear infinite; background: linear-gradient(155deg,#fff,#d6ccf5); cursor: default; }
@keyframes land { 0% { transform: scale(1.28) translateY(-8px); } 55% { transform: scale(.92); } 100% { transform: scale(1); } }
.die.land { animation: land .34s cubic-bezier(.2,1.3,.4,1); }
.die.doom {
  background: linear-gradient(155deg,#ffd3d8,#ff8f9d) !important;
  box-shadow: 0 5px 0 #a3323c, 0 0 0 3px var(--mult), 0 10px 22px rgba(255,77,109,.5) !important;
}
.rolling-hint { color: var(--dim); font-style: italic; letter-spacing: .05em; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- Punkte-Reveal ---------- */
.score-reveal { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 6px; }
.score-preview.big { font-size: clamp(32px, 9vw, 56px); animation: reveal-in .4s ease-out; }
@keyframes reveal-in { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse-total { 0% { transform: scale(1); } 30% { transform: scale(1.24); filter: brightness(1.45); } 100% { transform: scale(1); } }
.total-box.pulse { display: inline-block; animation: pulse-total .6s ease-out .15s; }
/* „gesichert" erscheint erst, wenn die Summe steht (per .show, von scoreReveal) */
.secured { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--good); text-shadow: var(--glow-good); opacity: 0; }
.secured.show { opacity: 1; animation: reveal-in .5s ease-out; }

/* Tick-Pop: eine Zahl-Box „springt" bei Änderung (Chips/Faktor/Summe). */
@keyframes tick-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); filter: brightness(1.5); } 100% { transform: scale(1); } }
@keyframes tick-pop-big { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-3deg); filter: brightness(1.85); } 100% { transform: scale(1); } }
.score-preview .total-box.tick, .score-preview .chips-box.tick, .score-preview .mult-box.tick,
.aside-label .chips.tick { display: inline-block; animation: tick-pop .24s ease-out; }
.score-preview .mult-box.tick-big, .score-preview .chips-box.tick-big { display: inline-block; animation: tick-pop-big .34s ease-out; }

/* ---- Wertungs-Show: Joker zünden nacheinander, Zahlen eskalieren --------- */
/* Summe wartet, bis alle Joker durch sind (leer + gedimmter Platzhalter). */
.total-box.pending { opacity: .3; }
.total-box.pending::before { content: "–"; }
/* Faktor-Box wächst/glüht mit ihrem Wert — Balatro-„big mult"-Gefühl (Baustein D). */
.mult-box { display: inline-block; transition: font-size .22s ease, filter .22s ease; }
.mult-box.heat { font-size: 1.12em; filter: brightness(1.12); text-shadow: 0 0 20px color-mix(in srgb, var(--mult) 90%, transparent), var(--glow-mult); }
.mult-box.heat-max { font-size: 1.3em; filter: brightness(1.32) saturate(1.3); text-shadow: 0 0 30px var(--mult), 0 0 12px #fff; }
/* Summe knallt stärker, je fetter der Zug. */
@keyframes pulse-total-big  { 0% { transform: scale(1); } 28% { transform: scale(1.42); filter: brightness(1.6); } 100% { transform: scale(1); } }
@keyframes pulse-total-huge { 0% { transform: scale(1); } 22% { transform: scale(1.62) rotate(-1deg); filter: brightness(1.9); } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }
.total-box.pulse.big  { animation: pulse-total-big .68s ease-out .15s; }
.total-box.pulse.huge { animation: pulse-total-huge .82s ease-out .15s; }

/* Getriggerte Joker-Karte zündet in ihrer Seltenheits-Farbe. */
@keyframes joker-trigger { 0% { transform: scale(1) rotate(0); } 30% { transform: scale(1.14) rotate(-3deg); } 60% { transform: scale(1.07) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes joker-trigger-big { 0% { transform: scale(1) rotate(0); } 22% { transform: scale(1.19) rotate(-5deg); } 48% { transform: scale(1.11) rotate(4deg); } 72% { transform: scale(1.06) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }
.jcard.triggering, .jcard.triggering-big { position: relative; z-index: 6; }
.jcard.triggering { animation: joker-trigger .5s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 0 0 2px var(--r, #7cc4ff), 0 0 24px 3px color-mix(in srgb, var(--r, #7cc4ff) 70%, transparent); }
.jcard.triggering-big { animation: joker-trigger-big .62s cubic-bezier(.3,1.5,.5,1); filter: brightness(1.15); box-shadow: 0 0 0 3px var(--r, #7cc4ff), 0 0 38px 6px color-mix(in srgb, var(--r, #7cc4ff) 85%, transparent); }

/* „+X"/„×Y" steigt über der zündenden Karte auf. */
.joker-pop {
  position: fixed; z-index: 82; pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  animation: joker-pop-up .95s cubic-bezier(.2,.7,.3,1) both;
}
.joker-pop.chips { color: var(--chips); text-shadow: 0 0 14px color-mix(in srgb, var(--chips) 80%, transparent), 0 2px 6px rgba(0,0,0,.75); }
.joker-pop.mult  { color: var(--mult);  text-shadow: 0 0 14px color-mix(in srgb, var(--mult) 80%, transparent),  0 2px 6px rgba(0,0,0,.75); }
@keyframes joker-pop-up {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: 0; }
  18%  { transform: translate(-50%,-118%) scale(1.18); opacity: 1; }
  42%  { transform: translate(-50%,-138%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-235%) scale(.85); opacity: 0; }
}
/* Fotofinish (Sieg-Nachlese): die Beiträge blenden gestaffelt ein — ruhige
   Variante von Baustein A, ohne echte Karten zum Zünden. */
.finish-parts .rp { animation: reveal-in .34s ease-out both; }
.finish-parts .rp:nth-child(1) { animation-delay: .04s; }
.finish-parts .rp:nth-child(2) { animation-delay: .12s; }
.finish-parts .rp:nth-child(3) { animation-delay: .20s; }
.finish-parts .rp:nth-child(4) { animation-delay: .28s; }
.finish-parts .rp:nth-child(5) { animation-delay: .36s; }
.finish-parts .rp:nth-child(n+6) { animation-delay: .44s; }

/* Punkte platzen aus den Würfeln (Screen-Position via 3D-Projektion).
   Sofort voll sichtbar (kein Einblenden!), groß, mit Schockwellen-Ring. */
.die-burst {
  position: fixed; z-index: 75; pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700; font-size: 42px;
  color: #ffe27a;
  text-shadow: 0 0 28px rgba(255,212,77,1), 0 0 10px rgba(255,255,255,.6), 0 2px 10px rgba(0,0,0,.8);
  -webkit-text-stroke: 1px rgba(80,50,0,.35);
  animation: burst-up 1.35s cubic-bezier(.2,.8,.3,1) both;
}
.die-burst.small { font-size: 29px; animation-duration: 1.1s; }
.die-burst::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 3px solid rgba(255,215,90,.95); opacity: 0;
  box-shadow: 0 0 18px rgba(255,207,74,.7);
  animation: burst-ring .6s ease-out both;
}
@keyframes burst-up {
  0%   { transform: translate(-50%, -50%) scale(.5); opacity: 1; }
  14%  { transform: translate(-50%, -62%) scale(1.35); }
  28%  { transform: translate(-50%, -72%) scale(1.05); }
  75%  { opacity: 1; }
  100% { transform: translate(-50%, -230%) scale(.95); opacity: 0; }
}
@keyframes burst-ring {
  0%   { opacity: 1; width: 12px; height: 12px; }
  100% { opacity: 0; width: 110px; height: 110px; }
}

/* „+X" fliegt von der Wertung zur Stand-Anzeige */
.fly-score {
  position: fixed; z-index: 80; pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  color: var(--gold); text-shadow: var(--glow-gold), 0 2px 8px rgba(0,0,0,.6);
}
/* Stand in der Topbar leuchtet auf, wenn Punkte ankommen */
@keyframes stand-pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); filter: brightness(1.6); } 100% { transform: scale(1); } }
.tb-stand .tb-v.pop { display: inline-block; animation: stand-pop .55s ease-out; color: var(--gold); text-shadow: var(--glow-gold); }

/* Konfetti bei „Prüfung geschafft" */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.cf {
  position: absolute; left: 50%; top: 60%; width: 9px; height: 14px; border-radius: 2px;
  background: hsl(var(--h, 48) 90% 62%); opacity: 0;
  animation: cf-burst 1.25s cubic-bezier(.15,.6,.35,1) both;
}
@keyframes cf-burst {
  0%   { transform: translate(-50%,-50%) rotate(0) scale(.5); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0) * 300px), calc(-50% + var(--dy, -1) * 340px)) rotate(calc(var(--rot, 2) * 180deg)) scale(1); opacity: 0; }
}

/* Hot-Dice-Feuerwerk: goldener Funkenregen über dem Brett (Baustein B). */
.hot-spark {
  position: fixed; z-index: 84; pointer-events: none; width: 13px; height: 13px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, hsl(var(--h, 38) 100% 66%) 42%, transparent 70%);
  box-shadow: 0 0 16px 3px hsl(var(--h, 38) 100% 60%), 0 0 6px 1px rgba(255,255,255,.9);
  animation: hot-spark 1s cubic-bezier(.2, .6, .3, 1) both;
}
@keyframes hot-spark {
  0%   { transform: translate(-50%,-50%) scale(.3); opacity: 0; }
  14%  { opacity: 1; transform: translate(-50%,-50%) scale(1.35); }
  100% { transform: translate(calc(-50% + var(--dx, 0)), calc(-50% + var(--dy, -40px))) scale(.25); opacity: 0; }
}

/* Glow, sobald die Auswahl wertbar ist — die Rechnung „lebt" auf (Baustein B). */
.readout .score-preview:not(.idle) .total-box { filter: drop-shadow(0 0 15px rgba(255, 212, 77, .8)); }

/* Screen-Shake (abgestuft, Baustein C) — body.shaking unterdrückt kurz das Scrollen,
   damit der Ruck keinen Überlauf/keine Scrollleiste erzeugt. */
body.shaking { overflow: hidden; }
body.shaking.shake-s #app { animation: shake-s .32s ease-in-out; }
body.shaking.shake-m #app { animation: shake-m .42s ease-in-out; }
body.shaking.shake-l #app { animation: shake-l .54s ease-in-out; }
@keyframes shake-s {
  10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(3px); } 50% { transform: translateX(-3px); }
}
@keyframes shake-m {
  10%, 90% { transform: translate(-3px, 1px); } 20%, 80% { transform: translate(5px, -1px); }
  30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -2px); }
}
@keyframes shake-l {
  10%, 90% { transform: translate(-5px, 2px) rotate(-.4deg); } 20%, 80% { transform: translate(8px, -2px) rotate(.5deg); }
  30%, 50%, 70% { transform: translate(-10px, 3px) rotate(-.6deg); } 40%, 60% { transform: translate(10px, -3px) rotate(.6deg); }
}

/* Roter Vollbild-Blitz beim Verzockt (Baustein C) — Vignette (Ränder rot, Mitte klar),
   klassischer „Schaden"-Blitz: wuchtig, aber der Inhalt bleibt lesbar. */
.red-flash {
  position: fixed; inset: 0; z-index: 88; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 24%, rgba(220, 30, 52, .28) 62%, rgba(200, 16, 40, .66) 100%);
  animation: red-flash .5s ease-out forwards;
}
@keyframes red-flash { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .topbar, .panel, .board-wrap, .overlay.bust, .board-overlay { animation: none; }
  .boss-chip, .board-cta .btn.big { animation: none; }
  .die.spin, .die.land, .score-preview.big, .total-box.pulse, .secured, .rolling-hint, .won-h { animation: none; }
  .score-preview .total-box.tick, .tb-stand .tb-v.pop, .cf { animation: none; }
  .tb-lives .tb-v.lose, .tb-lives .tb-v.gain { animation: none; }
  .die-burst, .die-burst::before { animation: none; display: none; }
  .jcard.triggering, .jcard.triggering-big, .score-preview .mult-box.tick,
  .score-preview .mult-box.tick-big, .score-preview .chips-box.tick-big,
  .total-box.pulse.big, .total-box.pulse.huge, .secured.show { animation: none; }
  .mult-box { transition: none; }
  .joker-pop { animation: none; display: none; }
  .finish-parts .rp { animation: none; }
  .hot-spark { animation: none; display: none; }
  body.shaking.shake-s #app, body.shaking.shake-m #app, body.shaking.shake-l #app { animation: none; }
  .red-flash { animation: none; display: none; }
  .btn::after { display: none; }
}

/* ---------- Desktop: Zweispalter — Brett links dominant, Steuerung rechts ---------- */
@media (min-width: 860px) {
  body { padding: 26px 24px 12px; }
  /* wächst mit dem Monitor statt bei 1200px zu deckeln — kein schwarzer Rahmen auf breiten Screens,
     und die Brett-Canvas bleibt querformatig (kein seitlicher 3D-Beschnitt) */
  #app { max-width: clamp(1120px, 94vw, 1760px); gap: 18px; min-height: calc(100dvh - 38px); }
  .topbar { padding: 13px 14px; }
  .tb-item { padding: 4px 18px; }
  .tb-k { font-size: 11px; }
  .tb-v { font-size: 24px; }
  .tb-item:first-child .tb-v { font-size: 19px; line-height: 1.2; }
  /* Brett links (füllt die Höhe), rechts Beiseite/Rechnung/Aktionen/Joker */
  .play { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .play.no3d { display: flex; flex-direction: column; }
  .board-zone { min-height: 420px; }
  .side { min-height: 0; }
  .side .jokerbar { margin-top: auto; }
  .side .actionbar { flex-direction: column; align-items: stretch; }
  .aside-wrap { padding: 13px 16px; }
  .aside-label { font-size: 14px; }
  .readout { padding: 18px; gap: 12px; }
  .score-preview { font-size: 36px; gap: 14px; }
  .board-overlay .score-preview.big { font-size: clamp(40px, 5vw, 60px); }
  .sel-info { font-size: 15px; }
  .panel { padding: 40px 44px; }
  .panel.center { gap: 18px; }
  .panel.shop { max-width: 860px; margin: 0 auto; }
  .logo { font-size: clamp(72px, 8vw, 104px); }
  .sub { font-size: 17px; }
  .rules { font-size: 15px; max-width: 52ch; }
  .btn { padding: 14px 26px; font-size: 16px; }
  .btn.big { padding: 18px 44px; font-size: 20px; }
  .actionbar, .shop-controls { gap: 12px; }
  /* Karten mittig und begrenzt breit — eine einzelne Karte spannt sich nicht über 860px */
  .offer { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 16px; }
  .jcard { padding: 17px; }
  .jcard.mini { min-width: 152px; max-width: 190px; }
  /* nur in der schmalen Seitenspalte dürfen Mini-Karten die Breite ausfüllen */
  .side .jcard.mini { flex: 1; max-width: none; }
}

/* ---------- Sehr breite Monitore: Seitenspalte + Karten wachsen mit ---------- */
@media (min-width: 1700px) {
  .play { grid-template-columns: minmax(0, 1fr) 440px; }
  .score-preview { font-size: 42px; }
  .jcard.mini { max-width: 210px; }
  .tb-v { font-size: 26px; }
}

/* ---------- Schmale Screens: HUD als 3×2-Raster, kompakte Aktionen ---------- */
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 0; padding: 9px 6px; }
  .tb-item { min-width: 0; padding: 2px 10px; }
  .tb-item:nth-child(3n+1)::before { display: none; } /* kein Trenner am Zeilenanfang */
  .tb-v { font-size: 17px; }
  .tb-item:first-child .tb-v { font-size: 13px; line-height: 1.25; }
  .boss-chip { grid-column: 1 / -1; justify-self: center; margin: 4px 0 2px; }
  .daily-chip { grid-column: 1 / -1; justify-self: center; margin: 4px 0 2px; }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .actionbar .btn.ghost { grid-column: 1 / -1; padding: 9px 12px; font-size: 13px; }
  .actionbar .btn:only-child { grid-column: 1 / -1; }
  /* feste Slots behalten auch mobil ihr 2er-Raster */
  .actionbar.slots { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .actionbar.slots .btn, .actionbar.slots .btn.ghost { grid-column: auto; padding: 11px 6px; font-size: 12.5px; }
  .actionbar.slots .a-roll, .actionbar.slots .a-cash { grid-column: 1 / -1; }
  .actionbar.slots .btn.big { padding: 13px 8px; font-size: 16px; }
  .phoenix-note { font-size: 13.5px; padding: 9px 12px; }
  .btn { padding: 12px 12px; font-size: 14px; }
  .readout { padding: 11px 14px; gap: 8px; }
  .score-preview { font-size: clamp(24px, 6.5vw, 34px); }
  .die { width: 52px; height: 52px; }
  .pips { width: 36px; height: 36px; }
  .panel { padding: 20px 16px; }
}

/* ---------- v0.23.0: Kauf-Karten als SPIELKARTEN + Glossar-Tooltips ---------- */
/* Hochformat-Karten mit Rahmen in Seltenheits-Farbe, Innen-Pinstripe und
   Kartenecken — Stefans Wunsch: Joker dürfen wie Spielkarten aussehen. */
.offer { grid-template-columns: repeat(auto-fit, 218px); justify-content: center; gap: 18px; }
.jcard.buy {
  width: 218px; min-height: 322px; padding: 11px; gap: 6px;
  border-radius: 17px; border: 1px solid color-mix(in srgb, var(--r, #7cc4ff) 55%, transparent);
  border-top-width: 1px;
  background: var(--brush), linear-gradient(172deg, #342a6e 0%, var(--panel) 46%, #221a4e 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.48), 0 0 0 3px color-mix(in srgb, var(--r, #7cc4ff) 22%, transparent), inset 0 1px 0 var(--edge);
}
.jcard.buy::before {
  content: ""; position: absolute; inset: 5px; border-radius: 13px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--r, #fff) 38%, transparent);
}
.jc-pip {
  position: absolute; font-size: 12px; line-height: 1; color: var(--r, #7cc4ff);
  opacity: .75; text-shadow: 0 0 8px color-mix(in srgb, var(--r, #7cc4ff) 60%, transparent);
  z-index: 1; pointer-events: none;
}
.jc-pip.tl { top: 9px; left: 11px; }
.jc-pip.br { bottom: 9px; right: 11px; transform: rotate(180deg); }
.jcard.buy .jart { margin: 8px 2px 4px; }
.jcard.buy .jart img { height: 128px; border-radius: 9px; }
.jcard.buy .jname { font-size: 16px; text-align: center; }
.jcard.buy .jrar { text-align: center; }
.jcard.buy .jdesc { text-align: center; font-size: 12.5px; }
.jcard.buy .btn.small { width: 100%; }
.dcard .dpreview {
  height: 128px; margin: 8px 2px 4px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120px 80px at 50% 44%, color-mix(in srgb, var(--r, #7cc4ff) 22%, transparent), transparent 75%),
    linear-gradient(165deg, rgba(255,255,255,.07), rgba(0,0,0,.28));
  border: 1px solid rgba(255,255,255,.12);
}
.dcard .dpreview .die { cursor: default; width: 64px; height: 64px; }
.dcard .dpreview .pips { width: 42px; height: 42px; }

/* Glossar-Begriffe + globales Tooltip */
.term { text-decoration: underline dotted rgba(255,255,255,.5); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
/* HUD-Zelle als Tooltip-Anker, aber ohne die Begriffs-Unterstreichung (nur antippbar) */
.tb-item.term { text-decoration: none; }
.tooltip {
  position: fixed; z-index: 3000; max-width: 300px; padding: 11px 14px; border-radius: 12px;
  background: var(--brush), linear-gradient(180deg, #332a68, #221a4c);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.6), inset 0 1px 0 var(--edge);
  font-size: 13px; line-height: 1.55; color: var(--text); pointer-events: none;
  animation: fade-in .12s ease-out both;
}

/* ---------- v0.24.0: Mini-Joker als kleine Spielkarten ---------- */
.jcard.mini {
  width: 118px; min-width: 118px; max-width: 118px; padding: 7px 7px 9px; gap: 5px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--r, #7cc4ff) 55%, transparent);
  border-top-width: 1px;
  background: var(--brush), linear-gradient(172deg, #342a6e 0%, var(--panel) 50%, #221a4e 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.42), 0 0 0 2px color-mix(in srgb, var(--r, #7cc4ff) 22%, transparent), inset 0 1px 0 var(--edge);
  text-decoration: none; cursor: help;
}
.jcard.mini::before {
  content: ""; position: absolute; inset: 4px; border-radius: 9px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--r, #fff) 34%, transparent);
}
.jcard.mini .jc-pip { font-size: 9px; }
.jcard.mini .jc-pip.tl { top: 7px; left: 8px; }
.jart.mini { margin: 3px 1px 1px; }
.jart.mini img { height: 88px; border-radius: 8px; }
.jcard.mini .jname { font-size: 11.5px; text-align: center; line-height: 1.25; }
/* Seitenspalte: Mini-Karten NICHT mehr in die Breite ziehen */
.side .jcard.mini { flex: 0 0 auto; max-width: 118px; }
.jcard.mini .btn.xs { width: 100%; }

/* Lebensverlust unübersehbar: großer roter Zentrum-Flash + Rot-Vignette */
.flash.life {
  color: #ff4d5e; border-color: #ff4d5e; font-size: clamp(26px, 5vw, 40px);
  padding: 18px 34px; top: 38%;
  text-shadow: 0 0 24px rgba(255,77,94,.8);
  box-shadow: 0 0 60px rgba(255,77,94,.55), inset 0 1px 0 rgba(255,255,255,.2);
  animation: lives-lose .55s ease;
}
.flash.life::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 50% 50%, transparent 55%, rgba(255,30,60,.28));
  animation: fade-in .2s ease-out both;
}

/* Herzen-Reihe im Verzockt-Overlay */
.ov-hearts { display: inline-block; margin: 0 2px; letter-spacing: .06em; text-shadow: 0 0 12px rgba(255,77,94,.55); }

/* ---------- v0.26.0: ECHTE Spielkartenform (Stefans Google-Vergleich) ----------
   Heller Kartenkörper (wie eine Pokerkarte), 5:7, stark gerundete Ecken,
   farbiger Innenrahmen, Eck-Indizes J/W oben links + gespiegelt unten rechts. */
.jcard.buy {
  width: 218px; min-height: 305px; aspect-ratio: 5 / 7; padding: 20px 16px 14px; gap: 5px;
  border-radius: 15px;
  background: linear-gradient(168deg, #fdfbf3 0%, #f4eedd 55%, #e9e0c9 100%);
  border: 1px solid #cfc4a6;
  box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.25) inset, 0 0 0 1px rgba(255,255,255,.5) inset;
}
.jcard.buy::before {
  content: ""; position: absolute; inset: 8px; border-radius: 9px; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--r, #7cc4ff) 70%, #3a2f5c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.jcard.buy:hover { box-shadow: 0 16px 32px rgba(0,0,0,.55), 0 0 26px color-mix(in srgb, var(--r, #7cc4ff) 45%, transparent); }
.cardix {
  position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: .95;
  color: color-mix(in srgb, var(--r, #7cc4ff) 80%, #241c40);
}
.cardix i { font-style: normal; font-size: 9px; }
.cardix.tl { top: 12px; left: 13px; }
.cardix.br { bottom: 12px; right: 13px; transform: rotate(180deg); }
.jc-pip { display: none; }
.jcard.buy .jart { margin: 4px 6px 2px; }
.jcard.buy .jart img { height: 118px; border-radius: 7px; border: 1px solid rgba(58,47,92,.3); box-shadow: 0 2px 8px rgba(40,30,80,.25); }
.jcard.buy .jname { color: #241c40; text-shadow: none; }
.jcard.buy .jdesc { color: #55496e; }
.jcard.buy .jrar { color: color-mix(in srgb, var(--r, #7cc4ff) 75%, #241c40); }
.jcard.buy .term { text-decoration-color: rgba(58,47,92,.5); }
.dcard .dpreview {
  height: 118px; margin: 4px 6px 2px; border-radius: 7px;
  background: radial-gradient(110px 74px at 50% 45%, color-mix(in srgb, var(--r, #7cc4ff) 30%, transparent), transparent 78%),
    linear-gradient(165deg, #efe9d8, #ddd3ba);
  border: 1px solid rgba(58,47,92,.28);
}
/* Mini-Joker: gleiche Kartensprache in klein */
.jcard.mini {
  border-radius: 11px; padding: 8px 7px 9px;
  background: linear-gradient(168deg, #fdfbf3 0%, #f2ecda 60%, #e7dec6 100%);
  border: 1px solid #cfc4a6;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.45) inset;
}
.jcard.mini::before {
  inset: 5px; border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--r, #7cc4ff) 65%, #3a2f5c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.jcard.mini .cardix { font-size: 11px; }
.jcard.mini .cardix.tl { top: 8px; left: 9px; }
.jart.mini { margin: 6px 5px 1px; }
.jart.mini img { height: 82px; border-radius: 6px; border: 1px solid rgba(58,47,92,.28); }
.jcard.mini .jname { color: #241c40; font-size: 11.5px; }

/* ---------- v0.27.0 ---------- */
/* Panel-Ansichten (Shop & Co.): Stage wächst mit dem Inhalt statt auf Viewport-Höhe
   zu deckeln — vorher quoll der Shop über die Topbar und unter die Joker-Leiste
   („Neu würfeln"/„Weiter" verdeckt). Die Play-Ansicht behält das flexende Brett. */
.stage.stage-panel { flex: 1 0 auto; }
/* Kaufkarten wachsen mit ihrem Text — die feste 5:7-Proportion schnitt den
   Kauf-Knopf ab, sobald Beschreibung + Datei-ID mehr Platz brauchten. */
.jcard.buy { aspect-ratio: auto; height: auto; }
/* Karten-Grafiken: EIN festes Seitenverhältnis (3:2) auf großer und Mini-Karte —
   eigene Bilder (720×480) sitzen überall unbeschnitten gleich. */
.jcard.buy .jart img { height: auto; aspect-ratio: 3 / 2; }
.jart.mini img { height: auto; aspect-ratio: 3 / 2; }
/* Datei-ID auf der Kauf-Karte: welcher Dateiname gehört zu dieser Karte? */
.jid {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 10px; color: #8a7fae; text-align: center; letter-spacing: .03em;
  cursor: help;
}

/* Logo-Grafik (Intro groß, End-Screens klein) */
.logo-img {
  width: min(620px, 92%); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(8,4,24,.65)) drop-shadow(0 0 34px rgba(255,196,64,.22));
  animation: rise .5s cubic-bezier(.2,.9,.3,1) both;
}
.logo-img.small { width: min(340px, 78%); }

/* „?"-Hilfe-Knopf in der Topbar */
.help-btn {
  align-self: center; margin-left: auto; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--dim);
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--edge);
  transition: filter .14s ease, color .14s ease;
}
.help-btn:hover { filter: brightness(1.25); color: var(--text); }
.boss-chip + .help-btn { margin-left: 8px; }
@media (max-width: 640px) { .help-btn { grid-column: 3; justify-self: end; margin: 4px 4px 0 0; width: 32px; height: 32px; } }

/* Ton-an/aus-Knopf, sitzt direkt links vom „?" */
.mute-btn {
  align-self: center; flex: 0 0 auto; margin-left: 8px;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--dim);
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--edge);
  transition: filter .14s ease, color .14s ease;
}
.mute-btn:hover { filter: brightness(1.25); color: var(--text); }
@media (max-width: 640px) { .mute-btn { grid-column: 2; justify-self: end; margin: 4px 4px 0 0; width: 32px; height: 32px; } }

/* Hilfe-Overlay: Regeln + Punktetabelle */
.help-ov {
  position: fixed; inset: 0; z-index: 200; display: flex; padding: 20px 14px;
  background: rgba(8,6,15,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in .18s ease-out both;
}
.help-panel {
  margin: auto; width: 100%; max-width: 680px; max-height: min(86dvh, 900px); overflow-y: auto;
  background: var(--brush), linear-gradient(180deg, rgba(62,50,120,.97), rgba(36,28,74,.97));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
  padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.help-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.help-head h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
/* Spezifität über .btn.small (width:100%) heben, sonst füllt das ✕ die Zeile */
.help-panel .help-close { width: auto; flex: 0 0 auto; padding: 7px 13px; }
.help-panel section { display: flex; flex-direction: column; gap: 7px; }
.help-panel h3 { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--gold); letter-spacing: .03em; }
.help-panel p { font-size: 13.5px; line-height: 1.65; color: var(--dim); }
.help-panel p b { color: var(--text); font-weight: 600; }
.help-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.help-table td { padding: 6px 10px; border-bottom: 1px solid rgba(92,77,162,.4); color: var(--dim); }
.help-table td:last-child { color: var(--text); }
.help-table tr:last-child td { border-bottom: none; }
.help-table b { color: var(--gold); font-family: var(--font-display); }

/* Zug-Bilanz im Wertungs-Overlay: Würfel + Kombis des gesamten Zuges */
.turn-recap {
  display: flex; flex-direction: column; gap: 9px; align-items: center;
  max-width: 480px; animation: reveal-in .35s ease-out;
}
.recap-dice { justify-content: center; }
.recap-parts { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }
.rp {
  font-size: 12px; color: var(--dim); padding: 3px 10px; border-radius: 999px;
  background: rgba(22,16,48,.7); border: 1px solid var(--line);
}
.rp b { font-family: var(--font-display); color: var(--chips); }
.rp.joker b { color: var(--mult); }

/* Brücke Rechnung → Stand (nur Bonusjagd) */
.calc-note.stand-note { color: var(--gold); opacity: .95; }
.calc-note.stand-note b { font-family: var(--font-display); }

/* Bonusjagd-Angebot: absolute Punktwerte je Stufe */
.bonus-card .tiers { line-height: 1.8; }
.bonus-card .tiers i { font-style: normal; color: var(--dim); opacity: .85; font-size: .88em; font-variant-numeric: tabular-nums; }

/* Händler: Joker-Leiste unter dem Shop bricht um statt (vertikal beschnitten) zu
   scrollen — Verkauf-Knöpfe waren sonst hinter der Scroll-Kante verschwunden. */
#app > .jokerbar .jb-row { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
/* Wertungs-Overlay darf bei viel Bilanz-Inhalt scrollen statt abzuschneiden */
.board-overlay { overflow-y: auto; }


/* ============================================================================
   v0.29.0 — LANDINGPAGE (Neuaufbau: „Art-déco-Casino-Lounge", aus einem Guss)
   Ein Kartenstil (.lp-card), ein Icon-Stil (.lp-chip, SVG statt Emoji),
   Gold-Kicker mit Würfel-Pips als Ornament, Spiel-Screenshot im Goldrahmen.
   ========================================================================== */
.landing { width: 100%; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; padding: 4px 0 12px; }
body.on-landing .foot { display: none; }

/* ---- Hero ---- */
.lp-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px; padding: 46px 24px 42px;
  border-radius: 24px; overflow: hidden;
  background: var(--brush), linear-gradient(180deg, rgba(74,58,140,.52), rgba(34,26,72,.4));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
  animation: rise .5s cubic-bezier(.2,.9,.3,1) both;
}
/* Art-déco-Goldecken — dieselbe Sprache wie die Spiel-Panels */
.lp-hero::before, .lp-hero::after {
  content: ""; position: absolute; width: 30px; height: 30px; pointer-events: none; opacity: .9; z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255,212,77,.45));
}
.lp-hero::before { top: 12px; left: 12px; border-top: 2px solid #e3c06a; border-left: 2px solid #b98f3a; border-top-left-radius: 7px; }
.lp-hero::after  { bottom: 12px; right: 12px; border-bottom: 2px solid #b98f3a; border-right: 2px solid #e3c06a; border-bottom-right-radius: 7px; }
.lp-hero-glow {
  position: absolute; inset: -35% 0 auto 0; height: 120%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(82,180,255,.26), transparent 70%) 28% 10%/58% 68% no-repeat,
    radial-gradient(closest-side, rgba(255,93,126,.18), transparent 70%) 76% 18%/54% 64% no-repeat,
    radial-gradient(closest-side, rgba(255,212,77,.14), transparent 70%) 50% 2%/72% 58% no-repeat;
  filter: blur(30px); animation: aurora 30s ease-in-out infinite alternate;
}
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero .logo-img { width: min(540px, 88%); margin-bottom: 0; }
.lp-tagline {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .015em; line-height: 1.12;
  font-size: clamp(26px, 5vw, 42px); color: var(--text);
  text-shadow: 0 2px 22px rgba(12,8,34,.6);
}
.lp-tagline em {
  font-style: normal;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd44d 45%, #e8a92c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(255,212,77,.35));
}
.lp-lede { color: var(--dim); font-size: clamp(15px, 2.3vw, 18px); max-width: 44ch; line-height: 1.6; }
.lp-lede b { color: var(--text); font-weight: 600; white-space: nowrap; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.lp-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.lp-cta .btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.lp-cta .btn.big { animation: cta-pulse 2.6s ease-in-out infinite; }
.lp-badges { list-style: none; display: flex; gap: 7px 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--dim);
}
.lp-badge svg { width: 13px; height: 13px; color: var(--gold); filter: drop-shadow(0 0 5px rgba(255,212,77,.5)); }

/* ---- Sektions-Gerüst: Kicker (Gold, von Pips flankiert) + H2 ---- */
.lp-sec { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.lp-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 0 14px rgba(255,212,77,.35);
}
.lp-kicker i {
  width: 44px; height: 5px; opacity: .75;
  background-image: radial-gradient(circle at 2.5px 2.5px, var(--gold) 1.9px, transparent 2.4px);
  background-size: 13px 5px; background-repeat: repeat-x; background-position: center;
}
.lp-h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; text-align: center;
  font-size: clamp(22px, 3.6vw, 30px); color: var(--text); line-height: 1.2;
  margin-bottom: 12px;
}

/* ---- EIN Kartenstil für Steps + Features ---- */
.lp-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 11px;
  padding: 24px 22px 22px; border-radius: 18px;
  background: var(--brush), linear-gradient(180deg, rgba(52,42,104,.6), rgba(34,27,70,.44));
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(12,8,34,.32), inset 0 1px 0 var(--edge);
  transition: transform .16s ease, border-color .16s ease, box-shadow .18s ease;
}
.lp-card:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  box-shadow: 0 14px 30px rgba(12,8,34,.42), inset 0 1px 0 var(--edge);
}
.lp-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.lp-card p { font-size: 13.5px; color: var(--dim); line-height: 1.65; }
/* Icon-Chip: Akzentfarbe NUR hier — Titel bleiben weiß, alles wirkt verwandt */
.lp-chip {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  color: var(--a, var(--gold));
  background: color-mix(in srgb, var(--a, var(--gold)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--gold)) 38%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--a, var(--gold)) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.12);
}
.lp-chip svg { width: 23px; height: 23px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--a, var(--gold)) 55%, transparent)); }
/* Wasserzeichen-Ziffer der Schritte */
.lp-num {
  position: absolute; top: -14px; right: 6px; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: 92px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,212,77,.16);
}

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.lp-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; }

/* Farkle-Herkunfts-Notiz — gleiche Kartenbasis, nur schmaler & zentriert */
.lp-note {
  max-width: 640px; padding: 16px 22px; border-radius: 14px; margin-top: 6px;
  background: linear-gradient(180deg, rgba(255,212,77,.05), rgba(46,37,92,.3));
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
}
.lp-note p { font-size: 13.5px; color: var(--dim); line-height: 1.7; text-align: center; }
.lp-note b { color: var(--text); font-weight: 600; }

/* ---- Spiel-Screenshot im Goldrahmen ---- */
.lp-shot {
  position: relative; width: min(760px, 100%); margin-top: 6px;
  padding: 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(52,42,104,.7), rgba(30,23,62,.7));
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: 0 24px 60px rgba(8,5,24,.55), 0 0 44px rgba(82,180,255,.12), inset 0 1px 0 var(--edge);
}
.lp-shot::before, .lp-shot::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .95; z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255,212,77,.5));
}
.lp-shot::before { top: -2px; left: -2px; border-top: 2px solid #e3c06a; border-left: 2px solid #b98f3a; border-top-left-radius: 8px; }
.lp-shot::after  { bottom: -2px; right: -2px; border-bottom: 2px solid #b98f3a; border-right: 2px solid #e3c06a; border-bottom-right-radius: 8px; }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* ---- Zahlen-Band (Casino-Scoreboard) ---- */
.lp-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 10px;
  border-radius: 16px; overflow: hidden;
  background: var(--brush), linear-gradient(180deg, rgba(46,37,92,.55), rgba(46,37,92,.3));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge);
}
.lp-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 30px; position: relative; }
.lp-stats > div + div::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(224,214,255,.35), transparent);
}
.lp-stats dt {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd44d 45%, #e8a92c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255,212,77,.35));
}
.lp-stats dd { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---- Schluss-CTA ---- */
.lp-final { gap: 20px; padding: 6px 0 0; }
.lp-final .lp-h2 { margin-bottom: 0; }
.lp-final .btn { display: inline-flex; align-items: center; gap: 10px; }
.lp-final .btn svg { width: 18px; height: 18px; }
.lp-final-sub { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }

/* ---- Footer ---- */
.lp-footer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 16px 6px; border-top: 1px solid var(--line);
}
.lp-foot-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lp-link {
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--violet);
  text-decoration: underline; text-decoration-color: rgba(195,170,255,.35); text-underline-offset: 3px;
  transition: color .14s ease;
}
.lp-link:hover { color: #fff; }
.lp-dot { color: var(--line); }
.lp-copy { font-size: 12.5px; color: var(--dim); text-align: center; }
.lp-copy a { color: var(--violet); text-decoration: none; }
.lp-copy.lp-tiny { font-size: 11px; opacity: .65; letter-spacing: .03em; }

/* ---- Rechtstexte (Overlay im Hilfe-Look) ---- */
.legal-panel section { display: flex; flex-direction: column; gap: 6px; }
.legal-panel p { font-size: 13.5px; line-height: 1.7; color: var(--dim); }
.legal-panel a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.legal-panel b, .legal-panel strong { color: var(--text); font-weight: 600; }
.legal-meta { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); opacity: .75; }
.legal-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-switch .btn { width: auto; flex: 1 1 auto; }

/* ---- Reveal-Staffelung ---- */
@media (prefers-reduced-motion: no-preference) {
  .lp-sec { animation: rise .55s cubic-bezier(.2,.9,.3,1) both; }
  .lp-sec:nth-of-type(2) { animation-delay: .07s; }
  .lp-sec:nth-of-type(3) { animation-delay: .13s; }
  .lp-final { animation-delay: .18s; }
  .lp-footer { animation: rise .5s ease .24s both; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero, .lp-hero-glow, .lp-cta .btn.big, .lp-sec, .lp-footer { animation: none; }
}

/* ---- Desktop ---- */
@media (min-width: 860px) {
  .landing { gap: 84px; }
  .lp-hero { padding: 54px 40px 50px; }
  .lp-card { padding: 26px 24px; }
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .landing { gap: 48px; }
  .lp-hero { padding: 34px 18px 32px; gap: 15px; }
  .lp-steps, .lp-feats { grid-template-columns: 1fr; gap: 12px; }
  .lp-card { flex-direction: row; align-items: flex-start; gap: 15px; padding: 18px 16px; display: grid; grid-template-columns: 46px 1fr; }
  .lp-card .lp-chip { grid-row: 1 / span 2; }
  .lp-card h3 { align-self: center; }
  .lp-card p { grid-column: 2; }
  .lp-num { font-size: 70px; top: -10px; }
  .lp-cta { width: 100%; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-stats > div { padding: 13px 18px; flex: 1 1 30%; }
  .lp-stats dt { font-size: 24px; }
  .legal-switch { flex-direction: column; }
}

/* ============================================================================
   v0.30.0 — MOBILE FOLD-FIX: Spiel-Loop passt OHNE Scrollen in den Viewport.
   Auf dem Handy (mit sichtbarer Adressleiste ~660px) lagen die Würfeln-Buttons
   unter dem Fold — man musste zum Würfeln scrollen. Striktes Höhenbudget:
   Topbar/Beiseite/Skala/Rechnung/Buttons/Joker kompakt, Brett flext in den Rest.
   Greift NUR bei schmalen Screens im Spiel-Loop (Panels/Landing unberührt).
   ========================================================================== */
@media (max-width: 640px) {
  /* Gerüst: weniger Rand, Deko-Footer im Spiel weg (schob den Loop über den Fold) */
  body { padding: 6px 8px 4px; }
  #app { gap: 8px; min-height: calc(100dvh - 10px); }
  .foot { display: none; }
  .play { gap: 7px; }
  .side { gap: 7px; }
  /* Spiel-Loop UND Händler: FESTE Viewport-Höhe → Inhalt flext in den Restplatz,
     #app wächst nicht mit (kein Scrollen). Landing/Ergebnis-Panels dürfen scrollen. */
  body.in-play #app, body.in-shop #app { height: calc(100dvh - 10px); min-height: 0; }
  /* Händler kompakt aufs Handy: 6 Angebotskarten als flaches 3-Spalten-Raster
     (2 Reihen statt 3 Gruppen-Reihen → passt ohne Scrollen). Typ am Eck-Index (J/T/W). */
  .shop.foldfit { padding: 9px 9px; gap: 6px; }
  .shop-head h2 { font-size: 17px; }
  .shop-head .money { font-size: 16px; }
  .shop-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; align-content: center; }
  .shop-group, .sg-cards { display: contents; }
  .sg-label { display: none; }
  .jcard.buy.shopc { width: auto; padding: 5px 6px; }
  .jcard.buy.shopc .jart, .jcard.buy.shopc .iart, .jcard.buy.shopc .dpreview { margin: 3px 2px; }
  .jcard.buy.shopc .jart img, .jcard.buy.shopc .dpreview, .jcard.buy.shopc.icard .iart { height: 36px; }
  .jcard.buy.shopc.icard .iart { font-size: 22px; }
  .jcard.buy.shopc .jname { font-size: 10.5px; }
  .jcard.buy.shopc .jrar { font-size: 7.5px; margin: 0; }
  .jcard.buy.shopc .jdesc { font-size: 8.5px; -webkit-line-clamp: 2; margin: 2px 0; }
  .jcard.buy.shopc .btn.small { font-size: 10px; padding: 5px 4px; }
  .sg-cards .dice-locked { grid-column: 1 / -1; max-width: none; font-size: 9.5px; padding: 6px 8px; }
  .shop-inv { gap: 4px 12px; }
  .inv-lbl { font-size: 8px; }
  .inv-cell { gap: 2px; }
  .shop-foot .die { width: 22px; height: 22px; }
  .shop-foot .item-chip.mini { padding: 2px 5px; }
  .shop-foot .btn.xs { padding: 2px 6px; font-size: 10px; }
  .jchip { width: 26px; height: 26px; }

  /* Topbar: 140 → ~62px. Der „?" wandert absolut in die Ecke — als Grid-Kind
     erzwang er eine dritte Reihe (~33px). */
  .topbar { position: relative; padding: 6px 5px; gap: 2px 0; }
  .tb-item { padding: 1px 8px; gap: 1px; }
  .tb-k { font-size: 8px; letter-spacing: .08em; }
  .tb-v { font-size: 14px; line-height: 1; }
  .tb-item:first-child .tb-v { font-size: 11px; line-height: 1.1; }
  .help-btn { position: absolute; bottom: 5px; right: 5px; width: 24px; height: 24px; font-size: 13px; margin: 0; z-index: 3; }
  .mute-btn { position: absolute; bottom: 5px; right: 33px; width: 24px; height: 24px; font-size: 12px; margin: 0; z-index: 3; }
  .tb-money { padding-right: 62px; } /* Platz für „?" + Ton-Knopf über der kurzen Geld-Zelle */
  .boss-chip { padding: 4px 10px; font-size: 11px; margin: 3px 0 1px; }
  .daily-chip { padding: 4px 10px; font-size: 11px; margin: 3px 0 1px; }

  /* Brett: darf klein werden (flext größer, wenn Höhe da ist) */
  .board-zone { min-height: 150px; }
  .board-wrap { min-height: 150px; }

  /* Beiseite: 94 → ~30px. Die Würfel-Miniaturen sind Luxus — die Zug-Punkte-Zahl
     im Label genügt beim Spielen; auf dem Handy zählt jeder Pixel. */
  .aside-wrap { padding: 6px 12px; }
  .aside-label { margin-bottom: 0; font-size: 12px; gap: 6px; }
  .aside-label .chips { font-size: 14px; }
  .aside-dice { display: none; }

  /* Ziel-Skala: 102 → ~40px. Stand/Ziel-Zahlen stehen schon in der Topbar. */
  .goal-scale { padding: 7px 12px; gap: 5px; }
  .gs-head { font-size: 11px; }
  .gs-head b { font-size: 12px; }
  .gs-bar { height: 10px; }
  .gs-nums { display: none; }
  .gs-marks { height: 20px; }
  .gs-mark b { font-size: 9.5px; }
  .gs-mark i { font-size: 8.5px; }

  /* Rechnung: 132 → ~66px (min-height weg, Rechnung kompakter) */
  .readout { min-height: 0; padding: 7px 12px; gap: 3px; }
  .sel-info { font-size: 12px; min-height: 15px; }
  .score-preview { font-size: 22px; gap: 9px; }
  .calc-note { font-size: 10px; }
  .calc-note.stand-note { font-size: 10px; }

  /* Buttons: 145 → ~74px (flacher, dichter) */
  .actionbar.slots { gap: 5px; }
  .actionbar.slots .btn, .actionbar.slots .btn.ghost { padding: 7px 5px; font-size: 12px; }
  .actionbar.slots .btn.big { padding: 9px 8px; font-size: 15px; }

  /* Joker-Leiste: 160 → ~52px (kleine Bild-Chips, Name im Tooltip).
     Label inline neben die Chips, damit keine eigene Zeile nötig ist. */
  .jokerbar { padding: 4px 10px 5px; display: flex; align-items: center; gap: 9px; }
  .jb-label { margin-bottom: 0; font-size: 8.5px; flex: 0 0 auto; writing-mode: initial; }
  .jb-row { gap: 5px; padding-bottom: 0; flex: 1; min-width: 0; }
  .jokerbar .jcard.mini { width: 40px; min-width: 40px; max-width: 40px; padding: 3px; }
  .jokerbar .jcard.mini::before { inset: 2px; border-radius: 5px; }
  .jokerbar .jcard.mini .cardix { display: none; }
  .jokerbar .jcard.mini .jname { display: none; }
  .jokerbar .jart.mini { margin: 0; }
  .jokerbar .jart.mini img { height: 32px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
  .jokerbar .empty { font-size: 11px; }
}

/* ============================================================================
   v0.31.0 — FOTOFINISH: festgehaltene Aufschlüsselung der Sieg-/letzten Wertung
   in den brettlosen Screens (Sieg, Bonusjagd-Angebot). Stefan: „nicht
   nachvollziehen, woher die Punkte kamen, die mich gewinnen ließen."
   ========================================================================== */
.finish-card {
  width: 100%; max-width: 470px; margin: 2px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 16px 18px 15px; border-radius: 16px;
  background: var(--brush), linear-gradient(180deg, rgba(48,38,96,.72), rgba(28,22,58,.6));
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  box-shadow: 0 10px 26px rgba(8,5,24,.45), 0 0 26px rgba(255,212,77,.08), inset 0 1px 0 var(--edge);
  animation: rise .4s cubic-bezier(.2,.9,.3,1) both;
}
/* Zielfoto-Ecken in Gold — greift die Panel-/Karten-Sprache auf */
.finish-card { position: relative; }
.finish-card::before, .finish-card::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: .85;
}
.finish-card::before { top: 8px; left: 8px; border-top: 2px solid #e3c06a; border-left: 2px solid #b98f3a; border-top-left-radius: 5px; }
.finish-card::after  { bottom: 8px; right: 8px; border-bottom: 2px solid #b98f3a; border-right: 2px solid #e3c06a; border-bottom-right-radius: 5px; }
.finish-head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--dim); letter-spacing: .03em;
}
.finish-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em;
  color: var(--gold); background: rgba(255,212,77,.13);
  border: 1px solid color-mix(in srgb, var(--gold) 48%, transparent);
  box-shadow: 0 0 14px rgba(255,212,77,.22);
}
.finish-dice { justify-content: center; flex-wrap: wrap; gap: 7px; }
.finish-parts { display: flex; flex-wrap: wrap; gap: 6px 7px; justify-content: center; max-width: 430px; }
.finish-parts .rp.hot { color: var(--hot); border-color: var(--hot); background: rgba(255,138,61,.14); }
.finish-calc { justify-content: center; font-size: clamp(28px, 6vw, 38px); margin-top: 1px; }
.finish-ctx { font-size: 12.5px; color: var(--dim); text-align: center; line-height: 1.5; }
.finish-ctx b { color: var(--gold); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .finish-card { padding: 13px 14px; gap: 9px; }
  .finish-head { font-size: 12px; }
  .finish-calc { font-size: 26px; }
  .finish-parts .rp { font-size: 11px; padding: 2px 8px; }
}

/* ==========================================================================
   v0.49: Bonusjagd-Angebot fold-sicher + Ergebnis-Screens ohne Scroll.
   Muster wie Händler v0.45 (body-Klasse + .foldfit, Inhalt flext in den Rest).
   ========================================================================== */
/* Der Deko-Footer steht AUSSERHALB von #app — bei viewport-hohen Ansichten
   (#app = 100dvh − Body-Rand) schob er auf dem Desktop ~26px Scroll unter
   JEDE Fold- und Ergebnis-Ansicht. Auf ≤640px ist er ohnehin ausgeblendet. */
body.in-play .foot, body.in-shop .foot, body.in-offer .foot, body.in-result .foot { display: none; }

/* --- Bonusjagd-Angebot: feste Viewport-Höhe, Inhalt kompakt zentriert --- */
body.in-offer #app { height: calc(100dvh - 24px); min-height: 0; }
.bonus-panel.foldfit {
  flex: 1; min-height: 0; width: 100%; overflow: hidden;
  justify-content: center; gap: 12px; padding: 18px 22px;
  /* Einblendung OHNE translateY: das viewport-hohe Panel ragte während der
     rise-Animation sonst 16px unter #app hinaus → kurzzeitig scrollbar. */
  animation-name: rise-inplace;
}
@keyframes rise-inplace { 0% { opacity: 0; transform: scale(.99); } 100% { opacity: 1; transform: scale(1); } }
.bonus-panel.foldfit .logo { font-size: clamp(28px, 5vh, 52px); }
.bonus-panel.foldfit .sub { margin: 0; max-width: 60ch; }
/* Fotofinish im Angebot: eine Nummer kleiner (Würfel + Rechnung) */
.bonus-panel.foldfit .finish-card { padding: 9px 14px; gap: 5px; }
.bonus-panel.foldfit .finish-dice .die { width: 30px; height: 30px; border-radius: 8px; }
.bonus-panel.foldfit .finish-dice .pips { width: 20px; height: 20px; }
.bonus-panel.foldfit .finish-calc { font-size: clamp(20px, 3.4vh, 30px); }
.bonus-panel.foldfit .bonus-card { padding: 11px 13px; gap: 5px; }
.bonus-panel.foldfit .bonus-card .tiers { line-height: 1.55; }

/* --- Ergebnis-Screens (Sieg/Nicht geschafft/Gameover/Gewonnen): getrimmt --- */
body.in-result .panel.center { gap: 12px; }
/* „Statistik & Erfolge" füllte als .btn.small (width:100%) die ganze Panel-Breite */
body.in-result .panel.center > .btn.small { width: auto; }

@media (max-width: 640px) {
  body.in-offer #app { height: calc(100dvh - 10px); min-height: 0; }
  .bonus-panel.foldfit { padding: 10px 10px; gap: 8px; }
  .bonus-panel.foldfit .logo { font-size: 26px; }
  .bonus-panel.foldfit .sub { font-size: 12.5px; line-height: 1.4; }
  .bonus-panel.foldfit .finish-card { padding: 7px 9px; gap: 4px; }
  .bonus-panel.foldfit .finish-dice { gap: 5px; }
  .bonus-panel.foldfit .finish-dice .die { width: 26px; height: 26px; border-radius: 7px; }
  .bonus-panel.foldfit .finish-dice .pips { width: 17px; height: 17px; }
  .bonus-panel.foldfit .finish-calc { font-size: 20px; }
  .bonus-panel.foldfit .finish-ctx { font-size: 11px; line-height: 1.35; }
  /* Die zwei Modus-Karten NEBENEINANDER (gestapelt = ~500px, der Haupttreiber
     des Überlaufs); Stufen-Zeilen dürfen umbrechen, Karten bleiben kompakt. */
  .bonus-panel.foldfit .bonus-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .bonus-panel.foldfit .bonus-card { padding: 8px 8px; gap: 4px; min-width: 0; }
  .bonus-panel.foldfit .bonus-card h3 { font-size: 14px; }
  .bonus-panel.foldfit .bonus-card .tiers { font-size: 11px; line-height: 1.5; }
  .bonus-panel.foldfit .bonus-card .tiers i { font-size: .85em; }
  .bonus-panel.foldfit .bonus-card .mini { font-size: 10.5px; line-height: 1.35; }
  .bonus-panel.foldfit .bonus-card .btn { padding: 9px 6px; font-size: 12px; }
  .bonus-panel.foldfit > .btn.ghost { padding: 9px 14px; font-size: 13px; }

  /* Ergebnis-Screens: 360×640 lief beim Sieg mit voller Bilanz ~58px über */
  body.in-result .panel.center { gap: 10px; padding: 14px 12px; }
  body.in-result .reward-lines { font-size: 14px; gap: 5px; }
  body.in-result .finish-card { padding: 8px 10px; gap: 5px; }
  body.in-result .finish-dice { gap: 5px; }
  body.in-result .finish-dice .die { width: 28px; height: 28px; border-radius: 7px; }
  body.in-result .finish-dice .pips { width: 18px; height: 18px; }
  body.in-result .finish-calc { font-size: 22px; }
  body.in-result .finish-ctx { font-size: 11px; }
  body.in-result .btn.primary.big { padding: 12px 20px; }
}

/* ==========================================================================
   v0.50: Mini-Joker in der Seitenspalte als ECHTE kleine Spielkarte (5:7).
   Vorher machte der 3:2-Art-Block + Name die Karte fast QUADRATISCH — „die
   Joker werden unten nicht schön wie Karten dargestellt" (Stefan). Nur im
   Desktop-Zweispalter (.side); Handy behält die bewusst flachen 40px-Chips.
   ========================================================================== */
/* Suit-Ornament + unterer Eck-Index existieren im Markup immer, erscheinen aber
   nur auf der hohen Kartenform — in der flachen Kompakt-Variante (niedrige
   Fenster, Handy-Chips) wäre dafür kein Platz. */
.jcard.mini .jsuit, .jcard.mini .cardix.br { display: none; }
/* Nur bei WIRKLICH hoher Fensterhöhe: die volle 5:7-Kartenform macht die Joker-
   Leiste ~58px höher (223 statt 165). Der volle Build (Jagd + 5 Joker + 2 Tinkturen)
   braucht damit ~1005px; darunter (Laptops, Browser-Chrome) bleibt die flache Form,
   sonst überläuft der Zweispalter. Schwelle mit Sicherheitsabstand: 1015px (v0.52). */
@media (min-height: 1015px) {
  .side .jcard.mini { max-width: 126px; aspect-ratio: 5 / 7; padding: 10px 8px 9px; }
  .side .jcard.mini .jart.mini { margin: 13px 7px 4px; }
  .side .jcard.mini .jart.mini img { box-shadow: 0 2px 7px rgba(40,30,80,.25); }
  .side .jcard.mini .jname { margin-top: 2px; }
  .side .jcard.mini .cardix.br { display: flex; }
  .side .jcard.mini .jsuit {
    display: block; margin-top: auto; padding-bottom: 14px; text-align: center;
    font-size: 15px; line-height: 1;
    color: color-mix(in srgb, var(--r, #7cc4ff) 75%, #241c40);
    text-shadow: 0 0 8px color-mix(in srgb, var(--r, #7cc4ff) 35%, transparent);
  }
}

/* ============================================================================
   v0.52: Desktop-Spiel-Loop bei NIEDRIGEN Fenstern fold-sicher (Zweispalter
   ≥860px). Auf Desktop wächst #app mit dem Inhalt; die VOLLE Seitenspalte
   (Beiseite + Jagd-Skala + Rechnung + Buttons + Tinkturen + 5 Joker ≈ 812px)
   sprengte niedrige Fenster (1440×900 ~46px, 1366×768 ~178px, 1280×720 ~226px).
   Zwei Stauchungs-Stufen nach Fensterhöhe — Technik wie der Mobile-Fold-Fix:
   feste Slot-Positionen (v0.16) bleiben, Buttons/Karten werden nur kompakter.
   Beide Stufen liegen UNTER 1015px Höhe → die hohe 5:7-Kartenform ist da eh aus.
   Ab hier bekommt #app zudem eine FESTE Höhe (wie mobil) → das Brett flext in
   den frei werdenden Platz statt ihn als Leerraum unter der kurzen Spalte zu lassen.
   ========================================================================== */
@media (min-width: 860px) and (max-height: 1014px) {
  #app { gap: 10px; }
  /* flex-grow AUS + feste Höhe mit 6px Puffer: sonst füllt flex:1 exakt den Viewport
     und jede fraktionale Kindhöhe rundet scrollHeight um 1px auf (Rest-Scroll). */
  body.in-play #app { flex-grow: 0; height: calc(100dvh - 30px); min-height: 0; }
  .side { gap: 8px; }
  /* Beiseite: Würfel-Miniaturen sind Luxus — die Zug-Punkte-Zahl im Label genügt */
  .aside-wrap { padding: 9px 16px; }
  .aside-dice { display: none; }
  /* Ziel-/Jagd-Skala kompakter (Meilenstein-Labels enger) */
  .goal-scale { padding: 9px 14px; gap: 6px; }
  .goal-scale .gs-marks { height: 22px; }
  /* Rechnung: die Phönix-Reserve (min-height 132) wird bei knapper Höhe frei */
  .readout { min-height: 0; padding: 12px 16px; gap: 8px; }
  /* Tinkturen enger, ohne Zusatz-Abstand nach unten */
  .itembar { padding: 8px 12px; margin-bottom: 0; }
  .itembar .item-chip { padding: 5px 8px; }
  .itembar .item-ic { font-size: 19px; }
}
@media (min-width: 860px) and (max-height: 845px) {
  .side { gap: 5px; }
  .aside-wrap { padding: 6px 14px; }
  .aside-label { margin-bottom: 0; }
  .goal-scale { padding: 6px 12px; gap: 4px; }
  .goal-scale .gs-head { font-size: 11px; }
  .goal-scale .gs-bar { height: 11px; }
  .goal-scale .gs-marks { height: 20px; }
  .readout { padding: 8px 14px; gap: 5px; }
  .readout .score-preview { font-size: clamp(24px, 5vh, 32px); gap: 10px; }
  .readout .sel-info { min-height: 16px; }
  .actionbar.slots { gap: 6px; }
  .actionbar.slots .btn.big { padding: 10px 8px; font-size: 15px; }
  .actionbar.slots .btn { padding: 8px 6px; font-size: 13px; }
  .itembar { padding: 6px 12px; }
  .itembar .item-chip { padding: 4px 7px; }
  .itembar .item-ic { font-size: 17px; }
  /* Joker-Leiste → kleine Bild-Chips (Name im Tooltip), Label inline — wie mobil.
     Spart am meisten (~110px), weil die flachen Karten sonst ~130px hoch sind. */
  .side .jokerbar { padding: 6px 12px; display: flex; align-items: center; gap: 10px; }
  .side .jokerbar .jb-label { margin-bottom: 0; flex: 0 0 auto; }
  .side .jokerbar .jb-row { flex: 1; min-width: 0; padding: 3px 0; }
  .side .jokerbar .jcard.mini { width: 44px; min-width: 44px; max-width: 44px; aspect-ratio: auto; padding: 3px; flex: 0 0 auto; }
  .side .jokerbar .jcard.mini::before { inset: 2px; border-radius: 5px; }
  .side .jokerbar .jcard.mini .cardix,
  .side .jokerbar .jcard.mini .jname,
  .side .jokerbar .jcard.mini .jsuit { display: none; }
  .side .jokerbar .jart.mini { margin: 0; }
  .side .jokerbar .jart.mini img { height: 36px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
}
