/* =========================================================================
   MewMew Casino – design system (dark + orange)
   Class names are a public API used by every game module – keep them stable.
   ========================================================================= */
:root {
  --bg: #08090d;
  --bg2: #0d0f15;
  --panel: #12141b;
  --panel2: #181b24;
  --panel3: #20242f;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #f3f4f7;
  --muted: #8a8fa3;
  --pink: #ff8a1f; /* = orange accent (legacy name kept for game modules) */
  --pink2: #ffb35c;
  --accent: #ff8a1f;
  --accent2: #ffb35c;
  --grad: linear-gradient(135deg, #ffa133 0%, #ff6a00 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 161, 51, 0.16), rgba(255, 106, 0, 0.08));
  --purple: #ff5e3a;
  --gold: #ffc53d;
  --red: #ff4d5e;
  --tet: #e2232a;
  --green: #22e08a;
  --blue: #4da3ff;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 138, 31, 0.35), 0 8px 30px rgba(255, 106, 0, 0.35);
  --sidebar: 248px;
  --chat: 320px;
  --top: 64px;
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 14px; line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 500px at 15% -10%, rgba(255, 122, 24, 0.10), transparent 60%),
              radial-gradient(700px 500px at 100% 0%, rgba(255, 46, 99, 0.06), transparent 60%); }
a { color: var(--accent2); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 0.92em; }
::selection { background: rgba(255, 138, 31, 0.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }
::-webkit-scrollbar-track { background: transparent; }
.ic-svg { flex: none; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- layout */
#app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar) 1fr var(--chat); height: 100vh; }
#sidebar { background: rgba(13, 15, 21, 0.92); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 12px 28px; display: flex; flex-direction: column; }
#main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
#topbar { height: var(--top); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 13, 0.7); backdrop-filter: blur(14px); position: relative; z-index: 20; }
#scroll { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
#view { padding: 24px 28px; max-width: 1320px; margin: 0 auto; min-height: 60vh; animation: viewIn 0.35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
#chat { background: rgba(13, 15, 21, 0.95); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; padding: 6px 10px 18px; letter-spacing: -0.2px; color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); position: relative; flex: none; }
.logo-mark::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--bg2); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.logo b { background: linear-gradient(90deg, #fff, #ffd2a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.2px; }

.nav-group { margin-top: 16px; }
.nav-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: #5f6477; padding: 6px 12px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #c9ccd8; font-weight: 500; font-size: 13.5px; transition: background 0.15s, color 0.15s; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.nav a.active { background: var(--grad-soft); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav a .ic { width: 20px; display: grid; place-items: center; color: #7d8296; transition: color 0.15s; }
.nav a:hover .ic, .nav a.active .ic { color: var(--accent); }
.nav a .tag { margin-left: auto; font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 77, 94, 0.15); color: #ff7a87; font-weight: 800; letter-spacing: 0.4px; }
.nav a .tag.new { background: rgba(34, 224, 138, 0.13); color: var(--green); }
.side-foot { margin-top: auto; padding: 16px 4px 0; }
.side-card { background: var(--grad-soft); border: 1px solid rgba(255, 138, 31, 0.2); border-radius: 14px; padding: 14px; font-size: 12.5px; color: #e9d7c4; }
.side-card b { color: #fff; }

.burger, .burger.icon-btn { display: none; }
.top-spacer { flex: 1; }
.btn.gift-btn { border-color: rgba(255, 138, 31, 0.35); background: rgba(255, 138, 31, 0.08); color: var(--accent2); }
.btn.gift-btn:hover { background: rgba(255, 138, 31, 0.16); color: #fff; }
.gift-btn .ic-svg { animation: giftWiggle 2.6s ease-in-out infinite; }
.btn.invite-btn { border-color: rgba(34, 224, 138, 0.35); background: rgba(34, 224, 138, 0.08); color: var(--green); }
.btn.invite-btn:hover { background: rgba(34, 224, 138, 0.16); color: #fff; }
.invite-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; padding: 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(255, 138, 31, 0.3); background: linear-gradient(135deg, rgba(255, 138, 31, 0.12), rgba(34, 224, 138, 0.08)); }
.invite-hero .muted { font-size: 12.5px; }
.invite-hero .ih-amt { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; margin: 2px 0; color: var(--green); }
.invite-hero .ih-plus { color: var(--accent); opacity: 0.9; }
@media (max-width: 520px) {
  #top-user { gap: 6px; }
  #top-user .invite-btn { display: none; } /* phones: in the avatar menu + sidebar instead (top bar is full) */
  .invite-hero { padding: 12px 8px; }
  .invite-hero .ih-amt { font-size: 21px; }
  .stats-strip.invite-stats .si { display: none; }
  .stats-strip.invite-stats .stat-card { padding: 10px 12px; }
}
@keyframes giftWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.wallet { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 4px; }
.balance-pill { display: flex; align-items: center; }
.balance-pill .amt, .wallet .amt { padding: 6px 12px; font-weight: 800; font-size: 15px; color: #fff; min-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.amt.flash-up { animation: flashUp 0.8s; }
.amt.flash-down { animation: flashDown 0.8s; }
@keyframes flashUp { 0% { color: var(--green); text-shadow: 0 0 14px rgba(34, 224, 138, 0.8); } }
@keyframes flashDown { 0% { color: var(--red); } }
.bot-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 12px; height: 40px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.bot-status b { color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 224, 138, 0.15), 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(34, 224, 138, 0.05), 0 0 10px var(--green); } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); color: #b9bdcc; transition: all 0.15s; flex: none; }
.icon-btn:hover { color: #fff; border-color: var(--line2); }
.icon-btn.on { color: var(--accent); border-color: rgba(255, 138, 31, 0.4); background: var(--grad-soft); }
.user-chip { display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 4px 4px; cursor: pointer; position: relative; transition: border-color 0.15s; height: 42px; }
.user-chip:hover { border-color: var(--line2); }
.user-chip img { width: 32px; height: 32px; border-radius: 9px; image-rendering: pixelated; background: var(--panel3); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: rgba(24, 27, 36, 0.98); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; min-width: 210px; box-shadow: var(--shadow); z-index: 40; display: none; }
.menu.open { display: block; animation: up 0.15s; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: #d6d8e1; font-size: 13.5px; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.menu .ic-svg { color: var(--muted); }

/* ---------------------------------------------------------------- buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1px solid var(--line); background: var(--panel3); padding: 0 16px; border-radius: 11px; font-weight: 700; font-size: 13.5px; transition: transform 0.08s, filter 0.15s, background 0.15s, box-shadow 0.2s, border-color 0.15s; white-space: nowrap; user-select: none; color: #e8e9ef; position: relative; }
.btn:hover { background: #282d3a; border-color: var(--line2); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: grayscale(0.3); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(255, 106, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25); text-shadow: 0 1px 1px rgba(120, 40, 0, 0.35); }
.btn-primary:hover { background: var(--grad); border-color: transparent; filter: brightness(1.08); box-shadow: 0 8px 28px rgba(255, 106, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-success { background: linear-gradient(135deg, #2ff0a0, #12b874); border-color: transparent; color: #022b19; box-shadow: 0 6px 20px rgba(18, 184, 116, 0.3); }
.btn-success:hover { background: linear-gradient(135deg, #2ff0a0, #12b874); border-color: transparent; filter: brightness(1.08); }
.btn-danger { background: linear-gradient(135deg, #ff5d6c, #e01e3c); border-color: transparent; color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #ff5d6c, #e01e3c); border-color: transparent; filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, #ffd666, #ffaa00); border-color: transparent; color: #3a2500; }
.btn-gold:hover { background: linear-gradient(135deg, #ffd666, #ffaa00); border-color: transparent; filter: brightness(1.06); }
.btn-purple { background: linear-gradient(135deg, #ff7a45, #e8501f); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: transparent; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > label, .label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.input { width: 100%; height: 42px; background: #0a0c11; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; color: #fff; }
textarea.input { height: auto; padding: 11px 13px; resize: vertical; }
.input:focus { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12); }
.input::placeholder { color: #5a5f72; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8fa3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
select.input option { background: #12141b; }
input[type='range'] { accent-color: var(--accent); }
input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; }
.bet-input { display: flex; gap: 4px; background: #0a0c11; border: 1px solid var(--line); border-radius: 12px; padding: 4px; transition: border-color 0.15s, box-shadow 0.15s; }
.bet-input:focus-within { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12); }
.bet-input .input { flex: 1; min-width: 0; border: 0; background-color: transparent; height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: none; padding-left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23fff3c4'/%3E%3Cstop offset='.45' stop-color='%23ffc93c'/%3E%3Cstop offset='1' stop-color='%23d35f00'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='10' cy='10' r='9' fill='url(%23g)' stroke='%23a04400' stroke-opacity='.5'/%3E%3Ctext x='10' y='13.6' font-size='9.5' font-weight='900' text-anchor='middle' fill='%237a3300' font-family='Arial'%3EM%3C/text%3E%3C/svg%3E"); background-size: 17px 17px; background-repeat: no-repeat; background-position: 10px center; }
.bet-input .btn { height: 34px; padding: 0 11px; min-width: 40px; background: var(--panel3); border-color: transparent; font-size: 12.5px; }
.seg { display: flex; background: #0a0c11; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; min-height: 34px; padding: 0 8px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all 0.15s; }
.seg button:hover { color: #fff; }
.seg button.active { background: var(--panel3); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel2); min-height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.chip:hover { border-color: var(--line2); }
.chip.active { border-color: rgba(255, 138, 31, 0.6); background: var(--grad-soft); color: #fff; box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.08); }
.copy-box { display: flex; gap: 8px; align-items: center; background: #0a0c11; border: 1px dashed rgba(255, 138, 31, 0.5); border-radius: 12px; padding: 8px 8px 8px 14px; font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; color: #fff; }
.copy-box code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--accent2); }

/* ---------------------------------------------------------------- surfaces */
.card-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.gold { color: var(--gold); }
.pink { color: var(--accent); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-weight: 700; color: #cfd2dc; }
.badge.pink { background: rgba(255, 138, 31, 0.12); border-color: rgba(255, 138, 31, 0.35); color: var(--accent2); }
.badge.green { background: rgba(34, 224, 138, 0.1); border-color: rgba(34, 224, 138, 0.3); color: var(--green); }
.badge.red { background: rgba(255, 77, 94, 0.1); border-color: rgba(255, 77, 94, 0.3); color: #ff7a87; }
.badge.gold { background: rgba(255, 197, 61, 0.1); border-color: rgba(255, 197, 61, 0.3); color: var(--gold); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: #6c7186; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content; max-width: 100%; }
.tabs button { background: none; border: 0; height: 34px; padding: 0 14px; color: var(--muted); font-weight: 700; font-size: 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; transition: all 0.15s; }
.tabs button:hover { color: #fff; }
.tabs button.active { color: #fff; background: var(--panel3); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- home */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 40px 42px; margin-bottom: 22px; min-height: 270px; display: flex; align-items: center;
  background: radial-gradient(600px 300px at 85% 30%, rgba(255, 197, 61, 0.26), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(255, 46, 99, 0.22), transparent 60%), linear-gradient(120deg, #1b0d04, #3a1504 50%, #2a0a12);
  border: 1px solid rgba(255, 138, 31, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; max-width: min(560px, calc(100% - 260px)); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent2); background: rgba(255, 138, 31, 0.12); border: 1px solid rgba(255, 138, 31, 0.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -1.2px; margin-bottom: 12px; }
.hero h1 .grad { background: linear-gradient(90deg, #ffd08a, #ff8a1f, #ff4d6d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #d9c7b6; font-size: 15px; margin: 0 0 22px; }
.hero-art { position: absolute; right: 36px; top: 50%; width: 250px; height: 220px; transform: translateY(-50%); z-index: 1; }
.float-coin { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc93c 35%, #ff8a1f 65%, #b34700); box-shadow: inset 0 0 0 5px rgba(120, 45, 0, 0.3), 0 15px 40px rgba(255, 106, 0, 0.45); display: grid; place-items: center; color: #7a3300; font-weight: 900; animation: floaty 5s ease-in-out infinite; }
.float-coin::after { content: 'M'; font-size: 0.42em; }
.float-die { position: absolute; width: 88px; height: 88px; border-radius: 20px; background: linear-gradient(145deg, #fff, #d9dbe6); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 20px 40px rgba(0, 0, 0, 0.5); animation: floaty 6s ease-in-out infinite reverse; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14px; }
.float-die i { width: 13px; height: 13px; border-radius: 50%; background: #ff4d5e; align-self: center; justify-self: center; }
.float-card { position: absolute; width: 80px; height: 112px; border-radius: 12px; background: #fff; color: #e01e3c; font-weight: 900; font-size: 36px; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.stat-card .si { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); flex: none; }
.stat-card .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat-card .v { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.section-title h2 .ic-svg { color: var(--accent); }
.section-title .count { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.game-card { --c1: #ff8a1f; --c2: #7c2d12; position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate;
  background: radial-gradient(130% 85% at 50% 0%, var(--c1) 0%, var(--c2) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s; }
.game-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.4px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: 0.55; }
.game-card::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 3; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent); transform: skewX(-18deg); transition: left 0.6s; pointer-events: none; }
.game-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.22); }
.game-card:hover::after { left: 140%; }
.game-card .gart { position: absolute; inset: 0 0 32% 0; display: grid; place-items: center; color: #fff; }
.game-card .gart::before { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%); }
.game-card .ginfo { position: relative; z-index: 2; padding: 30px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5)); }
.game-card .gname { font-weight: 800; font-size: 15px; letter-spacing: -0.2px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); line-height: 1.2; }
.game-card .gsub { font-size: 11px; color: rgba(255, 255, 255, 0.78); font-weight: 600; margin-top: 3px; }
.game-card .gtags { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; z-index: 2; }
.game-card .gtags span { font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); letter-spacing: 0.4px; text-transform: uppercase; }
.game-card .gtags .hot { background: rgba(255, 46, 70, 0.9); }
.game-card .gtags .new { background: rgba(18, 184, 116, 0.9); }
.game-card .gtags .live { display: inline-flex; align-items: center; gap: 4px; }
.game-card .gtags .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; animation: pulse 1.4s infinite; }

/* ---------------------------------------------------------------- game page */
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.game-head .gicon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); flex: none; }
.game-head h1 { margin: 0; font-size: 24px; }
.game-head .desc { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.game-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.game-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.game-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); min-height: 460px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 50% 0%, rgba(255, 138, 31, 0.10), transparent 70%), linear-gradient(180deg, #11131a, #0c0e13); }
.game-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.game-stage.felt { background: radial-gradient(ellipse at 50% 40%, #1d7a52 0%, #11573a 55%, #0a3a26 100%); border-color: rgba(60, 200, 130, 0.25); box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45); }
.game-stage.tet { background: radial-gradient(70% 60% at 50% 20%, rgba(255, 197, 61, 0.16), transparent 65%), linear-gradient(170deg, #3d0b12, #1c070c); border-color: rgba(255, 90, 90, 0.2); }
.info-box { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.info-box b { color: var(--text); }
.stat-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.stat-row span:first-child { color: var(--muted); }
.result-banner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7); opacity: 0; padding: 18px 34px; border-radius: 18px; font-size: 32px; font-weight: 900; text-align: center; pointer-events: none; transition: all 0.3s cubic-bezier(0.2, 1.5, 0.4, 1); z-index: 30; background: rgba(10, 12, 17, 0.88); backdrop-filter: blur(10px); border: 1px solid var(--line2); box-shadow: var(--shadow); letter-spacing: -0.5px; min-width: 200px; }
.result-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.result-banner.win { color: var(--green); border-color: rgba(34, 224, 138, 0.5); box-shadow: 0 0 0 1px rgba(34, 224, 138, 0.2), 0 0 60px rgba(34, 224, 138, 0.35), var(--shadow); text-shadow: 0 0 20px rgba(34, 224, 138, 0.6); }
.result-banner.lose { color: var(--red); border-color: rgba(255, 77, 94, 0.4); }
.result-banner small { display: block; font-size: 15px; color: #fff; font-weight: 700; margin-top: 4px; text-shadow: none; letter-spacing: 0; }
.history-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.history-dots span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-variant-numeric: tabular-nums; animation: pop 0.25s; }
.history-dots span.w { color: var(--green); border-color: rgba(34, 224, 138, 0.35); background: rgba(34, 224, 138, 0.08); }
.history-dots span.l { color: #ff7a87; border-color: rgba(255, 77, 94, 0.25); }
.stage-shake { animation: stageShake 0.4s; }
@keyframes stageShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.win-glow { animation: winGlow 1.2s ease-out; }
@keyframes winGlow { 0% { box-shadow: inset 0 0 0 2px rgba(34, 224, 138, 0.9), inset 0 0 80px rgba(34, 224, 138, 0.35); } 100% { box-shadow: inset 0 0 0 0 transparent; } }

/* tiles (mines / towers / pick games) */
.tiles { display: grid; gap: 10px; }
.tile { aspect-ratio: 1; border-radius: 13px; border: 0; background: linear-gradient(180deg, #2a2f3d, #212532); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 30px; display: flex; align-items: center; justify-content: center; transition: transform 0.12s, background 0.2s, box-shadow 0.2s; color: #fff; }
.tile:hover:not(:disabled) { transform: translateY(-3px); background: linear-gradient(180deg, #353b4d, #2a2f3e); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 8px 20px rgba(255, 138, 31, 0.15), 0 0 0 1px rgba(255, 138, 31, 0.35); }
.tile:disabled { cursor: default; }
.tile.safe { background: radial-gradient(circle at 50% 40%, #3ef2a6, #12a868); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2), 0 0 24px rgba(34, 224, 138, 0.45); animation: pop 0.3s; }
.tile.bomb { background: radial-gradient(circle at 50% 40%, #ff6b7a, #c3203a); box-shadow: 0 0 30px rgba(255, 77, 94, 0.55); animation: shake 0.4s; }
.tile.dim { opacity: 0.38; filter: saturate(0.6); }
@keyframes pop { 0% { transform: scale(0.75); } 65% { transform: scale(1.08); } }
@keyframes shake { 25% { transform: translateX(-4px) rotate(-3deg); } 75% { transform: translateX(4px) rotate(3deg); } }

/* playing cards */
.cards-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 112px; perspective: 800px; }
.pcard { width: 76px; height: 108px; border-radius: 10px; background: linear-gradient(160deg, #ffffff, #eef0f6); color: #151826; position: relative; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.06); font-weight: 800; animation: deal 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1); flex: none; transition: transform 0.2s, box-shadow 0.2s; }
.pcard.red { color: #e0193a; }
.pcard .tl { position: absolute; top: 6px; left: 7px; font-size: 15px; line-height: 1; text-align: center; }
.pcard .br { position: absolute; bottom: 6px; right: 7px; font-size: 15px; line-height: 1; transform: rotate(180deg); text-align: center; }
.pcard .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.pcard.back { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0 16%, transparent 17%), repeating-linear-gradient(45deg, #ff8a1f 0 6px, #e06200 6px 12px); border: 4px solid #fff; }
.pcard.back .mid { color: transparent; }
.pcard.sm { width: 54px; height: 77px; border-radius: 8px; }
.pcard.sm .mid { font-size: 22px; }
.pcard.sm .tl, .pcard.sm .br { font-size: 11px; }
.pcard.win { box-shadow: 0 0 0 3px var(--green), 0 0 24px rgba(34, 224, 138, 0.5); }
.pcard.sel { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--accent), 0 10px 24px rgba(255, 138, 31, 0.35); }
@keyframes deal { from { transform: translate(40px, -40px) rotate(-12deg) scale(0.8); opacity: 0; } }

/* dice */
.dice-row { display: flex; gap: 14px; justify-content: center; }
.die { width: 64px; height: 64px; border-radius: 15px; background: linear-gradient(145deg, #ffffff, #d8dae5); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 #fff, 0 10px 22px rgba(0, 0, 0, 0.5); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 10px; gap: 2px; }
.die i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a3f55, #11131c); align-self: center; justify-self: center; }
.die.red i { background: radial-gradient(circle at 35% 35%, #ff6b7a, #c3203a); }
.die.rolling { animation: roll 0.45s linear infinite; }
.die.big { width: 86px; height: 86px; padding: 13px; border-radius: 19px; }
.die.big i { width: 14px; height: 14px; }
@keyframes roll { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-10px); } 50% { transform: rotate(180deg); } 75% { transform: rotate(270deg) translateY(-6px); } 100% { transform: rotate(360deg); } }
.symbol-die { width: 78px; height: 78px; border-radius: 18px; background: linear-gradient(145deg, #fff, #f2e6cc); display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), 0 10px 22px rgba(0, 0, 0, 0.5); }

/* PvP lobby */
.lobby { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.room-list { display: flex; flex-direction: column; gap: 10px; }
.room-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color 0.15s, background 0.15s; animation: viewIn 0.25s; }
.room-item:hover { border-color: var(--line2); background: var(--panel2); }
.room-item.mine { border-color: rgba(255, 138, 31, 0.45); background: linear-gradient(90deg, rgba(255, 138, 31, 0.07), var(--panel) 40%); }
.room-item .players { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.room-item .vs { color: #5f6477; font-weight: 800; font-size: 11px; }
.room-item .stake { font-weight: 800; color: #fff; min-width: 96px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel3); border-radius: 10px; padding: 3px 10px 3px 3px; font-weight: 600; font-size: 13px; max-width: 180px; border: 1px solid transparent; }
.pchip img { width: 26px; height: 26px; border-radius: 7px; image-rendering: pixelated; background: var(--bg); }
.pchip.empty { padding: 4px 11px; color: var(--muted); border: 1px dashed var(--line2); background: transparent; }
.pchip.win { border-color: var(--green); box-shadow: 0 0 16px rgba(34, 224, 138, 0.35); }
.pchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 400px; position: relative; overflow: hidden; }
.timer-bar { height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; margin: 8px 0 12px; }
.timer-bar div { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); transition: width 0.25s linear; border-radius: 4px; }

/* ---------------------------------------------------------------- live bets */
#live-bets { padding: 0 28px 34px; max-width: 1320px; margin: 0 auto; }
#live-bets .tbl td { font-variant-numeric: tabular-nums; white-space: nowrap; }
#live-bets .card-box { overflow-x: auto; }
.user-cell { display: flex; align-items: center; gap: 9px; }
.user-cell img { width: 24px; height: 24px; border-radius: 7px; image-rendering: pixelated; background: var(--panel3); }
.game-cell { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.game-cell .gi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.bet-row-new { animation: rowIn 0.6s; }
@keyframes rowIn { from { background: rgba(255, 138, 31, 0.12); opacity: 0; } }

/* ---------------------------------------------------------------- chat */
.chat-head { display: flex; align-items: center; gap: 9px; padding: 0 16px; height: var(--top); border-bottom: 1px solid var(--line); font-weight: 800; flex: none; }
.chat-head .ic-svg { color: var(--accent); }
.chat-head .online { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.cmsg { display: flex; gap: 9px; align-items: flex-start; padding: 6px; border-radius: 10px; transition: background 0.15s; }
.cmsg:hover { background: rgba(255, 255, 255, 0.025); }
.cmsg img { width: 30px; height: 30px; border-radius: 9px; image-rendering: pixelated; flex: none; background: var(--panel3); }
.cmsg .b { min-width: 0; word-wrap: break-word; }
.cmsg .n { font-weight: 700; font-size: 12.5px; color: #e2e4ec; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cmsg .n:hover { color: var(--accent2); }
.cmsg .n.admin { color: var(--gold); }
.cmsg .n.admin::after { content: 'MOD'; font-size: 9px; background: rgba(255, 197, 61, 0.15); color: var(--gold); padding: 1px 5px; border-radius: 4px; font-weight: 800; }
.cmsg .t { font-size: 13px; color: #b8bccb; overflow-wrap: anywhere; }
.cmsg.sys { padding: 3px 0; }
.cmsg.sys .b { background: var(--grad-soft); border: 1px solid rgba(255, 138, 31, 0.25); color: #ffd3a8; font-size: 12.5px; border-radius: 10px; width: 100%; padding: 8px 11px; font-weight: 600; }
.chat-input { padding: 10px 12px 12px; display: flex; gap: 8px; flex: none; }
.chat-input .input { background: var(--panel); }
.chat-input .btn { width: 42px; padding: 0; height: 42px; flex: none; }
.chat-hint { font-size: 11px; color: #5f6477; padding: 8px 14px 0; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- modal / toast */
#modal-root .backdrop { position: fixed; inset: 0; background: rgba(4, 5, 8, 0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: fade 0.18s; }
.modal { background: linear-gradient(180deg, #171a23, #12141b); border: 1px solid var(--line2); border-radius: 20px; width: 100%; max-width: 470px; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: modalIn 0.25s cubic-bezier(0.2, 1, 0.3, 1); }
.modal.wide { max-width: 740px; }
#modal-root .modal { min-width: 0; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; display: flex; align-items: center; gap: 10px; }
.modal-head h2 .ic-svg { color: var(--accent); }
.modal-head .x { background: rgba(255, 255, 255, 0.05); border: 0; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); display: grid; place-items: center; }
.modal-head .x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.modal-body { padding: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
@keyframes modalIn { from { transform: translateY(18px) scale(0.97); opacity: 0; } }
#toasts { position: fixed; top: 76px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: flex-end; pointer-events: none; }
.toast { background: rgba(24, 27, 36, 0.97); backdrop-filter: blur(10px); border: 1px solid var(--line2); padding: 12px 16px 12px 14px; border-radius: 13px; box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; animation: toastIn 0.3s cubic-bezier(0.2, 1, 0.3, 1); max-width: min(380px, 90vw); display: flex; align-items: center; gap: 10px; pointer-events: auto; border-left: 3px solid var(--accent); }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast .ic-svg { flex: none; }
.toast.success .ic-svg { color: var(--green); }
.toast.error .ic-svg { color: var(--red); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; color: #cfd2dc; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); border: 1px solid rgba(255, 138, 31, 0.35); color: var(--accent2); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------------------------------------------------------------- effects */
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.fly-coin { position: fixed; width: 18px; height: 18px; border-radius: 50%; z-index: 310; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc93c 40%, #ff8a1f 75%, #c75400); box-shadow: 0 0 10px rgba(255, 170, 40, 0.8); }
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 300; pointer-events: none; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* MewMew coin */
.xu { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xu i { width: 15px; height: 15px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc93c 40%, #ff8a1f 75%, #c75400); box-shadow: inset 0 0 0 1.5px rgba(120, 50, 0, 0.5), 0 0 8px rgba(255, 160, 40, 0.35); position: relative; }
.xu i::after { content: 'M'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 900; font-style: normal; color: #7a3300; }
.wallet .xu i, .balance-pill .xu i { width: 18px; height: 18px; }
.wallet .xu i::after, .balance-pill .xu i::after { font-size: 10px; }

/* music */
.music-wrap { position: relative; }
.music-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: rgba(24, 27, 36, 0.98); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: none; z-index: 45; }
.music-pop.open { display: block; animation: up 0.15s; }
.music-pop .track { font-weight: 700; font-size: 13px; }
.music-pop input[type='range'] { width: 100%; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 3px; background: currentColor; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.4s; }
.eq.off i { animation: none; height: 3px; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  #app { grid-template-columns: var(--sidebar) 1fr; }
  #chat { position: fixed; right: 0; top: 0; bottom: 0; width: var(--chat); z-index: 60; transform: translateX(100%); transition: transform 0.25s; }
  #chat.open { transform: none; box-shadow: var(--shadow); }
  .chat-toggle { display: grid !important; }
}
@media (max-width: 920px) {
  #app { grid-template-columns: 1fr; }
  #sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); z-index: 70; transform: translateX(-100%); transition: transform 0.25s; }
  #sidebar.open { transform: none; box-shadow: var(--shadow); }
  .burger, .burger.icon-btn { display: grid; }
  .game-layout, .lobby { grid-template-columns: 1fr; }
  #view { padding: 16px; }
  #live-bets { padding: 0 16px 30px; }
  .bot-status { display: none; }
  .hide-sm { display: none !important; }
  #live-bets .tbl th:nth-child(5), #live-bets .tbl td:nth-child(5) { display: none; }
  .tbl th, .tbl td { padding: 8px; }
  .hero { padding: 28px 22px; min-height: 0; }
  .hero h1 { font-size: 28px; }
  .hero-art { display: none; }
  .hero-text { max-width: 100%; }
  .hero h1 br { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .wallet .amt { min-width: 0; padding: 6px 8px; font-size: 14px; }
  #toasts { top: auto; bottom: 20px; right: 50%; transform: translateX(50%); align-items: center; }
}
.chat-toggle { display: none !important; }
