/* ===== Wokoware — social casino styles (v2) ===== */
:root {
  --bg:        #070a12;
  --bg-2:      #0c111d;
  --panel:     #121a2b;
  --panel-2:   #18233a;
  --panel-3:   #1e2c47;
  --line:      #243350;
  --line-2:    #2e4067;
  --text:      #eaf1fb;
  --muted:     #8ba0c4;
  --muted-2:   #61729a;
  --green:     #23e08c;
  --green-2:   #16b978;
  --violet:    #8b5cf6;
  --violet-2:  #6d3ff0;
  --red:       #ff5470;
  --gold:      #ffce55;
  --radius:    14px;
  --shadow:    0 18px 44px rgba(0,0,0,.55);
  --glow-green: 0 0 0 1px rgba(35,224,140,.35), 0 8px 30px rgba(35,224,140,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(1000px 560px at 92% -6%, rgba(35,224,140,.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h3 { font-size: 15px; font-weight: 700; letter-spacing: .2px; }

/* ===== Top bar ===== */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(18,26,43,.92), rgba(12,17,29,.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(150deg, var(--green), var(--green-2));
  color: #05130d; display: grid; place-items: center;
  font-size: 21px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(35,224,140,.4);
}
.logo-text { font-size: 21px; letter-spacing: .3px; }
.topbar-center { display: flex; justify-content: center; }
.topbar-right { display: flex; justify-content: flex-end; }

.wallet {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 12px; padding: 8px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.wallet-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted-2); font-weight: 700; }
.wallet-amount { display: flex; align-items: baseline; gap: 3px; font-weight: 800; font-size: 19px; }
.wallet-currency { color: var(--green); font-weight: 900; }
#balance-display { font-variant-numeric: tabular-nums; letter-spacing: .3px; }

.sound-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.sound-btn:hover { border-color: var(--green); }
.sound-btn.muted { color: var(--muted-2); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35,224,140,.55); } 70% { box-shadow: 0 0 0 7px rgba(35,224,140,0); } 100% { box-shadow: 0 0 0 0 rgba(35,224,140,0); } }

/* ===== Layout ===== */
.layout { display: grid; grid-template-columns: 240px 1fr; flex: 1; }

.sidebar {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
  padding: 18px 14px; display: flex; flex-direction: column;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted-2); font-weight: 700; padding: 4px 12px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; color: var(--muted);
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 600; text-align: left; width: 100%;
  font-family: inherit; transition: background .15s, color .15s;
}
.nav-item:hover:not(:disabled) { background: var(--panel); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(35,224,140,.16), rgba(35,224,140,.04)); color: var(--text); box-shadow: inset 2px 0 0 var(--green); }
.nav-item.active .nav-icon { color: var(--green); }
.nav-icon { font-size: 18px; width: 20px; text-align: center; }
.nav-item.soon { opacity: .55; cursor: default; }
.nav-item em { margin-left: auto; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-style: normal; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: 14px 8px 0; }
.fineprint { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }

/* ===== Main ===== */
.main { padding: 26px; }
.main-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

.game-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gh-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: .2px; }
.gh-icon { color: var(--green); font-size: 26px; }
.gh-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; }
.tag-live { color: var(--green); border-color: rgba(35,224,140,.35); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: middle; animation: pulse 2s infinite; }

/* Play grid */
.play-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 20px; align-items: start; }
.game-col { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.game-view { display: flex; flex-direction: column; gap: 22px; }
.game { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ===== Dice ===== */
.dice-board { background: linear-gradient(180deg, #123f33, #0c261f); border: 1px solid var(--line-2); border-radius: 18px; padding: 40px 40px 30px; box-shadow: var(--shadow); }
.dice-readout { text-align: center; margin-bottom: 40px; }
.dice-num { font-size: 58px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1px; color: var(--text); }
.dice-track { position: relative; height: 16px; border-radius: 10px; background: #0a1f19; margin: 60px 6px 0; }
.dice-zone { position: absolute; top: 0; height: 100%; border-radius: 10px; transition: left .12s, width .12s; }
.dice-win { background: linear-gradient(90deg, var(--green-2), var(--green)); }
.dice-lose { background: linear-gradient(90deg, #b23048, var(--red)); }
.dice-track input[type=range] { position: absolute; top: 50%; left: -6px; width: calc(100% + 12px); transform: translateY(-50%); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 40px; cursor: grab; z-index: 3; }
.dice-track input[type=range]:active { cursor: grabbing; }
.dice-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 34px; border-radius: 6px; background: #fff; border: 2px solid #0a1f19; box-shadow: 0 4px 12px rgba(0,0,0,.5); cursor: grab; }
.dice-track input[type=range]::-moz-range-thumb { width: 16px; height: 34px; border-radius: 6px; background: #fff; border: 2px solid #0a1f19; box-shadow: 0 4px 12px rgba(0,0,0,.5); cursor: grab; }
.dice-track input[type=range]::-moz-range-track { background: transparent; }
.dice-pointer { position: absolute; top: -46px; transform: translateX(-50%); z-index: 2; transition: left .28s cubic-bezier(.2,.9,.3,1.1); }
.dice-pointer span { display: block; background: #fff; color: #0b0f14; font-weight: 900; font-size: 14px; padding: 6px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.dice-pointer::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: #fff; }
.dice-pointer.win span, .dice-pointer.win::after { background: var(--green); }
.dice-pointer.lose span, .dice-pointer.lose::after { background: var(--red); color: #fff; }
.dice-pointer.pop span { animation: bump .35s ease; }
.dice-scale { display: flex; justify-content: space-between; margin: 12px 6px 0; font-size: 12px; color: var(--muted-2); font-weight: 600; }
.dice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.dstat { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.dstat span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); font-weight: 700; }
.dstat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dstat-btn { cursor: pointer; text-align: left; font-family: inherit; color: var(--text); transition: border-color .15s; }
.dstat-btn:hover { border-color: var(--green); }
.dstat-btn span { color: var(--green); }

/* ===== Mines ===== */
.mines-board { background: linear-gradient(180deg, #123f33, #0c261f); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 460px; margin: 0 auto; }
.mine-tile {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid #1c4a3c;
  background: linear-gradient(180deg, #1a5142, #103a2f);
  cursor: pointer; font-size: 26px; display: grid; place-items: center;
  transition: transform .1s, background .15s, box-shadow .15s; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.mines-grid.armed .mine-tile:not(.revealed):hover { background: linear-gradient(180deg, #23695622, #1a5142); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.35); border-color: var(--green); }
.mine-tile:disabled { cursor: default; }
.mine-tile.revealed { animation: bump .3s ease; }
.mine-tile.gem { background: radial-gradient(circle at 50% 35%, #1e8f6a, #0c3527); border-color: var(--green); }
.mine-tile.mine { background: radial-gradient(circle at 50% 35%, #b23048, #3a1420); border-color: var(--red); }
.mine-tile.mine.hit { box-shadow: 0 0 26px rgba(255,84,112,.6); }
.mine-tile.dim { opacity: .45; }
.mines-stepper-wrap { align-items: flex-start; }
.stepper { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.stepper button { width: 26px; height: 26px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1; font-family: inherit; }
.stepper button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper b { font-size: 17px; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.deal-btn.cashout { background: linear-gradient(150deg, var(--gold), #e0a92e); color: #2a1e00; box-shadow: 0 10px 26px rgba(255,206,85,.28); }

/* ===== Crash ===== */
.crash-board { position: relative; height: 380px; background: radial-gradient(120% 90% at 50% 120%, #14243c, #0a1220); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
#crash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.crash-multi { font-size: 62px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1px; color: var(--text); text-shadow: 0 4px 24px rgba(0,0,0,.5); transition: color .1s; }
.crash-multi.live { color: var(--green); }
.crash-multi.win { color: var(--green); }
.crash-multi.bust { color: var(--red); animation: bump .35s ease; }
.crash-status { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crash-auto-field { margin-top: 12px; }
.bet-suffix { color: var(--muted); font-weight: 800; padding-right: 8px; }
#crash-auto { flex: 1; background: transparent; border: none; color: var(--text); font-size: 16px; font-weight: 700; outline: none; min-width: 0; font-family: inherit; }

/* ===== Plinko ===== */
.plinko-board { background: radial-gradient(120% 90% at 50% 0%, #16233c, #0a1220); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 16px 12px; box-shadow: var(--shadow); }
#plinko-canvas { width: 100%; height: 380px; display: block; }
.plinko-buckets { display: grid; gap: 4px; margin-top: 6px; }
.pk-bucket { text-align: center; font-size: 11px; font-weight: 800; color: #0a1018; padding: 7px 2px; border-radius: 6px; font-variant-numeric: tabular-nums; transition: transform .1s; }
.pk-bucket.hit { animation: pkHit .4s ease; }
@keyframes pkHit { 0% { transform: translateY(0); } 35% { transform: translateY(6px) scale(1.06); filter: brightness(1.3); } 100% { transform: translateY(0); } }
.plinko-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.seg-field { display: flex; flex-direction: column; gap: 7px; }
.seg { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg-btn { flex: 1; padding: 9px 6px; background: transparent; border: none; border-radius: 7px; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ===== Roulette ===== */
.roulette-board { background: linear-gradient(180deg, #123f33, #0c261f); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.rl-result { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rl-num { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; font-size: 32px; font-weight: 900; background: #0a1f19; color: #fff; border: 2px solid var(--line-2); flex-shrink: 0; }
.rl-num.red { background: #d0223c; border-color: #ff5470; }
.rl-num.black { background: #161d2b; border-color: #3a4a68; }
.rl-num.green { background: #12965a; border-color: #23e08c; }
.rl-history { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-hist { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.rl-hist.red { background: #d0223c; } .rl-hist.black { background: #161d2b; } .rl-hist.green { background: #12965a; }

.rl-table { display: flex; flex-direction: column; gap: 6px; }
.rl-table > .rl-zero { width: 100%; }
.rl-numbers { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.rl-dozens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.rl-evens { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.rl-cell { position: relative; border: none; border-radius: 7px; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; padding: 12px 4px; font-family: inherit; transition: transform .1s, filter .12s; }
.rl-cell:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.rl-cell.red { background: #d0223c; } .rl-cell.black { background: #1a2233; } .rl-cell.green { background: #12965a; }
.rl-cell.rl-out { background: #163b30; color: #cfeee0; font-size: 12px; padding: 13px 4px; }
.rl-cell.rl-red-cell { background: #d0223c; } .rl-cell.rl-red-cell::after { content: "RED"; }
.rl-cell.rl-black-cell { background: #1a2233; } .rl-cell.rl-black-cell::after { content: "BLACK"; }
.rl-cell.has-bet { outline: 2px solid var(--gold); outline-offset: -2px; }
.rl-chip { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: #2a1e00; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); z-index: 2; }
.rl-zero { padding: 10px; font-size: 16px; }

/* ===== Table ===== */
.table { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.table-felt {
  background:
    radial-gradient(120% 80% at 50% -10%, #1f6d55, transparent 62%),
    radial-gradient(90% 70% at 50% 120%, #0a221b, transparent 60%),
    linear-gradient(180deg, #145140, #0c2b22);
  min-height: 440px; padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; isolation: isolate;
}
.felt-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 15px; letter-spacing: 4px; font-weight: 800; color: #ffffff;
  opacity: .06; white-space: nowrap; pointer-events: none; z-index: 0;
}
.dealer-area, .player-area { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; z-index: 1; }
.hand-label { font-size: 12px; color: #c7f0e0; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.hand-score {
  display: inline-grid; place-items: center; min-width: 28px; height: 22px;
  padding: 0 8px; margin-left: 6px; border-radius: 6px;
  background: #06201a; color: #fff; font-size: 13px; vertical-align: middle;
  border: 1px solid #1d5544;
}

/* Empty-table hint */
.table-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; color: #bfe9d8; font-size: 15px; font-weight: 600; z-index: 1;
}
.hint-chip {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 26px; color: #0c2b22;
  background: repeating-conic-gradient(#e9f6f0 0deg 30deg, #23e08c 30deg 60deg);
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 0 5px rgba(255,255,255,.35);
}

/* Cards */
.cards { display: flex; gap: 10px; min-height: 130px; align-items: center; }
.hands { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.hand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hand.active .cards { filter: drop-shadow(0 0 6px rgba(255,206,85,.5)); }
.hand.active .hand-label { color: var(--gold); }
.hand-bet { font-size: 12px; color: #bfe9d8; font-weight: 600; }

.card {
  width: 92px; height: 128px; border-radius: 11px; background: linear-gradient(160deg,#ffffff,#eef3f8);
  color: #0b0f14; position: relative; box-shadow: 0 8px 16px rgba(0,0,0,.4);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9px 11px; font-weight: 800;
  animation: dealIn .34s cubic-bezier(.2,.9,.3,1.2) both;
}
.card.red { color: #e0143c; }
.card .corner { font-size: 18px; line-height: 1; }
.card .corner.bottom { transform: rotate(180deg); align-self: flex-end; }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; }
.card.back {
  background:
    repeating-linear-gradient(45deg, #2440a8, #2440a8 9px, #1c3487 9px, #1c3487 18px);
  border: 3px solid #fff; color: transparent;
}
.card.back::after { content: "W"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 34px; font-weight: 900; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-34px) rotate(-7deg) scale(.9); } to { opacity: 1; transform: none; } }

/* Result banner */
.result-banner {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%);
  font-size: 30px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 30px; border-radius: 14px; background: rgba(4,8,10,.72);
  border: 1px solid rgba(255,255,255,.14); opacity: 0; transition: opacity .25s;
  pointer-events: none; text-align: center; z-index: 2; backdrop-filter: blur(3px);
}
.result-banner.show { opacity: 1; }
.result-banner.win  { color: var(--green); border-color: var(--green); box-shadow: 0 0 40px rgba(35,224,140,.35); }
.result-banner.lose { color: var(--red);   border-color: var(--red); }
.result-banner.push { color: var(--gold);  border-color: var(--gold); }
.result-banner small { display: block; font-size: 14px; letter-spacing: 1px; margin-top: 5px; color: var(--text); }

/* ===== Bet panel ===== */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: block; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.bet-input-wrap { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 6px 5px 13px; transition: border-color .15s; }
.bet-input-wrap:focus-within { border-color: var(--green); }
.bet-currency { color: var(--green); font-weight: 800; }
#bet-input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 18px; font-weight: 700; outline: none; min-width: 0; font-variant-numeric: tabular-nums; font-family: inherit; }
.bet-quick { display: flex; gap: 4px; }
.bet-quick button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 13px; font-family: inherit; transition: border-color .15s, color .15s; }
.bet-quick button:hover { border-color: var(--green); color: var(--green); }

.chip-row { display: flex; gap: 8px; margin-top: 12px; }
.chip { flex: 1; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px; cursor: pointer; font-weight: 800; font-family: inherit; transition: transform .1s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.chip:active { transform: translateY(0); }

.deal-btn {
  width: 100%; margin-top: 14px; padding: 17px;
  background: linear-gradient(150deg, var(--green), var(--green-2));
  color: #05130d; border: none; border-radius: 12px;
  font-size: 18px; font-weight: 900; cursor: pointer; letter-spacing: .5px;
  font-family: inherit; box-shadow: 0 10px 26px rgba(35,224,140,.3);
  transition: filter .12s, transform .1s;
}
.deal-btn:hover:not(:disabled) { filter: brightness(1.06); }
.deal-btn:active:not(:disabled) { transform: translateY(1px); }
.deal-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.act-btn { padding: 15px 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer; font-weight: 800; font-size: 15px; font-family: inherit; transition: border-color .15s, color .15s, background .15s; }
.act-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.act-btn:disabled { opacity: .32; cursor: default; }

/* ===== Stats panel ===== */
.stats-panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 88px; }
.stats-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.stats-sub { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); font-weight: 700; }
.stat-value { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value.pos, .pos { color: var(--green); }
.stat-value.neg, .neg { color: var(--red); }

/* ===== Lobby / games grid ===== */
.lobby-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.lobby-sub { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.game-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .14s, border-color .14s, box-shadow .14s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.gc-art { height: 112px; display: grid; place-items: center; position: relative; }
.gc-icon { font-size: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.g-blackjack .gc-art { background: radial-gradient(circle at 50% 30%, #1f6d55, #0d2b22); }
.g-blackjack .gc-icon { color: #eafff6; }
.g-dice .gc-art { background: radial-gradient(circle at 50% 30%, #6d3ff0, #241246); }
.g-mines .gc-art { background: radial-gradient(circle at 50% 30%, #c23b5a, #3a1420); }
.g-crash .gc-art { background: radial-gradient(circle at 50% 30%, #2a7de1, #0f2542); }
.g-plinko .gc-art { background: radial-gradient(circle at 50% 30%, #e08a1f, #402410); }
.g-roulette .gc-art { background: radial-gradient(circle at 50% 30%, #17b979, #0c3325); }
.gc-body { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; }
.gc-name { font-weight: 700; font-size: 14px; }
.gc-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--muted-2); background: var(--bg); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }
.gc-badge.live { color: var(--green); border-color: rgba(35,224,140,.4); }
.game-card:not(.is-live) { opacity: .82; }
.game-card:not(.is-live):hover { opacity: 1; }

/* ===== Footer ===== */
.site-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer p { font-size: 12px; color: var(--muted-2); text-align: center; }

/* ===== Modal / Game Over ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,6,12,.72); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 50; }
.modal { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 30px; max-width: 400px; box-shadow: var(--shadow); animation: dealIn .3s ease both; }
.modal.gameover { text-align: center; }
.gameover-icon { font-size: 56px; line-height: 1; margin-bottom: 6px; }
.modal.gameover h2 { color: var(--red); letter-spacing: 1.5px; font-size: 30px; }
.modal h2 { margin-bottom: 12px; }
.modal p { color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-primary { background: linear-gradient(150deg, var(--green), var(--green-2)); color: #05130d; border: none; padding: 14px; border-radius: 11px; font-weight: 900; cursor: pointer; font-family: inherit; font-size: 15px; box-shadow: 0 10px 26px rgba(35,224,140,.3); }
.modal-primary:hover { filter: brightness(1.06); }

/* Balance animations */
.bump { animation: bump .4s ease; }
@keyframes bump { 0%,100% { transform: none; } 30% { transform: scale(1.1); } }
.flash-green { color: var(--green) !important; }
.flash-red { color: var(--red) !important; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .play-grid { grid-template-columns: 1fr; }
  .stats-panel { position: static; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 10px; }
  .nav { flex-direction: row; }
  .nav-heading { display: none; }
  .nav-item em { display: none; }
  .sidebar-footer { display: none; }
  .main { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card { width: 66px; height: 94px; }
  .card .pip { font-size: 30px; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 16px; }
  .logo-text { display: none; }
  .gh-title { font-size: 22px; }
}
