/* ============================================================
   Toke'n Casino — casino-grade UI
   Dark lounge theme, Roobet/Stake-inspired layout.
   ============================================================ */
:root {
  --bg: #0a0c14;
  --bg-2: #0e1220;
  --bg-soft: #12162a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-hi: rgba(255, 255, 255, 0.08);
  --panel-solid: #141a2e;
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.16);

  --accent: #ff4d9e;
  --accent-2: #ff85c4;
  --accent-glow: rgba(255, 77, 158, 0.55);
  --gold: #f0b90b;
  --gold-2: #ffd75e;
  --green: #2fd573;
  --green-glow: rgba(47, 213, 115, 0.55);
  --red: #ff5c6c;

  --text: #eef2f8;
  --muted: #93a0b8;

  --felt: #0f6b3f;
  --felt-dark: #0b5231;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --sidebar-w: 236px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 85% -12%, rgba(255, 77, 158, 0.10), transparent 60%),
    radial-gradient(900px 540px at -8% 108%, rgba(47, 213, 115, 0.07), transparent 55%),
    radial-gradient(700px 400px at 45% 30%, rgba(122, 92, 255, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: none; filter: brightness(1.12); }
button { font-family: inherit; cursor: pointer; }
b { color: inherit; }
img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   App shell — sidebar + main column
   ============================================================ */
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  overflow: hidden auto;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 10px;
  color: var(--text);
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #8a4dff);
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; line-height: 1.15; }
.brand-name b { display: block; color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); padding: 6px 10px 4px; opacity: 0.8;
}

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-link .nav-ico { width: 22px; text-align: center; font-size: 17px; }
.nav-link:hover { color: var(--text); background: var(--panel); }
.nav-link.active {
  color: var(--text);
  background: linear-gradient(120deg, rgba(255, 77, 158, 0.16), rgba(138, 77, 255, 0.10));
  border-color: rgba(255, 77, 158, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.nav-link.active .nav-ico { filter: drop-shadow(0 0 8px var(--accent-glow)); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.vip-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  background: linear-gradient(120deg, rgba(240,185,11,0.12), rgba(255,77,158,0.08));
  border: 1px solid rgba(240,185,11,0.22);
  border-radius: 12px; padding: 9px 11px;
}
.vip-chip span { font-size: 15px; }

/* ---------- Main column ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 26px;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 20px; font-weight: 800; letter-spacing: 0.3px; }
.page-title .sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

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

/* Balance chip */
.balance-chip {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(140deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.balance-chip .tok { color: var(--gold); font-size: 16px; }

.claim-btn {
  background: linear-gradient(135deg, var(--gold), #e09b0c);
  color: #201605;
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(240, 185, 11, 0.35);
  transition: transform 0.15s, filter 0.15s;
}
.claim-btn:hover:not(:disabled) { filter: brightness(1.09); transform: translateY(-1px); }
.claim-btn:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.icon-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 11px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--panel-hi); }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { flex: 1; max-width: 1160px; width: 100%; margin: 0 auto; padding: 28px 26px 70px; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 26px 70px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

h1 { margin: 0 0 10px; font-size: 2rem; letter-spacing: -0.3px; }
h2 { font-size: 1.2rem; margin: 0; }
.hint { color: var(--muted); font-size: 13px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 15px;
  transition: filter 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn:hover:not(:disabled) { filter: brightness(1.09); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e09b0c);
  color: #201605;
  box-shadow: 0 8px 22px rgba(240, 185, 11, 0.30);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), #1fa55b);
  color: #05200f;
  box-shadow: 0 8px 22px rgba(47, 213, 115, 0.28);
}
.btn-red {
  background: linear-gradient(135deg, var(--red), #d63847);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 92, 108, 0.26);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #8a4dff);
  color: #fff;
  box-shadow: 0 8px 22px var(--accent-glow);
}
.btn-dark {
  background: var(--panel-solid);
  color: var(--text);
  border: 1px solid var(--border-hi);
}

/* Inputs */
input[type=text], input[type=password], input[type=number], select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 158, 0.16); }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 5px; }

/* Chips (stick / chips selectors) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-width: 60px;
  position: relative;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08), transparent 55%),
    radial-gradient(circle, var(--bg-soft) 0 16px, transparent 17px),
    linear-gradient(135deg, rgba(255, 77, 158, 0.22), rgba(138, 77, 255, 0.12));
  color: var(--text);
  font-weight: 800;
  padding: 9px 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
}
.chip:hover { transform: translateY(-2px); }
.chip.active {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.25), transparent 55%),
    linear-gradient(135deg, var(--accent), #ff85c4);
  color: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============================================================
   Lobby
   ============================================================ */
.hero-compact { margin-bottom: 24px; }
.hero-compact h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.5px; margin-bottom: 8px; }
.hero-compact h1 b { color: var(--accent-2); }
.hero-compact p { color: var(--muted); margin: 0; max-width: 640px; }

.featured {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-hi);
  padding: 26px 28px;
  margin-bottom: 26px;
  display: flex; flex-direction: column; gap: 6px;
  background:
    radial-gradient(80% 130% at 90% -20%, rgba(255, 77, 158, 0.28), transparent 55%),
    radial-gradient(70% 120% at 5% 120%, rgba(138, 77, 255, 0.30), transparent 55%),
    linear-gradient(160deg, #241a3d, #170f2b 60%, #0e0a1d);
  box-shadow: var(--shadow);
}
.featured::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px 26px at 85% 105%, rgba(255,255,255,0.10), transparent);
}
.featured .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: #12060f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  padding: 4px 11px; border-radius: 999px;
}
.featured h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 6px 0 0; z-index: 1; }
.featured p { color: rgba(255,255,255,0.72); margin: 0 0 10px; z-index: 1; }
.featured .btn { align-self: flex-start; z-index: 1; }
.featured .glow-dice {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  font-size: clamp(60px, 9vw, 120px); opacity: 0.85; filter: drop-shadow(0 0 30px var(--accent-glow));
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(-52%) rotate(-4deg); } 50% { transform: translateY(-46%) rotate(4deg); } }

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-hi);
  padding: 24px 20px 22px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow);
  min-height: 210px;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.game-card.gold-cube { background: linear-gradient(160deg, rgba(240,185,11,0.15), rgba(20,17,10,0.9) 55%); }
.game-card.green-felt { background: linear-gradient(160deg, rgba(47,213,115,0.14), rgba(9,16,14,0.92) 55%); }
.game-card.violet-pit { background: linear-gradient(160deg, rgba(138,77,255,0.20), rgba(14,10,24,0.92) 55%); }
.game-card:hover.gold-cube { box-shadow: 0 18px 44px rgba(240,185,11,0.25); }
.game-card:hover.green-felt { box-shadow: 0 18px 44px rgba(47,213,115,0.22); }
.game-card:hover.violet-pit { box-shadow: 0 18px 44px rgba(138,77,255,0.28); }
.game-card.case-lobby { background: linear-gradient(160deg, rgba(224,146,35,0.20), rgba(16,13,9,0.92) 55%); }
.game-card:hover.case-lobby { box-shadow: 0 18px 44px rgba(224,146,35,0.22); }
.case-lobby .play-btn { background: linear-gradient(135deg, #e09223, #c07a10); color: #201605; }

.game-icon { font-size: 54px; line-height: 1; margin-bottom: 12px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.game-title { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.game-desc { color: var(--muted); font-size: 13.5px; min-height: 42px; margin-bottom: 16px; flex: 1; }
.game-meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.game-meta span { padding: 3px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }

.play-btn {
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), #e09b0c);
  color: #201605;
  border: none;
  font-weight: 800;
  font-size: 15px;
  padding: 12px;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.play-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.green-felt .play-btn { background: linear-gradient(135deg, var(--green), #1fa55b); color: #05200f; }
.violet-pit .play-btn { background: linear-gradient(135deg, var(--accent), #8a4dff); color: #fff; }

/* ============================================================
   Auth (login / register)
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 15% 5%, rgba(255, 77, 158, 0.13), transparent 55%),
    radial-gradient(760px 460px at 95% 95%, rgba(138, 77, 255, 0.16), transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand .mark {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: grid; place-items: center;
  font-size: 32px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), #8a4dff);
  box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.auth-brand h1 { font-size: 26px; margin: 0 0 4px; }
.auth-brand h1 b { color: var(--accent-2); }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg-soft); border-radius: 12px; padding: 5px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 9px;
  font-weight: 800; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.tab.active { background: linear-gradient(135deg, var(--accent), #ff85c4); color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }

/* ============================================================
   Toast
   ============================================================ */
.toast-wrap { position: fixed; top: calc(var(--topbar-h) + 14px); right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel-solid);
  border: 1px solid var(--border-hi);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 250px;
  max-width: 360px;
  box-shadow: var(--shadow);
  font-weight: 600;
  backdrop-filter: blur(8px);
  animation: slideIn 0.25s ease;
}
.toast.good { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.toast.info { border-left-color: var(--gold); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   Slots
   ============================================================ */
.slots-frame {
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.jackpot-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 21px;
  background: linear-gradient(135deg, rgba(240,185,11,0.22), rgba(255,77,158,0.14));
  border: 1px solid rgba(240,185,11,0.42);
  border-radius: 14px; padding: 13px; margin-bottom: 16px;
  color: var(--gold-2);
  box-shadow: 0 0 26px rgba(240,185,11,0.16), inset 0 0 24px rgba(240,185,11,0.06);
  text-shadow: 0 0 18px rgba(240,185,11,0.45);
}
.jackpot-banner .jp-amount { color: #fff; font-variant-numeric: tabular-nums; }
.slot-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 330px;
  margin: 18px auto;
}
.slot-stage { position: relative; max-width: 330px; margin: 18px auto; }
.slot-stage .slot-grid { margin: 0; }
.slot-reel {
  flex: 0 0 100px;
  width: 100px;
  height: 276px;               /* 3 x 92px cells, no vertical gap */
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10,10,16,0.9), rgba(4,4,8,0.95));
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.7), 0 4px 18px rgba(0,0,0,0.35);
  padding: 0;
}
.reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  width: 100%;
}
.slot-cell {
  flex: 0 0 92px;
  height: 92px;
  width: 100%;
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-2));
  border-bottom: 1px solid var(--border);
  font-size: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, filter 0.1s;
}
.slot-cell:last-child { border-bottom: none; }
/* reel look: spinning symbols get a vertical motion blur, locked reels snap sharp */
.slot-cell.spinning {
  filter: blur(1.4px) brightness(0.92);
  transform: scale(0.98);
}
.slot-cell.locked {
  filter: none;
  transform: scale(1);
  border-color: var(--gold);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.4), 0 0 14px rgba(240,185,11,0.45);
  animation: reel-lock 0.25s ease-out;
}
@keyframes reel-lock {
  0% { transform: scale(1.06); filter: blur(2px); }
  100% { transform: scale(1); filter: none; }
}
.slot-cell.win {
  background: linear-gradient(160deg, rgba(240,185,11,0.28), rgba(255,77,158,0.18));
  box-shadow: 0 0 26px rgba(240,185,11,0.55), inset 0 0 20px rgba(240,185,11,0.2);
  transform: scale(1.04);
}
/* payline overlay bar sweeping over the winning row */
.payline {  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
  box-shadow: 0 0 18px var(--gold), 0 0 34px rgba(255,77,158,0.7);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.payline.sweep { animation: payline-sweep 0.9s ease-out forwards; }
@keyframes payline-sweep {
  0% { opacity: 0; transform: translateY(-50%) scaleX(0.15); }
  25% { opacity: 1; transform: translateY(-50%) scaleX(1); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   Classic Reels (vintage fruit slot · payline model like a real
   3-reel casino machine; adapted from the MIT "slotjs" aesthetic)
   ============================================================ */
.classic-frame { position: relative; }
.classic-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.classic-marquee {
  text-align: center;
  font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(135deg, rgba(240,185,11,0.16), rgba(255,77,158,0.10));
  border: 1px solid rgba(240,185,11,0.30);
  border-radius: 14px; padding: 12px;
  font-size: 17px;
  color: var(--gold-2);
  text-shadow: 0 0 16px rgba(240,185,11,0.4);
}
.classic-machine {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  max-width: 560px;
  margin: 18px auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8,6,18,0.95), rgba(2,2,6,0.98));
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.8), 0 4px 18px rgba(0,0,0,0.4);
}
.classic-line {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.classic-line-label {
  flex: 0 0 34px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  transition: all 0.25s;
}
.classic-line.win .classic-line-label {
  color: var(--gold-2);
  background: rgba(240,185,11,0.22);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(240,185,11,0.5);
  text-shadow: 0 0 10px rgba(240,185,11,0.7);
}
.classic-line-window {
  flex: 0 0 460px;
  width: 460px;
  height: 92px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(90deg, rgba(8,6,18,0.9), rgba(2,2,6,0.95));
  transition: border-color 0.25s, box-shadow 0.25s;
}
.classic-line.win .classic-line-window {
  border-color: var(--gold);
  box-shadow: inset 0 0 12px rgba(240,185,11,0.12), 0 0 18px rgba(240,185,11,0.45);
}
.line-strip {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
}
.line-strip .slot-cell {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  font-size: 40px;
}
.line-strip .slot-cell:last-child { border-right: none; }
.classic-lever { transform: translateY(-1px); }
.classic-lever:active:not(:disabled) { transform: translateY(1px) scale(0.97); }
.theme-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.theme-pill {
  border: 1px solid var(--border-hi);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  transition: all 0.15s;
}
.theme-pill:hover { transform: translateY(-1px); }
.theme-pill.active {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(255, 77, 158, 0.14);
  box-shadow: 0 0 16px var(--accent-glow);
}
.spin-btn {
  font-size: 18px; padding: 15px 30px; width: 100%; max-width: 300px; margin: 16px auto 0; display: block;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #e09b0c);
  color: #201605; font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 26px rgba(240,185,11,0.32);
  transition: transform 0.12s, filter 0.15s;
}
.spin-btn:hover:not(:disabled) { filter: brightness(1.09); transform: translateY(-2px); }
.spin-btn:active:not(:disabled) { transform: scale(0.97); }
.spin-btn:disabled { opacity: 0.55; }

/* ============================================================
   Cards (playing cards)
   ============================================================ */
.hand-wrap { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 96px; }
.playing-card {
  width: 62px; height: 88px;
  background: linear-gradient(160deg, #ffffff, #e9edf6);
  color: #161a24;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff;
  animation: deal 0.25s ease;
}
.playing-card .s { font-size: 28px; }
.playing-card.red { color: #d3232e; }
.playing-card.back {
  background: repeating-linear-gradient(45deg, #223, #223 8px, #334 8px, #334 16px);
  border: 2px solid #fff;
  color: transparent;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.55), 0 6px 14px rgba(0,0,0,0.45);
}
.playing-card.blank { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.3); color: transparent; box-shadow: none; }
@keyframes deal { from { transform: translateY(-14px) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }

.value-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-hi);
  border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 14px;
  display: inline-block;
}

/* ============================================================
   Felt table (blackjack + poker)
   ============================================================ */
.felt {
  background:
    radial-gradient(120% 130% at 50% 0%, #12925a, var(--felt-dark) 72%),
    linear-gradient(#0b5231, #083d27);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255,255,255,0.06), var(--shadow);
  padding: 30px 20px;
  position: relative;
}
.felt::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  pointer-events: none;
}
.dealer-box, .player-box { text-align: center; margin: 10px 0; position: relative; z-index: 1; }
.box-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; font-weight: 700;
}
.player-box .box-label { color: var(--gold-2); font-weight: 800; }

.game-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.bet-panel { text-align: center; margin-top: 10px; position: relative; z-index: 1; }

.status-line { text-align: center; font-weight: 800; font-size: 19px; min-height: 30px; margin-top: 12px; position: relative; z-index: 1; animation: deal 0.25s ease; }
.status-line.win { color: var(--gold-2); text-shadow: 0 0 18px rgba(240,185,11,0.5); }
.status-line.loss { color: #ffaeb5; }

/* ============================================================
   Poker table
   ============================================================ */
.poker-felt { position: relative; }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.seat {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 10px; text-align: center; min-width: 0;
  backdrop-filter: blur(4px);
  transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}
.seat.you { border-color: var(--gold); background: rgba(240, 185, 11, 0.14); }
.seat.active-turn { box-shadow: 0 0 22px rgba(255, 215, 94, 0.6); border-color: var(--gold-2); }
.seat.folded { opacity: 0.4; }
.seat-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-stack { color: var(--gold-2); font-weight: 700; font-size: 13px; }
.seat-bet { color: #fff; font-size: 12.5px; margin-top: 2px; min-height: 18px; }
.seat-hand-name { color: #cfe9dc; font-size: 12px; min-height: 16px; margin-top: 2px; font-weight: 600; }
.mini-card {
  width: 28px; height: 40px; background: #fff; border-radius: 5px; border: 1px solid #bbb;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 1px; font-weight: 800; font-size: 13px; vertical-align: middle;
}
.mini-card.lg { font-size: 10px; }
.mini-card.red { color: #d3232e; }
.mini-card.back { background: repeating-linear-gradient(45deg, #20305a, #20305a 4px, #2b3f75 4px, #2b3f75 8px); border: 1px solid #fff; color: transparent; box-shadow: inset 0 0 8px rgba(0,0,0,0.4); }
.btn-dealer {
  display: inline-block; background: var(--gold); color: #1a1206;
  border-radius: 50%; width: 18px; height: 18px; line-height: 18px;
  font-size: 11px; font-weight: 800; margin-left: 4px; vertical-align: middle;
}
.community { display: flex; justify-content: center; gap: 8px; margin: 20px 0 10px; min-height: 84px; position: relative; z-index: 1; }
.pot-line { text-align: center; font-weight: 800; font-size: 19px; color: var(--gold-2); margin-bottom: 8px; text-shadow: 0 0 14px rgba(240,185,11,0.35); position: relative; z-index: 1; }
.action-bar { text-align: center; margin-top: 16px; position: relative; z-index: 1; }
.raise-slider { max-width: 400px; width: 100%; margin: 12px auto 6px; }
.raise-val { font-weight: 800; color: var(--gold-2); font-size: 18px; }

/* ============================================================
   Admin
   ============================================================ */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.forms-col { display: flex; flex-direction: column; gap: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
tbody tr:hover { background: var(--panel); }
.scroll { max-height: 420px; overflow: auto; }

/* ============================================================
   Cases
   ============================================================ */
.case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.case-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.case-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.case-icon { font-size: 52px; line-height: 1; margin-bottom: 8px; }
.case-name { font-weight: 800; font-size: 16px; }
.case-desc { color: var(--muted); font-size: 12.5px; margin: 6px 0 10px; min-height: 34px; }
.case-rarities { display: flex; justify-content: center; gap: 5px; margin-bottom: 10px; }
.rar-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.case-price { color: var(--gold-2); font-weight: 800; }

.open-stage { position: relative; padding: 10px 0 4px; }
.open-case { font-size: 84px; line-height: 1; margin-bottom: 6px; animation: caseidle 2.4s ease-in-out infinite; }
@keyframes caseidle {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* ---- unboxing reel (CS-style horizontal spin) ---- */
.reel-wrap { margin-top: 14px; position: relative; }
.reel-wrap.hidden { display: none; }
.reel-viewport {
  position: relative;
  overflow: hidden;
  height: 96px;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,20,30,0.95), rgba(8,8,12,0.98));
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.65);
}
.reel-track {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  gap: 10px;
  padding: 12px 0;
  will-change: transform;
}
.reel-chip {
  flex: 0 0 auto;
  width: 150px;
  height: 70px;
  border: 2px solid var(--rar, #bbb);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 14px var(--rar, #bbb)44, inset 0 0 16px rgba(0,0,0,0.5);
}
.reel-chip-name {
  font-weight: 700;
  font-size: 13px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-chip-rar {
  color: var(--rar, #bbb);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}
.reel-chip.hit {
  animation: reelhit 0.7s ease-out;
  box-shadow: 0 0 30px var(--rar, #fff)aa, inset 0 0 18px var(--rar, #fff)55;
}
@keyframes reelhit {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(7px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}
.reel-marker {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 215, 94, 0.9);
  box-shadow: 0 0 12px rgba(255, 215, 94, 0.8);
  z-index: 3;
  pointer-events: none;
}
.reel-marker b {
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold-2);
  font-size: 16px;
  text-shadow: 0 0 10px var(--gold);
}
.reel-shade {
  position: absolute;
  top: 0; bottom: 0;
  width: 46px;
  z-index: 2;
  pointer-events: none;
}
.reel-shade.left { left: 0; background: linear-gradient(90deg, rgba(8,8,12,0.92), transparent); }
.reel-shade.right { right: 0; background: linear-gradient(270deg, rgba(8,8,12,0.92), transparent); }
.reveal-pane { margin: 10px auto 0; max-width: 320px; }
.skin-card {
  border: 2px solid var(--rar, #bbb);
  border-radius: 14px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  box-shadow: 0 0 24px var(--rar, #bbb)55, var(--shadow);
  animation: skinpop 0.4s ease-out;
}
@keyframes skinpop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.skin-name { font-weight: 900; font-size: 19px; }
.skin-rarity { color: var(--rar, #bbb); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; margin: 4px 0 6px; }
.skin-value { color: var(--gold-2); font-weight: 800; font-size: 17px; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.skin-item {
  border: 1px solid var(--rar, var(--border));
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skin-item-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; min-height: 34px; }
.skin-item-meta { color: var(--muted); font-size: 12px; }
.skin-sell-btn {
  margin-top: auto;
  border: none;
  border-radius: 8px;
  padding: 7px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green), #1fa55b);
  color: #05200f;
}
.skin-sell-btn:hover { filter: brightness(1.09); }

/* ============================================================
   Misc
   ============================================================ */
.badge { background: rgba(240, 185, 11, 0.16); color: var(--gold-2); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.badge.green { background: rgba(47, 213, 115, 0.16); color: #7ee2a8; }
.confetti {
  position: absolute; width: 9px; height: 9px; border-radius: 2px;
  z-index: 5;
  animation: popconfetti 1s ease-out forwards;
}
@keyframes popconfetti {
  from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; }
}

/* ============================================================
   New games (plinko, roulette, coinflip, mines)
   ============================================================ */

/* Plinko */
.plinko-frame {
  background: linear-gradient(180deg, #0d0f19, #171128 60%, #1a0f2e);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}
#plinkoCanvas { width: 100%; height: 520px; display: block; }

/* Roulette */
.roulette-frame {
  background: linear-gradient(180deg, #0d0f19, #14102a);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.roulette-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.roulette-result {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.25);
  flex: 0 0 auto;
}
.roulette-result.red { background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0262d 70%); }
.roulette-result.black { background: radial-gradient(circle at 35% 30%, #4b5568, #1c212b 70%); }
.roulette-result.zero { background: radial-gradient(circle at 35% 30%, #5fbf7d, #1e7a41 70%); }
.roulette-picks { flex: 1; min-width: 200px; }
.roulette-table { user-select: none; }
.roulette-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 4px; }
.roulette-row.roulette-outside { grid-template-columns: repeat(6, 1fr); }
.roulette-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 4px; }
.roulette-col { display: flex; flex-direction: column; gap: 4px; }
.roulette-col .roulette-cell { height: 30px; }
.roulette-edge .roulette-cell { background: rgba(255, 255, 255, 0.05); color: #fff; }
.roulette-cell {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 4px;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s, box-shadow 0.1s;
  position: relative;
}
.roulette-cell:hover { transform: translateY(-2px); background: rgba(255,255,255,0.10); }
.roulette-cell.red { background: linear-gradient(180deg, #d3242c, #8f1217); border-color: #ff7a80; }
.roulette-cell.black { background: linear-gradient(180deg, #2b313d, #14161c); border-color: #3c4656; }
.roulette-cell.zero { background: linear-gradient(180deg, #2e9e57, #17632f); }
.roulette-cell.has-bet::after {
  content: '🪙';
  position: absolute; right: 3px; bottom: 2px; font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  transform: scale(calc(0.7 + var(--bet-count) * 0.25));
  transform-origin: bottom right;
}
.roulette-cell.has-bet { box-shadow: 0 0 0 2px var(--accent-2), 0 4px 14px var(--accent-glow); }

/* Coin */
.coin {
  width: 118px; height: 118px; margin: 8px auto 18px;
  position: relative; transform-style: preserve-3d;
}
.coin.flipping { animation: coinflip 1.3s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; letter-spacing: 1px;
  backface-visibility: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.55), inset 0 3px 0 rgba(255,255,255,0.35), inset 0 -4px 8px rgba(0,0,0,0.35);
}
.coin-heads { background: radial-gradient(circle at 35% 30%, #ffedb0, #f0b90b 55%, #9a6f00 95%); color: #3a2c00; border: 3px solid #ffd75e; }
.coin-tails { background: radial-gradient(circle at 35% 30%, #ffd6dc, #e5484d 60%, #7e151d 95%); color: #fff; border: 3px solid #ff9aa2; transform: rotateY(180deg); }
@keyframes coinflip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(2160deg); }
}
.side-btn.active { outline: 2px solid var(--accent-2); outline-offset: 2px; filter: brightness(1.15); }

/* Mines */
.mines-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mines-bar b { color: #fff; }
.mines-mult { color: var(--gold-2); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mine-tile {
  aspect-ratio: 1; border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(160deg, #1c1f2e, #10131d);
  color: #5b6b8c; font-size: 24px; font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.mine-tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.45); color: var(--gold-2); }
.mine-tile.safe {
  background: linear-gradient(160deg, #2d3d33, #1a241d);
  color: #7ee2a8; cursor: default;
  box-shadow: inset 0 0 0 1px rgba(126,226,168,0.3);
}
.mine-tile.mine {
  background: linear-gradient(160deg, #5a1a1f, #2c0d10);
  color: #ff6b6b; cursor: default;
  box-shadow: inset 0 0 0 1px rgba(255,107,107,0.5);
}
.mine-tile:disabled { cursor: default; }

/* Tower */
.tower-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tower-bar b { color: #fff; }
.tower-mult { color: var(--gold-2); }
.tower-grid { display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; margin: 0 auto 6px; }
.tower-row { display: flex; align-items: center; gap: 8px; }
.tower-lvl {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-hi); color: #5b6b8c;
}
.tower-tile {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(160deg, #232a3d, #12151f);
  color: #f5c542; font-size: 24px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.tower-tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.45); }
.tower-tile.safe {
  background: linear-gradient(160deg, #2d3d33, #1a241d);
  color: #7ee2a8; cursor: default;
  box-shadow: inset 0 0 0 1px rgba(126,226,168,0.35);
}
.tower-tile.mine {
  background: linear-gradient(160deg, #5a1a1f, #2c0d10);
  color: #ff6b6b; cursor: default;
  box-shadow: inset 0 0 0 1px rgba(255,107,107,0.5);
}
.tower-tile.mine.hit { transform: scale(1.08); box-shadow: 0 0 22px rgba(255,107,107,0.6); }
.tower-tile:disabled { cursor: default; }

/* Game card variants for the new games */
.game-card.plinko-glow { background: linear-gradient(160deg, rgba(255,77,158,0.16), rgba(14,10,24,0.92) 55%); }
.game-card.roulette-red { background: linear-gradient(160deg, rgba(197,34,45,0.22), rgba(16,9,12,0.92) 55%); }
.game-card.coin-card { background: linear-gradient(160deg, rgba(255,214,92,0.18), rgba(20,16,8,0.92) 55%); }
.game-card.mines-dark { background: linear-gradient(160deg, rgba(90,120,200,0.16), rgba(9,11,18,0.92) 55%); }
.game-card.tower-lobby { background: linear-gradient(160deg, rgba(245,197,66,0.16), rgba(22,18,8,0.92) 55%); }
.game-card:hover.plinko-glow { box-shadow: 0 18px 44px rgba(255,77,158,0.25); }
.game-card:hover.roulette-red { box-shadow: 0 18px 44px rgba(197,34,45,0.25); }
.game-card:hover.coin-card { box-shadow: 0 18px 44px rgba(255,214,92,0.22); }
.game-card:hover.mines-dark { box-shadow: 0 18px 44px rgba(90,120,200,0.25); }
.game-card:hover.tower-lobby { box-shadow: 0 18px 44px rgba(245,197,66,0.22); }

/* ============================================================
   Community: announcements, leaderboard, transfer modal
   ============================================================ */
.notice-list { margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 16px; padding: 14px 18px;
  border: 1px solid rgba(250, 200, 80, 0.30);
  background:
    radial-gradient(120% 200% at 100% 0%, rgba(240, 185, 11, 0.14), transparent 55%),
    linear-gradient(160deg, #2a2110, #17130a);
  box-shadow: var(--shadow);
}
.notice.pinned {
  border-color: rgba(255, 77, 158, 0.45);
  background:
    radial-gradient(120% 200% at 100% 0%, rgba(255, 77, 158, 0.18), transparent 55%),
    linear-gradient(160deg, #2a1422, #17101c);
}
.notice-ico { font-size: 22px; line-height: 1.2; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-title .pin-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #170b14; background: var(--accent); border-radius: 999px; padding: 2px 8px;
}
.notice-msg { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; white-space: pre-wrap; }
.notice-date { color: var(--muted-2, rgba(160,160,180,0.6)); font-size: 12px; margin-top: 4px; }

.lobby-split { display: grid; gap: 22px; grid-template-columns: 1.4fr 1fr; margin-top: 22px; }
@media (max-width: 960px) { .lobby-split { grid-template-columns: 1fr; } }

.lb-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 12px;
}
.lb-row.mine { background: rgba(255, 77, 158, 0.10); border: 1px solid rgba(255, 77, 158, 0.35); }
.lb-rank {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border-hi);
}
.lb-row:nth-child(1) .lb-rank { background: linear-gradient(135deg, #ffd75e, #e09b0c); color: #201605; border-color: #ffd75e; }
.lb-row:nth-child(2) .lb-rank { background: linear-gradient(135deg, #cfd8e3, #8b97a6); color: #10151c; border-color: #cfd8e3; }
.lb-row:nth-child(3) .lb-rank { background: linear-gradient(135deg, #e8a26b, #b06a2f); color: #1c0f06; border-color: #e8a26b; }
.lb-name { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bal { font-weight: 900; color: var(--gold-2); font-variant-numeric: tabular-nums; }

.community-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.community-btns .btn { flex: 1; min-width: 150px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5, 3, 10, 0.72);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 460px; max-height: 90vh; overflow: auto;
  background: linear-gradient(170deg, var(--panel), #0e0a1a);
  border: 1px solid var(--border-hi); border-radius: 18px;
  padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.modal h3 { margin: 0 0 4px; font-size: 19px; }
.modal .muted { margin: 0 0 16px; }
.modal .close-x { float: right; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.modal .row { margin-top: 14px; }
.feedback-list { display: flex; flex-direction: column; gap: 10px; }
.fb-card {
  border: 1px solid var(--border-hi); border-radius: 14px; padding: 12px 14px;
  background: var(--bg-soft);
}
.fb-card.open { border-color: rgba(255, 92, 108, 0.45); }
.fb-card.resolved { opacity: 0.7; }
.fb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-subject { font-weight: 800; flex: 1; }
.fb-msg { color: var(--muted); font-size: 14px; margin: 6px 0 8px; white-space: pre-wrap; }
.fb-meta { font-size: 12px; color: var(--muted); }
.fb-reply { border-left: 2px solid var(--green); padding-left: 10px; margin-top: 8px; font-size: 13px; color: #7ee2a8; white-space: pre-wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: sticky; flex-direction: row; align-items: center;
    gap: 10px; padding: 10px 14px; overflow: hidden;
  }
  .brand { padding: 2px 6px; }
  .brand-name { font-size: 14px; }
  .brand-name b { font-size: 10px; }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; }
  .nav-label, .sidebar-foot { display: none; }
  .nav-link { padding: 8px 12px; white-space: nowrap; font-size: 13px; }
  .topbar { padding: 0 16px; }
  .wrap { padding: 20px 16px 60px; }
}

@media (max-width: 640px) {
  .seats { grid-template-columns: 1fr 1fr; }
  .slot-cell { font-size: 34px; }
  .topbar-right { gap: 7px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
  .page-title { font-size: 16px; }
  .featured .glow-dice { display: none; }
  .balance-chip { padding: 7px 11px; font-size: 14px; }
}