@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');

:root {
  --bg: #131618;
  --bg-soft: #171b1e;
  --panel: #1f2225;
  --panel-2: #262a2e;
  --panel-3: #2f3438;
  --line: #2c3034;
  --line-soft: #23272a;
  --text: #e9eef0;
  --muted: #848b8d;
  --muted-2: #a4acae;
  --green: #22c55e;
  --green-2: #3dbe7e;
  --green-soft: rgba(61, 190, 126, 0.14);
  --gold: #f5c542;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --font: 'Bai Jamjuree', system-ui, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 55% at 50% -10%, rgba(61, 190, 126, 0.16), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(245, 197, 66, 0.06), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; }

/* ---------- layout ---------- */

.shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.main { flex: 1; padding: 26px 0 60px; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(19, 22, 24, 0.86);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-2), #157f4f);
  box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.8);
  font-size: 18px;
}
.logo span.grad {
  background: linear-gradient(92deg, #eafff3, var(--green-2) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  padding: 8px 13px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--text); background: var(--panel-2); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.balance-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.balance-chip .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-chip .cur { color: var(--gold); font-weight: 700; }

.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--panel-3); image-rendering: pixelated; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 600; font-size: 14px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .12s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(145deg, var(--green), #16a34a); border-color: transparent; color: #04180d;
  box-shadow: 0 10px 24px -12px rgba(34, 197, 94, .9);
}
.btn-gold { background: linear-gradient(145deg, #f7d060, #d9a01b); border-color: transparent; color: #241a02; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 20px; padding: 46px 40px; margin-bottom: 26px;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(61, 190, 126, .16), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 44px);
  pointer-events: none;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; font-weight: 700; }
.hero h1 .grad {
  background: linear-gradient(92deg, #ffffff, var(--green-2) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted-2); max-width: 560px; margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-stats div span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-stats div b { font-size: 20px; font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-2); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.16); }
.dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(248,113,113,.16); }

/* ---------- panels & grids ---------- */

.section-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { font-size: 19px; }
.section-head .sub { color: var(--muted); font-size: 13px; }
.section-head .spacer { flex: 1; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 18px; }

.grid { display: grid; gap: 14px; }
.games-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.game-card {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 6px; min-height: 152px;
  transition: transform .16s, border-color .16s;
}
.game-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 60%;
  background: radial-gradient(80% 80% at 50% 100%, var(--glow, rgba(61,190,126,.22)), transparent 70%);
  pointer-events: none;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--panel-3); }
.game-card .ico { font-size: 30px; }
.game-card h3 { font-size: 17px; }
.game-card .desc { color: var(--muted); font-size: 12.5px; }
.game-card .tag {
  position: absolute; top: 12px; right: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-2); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
.game-card .play { margin-top: auto; color: var(--text); font-weight: 600; font-size: 13px; opacity: .0; transition: opacity .16s; }
.game-card:hover .play { opacity: 1; }

.promo-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promo {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 20px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column; gap: 8px;
}
.promo .kick { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.promo h3 { font-size: 18px; }
.promo p { color: var(--muted); font-size: 13px; }

/* ---------- tables / feed ---------- */

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 0 12px 10px;
}
.table td { padding: 9px 12px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.table tbody tr:hover td { background: rgba(255,255,255,.02); }
.pos { color: var(--green-2); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.mut { color: var(--muted); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }

.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }

/* ---------- game view ---------- */

.game-view { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.game-stage {
  min-height: 460px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(80% 80% at 50% 0%, rgba(255,255,255,.03), transparent), var(--bg-soft);
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
.game-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.game-title .ico { font-size: 26px; }
.game-title h2 { font-size: 22px; }
.game-title .edge { color: var(--muted); font-size: 12px; margin-left: auto; }

.bet-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line); outline: 0; font-weight: 600;
  font-variant-numeric: tabular-nums; transition: border-color .15s;
}
.input:focus { border-color: var(--green-2); }
.input-wrap .suffix { position: absolute; right: 8px; display: flex; gap: 4px; }
.chip {
  height: 26px; padding: 0 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted-2);
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--green-soft); border-color: rgba(61,190,126,.35); color: var(--green-2); }

.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; height: 38px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line);
  font-weight: 600; font-size: 13.5px; color: var(--muted-2);
}
.seg button.on { background: var(--green-soft); border-color: rgba(61,190,126,.4); color: var(--green-2); }

.kv { display: flex; justify-content: space-between; font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-variant-numeric: tabular-nums; }

.result-line { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 24px; }
.badge {
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line);
}
.badge.win { background: var(--green-soft); color: var(--green-2); border-color: rgba(61,190,126,.35); }
.badge.lose { background: rgba(248,113,113,.12); color: var(--red); border-color: rgba(248,113,113,.3); }
.badge.push { background: rgba(96,165,250,.12); color: var(--blue); border-color: rgba(96,165,250,.3); }

/* coinflip */
.coin {
  width: 150px; height: 150px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center;
  font-size: 46px; font-weight: 700; color: #1a1206;
  background: radial-gradient(circle at 32% 28%, #ffe89a, var(--gold) 55%, #b98307);
  box-shadow: 0 22px 40px -20px rgba(245,197,66,.9), inset 0 0 0 6px rgba(255,255,255,.18);
  transition: transform .1s;
}
.coin.tails { background: radial-gradient(circle at 32% 28%, #d6ffe8, var(--green-2) 55%, #12603c); color: #04180d; }
.coin.spin { animation: flip .55s ease-in-out; }
@keyframes flip { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(540deg) scale(1.06); } 100% { transform: rotateY(1080deg) scale(1); } }

/* dice / limbo */
.big-num { font-size: 68px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.big-num.win { color: var(--green-2); text-shadow: 0 0 40px rgba(61,190,126,.35); }
.big-num.lose { color: var(--red); }
.slider { -webkit-appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--green)); outline: 0; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 4px solid var(--panel-3); box-shadow: 0 4px 12px rgba(0,0,0,.6); cursor: grab;
}

/* mines / towers */
.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; max-width: 420px; margin: 0 auto; width: 100%; }
.tile {
  aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px;
  transition: transform .12s, background .2s;
}
.tile:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--panel-3); }
.tile.safe { background: var(--green-soft); border-color: rgba(61,190,126,.4); }
.tile.bomb { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.4); }
.tile.dim { opacity: .4; }
.tile:disabled { cursor: default; }

.tower { display: flex; flex-direction: column-reverse; gap: 7px; max-width: 380px; margin: 0 auto; width: 100%; }
.tower-row { display: flex; gap: 7px; align-items: center; }
.tower-row .mult { width: 58px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tower-row.cur .mult { color: var(--gold); font-weight: 700; }
.tower-row .cells { display: flex; gap: 7px; flex: 1; }
.tower-cell {
  flex: 1; height: 42px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 17px;
}
.tower-cell.safe { background: var(--green-soft); border-color: rgba(61,190,126,.4); }
.tower-cell.bomb { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.4); }
.tower-row.locked .tower-cell { opacity: .45; }

/* blackjack */
.bj-table { display: flex; flex-direction: column; gap: 26px; align-items: center; padding: 12px 0; }
.bj-side { text-align: center; width: 100%; }
.bj-side .who { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.hand-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hand { padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.hand.active { border-color: rgba(245,197,66,.45); background: rgba(245,197,66,.06); }
.cards { display: flex; gap: 8px; justify-content: center; min-height: 96px; }
.card {
  width: 64px; height: 92px; border-radius: 9px; background: #f6f7f4; color: #16181a;
  display: flex; flex-direction: column; justify-content: space-between; padding: 7px 8px;
  font-weight: 700; box-shadow: 0 10px 22px -12px rgba(0,0,0,.9); animation: deal .2s ease-out;
}
.card.red { color: #d0342c; }
.card.back {
  background: repeating-linear-gradient(45deg, #1d4b34 0 6px, #14472f 6px 12px); color: transparent;
  border: 1px solid #2b6647;
}
.card .r { font-size: 17px; line-height: 1; }
.card .s { font-size: 20px; text-align: right; line-height: 1; }
@keyframes deal { from { transform: translateY(-14px) scale(.94); opacity: 0; } }
.hand-total {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700;
}

/* roulette */
.wheel-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wheel-num {
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  font-size: 40px; font-weight: 700; border: 4px solid var(--line);
  background: var(--panel-2); transition: background .2s;
}
.wheel-num.red { background: linear-gradient(160deg, #e0463c, #8d221b); border-color: #f0776d; }
.wheel-num.black { background: linear-gradient(160deg, #33383d, #14171a); border-color: #4b5257; }
.wheel-num.green { background: linear-gradient(160deg, #22c55e, #12693a); border-color: #5ce894; color: #04180d; }
.board-scroll { width: 100%; overflow-x: auto; padding-bottom: 4px; }
.roulette-board { display: grid; grid-template-columns: 42px repeat(12, 1fr) 46px; gap: 4px; width: 100%; min-width: 560px; }
.rb-cell {
  border-radius: 7px; border: 1px solid var(--line); min-height: 34px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; position: relative; background: var(--panel);
}
.rb-cell.red { background: rgba(224,70,60,.24); }
.rb-cell.black { background: rgba(20,23,26,.85); }
.rb-cell.zero { background: rgba(34,197,94,.24); grid-row: span 3; }
.rb-cell.outside { grid-column: span 4; background: var(--panel-2); }
.rb-cell:hover { border-color: var(--gold); }
.rb-cell .stack {
  position: absolute; inset: auto 2px 2px auto; background: var(--gold); color: #241a02;
  border-radius: 6px; font-size: 10px; padding: 1px 4px; font-weight: 700;
}
.rb-row { display: contents; }

/* plinko */
.plinko-box { position: relative; width: 100%; max-width: 460px; margin: 0 auto; }
.pegs { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.peg-row { display: flex; gap: 12px; }
.peg { width: 6px; height: 6px; border-radius: 50%; background: var(--panel-3); }
.peg.hit { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.buckets { display: flex; gap: 3px; margin-top: 12px; }
.bucket {
  flex: 1; min-width: 0; text-align: center; font-size: 10.5px; font-weight: 700; padding: 5px 1px;
  border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden;
}
.bucket.hit { background: var(--gold); color: #241a02; transform: translateY(3px); }

/* crash */
.crash-box { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.crash-mult { font-size: 74px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.crash-mult.live { color: var(--green-2); }
.crash-mult.dead { color: var(--red); }
.crash-graph { width: 100%; height: 170px; }

/* ---------- modal ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 11, .72);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px;
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 430px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease-out;
}
.modal.wide { max-width: 560px; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 17px; }
.modal-head .x { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.modal-foot { padding: 0 20px 20px; display: flex; gap: 10px; }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--green-2); }

.cmd {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--radius-sm);
  background: #101315; border: 1px dashed rgba(61,190,126,.45);
}
.cmd code { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--green-2); word-break: break-all; }

.note { color: var(--muted); font-size: 12.5px; }
.note b { color: var(--muted-2); }
.error-box { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.28); color: #fca5a5; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.ok-box { background: var(--green-soft); border: 1px solid rgba(61,190,126,.3); color: var(--green-2); padding: 10px 12px; border-radius: 10px; font-size: 13px; }

.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row .img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #12171a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted-2); }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; }

.timer { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }

/* ---------- toast ---------- */

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 340px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; animation: slide .18s ease-out;
}
.toast.win { border-color: rgba(61,190,126,.4); }
.toast.err { border-color: rgba(248,113,113,.4); }
.toast b { display: block; margin-bottom: 2px; }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }

/* ---------- ticker ---------- */

.ticker { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.ticker-track { display: flex; gap: 40px; padding: 9px 0; white-space: nowrap; animation: marquee 26s linear infinite; }
.ticker-track span { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ticker-track span b { color: var(--green-2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 26px; }
.footer h4 { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer a, .footer li { color: var(--muted); font-size: 13px; }
.footer a:hover { color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer .disclaim { color: #5f6668; font-size: 11.5px; max-width: 460px; margin-top: 14px; line-height: 1.6; }
.footer-bottom { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: #5f6668; font-size: 12px; }
.footer-bottom .spacer { flex: 1; }

/* ---------- misc ---------- */

.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }
.center { text-align: center; }
.skel { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

.tabs { display: flex; gap: 6px; }
.tabs button { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.tabs button.on { color: var(--green-2); background: var(--green-soft); border-color: rgba(61,190,126,.35); }

.doc { max-width: 780px; }
.doc h2 { margin: 26px 0 10px; font-size: 20px; }
.doc h3 { margin: 20px 0 8px; font-size: 16px; }
.doc p, .doc li { color: var(--muted-2); font-size: 14px; margin-bottom: 8px; }
.doc ul { padding-left: 20px; }

@media (max-width: 980px) {
  .game-view { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding: 32px 22px; }
}
@media (max-width: 640px) {
  .panel-pad { overflow-x: auto; }
  .table { min-width: 420px; }
}
@media (max-width: 560px) {
  .balance-chip .cur { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .crash-mult { font-size: 52px; }
  .big-num { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- live chat dock ---------- */

.chat-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 300px;
  display: flex; flex-direction: column; max-height: min(560px, 70vh);
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.chat-dock.collapsed .chat-list, .chat-dock.collapsed .chat-form { display: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.chat-head .note { font-size: 11.5px; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.chat-msg .avatar { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; margin-top: 1px; }
.chat-msg .who { color: var(--green-2); font-weight: 600; margin-right: 5px; }
.chat-msg .body { color: var(--muted-2); word-break: break-word; }
.chat-form { display: flex; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.chat-form .input { height: 34px; font-weight: 500; font-size: 13px; }

@media (max-width: 1400px) { .chat-dock { width: 270px; } }
@media (max-width: 1100px) {
  .chat-dock { width: 220px; max-height: 46vh; }
}
@media (max-width: 780px) {
  .chat-dock { left: 12px; right: 12px; width: auto; max-height: 42vh; }
  .chat-dock.collapsed { left: auto; width: 150px; }
}

/* ---------- tavoli live ---------- */

.live-players { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.live-players-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 8px; }
.live-players .table td { padding: 7px 10px; }
.hand.mine { border-color: rgba(61,190,126,.5); background: rgba(61,190,126,.06); }
.crash-mult.dead { color: var(--red); }

/* ---------- giochi nuovi ---------- */

.wheel-strip { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 420px; margin: 0 auto; }
.wheel-cell {
  min-width: 52px; text-align: center; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted-2);
}
.wheel-cell.hot { color: var(--gold); border-color: rgba(245,197,66,.35); }
.wheel-cell.zero { opacity: .5; }
.wheel-cell.hit { background: var(--gold); color: #241a02; border-color: var(--gold); transform: translateY(-2px); }

.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 460px; margin: 0 auto; width: 100%; }
.keno-cell {
  aspect-ratio: 1; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted-2);
}
.keno-cell.picked { background: var(--green-soft); border-color: rgba(61,190,126,.45); color: var(--green-2); }
.keno-cell.drawn { border-color: var(--panel-3); color: var(--text); }
.keno-cell.hit { background: var(--gold); color: #241a02; border-color: var(--gold); }

.gem-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: auto 0; }
.gem { font-size: 40px; animation: deal .25s ease-out; }

.case-reel { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.case-item {
  min-width: 96px; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 12px; text-align: center; color: var(--muted-2); display: flex; flex-direction: column; gap: 4px;
}
.case-item b { color: var(--text); font-size: 14px; }
.case-item.hit { border-color: var(--gold); background: rgba(245,197,66,.12); }

.slot-grid { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 0 auto; }
.slot-row { display: flex; gap: 8px; }
.slot-cell {
  flex: 1; aspect-ratio: 1; display: grid; place-items: center; font-size: 34px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
}

.dice-row { display: flex; gap: 14px; justify-content: center; }
.die { font-size: 64px; line-height: 1; color: var(--text); }

.hilo-box { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: auto 0; }
.hilo-history { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }

.lanes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 460px; margin: 0 auto; }
.lane {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.lane.done { background: var(--green-soft); border-color: rgba(61,190,126,.4); }
.lane.cur { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.lane.dead { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.4); }

.poker-hand { gap: 10px; }
.poker-slot { position: relative; cursor: pointer; }
.poker-slot .hold-tag {
  position: absolute; inset: auto 0 -18px 0; text-align: center; font-size: 10px; letter-spacing: .1em;
  color: var(--gold); font-weight: 700;
}
.poker-slot.held .card { transform: translateY(-8px); box-shadow: 0 12px 22px -10px rgba(245,197,66,.7); }

/* ---------- rewards ---------- */

.daily-wheel { display: flex; flex-wrap: wrap; gap: 6px; }
.daily-slot {
  padding: 9px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted-2);
}
.daily-slot.hit { background: var(--gold); color: #241a02; border-color: var(--gold); }
.crate .kv { font-size: 12.5px; }
