:root {
  --bg: #07070d;
  --bg-panel: rgba(255, 255, 255, 0.035);
  --bg-panel-solid: #101018;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --text-dim: #8b8b9e;
  --accent: #7c5cff;
  --accent2: #00e5b0;
  --gold: #ffc94d;
  --red: #ff4d6a;
  --glow: rgba(124, 92, 255, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ── animated background (like the hub) ── */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.orb1 { width: 520px; height: 520px; background: #4b2fd6; top: -180px; left: -120px; }
.orb2 { width: 420px; height: 420px; background: #0d6e5c; bottom: -140px; right: -100px; animation-delay: -8s; }
.orb3 { width: 300px; height: 300px; background: #a3651a; top: 40%; left: 55%; animation-delay: -14s; opacity: .25; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,50px) scale(1.15); } }
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ── header ── */
header { position: sticky; top: 0; z-index: 50; background: rgba(7,7,13,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: .12em; white-space: nowrap;
  background: linear-gradient(90deg, var(--gold), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none;
}
.logo span { font-weight: 300; }
.balance-box {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,201,77,.35); border-radius: 100px;
  background: rgba(255,201,77,.08);
  padding: 7px 16px; font-weight: 700; font-size: 1.05rem;
  transition: transform .15s ease;
}
.balance-box.pulse { animation: balpulse .4s ease; }
@keyframes balpulse { 30% { transform: scale(1.09); box-shadow: 0 0 24px rgba(255,201,77,.35); } }
.balance-label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
#balance { color: var(--gold); font-variant-numeric: tabular-nums; }
#balance-pop {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  font-size: .9rem; font-weight: 800; pointer-events: none; opacity: 0; white-space: nowrap;
}
#balance-pop.show-plus { color: var(--accent2); animation: popfly 1.2s ease forwards; }
#balance-pop.show-minus { color: var(--red); animation: popfly 1.2s ease forwards; }
@keyframes popfly { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: 26px; } }
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; font-size: 1rem;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.ghost-btn {
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  transition: border-color .2s;
  white-space: nowrap;
}
.ghost-btn:hover { border-color: var(--accent2); }

/* ── lobby ── */
.hero { text-align: center; padding: 56px 0 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; margin-bottom: 24px;
  background: var(--bg-panel); backdrop-filter: blur(8px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 520px; margin: 16px auto 0; line-height: 1.6; }

.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding-bottom: 60px; }
.gcard {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; text-align: left; color: inherit;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.gcard:hover { transform: translateY(-5px); border-color: rgba(255,201,77,.5); box-shadow: 0 18px 50px -18px rgba(255,201,77,.3); }
.gcard .gicon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.55rem;
  background: linear-gradient(135deg, rgba(255,201,77,.18), rgba(124,92,255,.16));
  border: 1px solid var(--border);
}
.gcard h3 { font-size: 1.2rem; font-weight: 700; }
.gcard p { color: var(--text-dim); font-size: .92rem; line-height: 1.5; }

/* ── game layout ── */
.game { padding: 34px 0 60px; }
.game-head { text-align: center; margin-bottom: 22px; }
.game-head h2 { font-size: 1.9rem; font-weight: 800; }
.game-head p { color: var(--text-dim); margin-top: 6px; font-size: .95rem; }
.panel {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; backdrop-filter: blur(8px);
  max-width: 780px; margin: 0 auto;
}
.game-msg { min-height: 32px; text-align: center; font-weight: 800; font-size: 1.15rem; margin: 14px 0 4px; }
.game-msg.win { color: var(--accent2); animation: msgpop .35s ease; }
.game-msg.lose { color: var(--red); animation: msgpop .35s ease; }
.game-msg.info { color: var(--gold); animation: msgpop .35s ease; }
@keyframes msgpop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ── bet bar ── */
.bet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.bet-row { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 12px; padding: 6px 10px; }
.bet-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-right: 4px; }
.bet-input {
  width: 110px; background: transparent; border: none; outline: none;
  color: var(--gold); font-size: 1.15rem; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.bet-input::-webkit-outer-spin-button, .bet-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bet-mod {
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: .8rem; font-weight: 700;
  transition: border-color .15s;
}
.bet-mod:hover { border-color: var(--accent2); }
.action-btn {
  background: linear-gradient(135deg, var(--accent), #5a3de0);
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 30px; font-size: 1rem; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 8px 26px -10px var(--glow);
  transition: transform .15s ease, filter .15s ease;
}
.action-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.action-btn:disabled { opacity: .38; cursor: not-allowed; }
.action-btn.small { padding: 10px 18px; font-size: .88rem; }
.action-btn.gold { background: linear-gradient(135deg, #f0b429, #d1901a); color: #241a02; box-shadow: 0 8px 26px -10px rgba(255,201,77,.5); }

/* ── slots ── */
.slot-machine { text-align: center; }
.reels-frame {
  position: relative; display: inline-block;
  background: rgba(0,0,0,.45); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px;
}
.reels { display: flex; gap: 10px; }
.reel-window {
  width: 104px; height: 270px; overflow: hidden; border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(255,255,255,.04) 50%, rgba(0,0,0,.55));
  border: 1px solid var(--border);
}
.reel { will-change: transform; }
.slot-cell { height: 90px; display: grid; place-items: center; font-size: 3rem; }
.slot-cell.hit { animation: hitflash .5s ease 3; }
@keyframes hitflash { 50% { transform: scale(1.25); filter: drop-shadow(0 0 14px var(--gold)); } }
.payline {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8; z-index: 2; pointer-events: none;
}
.paytable { margin-top: 18px; color: var(--text-dim); font-size: .9rem; }
.paytable summary { cursor: pointer; font-weight: 600; }
.paytable table { margin: 12px auto 0; border-collapse: collapse; }
.paytable td { padding: 5px 14px; border-bottom: 1px solid var(--border); }
.paytable td:nth-child(even) { color: var(--gold); font-weight: 700; }

/* ── cards (blackjack / hilo) ── */
.cards { display: flex; flex-wrap: wrap; gap: 8px; min-height: 96px; align-items: center; }
.pcard {
  width: 66px; height: 92px; border-radius: 10px;
  background: linear-gradient(160deg, #fdfdfd, #dcdce4);
  color: #16161e; font-weight: 800; font-size: 1.25rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
  animation: dealin .3s ease;
  user-select: none;
}
.pcard.red { color: #d0243c; }
.pcard.back { background: repeating-linear-gradient(45deg, #3d2b8f, #3d2b8f 6px, #4b37ab 6px, #4b37ab 12px); color: transparent; }
.pcard.big { width: 110px; height: 154px; font-size: 2.2rem; border-radius: 14px; }
.pcard.big.back { color: #fff; font-size: 2.6rem; }
@keyframes dealin { from { transform: translateY(-18px) rotate(-4deg); opacity: 0; } }
.bj-row-wrap { margin-bottom: 16px; }
.bj-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 8px; }
.hand-val { color: var(--gold); font-size: .85rem; letter-spacing: 0; margin-left: 6px; }
.bj-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }

/* ── roulette ── */
.rstrip-wrap {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(0,0,0,.4);
  height: 74px; margin-bottom: 12px;
}
.rstrip { display: flex; align-items: center; height: 100%; will-change: transform; }
.rcell {
  flex: 0 0 60px; width: 60px; height: 58px; margin: 0 2px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff;
}
.rcell.red { background: linear-gradient(160deg, #d0243c, #8f1226); }
.rcell.black { background: linear-gradient(160deg, #26262f, #101016); border: 1px solid rgba(255,255,255,.12); }
.rcell.green { background: linear-gradient(160deg, #0e9f6e, #056344); }
.rstrip-marker {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold); z-index: 2;
}
.rstrip-marker::before, .rstrip-marker::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent;
}
.rstrip-marker::before { top: 0; border-top-color: var(--gold); }
.rstrip-marker::after { bottom: 0; border-bottom-color: var(--gold); }
.rl-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 30px; }
.rl-hist-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; }
.chip-select { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.chip-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.35); color: #fff; font-weight: 800; font-size: .85rem;
  background: radial-gradient(circle at 35% 30%, #6a4fe0, #472fae);
  transition: transform .15s, box-shadow .15s;
}
.chip-btn:nth-child(3) { background: radial-gradient(circle at 35% 30%, #e05b5b, #a92626); }
.chip-btn:nth-child(4) { background: radial-gradient(circle at 35% 30%, #2eb87a, #0d7a4a); }
.chip-btn:nth-child(5) { background: radial-gradient(circle at 35% 30%, #e8b430, #b07f10); }
.chip-btn.sel { transform: scale(1.15); box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(255,201,77,.5); }
.rl-board-scroll { overflow-x: auto; padding-bottom: 6px; }
#rl-board { display: grid; grid-template-columns: 44px repeat(12, 44px) 56px; gap: 4px; justify-content: center; min-width: max-content; margin: 0 auto; }
.bcell {
  height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; font-weight: 700; font-size: .88rem; color: #fff;
  position: relative; background: rgba(255,255,255,.05);
  transition: filter .12s, transform .12s;
}
.bcell:hover { filter: brightness(1.35); transform: scale(1.05); z-index: 2; }
.bcell.red { background: linear-gradient(160deg, #c02338, #8f1226); }
.bcell.black { background: linear-gradient(160deg, #23232c, #101016); }
.bcell.green { background: linear-gradient(160deg, #0e9f6e, #056344); grid-row: span 3; }
.bcell.outside { background: rgba(124,92,255,.14); font-size: .72rem; letter-spacing: .04em; }
.bcell.win-flash { animation: cellwin 1.6s ease; }
@keyframes cellwin { 0%, 60% { box-shadow: 0 0 0 3px var(--gold), 0 0 22px var(--gold); } }
.bet-chip {
  position: absolute; right: -5px; top: -7px; z-index: 3;
  min-width: 24px; height: 24px; padding: 0 4px; border-radius: 50px;
  background: radial-gradient(circle at 35% 30%, #ffd968, #d19a12);
  color: #241a02; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
  border: 2px dashed rgba(0,0,0,.35);
  box-shadow: 0 3px 8px rgba(0,0,0,.5);
  pointer-events: none;
}
.rl-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.rl-total { color: var(--text-dim); font-size: .92rem; }
.rl-total b { color: var(--gold); font-size: 1.05rem; }

/* ── crash ── */
.crash-box {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: rgba(0,0,0,.45);
}
.crash-box.crashed { animation: crashshake .4s ease; border-color: var(--red); }
@keyframes crashshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#crash-canvas { display: block; width: 100%; height: auto; }
.crash-mult {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 900; letter-spacing: -.02em;
  color: var(--accent2); text-shadow: 0 0 30px rgba(0,229,176,.45);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.crash-mult.dead { color: var(--red); text-shadow: 0 0 30px rgba(255,77,106,.5); }
.crash-history { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; min-height: 26px; }
.crash-hist {
  font-size: .8rem; font-weight: 800; padding: 3px 12px; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.crash-hist.good { color: var(--accent2); } .crash-hist.bad { color: var(--red); }

/* ── mines ── */
.mines-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mines-opts { display: flex; align-items: center; gap: 8px; }
.mine-opt {
  width: 44px; height: 38px; border-radius: 10px; font-weight: 800; font-size: .95rem;
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, background .15s;
}
.mine-opt.sel { border-color: var(--gold); background: rgba(255,201,77,.14); color: var(--gold); }
.mine-opt:disabled { opacity: .4; cursor: not-allowed; }
.mines-info { color: var(--text-dim); font-size: .92rem; }
.mines-info b { color: var(--gold); }
#mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.mtile {
  aspect-ratio: 1; border-radius: 12px; font-size: 1.5rem;
  background: linear-gradient(160deg, rgba(124,92,255,.22), rgba(124,92,255,.08));
  border: 1px solid rgba(124,92,255,.35); color: transparent;
  transition: transform .12s, filter .12s;
}
.mtile:hover:not(:disabled):not(.open) { transform: scale(1.06); filter: brightness(1.3); }
.mtile:disabled { cursor: not-allowed; }
.mtile.open { background: rgba(0,229,176,.13); border-color: rgba(0,229,176,.5); color: inherit; animation: msgpop .25s ease; }
.mtile.boom { background: rgba(255,77,106,.2); border-color: var(--red); color: inherit; animation: crashshake .35s ease; }
.mtile.mine-reveal { background: rgba(255,77,106,.09); border-color: rgba(255,77,106,.4); color: inherit; opacity: .75; }

/* ── coinflip ── */
.cf-panel { text-align: center; }
.coin-stage { perspective: 900px; height: 170px; display: grid; place-items: center; }
.coin { position: relative; width: 130px; height: 130px; transform-style: preserve-3d; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 3.4rem;
  backface-visibility: hidden;
  border: 6px solid #b07f10;
  background: radial-gradient(circle at 35% 30%, #ffe084, #d1a01c);
  box-shadow: 0 10px 30px -8px rgba(255,201,77,.4);
}
.coin-back { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #dfe3ee, #97a0b8); border-color: #6b7590; }
.cf-choice { display: flex; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.cf-side {
  padding: 12px 26px; border-radius: 12px; font-size: 1rem; font-weight: 700;
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, background .15s;
}
.cf-side.sel { border-color: var(--gold); background: rgba(255,201,77,.14); color: var(--gold); }
.cf-side:disabled { opacity: .5; cursor: not-allowed; }

/* ── hilo ── */
.hilo-panel { text-align: center; }
.hilo-stage { display: flex; justify-content: center; padding: 8px 0; }
.hilo-info { color: var(--text-dim); font-size: .95rem; margin: 10px 0 4px; }
.hilo-info b { color: var(--gold); }
.hilo-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ── debug panel ── */
#debug-panel {
  position: fixed; top: 74px; right: 18px; z-index: 100;
  width: 280px; padding: 18px;
  background: var(--bg-panel-solid); border: 1px solid rgba(255,201,77,.4); border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8);
  animation: msgpop .2s ease;
}
.dbg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dbg-head h3 { font-size: 1rem; }
.dbg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dbg-btn {
  background: rgba(255,201,77,.1); border: 1px solid rgba(255,201,77,.35); color: var(--gold);
  border-radius: 10px; padding: 10px 8px; font-weight: 800; font-size: .85rem;
  transition: background .15s; width: 100%;
}
.dbg-btn:hover { background: rgba(255,201,77,.22); }
.dbg-btn.danger { background: rgba(255,77,106,.08); border-color: rgba(255,77,106,.35); color: var(--red); }
.dbg-btn.danger:hover { background: rgba(255,77,106,.18); }
.dbg-set { display: flex; gap: 8px; margin-bottom: 10px; }
.dbg-set input {
  flex: 1; min-width: 0; background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 8px 12px; font-size: .9rem; outline: none;
}
.dbg-set input:focus { border-color: var(--gold); }
.dbg-set .dbg-btn { width: auto; }

/* ── toast ── */
#toast {
  position: fixed; top: 82px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--bg-panel-solid); border: 1px solid var(--red); color: var(--text);
  padding: 10px 22px; border-radius: 100px; font-size: .9rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { border-top: 1px solid var(--border); padding: 22px 0 30px; text-align: center; color: var(--text-dim); font-size: .82rem; }
footer a { color: var(--accent2); text-decoration: none; }

/* ── Confetti ── */
.confetti-piece {
  position: fixed; top: -16px; z-index: 300; pointer-events: none;
  border-radius: 2px;
  animation: confall linear forwards;
}
@keyframes confall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to   { transform: translateY(105vh) rotate(var(--spin, 720deg)); opacity: .85; }
}

/* ── Video Poker ── */
.vp-panel { text-align: center; }
.vp-cards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 148px; align-items: flex-end; }
.vp-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-hold { font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--gold); opacity: 0; transition: opacity .15s; }
.vp-card-wrap.held .vp-hold { opacity: 1; }
.vp-card-wrap.held .pcard { outline: 3px solid var(--gold); transform: translateY(-6px); }
.pcard.vp { width: 74px; height: 104px; font-size: 1.4rem; cursor: pointer; transition: transform .15s, outline-color .1s; }
.pcard.vp.noclick { cursor: default; }
.paytable tr.hit-row td { color: var(--accent2); font-weight: 800; }

/* ── Plinko ── */
.plinko-wrap { display: flex; justify-content: center; }
#plinko-canvas { max-width: 100%; height: auto; }

/* ── Glücksrad ── */
.wheel-panel { text-align: center; }
.wheel-stage { position: relative; width: 300px; height: 300px; margin: 6px auto 10px; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid #2a2a38; position: relative; will-change: transform;
  box-shadow: 0 0 45px -12px var(--glow), inset 0 0 32px rgba(0,0,0,.55);
}
.wheel-label {
  position: absolute; left: 50%; top: 50%;
  font-size: .78rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.wheel-pointer {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; color: var(--gold); z-index: 5; text-shadow: 0 0 10px var(--gold);
}

/* ── Rubbellos ── */
.scratch-panel { text-align: center; }
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 330px; margin: 0 auto; }
.scell {
  aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden;
  display: grid; place-items: center; font-size: 2.3rem; user-select: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.scell .cover {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.2rem;
  background: repeating-linear-gradient(45deg, #8a8fa3, #8a8fa3 8px, #767b8f 8px, #767b8f 16px);
  cursor: pointer; transition: opacity .25s, transform .25s;
}
.scell.revealed .cover { opacity: 0; transform: scale(1.2); pointer-events: none; }
.scell.hitcell { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255,201,77,.5); }
.scratch-actions { display: flex; justify-content: center; margin-top: 12px; }

/* ── Crash Auto-Cashout ── */
.auto-input { width: 64px; color: var(--accent2); }
.auto-input::placeholder { color: var(--text-dim); font-weight: 600; }

/* ── Debug-Statistik ── */
.dbg-stats {
  border-top: 1px solid var(--border); margin-top: 14px; padding-top: 10px;
  font-size: .8rem; color: var(--text-dim); line-height: 1.8; text-align: center;
}
.dbg-stats b { color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .balance-label { display: none; }
  body.in-game .logo { display: none; }
  .panel { padding: 18px 14px; }
  .reel-window { width: 82px; height: 240px; }
  .slot-cell { height: 80px; font-size: 2.4rem; }
  .header-inner { padding: 12px 14px; }
  .logo { font-size: .95rem; }
}
