:root {
  --bg: #0b0e17;
  --bg2: #12162a;
  --card: #1a2038;
  --card2: #222a4a;
  --gold: #f5c542;
  --gold2: #d4a017;
  --green: #2ecc71;
  --red: #e74c3c;
  --blue: #3498db;
  --text: #eef1ff;
  --muted: #8b93b8;
  --border: #2c3560;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2450 0%, var(--bg) 60%);
  color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header */
#site-header {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(11,14,23,.92); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px);
}
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.brandmark { height: 34px; width: auto; display: block; }
#main-nav { display: flex; gap: 8px; margin-left: 8px; }
#main-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
#main-nav a:hover, #main-nav a.active { color: var(--gold); background: var(--card); }
#header-wallet { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#header-auth { margin-left: auto; display: flex; gap: 8px; }
.balance-pill {
  background: linear-gradient(135deg, #3a2f07, #6b5410); border: 1px solid var(--gold2);
  color: var(--gold); font-weight: 800; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.user-menu-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: 110%; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; min-width: 190px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 60;
}
.dropdown button {
  display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 12px 14px; cursor: pointer; font-size: .95rem;
}
.dropdown button:hover { background: var(--card2); }

/* Admin warning banner */
.admin-warning {
  background: linear-gradient(90deg, #5a1010, #7a1a1a); border-bottom: 2px solid var(--red);
  padding: 12px 16px; text-align: center; font-size: .95rem;
}
.admin-warning .btn { margin-left: 10px; }

/* Layout */
#app { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
footer { text-align: center; padding: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
footer p { margin: 4px 0; }

/* Buttons & inputs */
.btn {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 10px; font-size: 1rem; cursor: pointer; font-weight: 600;
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1405; border: none; }
.btn-green { background: linear-gradient(135deg, #27ae60, #1e8449); border: none; }
.btn-red, .btn-danger { background: linear-gradient(135deg, #c0392b, #922b21); border: none; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
input, select {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font-size: 1rem; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--gold2); border-color: var(--gold2); }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: .9rem; }
.form-card {
  max-width: 420px; margin: 40px auto; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.form-card h2 { margin-top: 0; color: var(--gold); }
.form-error { color: var(--red); min-height: 1.4em; margin-top: 10px; }

/* Lobby */
.lobby-hero { text-align: center; margin: 10px 0 24px; }
.lobby-hero h1 { font-size: 2rem; margin: 0 0 8px; }
.lobby-hero h1 span { color: var(--gold); }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filter-btn.active { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; text-decoration: none; color: var(--text);
  transition: transform .12s, border-color .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--gold2); }
.game-card .icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.game-card .gname { font-weight: 700; }
.game-card .gcat { font-size: .75rem; color: var(--muted); }

/* Game page */
.game-shell { max-width: 860px; margin: 0 auto; }
.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.game-head h2 { margin: 0; flex: 1; }
.back-link { color: var(--muted); text-decoration: none; }
.bet-row { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bet-row input { width: 130px; }
.chip-btn { background: var(--bg2); border: 1px solid var(--gold2); color: var(--gold); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.chip-btn:hover { background: var(--gold); color: #1a1405; }
.game-area { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-height: 260px; }
.result-banner { text-align: center; font-size: 1.3rem; font-weight: 800; margin: 14px 0; min-height: 2em; }
.result-banner.win { color: var(--green); }
.result-banner.lose { color: var(--red); }
.result-banner.push { color: var(--gold); }

/* Cards */
.card {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 94px; background: linear-gradient(145deg, #ffffff, #eceff7);
  color: #161616; border-radius: 9px; font-size: 1.3rem; margin: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.1);
  font-family: Georgia, 'Times New Roman', serif;
}
.card.red { color: #b81f2d; }
.card .c-corner {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  font-size: .62em; font-weight: 800; line-height: 1.05;
}
.card .c-corner em { font-style: normal; font-size: 1.05em; }
.card .c-tl { top: 5px; left: 7px; }
.card .c-br { bottom: 5px; right: 7px; transform: rotate(180deg); }
.card .c-pip { font-size: 1.7em; opacity: .92; }
.card.back {
  background: repeating-linear-gradient(45deg, #33457f, #33457f 7px, #1d2858 7px, #1d2858 14px);
  display: inline-flex; align-items: center; justify-content: center;
}
.card .back-pip { color: rgba(255,255,255,.9); font-size: 1.5em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hand { margin: 10px 0; }
.hand-label { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.hand-total { display: inline-block; background: var(--bg2); border: 1px solid var(--gold2); color: var(--gold); border-radius: 8px; padding: 2px 10px; font-weight: 800; margin-left: 8px; }
/* --- Blackjack: real felt table, human-dealer feel --- */
.bj-table {
  position: relative; border-radius: 22px; padding: 20px 18px 16px; margin-top: 8px;
  background: radial-gradient(ellipse at 50% 28%, #34855a 0%, #206040 52%, #123e27 100%);
  border: 9px solid #6b4423;
  box-shadow: 0 12px 32px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,215,106,.25), inset 0 0 70px rgba(0,0,0,.4);
  overflow: hidden;
}
.bj-felt {
  position: absolute; top: 44%; left: 0; right: 0; text-align: center;
  opacity: .3; pointer-events: none;
}
.bj-felt span {
  display: block; color: #ffedb0; font-weight: 800; letter-spacing: .22em;
  font-size: .92rem; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.bj-felt span:last-child { font-size: .72rem; letter-spacing: .18em; margin-top: 4px; }
.bj-zone { position: relative; z-index: 1; }
.bj-zone .hand-label { color: #f3e9c8; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.bj-zone .hand-total {
  background: rgba(8,12,24,.85); border: 2px solid var(--gold); color: #ffd76a;
  border-radius: 999px; padding: 2px 14px; font-size: .95rem; min-width: 2.4em; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.bj-cards { min-height: 100px; }
.bj-cards .card { margin-left: -14px; box-shadow: 0 5px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.1); }
.bj-cards .card:first-child { margin-left: 2px; }
.bj-table .action-row { position: relative; z-index: 1; }
.bj-table .result-slot { position: relative; z-index: 1; }
.guide-box { background: var(--bg2); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.action-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Roulette */
.roulette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 12px 0; }
.rnum { padding: 12px 4px; text-align: center; border-radius: 8px; cursor: pointer; font-weight: 700; border: 2px solid transparent; }
.rnum.red { background: #a93226; } .rnum.black { background: #222; border-color: #444; } .rnum.zero { background: #1e8449; }
.rnum.selected { border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rnum.landed { outline: 3px solid #fff; }
.bet-type-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bet-type { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; }
.bet-type.selected { background: var(--gold); color: #1a1405; font-weight: 700; }
.roulette-result { font-size: 2rem; text-align: center; margin: 12px 0; min-height: 2.6em; }

/* Slots */
.slot-reels { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.reel {
  width: 92px; height: 92px; background: var(--bg2); border: 2px solid var(--gold2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.reel.spinning { animation: reelshake .12s infinite; }
@keyframes reelshake { 0%{transform:translateY(-3px)} 50%{transform:translateY(3px)} 100%{transform:translateY(-3px)} }
.paytable { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.paytable table { width: 100%; border-collapse: collapse; }
.paytable td { padding: 4px 8px; border-bottom: 1px solid var(--border); }

/* Mines */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; margin: 16px auto; }
.mine-cell {
  aspect-ratio: 1; background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mine-cell:hover:not(:disabled) { border-color: var(--gold2); }
.mine-cell.safe { background: #14532d; cursor: default; }
.mine-cell.boom { background: #7a1a1a; cursor: default; }
.mine-cell:disabled { cursor: default; }

/* Plinko */
#plinko-canvas { display: block; margin: 0 auto; max-width: 100%; }

/* Crash */
.crash-display { text-align: center; font-size: 3.2rem; font-weight: 900; margin: 18px 0; font-variant-numeric: tabular-nums; }
.crash-display.crashed { color: var(--red); }
.crash-curve { height: 120px; background: var(--bg2); border-radius: 10px; margin-bottom: 12px; position: relative; overflow: hidden; }
.crash-line { position: absolute; bottom: 0; left: 0; height: 4px; background: var(--green); width: 0%; transition: width .1s linear; }

/* Chicken */
.ch-road-wrap { margin-bottom: 14px; }
.ch-road { display: block; width: 100%; border-radius: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }

/* Keno */
.keno-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0; }
.knum { aspect-ratio: 1; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.knum.picked { background: var(--gold); color: #1a1405; font-weight: 800; }
.knum.hit { background: var(--green); color: #062; font-weight: 800; }
.knum.drawn { border-color: var(--blue); }

/* Dice */
.dice-roll { font-size: 3.4rem; text-align: center; margin: 16px 0; font-weight: 900; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--gold); padding: 0; }

/* Scratch */
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 16px auto; }
.scratch-cell {
  aspect-ratio: 1; border-radius: 10px; font-size: 2.2rem; cursor: pointer;
  background: linear-gradient(135deg, #8a6d1c, #5c4a12); border: 1px solid var(--gold2);
  display: flex; align-items: center; justify-content: center;
}
.scratch-cell.revealed { background: var(--bg2); cursor: default; }

/* Darts */
.dartboard { width: 240px; height: 240px; border-radius: 50%; margin: 12px auto; position: relative;
  background: conic-gradient(#c0392b 0 18deg, #111 18deg 36deg, #c0392b 36deg 54deg, #111 54deg 72deg, #c0392b 72deg 90deg, #111 90deg 108deg, #c0392b 108deg 126deg, #111 126deg 144deg, #c0392b 144deg 162deg, #111 162deg 180deg, #c0392b 180deg 198deg, #111 198deg 216deg, #c0392b 216deg 234deg, #111 234deg 252deg, #c0392b 252deg 270deg, #111 270deg 288deg, #c0392b 288deg 306deg, #111 306deg 324deg, #c0392b 324deg 342deg, #111 342deg 360deg);
  border: 10px solid #5d4037;
}
.dartboard::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: #1e8449; border: 4px solid #c0392b; }
.dart { position: absolute; font-size: 1.4rem; transform: translate(-50%,-50%); }

/* TicTacToe / Connect4 */
.ttt-grid { display: grid; grid-template-columns: repeat(3, 90px); gap: 8px; justify-content: center; margin: 16px 0; }
.ttt-cell { width: 90px; height: 90px; font-size: 2.6rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); }
.ttt-cell:disabled { cursor: default; }
.c4-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; margin: 16px auto; background: #0d3b66; padding: 10px; border-radius: 12px; }
.c4-col { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.c4-cell { aspect-ratio: 1; border-radius: 50%; background: var(--bg); }
.c4-cell.p1 { background: var(--red); } .c4-cell.p2 { background: var(--gold); }

/* Wheel */
.wheel-wrap { text-align: center; }
#wheel-canvas { max-width: 100%; }

/* Poker */
.poker-table { background: #0d5c2e; border: 8px solid #5d3a1a; border-radius: 18px; padding: 18px; margin: 12px 0; }
.community { display: flex; gap: 6px; justify-content: center; margin: 10px 0; min-height: 94px; }
.pot-display { text-align: center; color: var(--gold); font-weight: 800; font-size: 1.2rem; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--gold); }
.adjust-row { display: flex; gap: 6px; align-items: center; }
.adjust-row input { width: 90px; padding: 6px; }
.audit-list { max-height: 300px; overflow-y: auto; background: var(--bg2); border-radius: 10px; padding: 10px; font-size: .85rem; }
.audit-list div { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.pos { color: var(--green); } .neg { color: var(--red); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h3 { margin-top: 0; color: var(--gold); }

/* Modal & toast */
#modal-root .modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 400px; }
.modal h3 { margin-top: 0; color: var(--gold); }
.modal .action-row { justify-content: flex-end; }
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--card2); border: 1px solid var(--gold2); color: var(--text); padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.5); animation: toastin .25s; }
.toast.err { border-color: var(--red); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 640px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .lobby-hero h1 { font-size: 1.5rem; }
  #main-nav { display: none; }
  .bet-row input { width: 100px; }
  .keno-grid { grid-template-columns: repeat(8, 1fr); }
  .card { width: 50px; height: 72px; font-size: 1.1rem; }
}

/* ---------- Professional lobby (Stake-style) ---------- */
.hero-banner {
  position: relative; overflow: hidden; border-radius: 20px; padding: 44px 36px; margin: 6px 0 26px;
  background: linear-gradient(120deg, #141b3d 0%, #1d2a63 45%, #4a3208 100%);
  border: 1px solid var(--border);
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(245,197,66,.22), transparent 60%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,197,66,.12); border: 1px solid var(--gold2);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hero-banner h1 { font-size: 2.4rem; margin: 0 0 10px; line-height: 1.15; position: relative; }
.hero-banner h1 span { color: var(--gold); }
.hero-banner p { color: #c6cde8; max-width: 560px; margin: 0 0 20px; font-size: 1.05rem; position: relative; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.hero-cta .btn { padding: 12px 26px; font-size: 1.05rem; border-radius: 12px; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head .count { color: var(--muted); font-size: .9rem; }
.search-box { margin-left: auto; position: relative; }
.search-box input { width: 230px; padding-left: 36px; }
.search-box::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; }

/* Pro game tiles */
.game-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-4px); border-color: var(--gold2); box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 0 1px var(--gold2); }
.tile-art {
  height: 118px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem;
  position: relative; overflow: hidden;
}
.tile-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.09), transparent 45%);
  pointer-events: none;
}
.tile-art.cards { background: linear-gradient(135deg, #22307a, #0e1430); }
.tile-art.tables { background: linear-gradient(135deg, #0e6b34, #062a14); }
.tile-art.quick { background: linear-gradient(135deg, #93302a, #3a0d0d); }
.tile-play {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(245,197,66,.95); color: #1a1405; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s;
}
.game-card:hover .tile-play { opacity: 1; transform: scale(1); }
.tile-body { padding: 12px 12px 14px; text-align: left; }
.tile-body .gname { font-weight: 800; font-size: 1rem; }
.tile-body .gcat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Professional footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(11,14,23,.7); margin-top: 30px; }
.footer-cols {
  max-width: 1100px; margin: 0 auto; padding: 34px 16px 10px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; text-align: left;
}
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; }
.footer-col h4 { margin: 0 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: .8rem; text-align: left;
}

/* Terms of Service page */
.tos-wrap { max-width: 800px; margin: 0 auto; }
.tos-wrap h1 { color: var(--gold); }
.tos-wrap h2 { color: var(--text); margin-top: 30px; font-size: 1.2rem; }
.tos-wrap p, .tos-wrap li { color: #c6cde8; line-height: 1.65; }
.tos-wrap ul { padding-left: 22px; }
.tos-meta { color: var(--muted); font-size: .85rem; }
.tos-back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.tos-back:hover { color: var(--gold); }

/* Signup terms checkbox */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: .9rem; color: var(--muted); }
.check-row input { width: auto; margin-top: 3px; accent-color: var(--gold); }
.check-row a { color: var(--gold); }

@media (max-width: 640px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .hero-banner { padding: 30px 22px; }
  .hero-banner h1 { font-size: 1.7rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
}

/* ============================================================
   VEGAS MAKEOVER — friendly, bouncy, legit-casino feel
   ============================================================ */
:root {
  --pink: #ff2d78;
  --purple: #9b5cff;
  --teal: #2dd4bf;
  --display: 'Bungee', 'Arial Black', sans-serif;
  --body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body { font-family: var(--body); }
h1, h2, h3, .display-font { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }

/* Header logo */
.brandmark-img { height: 42px; width: auto; display: block; border-radius: 10px; transition: transform .2s cubic-bezier(.34,1.8,.64,1); }
.logo:hover .brandmark-img { transform: rotate(-6deg) scale(1.08); }

/* Bouncier buttons everywhere */
.btn { transition: transform .16s cubic-bezier(.34,1.8,.64,1), filter .15s, box-shadow .15s; font-family: var(--body); font-weight: 800; }
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: scale(.94); }
.btn-gold {
  background: linear-gradient(135deg, #ffe27a, var(--gold) 45%, var(--gold2));
  box-shadow: 0 4px 0 #8a6410, 0 8px 22px rgba(245,197,66,.35);
}
.btn-gold:hover { box-shadow: 0 6px 0 #8a6410, 0 12px 28px rgba(245,197,66,.5); }
.btn-gold:active { box-shadow: 0 1px 0 #8a6410; transform: translateY(3px) scale(.97); }

/* ---------- Hero ---------- */
.vegas-hero {
  position: relative; overflow: hidden; border-radius: 24px; margin: 4px 0 0;
  border: 1px solid #4a3a10;
  background: #0d0a1f url('/img/hero.webp') center 30% / cover no-repeat;
  min-height: 340px; display: flex; align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 120px rgba(20,8,40,.7);
}
.vegas-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,6,24,.92) 20%, rgba(10,6,24,.55) 55%, rgba(10,6,24,.15) 100%);
}
.vegas-hero-inner { position: relative; z-index: 2; padding: 46px 40px; max-width: 640px; }
.vegas-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: .78rem;
  letter-spacing: 2.5px; text-transform: uppercase; color: #1a1405;
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
  animation: floaty 3s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(245,197,66,.45);
}
.vegas-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 12px; line-height: 1.05; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 40px rgba(255,45,120,.35);
  animation: bounceIn .7s cubic-bezier(.34,1.56,.64,1) both;
}
.vegas-hero h1 .gold-text {
  background: linear-gradient(180deg, #fff3c4 10%, var(--gold) 45%, #b97f0e 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.4));
}
.vegas-hero p { color: #d9def5; font-size: 1.08rem; max-width: 520px; margin: 0 0 22px; font-weight: 600; }
.vegas-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.vegas-cta .btn { padding: 14px 30px; font-size: 1.1rem; border-radius: 16px; animation: ctaBounce 2.2s ease-in-out infinite; }
.vegas-cta .btn:last-child { animation-delay: 1.1s; }
@keyframes ctaBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(.6) translateY(30px); } 60% { opacity: 1; transform: scale(1.06) translateY(-4px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

/* Floating chips decoration */
.hero-chip { position: absolute; font-size: 2rem; z-index: 1; opacity: .9; animation: chipFloat 7s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); pointer-events: none; }
@keyframes chipFloat { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-26px) rotate(14deg); } }

/* ---------- Wins ticker ---------- */
.wins-ticker {
  margin: 18px 0 0; border-radius: 14px; overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, #160b2e, #2b0f3f, #160b2e);
  border: 1px solid #5b3a8c; position: relative;
}
.wins-ticker::before {
  content: "🔥 LIVE WINS"; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 16px; font-family: var(--display); font-size: .8rem;
  background: linear-gradient(135deg, var(--pink), #b3124f); color: #fff; letter-spacing: 1px;
}
.ticker-track { display: inline-block; padding: 11px 0 11px 150px; animation: marquee 36s linear infinite; font-weight: 700; color: #e8ddff; }
.ticker-track b { color: var(--gold); }
.wins-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Jackpot strip ---------- */
.jackpot-strip {
  margin: 18px 0 26px; border-radius: 18px; padding: 18px 26px;
  background: linear-gradient(100deg, #3a2803, #6b4d0a 40%, #3a2803);
  border: 2px solid var(--gold2);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 0 34px rgba(245,197,66,.28), inset 0 0 40px rgba(245,197,66,.12);
  animation: jackpotGlow 2.6s ease-in-out infinite;
}
@keyframes jackpotGlow { 0%,100% { box-shadow: 0 0 22px rgba(245,197,66,.2), inset 0 0 40px rgba(245,197,66,.1); } 50% { box-shadow: 0 0 44px rgba(245,197,66,.45), inset 0 0 60px rgba(245,197,66,.2); } }
.jackpot-label { font-family: var(--display); color: var(--gold); font-size: 1.05rem; letter-spacing: 1px; }
.jackpot-amount { font-family: var(--display); font-size: 1.9rem; color: #fff; text-shadow: 0 0 18px rgba(245,197,66,.8); font-variant-numeric: tabular-nums; }
.jackpot-sub { color: #d9c98a; font-size: .9rem; font-weight: 700; }

/* ---------- Game cards with thumbnails ---------- */
.game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative;
  animation: cardPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.game-card:nth-child(3n+1) { animation-delay: .03s; } .game-card:nth-child(3n+2) { animation-delay: .08s; } .game-card:nth-child(3n+3) { animation-delay: .13s; }
@keyframes cardPop { from { opacity: 0; transform: scale(.85) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.game-card:hover { transform: translateY(-7px) rotate(-.6deg) !important; border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 24px rgba(245,197,66,.3); }
.tile-art { height: 128px; padding: 0; display: block; position: relative; overflow: hidden; background: #141031; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.game-card:hover .tile-art img { transform: scale(1.12) rotate(1deg); }
.tile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,5,20,.55)); pointer-events: none; }
.tile-emoji {
  position: absolute; left: 10px; bottom: 8px; z-index: 2; font-size: 1.9rem;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); animation: floaty 4s ease-in-out infinite;
}
.tile-play { z-index: 3; }
.game-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3; font-family: var(--display); font-size: .68rem;
  padding: 5px 11px; border-radius: 999px; letter-spacing: 1px; color: #fff;
  animation: badgeWiggle 2.4s ease-in-out infinite; box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.game-badge.hot { background: linear-gradient(135deg, #ff2d78, #c2145a); }
.game-badge.new { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
@keyframes badgeWiggle { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.1); } }
.tile-body { padding: 13px 14px 15px; text-align: left; background: linear-gradient(180deg, var(--card), #141a33); }
.tile-body .gname { font-weight: 900; font-size: 1.02rem; }
.tile-body .gcat { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; }
.tile-min { font-size: .78rem; color: var(--teal); font-weight: 800; margin-top: 4px; display: block; }

/* ---------- Slot machine frame ---------- */
.slot-machine {
  background: linear-gradient(180deg, #2a1f5c, #150f33); border: 3px solid var(--gold2); border-radius: 22px;
  padding: 22px 18px 26px; max-width: 460px; margin: 0 auto;
  box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 30px rgba(155,92,255,.25), inset 0 2px 0 rgba(255,255,255,.12);
  position: relative;
}
.slot-machine::before {
  content: "★ SIX7BET SLOTS ★"; display: block; font-family: var(--display); color: var(--gold);
  letter-spacing: 2px; font-size: .95rem; margin-bottom: 14px; text-shadow: 0 0 14px rgba(245,197,66,.7);
}
.slot-reels { background: rgba(0,0,0,.35); border-radius: 14px; padding: 14px 8px; border: 1px solid #4a3f8c; }
.reel {
  width: 96px; height: 96px; font-size: 3.2rem; background: linear-gradient(180deg, #fffdf4, #e8e2cf);
  border: 3px solid var(--gold); border-radius: 14px; box-shadow: inset 0 -8px 14px rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.4);
}
.reel.spinning { animation: reelBlur .1s infinite; border-color: var(--pink); }
@keyframes reelBlur { 0% { transform: translateY(-8px) scaleY(1.06); filter: blur(2px); } 100% { transform: translateY(8px) scaleY(1.06); filter: blur(2px); } }
.reel.landed { animation: reelLand .35s cubic-bezier(.34,1.8,.64,1); }
@keyframes reelLand { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
#sl-spin { animation: ctaBounce 1.8s ease-in-out infinite; }

/* ---------- Win celebration ---------- */
.result-banner.win {
  animation: winPop .5s cubic-bezier(.34,1.8,.64,1);
  background: linear-gradient(135deg, rgba(46,204,113,.18), rgba(245,197,66,.18));
  border: 2px solid var(--gold2); border-radius: 14px; padding: 12px;
}
@keyframes winPop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.bigwin-splash {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  pointer-events: none; animation: splashIn 2.6s ease forwards;
}
.bigwin-splash .splash-text {
  font-family: var(--display); font-size: clamp(2.4rem, 9vw, 5.5rem); text-align: center; line-height: 1.1;
  background: linear-gradient(180deg, #fff6c9, var(--gold) 50%, #ff9d2e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.45)) drop-shadow(0 0 34px rgba(245,197,66,.8));
  animation: splashZoom .55s cubic-bezier(.34,1.8,.64,1) both;
}
@keyframes splashZoom { from { transform: scale(.4) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes splashIn { 0% { opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
#fx-confetti { position: fixed; inset: 0; z-index: 299; pointer-events: none; }

/* ---------- Balance pill pulse ---------- */
.balance-pill.bump { animation: pillBump .5s cubic-bezier(.34,1.8,.64,1); }
@keyframes pillBump { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-2deg); } 100% { transform: scale(1); } }

/* ---------- Misc vegas bits ---------- */
.section-head h2 { font-size: 1.5rem; }
.section-head h2 .gold-text { background: linear-gradient(180deg, #fff3c4, var(--gold) 60%, #b97f0e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.filter-btn { font-weight: 800; transition: transform .15s cubic-bezier(.34,1.8,.64,1); }
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active { box-shadow: 0 4px 14px rgba(245,197,66,.4); }
.chip-btn { transition: transform .12s cubic-bezier(.34,1.8,.64,1); font-weight: 900; }
.chip-btn:hover { transform: scale(1.12) rotate(-4deg); }
.card { transition: transform .2s; }
.card:hover { transform: translateY(-4px) rotate(-2deg); }
.mine-cell:not(:disabled):hover { transform: scale(1.08); }
.mine-cell { transition: transform .12s; }
.knum:hover, .rnum:hover { transform: scale(1.1); }
.knum, .rnum { transition: transform .12s; }
.ttt-cell:not(:disabled):hover { transform: scale(1.06); border-color: var(--gold); }
.scratch-cell:not(.revealed):hover { transform: scale(1.06) rotate(-2deg); }
.scratch-cell { transition: transform .15s; }
.sound-toggle { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.sound-toggle:hover { color: var(--gold); border-color: var(--gold2); }
.game-area { position: relative; overflow: hidden; }
.game-area::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(500px 200px at 50% -60px, rgba(155,92,255,.14), transparent 70%);
}
.form-card { animation: bounceIn .5s cubic-bezier(.34,1.56,.64,1) both; border: 2px solid #4a3a10; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 30px rgba(245,197,66,.12); }
.form-card h2 { font-family: var(--display); letter-spacing: 1px; }
.modal { animation: bounceIn .35s cubic-bezier(.34,1.56,.64,1) both; }
.toast { font-weight: 800; animation: toastBounce .3s cubic-bezier(.34,1.8,.64,1); }
@keyframes toastBounce { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.crash-display { font-family: var(--display); letter-spacing: 1px; }
.dice-roll { font-family: var(--display); }

@media (max-width: 640px) {
  .vegas-hero { min-height: 300px; }
  .vegas-hero-inner { padding: 32px 22px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .tile-art { height: 104px; }
  .jackpot-amount { font-size: 1.4rem; }
  .brandmark-img { height: 36px; }
}

/* ---------- Donate + Leaderboard ---------- */
.norefund-box {
  background: linear-gradient(135deg, #2a0f0f, #1a0a0a);
  border: 2px solid #c0392b;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(192,57,43,.25);
}
.norefund-title {
  font-family: var(--display, 'Bungee', sans-serif);
  color: #ff6b5e;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.norefund-box p { margin: 0; font-size: .92rem; line-height: 1.5; }
.ack-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; margin: 14px 0; cursor: pointer;
}
.ack-row input { margin-top: 3px; transform: scale(1.3); accent-color: var(--gold); }
.ack-row span { font-size: .9rem; line-height: 1.45; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.donate-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.donate-method { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 12px; }
.donate-logo { font-size: 2rem; }
.pay-btn { width: 100%; }
.pay-btn[disabled] { opacity: .35; cursor: not-allowed; filter: grayscale(.6); }
.method-pick { display: flex; gap: 10px; margin: 4px 0 12px; }
.method-btn.active { outline: 2px solid var(--gold); background: var(--card2); }

.lb-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lb-tabs.sub { margin-bottom: 0; }
.lb-tab {
  font-family: var(--display, 'Bungee', sans-serif); font-size: .85rem;
  background: var(--card); color: var(--text);
  border: 2px solid var(--border); border-radius: 999px;
  padding: 10px 20px; cursor: pointer;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), border-color .15s;
}
.lb-tab:hover { transform: translateY(-2px); border-color: var(--gold2); }
.lb-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1405; border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(245,197,66,.35);
}
.lb-tabs.sub .lb-tab { font-size: .75rem; padding: 7px 14px; }
.lb-table td, .lb-table th { vertical-align: middle; }
.lb-rank { font-size: 1.1rem; white-space: nowrap; }
.lb-total { color: var(--gold); font-weight: 800; white-space: nowrap; }
tr.lb-top td { background: rgba(245,197,66,.06); }
@media (max-width: 640px) {
  .donate-grid { grid-template-columns: 1fr; }
}

/* ---------- Donate page v2: Vegas hero ---------- */
.donate-hero {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 22px; padding: 46px 28px 34px; margin-bottom: 20px;
  background:
    radial-gradient(640px 280px at 50% -60px, rgba(245,197,66,.20), transparent 70%),
    linear-gradient(135deg, #241a4d, #3d1e5f 48%, #5c1f4e);
  border: 1px solid rgba(245,197,66,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 80px rgba(155,92,255,.10);
}
.donate-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  background-size: 250% 100%; animation: heroShine 7s linear infinite;
}
@keyframes heroShine { from { background-position: 200% 0; } to { background-position: -50% 0; } }
.donate-hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.orb-a { width: 260px; height: 260px; left: -70px; top: -70px; background: #9b5cff; animation: orbDrift 9s ease-in-out infinite; }
.orb-b { width: 220px; height: 220px; right: -60px; bottom: -80px; background: #f5c542; opacity: .28; animation: orbDrift 11s ease-in-out infinite reverse; }
@keyframes orbDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,18px) scale(1.12); } }
.donate-hero-emoji {
  font-size: 3.4rem; position: relative; z-index: 1;
  animation: floaty 3.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(245,197,66,.45));
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.donate-hero h2 {
  position: relative; z-index: 1;
  font-family: var(--display, 'Bungee', sans-serif);
  font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: 1px; margin: 12px 0 10px;
  background: linear-gradient(135deg, #fff3c4, var(--gold) 55%, #ff9d5c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 12px rgba(245,197,66,.35));
}
.donate-hero p { position: relative; z-index: 1; color: #ece7fa; max-width: 600px; margin: 0 auto; line-height: 1.55; }
.donate-hero a { color: var(--gold); font-weight: 700; }

/* Community goal bar */
.goal-wrap {
  position: relative; z-index: 1; max-width: 540px; margin: 24px auto 0; text-align: left;
  background: rgba(8,10,22,.55); border: 1px solid rgba(245,197,66,.28);
  border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(4px);
}
.goal-labels { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; margin-bottom: 10px; color: #d9d2ee; }
.goal-labels strong { color: var(--gold); font-size: 1.05rem; }
.goal-bar { height: 16px; border-radius: 999px; background: #0b0e1e; border: 1px solid var(--border); overflow: hidden; }
.goal-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #b57e12, var(--gold) 45%, #ffe9a8 55%, var(--gold) 65%, #b57e12);
  background-size: 200% 100%; animation: goalShimmer 2.6s linear infinite;
  box-shadow: 0 0 16px rgba(245,197,66,.75);
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
@keyframes goalShimmer { to { background-position: -200% 0; } }
.goal-sub { margin: 10px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* 3-step flow */
.donate-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.donate-step {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s;
}
.donate-step:hover { transform: translateY(-4px); border-color: var(--gold2); }
.step-n {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #1a1405;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 6px 16px rgba(245,197,66,.45);
}
.donate-step h4 { margin: 0 0 6px; font-size: .98rem; }
.donate-step p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* No-refund box: caution-tape accent */
.norefund-box { position: relative; overflow: hidden; padding-top: 24px; }
.norefund-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, #c0392b 0 14px, #7b241c 14px 28px);
}

/* Payment cards: glow + lift */
.donate-pay-panel { background: linear-gradient(180deg, rgba(245,197,66,.05), transparent 40%), var(--card); }
.donate-card {
  background: linear-gradient(180deg, #232b52, #1a2040);
  border: 1px solid rgba(245,197,66,.25); border-radius: 18px; padding: 20px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, border-color .22s;
}
.donate-card:hover {
  transform: translateY(-5px) scale(1.01); border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 28px rgba(245,197,66,.22);
}
.donate-logo { font-size: 2.4rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.pay-tag {
  display: inline-block; margin-top: 4px; padding: 5px 14px; border-radius: 999px;
  background: rgba(245,197,66,.12); border: 1px dashed var(--gold2);
  color: var(--gold); font-weight: 800; font-size: .88rem; letter-spacing: .3px;
}
.pay-btn {
  font-size: 1.02rem; padding: 13px;
  box-shadow: 0 8px 22px rgba(245,197,66,.30);
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s, filter .15s;
}
.pay-btn:not([disabled]):hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(245,197,66,.45); }
.unlock-hint { text-align: center; margin: 12px 0 0; font-size: .88rem; }

@media (max-width: 640px) {
  .donate-steps { grid-template-columns: 1fr; }
  .donate-hero { padding: 36px 20px 28px; }
}

/* ---------- Site chat drawer ---------- */
.chat-toggle { position: relative; }
.unread-dot {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  border-radius: 999px; background: #ff2d78; color: #fff;
  font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; box-shadow: 0 2px 8px rgba(255,45,120,.6);
}
.chat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); z-index: 200;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #171a30, #101223);
  border-left: 1px solid rgba(245,197,66,.3);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
  animation: chatSlideIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes chatSlideIn { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: rgba(245,197,66,.06);
}
.chat-head strong { font-size: 1rem; letter-spacing: .3px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 7px 10px; font-size: .87rem; line-height: 1.45;
  animation: chatPop .2s ease-out;
}
@keyframes chatPop { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-msg strong { color: #cfd6ff; margin-right: 4px; }
.chat-msg strong.chat-admin { color: var(--gold); }
.chat-text { color: #e8eaf6; word-wrap: break-word; }
.chat-badge { margin-right: 3px; font-size: .85em; }
.chat-sys {
  text-align: center; font-size: .82rem; color: var(--gold);
  background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.25);
  border-radius: 10px; padding: 7px 10px; line-height: 1.4;
}
.chat-foot { border-top: 1px solid var(--border); padding: 10px 12px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; margin: 0; }
.chat-hint { margin: 8px 2px 0; font-size: .74rem; text-align: center; }

/* ---------- Daily wheels ---------- */
.wheels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.wheel-card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--border); border-radius: 20px; padding: 22px;
  text-align: center; position: relative; overflow: hidden;
}
.wheel-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.wheel-desc { margin: 0 0 14px; font-size: .85rem; }
.wheel-wrap { position: relative; width: 300px; height: 300px; margin: 0 auto 16px; max-width: 100%; }
.wheel-spinner { width: 100%; height: 100%; will-change: transform; }
.wheel-spinner canvas { width: 100%; height: 100%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); z-index: 2;
}
.spin-btn {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 2px;
  padding: 12px 44px; animation: spinPulse 2s ease-in-out infinite;
}
.spin-btn:disabled { animation: none; }
@keyframes spinPulse {
  0%,100% { box-shadow: 0 8px 22px rgba(245,197,66,.30); }
  50% { box-shadow: 0 8px 34px rgba(245,197,66,.65); }
}
.wheel-status { margin: 12px 0 0; font-size: .9rem; }
.wheel-locked { padding: 8px 0 4px; }
.wheel-locked p { font-size: .85rem; }
.wheel-locked-card { border-style: dashed; }
.donor-mini { font-size: .85em; }

/* ---------- Big-win pin banner (10s) ---------- */
.chat-pin {
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(245,197,66,.22), rgba(245,197,66,.07));
  border-bottom: 2px solid var(--gold);
  color: #ffe9a8; font-size: .88rem; font-weight: 700; text-align: center; line-height: 1.4;
  animation: pinGlow 1.1s ease-in-out infinite alternate;
}
@keyframes pinGlow {
  from { box-shadow: inset 0 -6px 14px -8px rgba(245,197,66,.2); }
  to   { box-shadow: inset 0 -22px 30px -10px rgba(245,197,66,.55); }
}

/* ---------- Shared crash (multiplayer) — Roobet-clean ---------- */
.crash-shell .fair-chip {
  margin-left: auto; font-size: .75rem; color: var(--gold);
  border: 1px solid rgba(245,197,66,.45); border-radius: 999px; padding: 3px 10px;
  background: rgba(245,197,66,.08); white-space: nowrap;
}
.crash-hist { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; min-height: 26px; }
.hist-pill {
  font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.hist-pill.low { color: #9fb3d9; background: rgba(120,150,200,.12); border-color: rgba(120,150,200,.35); }
.hist-pill.mid { color: #c9a7f5; background: rgba(170,120,255,.12); border-color: rgba(170,120,255,.4); }
.hist-pill.high { color: #ffd76a; background: rgba(245,197,66,.14); border-color: rgba(245,197,66,.5); }
.crash-layout { display: flex; gap: 16px; align-items: flex-start; }
.crash-main { flex: 1 1 auto; min-width: 0; }
.crash-stage {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  margin-bottom: 14px; background: #0a0f1e;
}
.crash-canvas { display: block; width: 100%; height: 380px; }
.crash-mult {
  position: absolute; top: 34%; left: 0; right: 0; text-align: center;
  font-size: 4rem; font-weight: 900; color: #fff; letter-spacing: .02em;
  text-shadow: 0 0 26px rgba(60,255,170,.55), 0 3px 10px rgba(0,0,0,.7);
  font-variant-numeric: tabular-nums; pointer-events: none;
  font-family: var(--display, inherit);
}
.crash-mult.crashed { color: #ff7a6e; text-shadow: 0 0 26px rgba(255,80,60,.8), 0 3px 10px rgba(0,0,0,.7); }
.crash-phase {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.75);
  text-shadow: 0 1px 4px rgba(0,0,0,.8); pointer-events: none; letter-spacing: .03em;
}
.crash-controls { margin-bottom: 14px; }
.crash-controls .cr-betrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crash-controls .cr-betamt { width: 110px; }
.crash-controls .cr-auto { width: 90px; }
.crash-controls .cr-cash { width: 100%; font-size: 1.25rem; padding: 12px; margin-top: 4px; }
.crash-side { flex: 0 0 330px; max-height: 560px; display: flex; flex-direction: column; }
.crash-side h3 { display: flex; align-items: center; gap: 6px; }
.crash-bets { overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.cr-total { padding-top: 8px; font-size: .85rem; font-weight: 700; text-align: right; }
.bets-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bets-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.bets-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.bets-table td.rank { color: var(--muted); font-weight: 800; font-size: .8rem; }
.bets-table tr.bettor-mine td { background: rgba(245,197,66,.08); }
.bets-table tr.bettor-cashed td:first-child { border-left: 3px solid var(--green); }
.bets-table tr.bettor-lost td:first-child { border-left: 3px solid #e05252; }
.crash-board tbody tr:nth-child(1) td.rank { color: #ffd76a; }
.crash-board tbody tr:nth-child(2) td.rank { color: #cfd8ea; }
.crash-board tbody tr:nth-child(3) td.rank { color: #e0a66f; }
.co-win { color: #7ce38b; font-weight: 800; }
.co-lost { color: #e05252; font-weight: 700; }
.co-live { display: inline-block; animation: rocketBob 0.9s ease-in-out infinite; }
@keyframes rocketBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.you-chip { font-size: .68rem; background: rgba(245,197,66,.2); color: var(--gold);
  border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-weight: 800; }
.fair-box { margin-top: 14px; font-size: .85rem; }
.fair-box summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.fair-box code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px;
  font-size: .78rem; word-break: break-all; }
@media (max-width: 940px) {
  .crash-layout { flex-direction: column; }
  .crash-side { flex: 1 1 auto; width: 100%; max-height: 340px; }
}
@media (max-width: 640px) {
  .crash-canvas { height: 280px; }
  .crash-mult { font-size: 2.8rem; top: 30%; }
}

/* ---------- Game visual polish ----------
 * Juicy in-game animations: card deals/flips, wheel spins, dice tumbles,
 * tile pops, scratch foil, dart arcs, piece drops. Transform/opacity only. */

/* --- Card deal / flip / win glow (blackjack, baccarat, poker, videopoker, hilo) --- */
.card.deal-in { animation: cardDeal .38s cubic-bezier(.2,.9,.25,1.15) backwards; }
@keyframes cardDeal {
  from { transform: translateY(-34px) scale(.55) rotate(-6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.card.flip-in { animation: cardFlip .45s ease backwards; transform-origin: center; }
@keyframes cardFlip {
  from { transform: rotateY(90deg) scale(.92); opacity: .4; }
  to { transform: rotateY(0); opacity: 1; }
}
.hand-win .card { animation: winGlow 1s ease-in-out 3; box-shadow: 0 0 14px var(--gold); }
@keyframes winGlow {
  0%, 100% { box-shadow: 0 3px 8px rgba(0,0,0,.4); }
  50% { box-shadow: 0 0 22px var(--gold), 0 0 6px #fff; transform: translateY(-4px); }
}
.pot-win { animation: winGlow 1s ease-in-out 3; }

/* --- Roulette wheel --- */
.ro-wheel-wrap { text-align: center; margin: 6px 0 2px; }
#ro-wheel { max-width: 300px; width: 100%; height: auto; }
.ro-hist { display: flex; gap: 6px; justify-content: center; margin: 8px 0; min-height: 26px; flex-wrap: wrap; }
.ro-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff; animation: ballPop .3s ease; }
.ro-dot.red { background: #a93226; } .ro-dot.black { background: #222; border: 1px solid #555; } .ro-dot.zero { background: #1e8449; }

/* --- Dice --- */
.dice-roll.tumbling { animation: diceTumble .09s infinite; }
@keyframes diceTumble { 0%{transform:scale(1) rotate(-2deg);filter:blur(1px)} 50%{transform:scale(1.08) rotate(2deg);filter:blur(2px)} 100%{transform:scale(1) rotate(-2deg);filter:blur(1px)} }
.dice-roll.landed-win { animation: diceBounce .5s ease; color: var(--green); text-shadow: 0 0 18px rgba(46,204,113,.7); }
.dice-roll.landed-lose { animation: diceBounce .5s ease; color: var(--red); text-shadow: 0 0 18px rgba(231,76,60,.7); }
@keyframes diceBounce { 0%{transform:scale(.6)} 45%{transform:scale(1.18)} 70%{transform:scale(.94)} 100%{transform:scale(1)} }
.dc-glow-win { filter: drop-shadow(0 0 8px var(--green)); }
.dc-glow-lose { filter: drop-shadow(0 0 8px var(--red)); }

/* --- Keno balls --- */
.knum.ball-pop { animation: ballPop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes ballPop { 0%{transform:scale(.3);opacity:.4} 60%{transform:scale(1.18)} 100%{transform:scale(1);opacity:1} }
.knum.hit { animation: hitGlow 1.1s ease-in-out infinite; }
@keyframes hitGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(46,204,113,.4); }
  50% { box-shadow: 0 0 16px rgba(46,204,113,.95), 0 0 4px #fff; }
}

/* --- Slots win --- */
.slot-machine.reels-win .reel { animation: reelGlow .55s ease-in-out infinite alternate; border-color: var(--gold); }
@keyframes reelGlow {
  from { box-shadow: 0 0 6px rgba(245,197,66,.3); }
  to { box-shadow: 0 0 22px var(--gold), 0 0 8px #fff; }
}
.slot-pop { position: absolute; left: 50%; top: 38%; transform: translate(-50%,-50%) scale(.4);
  font-size: 2.4rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 18px rgba(245,197,66,.9), 0 2px 0 #000;
  animation: slotPop 1.8s ease forwards; pointer-events: none; white-space: nowrap; z-index: 5; }
@keyframes slotPop {
  0% { transform: translate(-50%,-50%) scale(.4); opacity: 0; }
  18% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
  30% { transform: translate(-50%,-50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%,-58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-90%) scale(1.05); }
}
.slot-machine { position: relative; }

/* --- Mines --- */
.mine-cell.pop { animation: minePop .3s cubic-bezier(.2,.9,.3,1.4); }
@keyframes minePop { 0%{transform:scale(.5)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }
.mine-cell.safe { animation: gemSpark .5s ease; }
.mine-cell.safe.pop { animation: minePop .3s cubic-bezier(.2,.9,.3,1.4), gemSpark .5s ease; }
@keyframes gemSpark { 0%{filter:brightness(2.4)} 100%{filter:brightness(1)} }
.game-area.shake { animation: shakeX .45s ease; }
@keyframes shakeX { 0%,100%{transform:translateX(0)} 15%{transform:translateX(-9px)} 30%{transform:translateX(8px)} 45%{transform:translateX(-6px)} 60%{transform:translateX(5px)} 75%{transform:translateX(-3px)} }
.mine-cell.boom { animation: boomFlash .7s ease; }
@keyframes boomFlash { 0%,100%{box-shadow:0 0 0 rgba(231,76,60,0)} 30%{box-shadow:0 0 26px #e74c3c, 0 0 10px #fff} }

/* --- Chicken --- */
.chicken-lanes { position: relative; }
.ch-hop { display: inline-block; animation: hop .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes hop { 0%{transform:translateY(0) scale(1)} 40%{transform:translateY(-16px) scale(1.12)} 100%{transform:translateY(0) scale(1)} }
.car-whoosh { position: absolute; left: 0; top: 0; font-size: 2rem; z-index: 6; pointer-events: none;
  animation: whoosh .85s linear forwards; }
@keyframes whoosh { from { transform: translateX(-80px); } to { transform: translateX(var(--dist, 480px)); } }
.feather { position: absolute; z-index: 6; pointer-events: none; font-size: 1.3rem;
  animation: featherFly .9s ease-out forwards; }
@keyframes featherFly {
  from { transform: translate(0,0) rotate(0); opacity: 1; }
  to { transform: translate(var(--fx), var(--fy)) rotate(260deg); opacity: 0; }
}

/* --- Scratch foil --- */
.scratch-cell { position: relative; overflow: hidden; }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px;
  touch-action: none; cursor: crosshair; transition: opacity .3s; }
.scratch-cell .sym { pointer-events: none; }
.scratch-cell.revealed .sym { animation: ballPop .35s ease; }

/* --- Darts --- */
.dart { transition: none; }
.dart.flying { transition: none; }
.dartboard.wobble { animation: wobble .4s ease; }
@keyframes wobble { 0%,100%{transform:rotate(0)} 25%{transform:rotate(2.5deg)} 55%{transform:rotate(-2deg)} 80%{transform:rotate(1deg)} }
.score-pop { display: inline-block; animation: scorePop .4s ease; }
@keyframes scorePop { 0%{transform:scale(1)} 40%{transform:scale(1.5);color:var(--gold)} 100%{transform:scale(1)} }

/* --- Tic-Tac-Toe / Connect 4 --- */
.ttt-cell.pop { animation: piecePop .28s cubic-bezier(.2,.9,.3,1.5); }
@keyframes piecePop { 0%{transform:scale(.3);opacity:.3} 100%{transform:scale(1);opacity:1} }
.ttt-cell.ttt-win { background: rgba(245,197,66,.28); box-shadow: 0 0 14px var(--gold); animation: winGlow 1s ease-in-out 3; }
.c4-cell.drop { animation: c4Drop .35s cubic-bezier(.3,.7,.4,1); }
@keyframes c4Drop { from { transform: translateY(-46px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.c4-cell.c4-win { animation: winGlow 1s ease-in-out 3; box-shadow: 0 0 12px var(--gold); }

/* --- Wheel of Fortune --- */
#wheel-canvas.wheel-spinning { filter: drop-shadow(0 0 14px rgba(245,197,66,.55)); }

/* ============================================================
 * Mobile experience polish — consolidated (overrides earlier rules)
 * ============================================================ */
#nav-toggle { display: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  body { overflow-x: hidden; }

  /* --- Header: hamburger menu + wrapping wallet --- */
  #site-header { gap: 6px; padding: 8px 10px; flex-wrap: wrap; }
  .brandmark-img { height: 30px; }
  #nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; }
  #main-nav { display: none; }
  #main-nav.open {
    display: flex; position: absolute; top: calc(100% + 6px); left: 8px; right: 8px;
    flex-direction: column; gap: 2px; margin: 0; padding: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.6); z-index: 90;
  }
  #main-nav.open a { padding: 13px 14px; font-size: 1rem; border-radius: 10px; }
  #header-wallet { gap: 6px; }
  #header-wallet .btn-sm, #header-auth .btn-sm { padding: 8px 10px; font-size: .82rem; }
  .balance-pill { padding: 6px 10px; font-size: .85rem; }
  #hdr-username { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

  /* --- Lobby: 3-up casino grid --- */
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tile-art { height: 92px; }
  .tile-body { padding: 8px 8px 10px; }
  .tile-body .gname { font-size: .8rem; }
  .tile-body .gcat { font-size: .6rem; letter-spacing: .5px; }
  .tile-emoji { font-size: 1.25rem; left: 6px; bottom: 6px; }
  .vegas-hero { min-height: 260px; }
  .vegas-hero h1 { font-size: 1.55rem; }
  .vegas-hero p { font-size: .92rem; }
  .jackpot-amount { font-size: 1.3rem; }

  /* --- Game pages: roomier controls, big tap targets --- */
  .game-head h2 { font-size: 1.15rem; }
  .game-area { padding: 14px; }
  .bet-row { padding: 10px; gap: 10px; }
  .bet-row input { flex: 1 1 110px; min-width: 0; width: auto; font-size: 1rem; padding: 12px; }
  .bet-row .btn-gold, .bet-row .btn-green, .bet-row .btn-red { flex: 1 1 100%; min-height: 48px; font-size: 1.05rem; }
  .game-area .btn, .action-row .btn { min-height: 46px; }
  .chip-btn { padding: 10px 16px; font-size: .95rem; min-height: 44px; }
  .result-banner { font-size: 1.1rem; }

  /* --- Crash --- */
  .crash-canvas { height: 250px; }
  .crash-mult { font-size: 2.4rem; top: 32%; }
  .crash-side { max-height: 300px; }
  .bets-table { font-size: .8rem; }

  /* --- Cards --- */
  .card { width: 52px; height: 74px; font-size: 1.15rem; }
  .bj-table, .poker-table { padding: 12px; }
  .poker-table { border-width: 5px; }

  /* --- Keno / mines tap targets --- */
  .keno-grid { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .knum { min-height: 40px; font-size: .8rem; }

  /* --- Tables scroll instead of breaking layout --- */
  .admin-table th, .admin-table td { padding: 8px 10px; font-size: .82rem; }

  /* --- Chat --- */
  .chat-drawer { width: 100vw; border-left: none; }

  /* --- Footer --- */
  .footer-cols { grid-template-columns: 1fr; gap: 14px; }
}

/* Very small phones: icon-only header actions */
@media (max-width: 400px) {
  #daily-btn { font-size: 0; }
  #daily-btn::after { content: "🎁"; font-size: 1rem; }
  #gift-btn { font-size: 0; }
  #gift-btn::after { content: "💝"; font-size: 1rem; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile-art { height: 78px; }
}
