* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070913;
  --panel: rgba(18, 22, 38, 0.72);
  --panel2: rgba(28, 34, 56, 0.6);
  --panel-soft: rgba(10, 13, 24, 0.5);
  --text: #f3f4f6;
  --muted: #98a0bd;
  --gold: #ffbe2e;
  --gold2: #ff8c00;
  --green: #2ed573;
  --red: #ff4757;
  --purple: #a05eff;
  --blue: #4cc3ff;
  --border: rgba(255, 255, 255, 0.08);
  --gold-grad: linear-gradient(135deg, #ffd700, #ff8c00);
  --neon-gold: 0 0 22px rgba(255, 190, 46, 0.3);
}

html, body { height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background orbs */
.bg-orb { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; pointer-events: none; }
.orb-a { width: 480px; height: 480px; background: rgba(112, 0, 255, 0.22); top: -160px; left: -120px; animation: drift 18s ease-in-out infinite; }
.orb-b { width: 420px; height: 420px; background: rgba(15, 60, 130, 0.25); bottom: -140px; right: -100px; animation: drift 22s ease-in-out infinite reverse; }
.orb-c { width: 300px; height: 300px; background: rgba(255, 190, 46, 0.12); top: 40%; left: 45%; animation: drift 26s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-30px, 40px); }
}

/* ===== LOGIN ===== */
.login-card {
  position: relative; z-index: 1;
  text-align: center; padding: 50px 30px;
  max-width: 420px; margin: 12vh auto;
  background: var(--panel); backdrop-filter: blur(18px);
  border-radius: 28px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 190, 46, 0.08);
}
.login-logo { font-size: 52px; margin-bottom: 10px; filter: drop-shadow(0 0 18px rgba(255,190,46,0.4)); }
.login-card h1 { font-size: 30px; margin-bottom: 12px; font-weight: 800; background: linear-gradient(135deg, #fff, #ffd889); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card p { color: var(--muted); margin-bottom: 28px; font-size: 15px; line-height: 1.55; }
.error { color: var(--red); margin-top: 14px; font-size: 14px; min-height: 18px; text-shadow: 0 0 12px rgba(255, 71, 87, 0.35); }

/* ===== APP LAYOUT ===== */
.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex-shrink: 0;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 20px 14px;
  position: sticky; top: 0; height: 100vh;
}
.s-logo { font-size: 20px; font-weight: 800; padding: 4px 10px 22px; letter-spacing: 0.5px; }
.s-logo span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.s-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-item {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); padding: 11px 14px; border-radius: 12px;
  cursor: pointer; font-size: 15px; font-weight: 600; text-align: left;
  transition: all 0.2s ease; width: 100%;
}
.s-item .s-ico { font-size: 18px; width: 22px; text-align: center; }
.s-item:hover { background: var(--panel2); color: var(--text); border-color: var(--border); }
.s-item.active { background: linear-gradient(135deg, rgba(255,215,0,0.16), rgba(255,140,0,0.05)); color: var(--gold); border-color: rgba(255, 190, 46, 0.35); box-shadow: var(--neon-gold); }

.s-foot { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.balance { font-size: 18px; font-weight: 800; color: var(--gold); text-shadow: 0 0 12px rgba(255, 190, 46, 0.35); }

.content { flex: 1; padding: 34px 40px 60px; max-width: 1100px; overflow-x: hidden; }
.v-title { font-size: 26px; font-weight: 800; margin-bottom: 24px; letter-spacing: 0.5px; }

.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  background: var(--gold-grad); color: #141005; border: none;
  font-weight: 800; padding: 10px 20px; border-radius: 12px;
  cursor: pointer; font-size: 14px;
  box-shadow: 0 4px 18px rgba(255, 165, 0, 0.35);
  transition: all 0.2s ease; text-decoration: none; display: inline-block;
}
.btn.ghost { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn.wide { width: 100%; padding: 14px; font-size: 16px; }
.btn.center { text-align: center; }
.btn.discord { background: linear-gradient(135deg, #5865F2, #4752c4); color: #fff; box-shadow: 0 6px 24px rgba(88,101,242,0.4); }
.btn.discord:hover { background: linear-gradient(135deg, #6e79f5, #5865F2); box-shadow: 0 8px 28px rgba(88,101,242,0.5); transform: translateY(-1px); }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,165,0,0.5); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); padding: 10px 18px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; backdrop-filter: blur(8px); transition: all 0.2s ease; }
.tab:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.tab.active { background: linear-gradient(135deg, rgba(255,215,0,0.16), rgba(255,140,0,0.06)); color: var(--gold); border-color: rgba(255,190,46,0.4); box-shadow: var(--neon-gold); }

/* ===== BALANCE HERO ===== */
.hero-balance {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
  background: var(--panel); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 24px; padding: 28px 30px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 50px rgba(255,190,46,0.07);
  background-image: radial-gradient(400px 160px at 20% 0%, rgba(255,190,46,0.08), transparent);
}
.hero-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hero-lbl { font-size: 15px; color: var(--muted); font-weight: 600; }
.hero-num { font-size: 52px; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(255,190,46,0.15); line-height: 1; }
.hero-side { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-mini { display: flex; flex-direction: column; gap: 4px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; min-width: 110px; }
.hm-lbl { font-size: 12px; color: var(--muted); }
.hm-val { font-size: 20px; font-weight: 800; color: var(--text); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.stat-card, .mini-card {
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px; padding: 18px;
}
.mini-card .mc-lbl { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mini-card .mc-val { font-size: 22px; font-weight: 800; }
.mini-card .mc-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== PANELS (games) ===== */
.panel { background: var(--panel); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.panel h2 { margin-bottom: 18px; font-size: 20px; font-weight: 700; }

.row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.row label { color: var(--muted); font-size: 14px; font-weight: 600; }
.row input { padding: 10px 14px; width: 110px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-soft); color: var(--text); font-weight: 600; outline: none; transition: border-color 0.2s; }
.row input:focus { border-color: var(--gold); box-shadow: var(--neon-gold); }

.hands { display: flex; gap: 18px; flex-wrap: wrap; }
.hand { flex: 1; min-width: 240px; background: var(--panel-soft); border: 1px solid var(--border); padding: 18px; border-radius: 16px; }
.hand h3 { font-size: 15px; margin-bottom: 12px; color: var(--muted); }
.cards { display: flex; gap: 10px; min-height: 90px; flex-wrap: wrap; }
.card {
  min-width: 52px; height: 74px; background: linear-gradient(135deg, #fff, #eee); color: #111; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,0.55); padding: 0 4px;
  animation: cardIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cardIn { 0% { transform: scale(0.5) translateY(18px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.card.red { color: var(--red); text-shadow: 0 0 10px rgba(255,71,87,0.3); }

.actions { margin-top: 20px; display: flex; gap: 12px; }
.result { margin-top: 16px; font-size: 16px; font-weight: 700; min-height: 24px; }
.result.win { color: var(--green); text-shadow: 0 0 12px rgba(46,213,115,0.4); }
.result.lose { color: var(--red); text-shadow: 0 0 12px rgba(255,71,87,0.4); }
.result.center { text-align: center; }

.slot-reel { display: flex; gap: 14px; justify-content: center; margin: 22px 0; }
.slot-reel .cell { width: 96px; height: 96px; font-size: 52px; background: var(--panel-soft); border: 2px solid var(--border); border-radius: 18px; display: flex; align-items: center; justify-content: center; }

.roulette-bets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bet-chip { background: var(--panel-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 600; min-width: 82px; transition: all 0.2s ease; }
.bet-chip:hover { border-color: var(--gold); box-shadow: var(--neon-gold); transform: translateY(-2px); }
.bet-chip.big { font-size: 30px; min-width: 88px; padding: 14px; }

/* ===== ROOMS / RELATIONS / LIST ===== */
.rooms-list, .admin-section, #statsList, #relationsList { display: grid; gap: 14px; }
.room-card, .rel-card { background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.room-card h3, .rel-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.room-card .meta, .rel-card .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pill { background: var(--panel2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 20px; font-size: 12px; color: var(--muted); }
.pill.locked { border-color: var(--red); color: var(--red); }
.pill.open { border-color: var(--green); color: var(--green); }
.pill.sub { border-color: rgba(255,190,46,0.4); color: var(--gold); }
.muted { color: var(--muted); }
.muted a { color: var(--blue); text-decoration: none; }
.muted a:hover { text-decoration: underline; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-grid-inline { display: flex; flex-direction: column; gap: 12px; }
.prog { background: var(--panel-soft); border: 1px solid var(--border); border-radius: 20px; height: 10px; overflow: hidden; margin-top: 8px; }
.prog > span { display: block; height: 100%; background: var(--gold-grad); border-radius: 20px; box-shadow: 0 0 12px rgba(255,190,46,0.4); }

/* ===== ADMIN ===== */
.tabs-inner { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-user { display: flex; align-items: center; gap: 14px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; flex-wrap: wrap; }
.admin-user .uid { font-family: monospace; font-size: 13px; color: var(--muted); }
.admin-user .bal { margin-left: auto; font-weight: 800; color: var(--gold); font-size: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(18,22,38,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--gold); color: var(--text);
  padding: 14px 24px; border-radius: 14px; font-weight: 700; z-index: 200;
  box-shadow: 0 12px 34px rgba(0,0,0,0.6), var(--neon-gold);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastIn { 0% { transform: translate(-50%, 20px); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }
.toast.error { border-color: var(--red); box-shadow: 0 12px 34px rgba(0,0,0,0.6), 0 0 24px rgba(255,71,87,0.3); }

/* ===== MINES ===== */
.mines-hud { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mines-stat { background: var(--panel-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.mines-stat strong { color: var(--gold); font-size: 18px; text-shadow: 0 0 12px rgba(255,190,46,0.3); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 460px; }
.mine-cell {
  aspect-ratio: 1; border-radius: 16px;
  background: var(--panel-soft); border: 1.5px solid var(--border);
  color: var(--muted); font-size: 26px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; transition: all 0.18s ease;
}
.mine-cell:hover { border-color: var(--gold); box-shadow: var(--neon-gold); transform: translateY(-2px); }
.mine-cell:disabled { cursor: default; transform: none; }
.mine-cell.revealed { background: linear-gradient(135deg, rgba(255,215,0,0.14), rgba(255,140,0,0.05)); border-color: rgba(255,190,46,0.4); color: var(--gold); box-shadow: var(--neon-gold); }
.mine-cell.bomb { background: rgba(255,71,87,0.12); border-color: var(--red); color: var(--red); box-shadow: 0 0 20px rgba(255,71,87,0.25); }

@media (max-width: 520px) {
  .mines-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .mine-cell { font-size: 18px; }
}

/* ===== WHEEL ===== */
.wheel-wrap { position: relative; width: 320px; max-width: 90%; margin: 12px auto; }
.wheel-wrap canvas { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.wheel-pointer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--gold); font-size: 26px; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9a227); color: #2a2100; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }

/* ===== BANNERS ===== */
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 24px 22px; border-radius: 20px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.banner:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.55), var(--neon-gold); }
.b-crash { background: linear-gradient(135deg, #1b1038 0%, #2c0f33 60%, #451428 100%); }
.b-mines { background: linear-gradient(135deg, #101b38 0%, #1a1233 60%, #2a1a3d 100%); }
.b-wheel { background: linear-gradient(135deg, #102818 0%, #123322 60%, #233a14 100%); }
.b-emoji { font-size: 44px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }
.b-title { font-size: 20px; font-weight: 800; }
.b-text { font-size: 13px; color: var(--muted); margin: 5px 0 10px; line-height: 1.45; }
.b-cta { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ===== GAME LOBBY ===== */
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.lobby-card { position: relative; overflow: hidden; background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 20px; padding: 24px 20px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lobby-card:hover { transform: translateY(-4px); border-color: rgba(255,190,46,0.35); box-shadow: 0 18px 44px rgba(0,0,0,0.5), var(--neon-gold); }
.lc-emoji { font-size: 40px; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)); }
.lc-title { font-size: 19px; font-weight: 800; }
.lc-text { font-size: 13px; color: var(--muted); margin: 6px 0 16px; line-height: 1.45; min-height: 36px; }
.lc-tag { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px; background: rgba(255,190,46,0.12); color: var(--gold); border: 1px solid rgba(255,190,46,0.35); }
.lc-crash { background: linear-gradient(160deg, rgba(255,140,0,0.10), transparent 55%); }
.lc-plinko { background: linear-gradient(160deg, rgba(255,215,0,0.10), transparent 55%); }
.lc-mines { background: linear-gradient(160deg, rgba(160,94,255,0.12), transparent 55%); }
.lc-wheel { background: linear-gradient(160deg, rgba(46,213,115,0.10), transparent 55%); }

/* ===== GAME FULLSCREEN ===== */
.game-full { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: 26px 30px 60px; animation: gfIn 0.28s ease; }
@keyframes gfIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.gf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.gf-title { font-size: 26px; font-weight: 800; margin: 0; }
.gf-tabs { margin-bottom: 26px; }

/* ===== LOBBY BANNERS (games view) ===== */
.lobby-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.b-plinko { background: linear-gradient(135deg, #1c1438 0%, #2a1a3d 55%, #3d1f2e 100%); }

/* ===== CRASH (1xBet style) ===== */
.crash-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.crash-stats { display: flex; gap: 10px; }
.cs-it { background: var(--panel-soft); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; text-align: center; min-width: 84px; }
.cs-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.cs-v { font-size: 18px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.crash-controls { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.crash-controls .row { flex-wrap: wrap; }
.crash-controls select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-soft); color: var(--text); font-weight: 600; outline: none; cursor: pointer; }
.crash-auto { display: flex; align-items: center; gap: 12px; }
.crash-auto label { font-size: 13px; color: var(--muted); font-weight: 600; }
.auto-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.auto-chip { background: var(--panel-soft); border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
.auto-chip:hover { color: var(--text); border-color: rgba(255,190,46,0.35); }
.auto-chip.active { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.08)); color: var(--gold); border-color: rgba(255,190,46,0.5); box-shadow: var(--neon-gold); }
.crash-hud { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.crash-side { display: flex; flex-direction: column; gap: 10px; }
.ch-label { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.crash-history { display: flex; flex-direction: column; gap: 6px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: 14px; padding: 12px; max-height: 190px; overflow-y: auto; }
.ch-item { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); text-align: center; }
.ch-item.ch-big { color: var(--gold); border-color: rgba(255,190,46,0.4); background: rgba(255,190,46,0.08); }
.ch-item.ch-mid { color: var(--green); border-color: rgba(46,213,115,0.35); background: rgba(46,213,115,0.06); }
.ch-item.ch-z { color: var(--red); border-color: rgba(255,71,87,0.35); background: rgba(255,71,87,0.06); }
.ch-how { font-size: 13px; line-height: 1.7; }
.crash-stage { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: #0c1430; }
.crash-stage canvas { display: block; width: 100%; height: auto; }
.crash-stage.crashed { border-color: var(--red); box-shadow: 0 0 28px rgba(255,71,87,0.3); animation: crashFlash 0.5s ease; }
@keyframes crashFlash { 0% { filter: brightness(2); } 100% { filter: none; } }
.crash-sub { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }

@media (max-width: 900px) { .crash-hud { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .lobby-banners { grid-template-columns: 1fr; } }

/* ===== PLINKO ===== */
.plinko-stage { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); margin: 8px 0 14px; }
.plinko-stage canvas { display: block; width: 100%; height: auto; }
.plinko-bins { display: flex; gap: 4px; margin-bottom: 16px; }
.pbin { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 5px 0; border-radius: 8px; background: var(--panel-soft); border: 1px solid var(--border); color: var(--muted); }
.pbin-w { color: var(--green); border-color: rgba(46,213,115,0.35); }
.pbin-z { color: var(--red); border-color: rgba(255,71,87,0.35); }

@media (max-width: 820px) {
  .banners { grid-template-columns: 1fr; }
  .game-full { padding: 18px 14px 50px; }
  .gf-title { font-size: 20px; }
}

@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .s-logo { padding: 4px 10px; }
  .s-nav { flex-direction: row; flex-wrap: wrap; }
  .s-item { width: auto; }
  .s-foot { border-top: none; border-left: 1px solid var(--border); padding: 0 0 0 8px; align-items: center; }
  .content { padding: 24px 18px 50px; }
  .hero-num { font-size: 38px; }
}