/* ═══════════════════════════════════════
   REVERSE — Premium Dark Gaming Design System
═══════════════════════════════════════ */
:root {
  --bg:          #000000;
  --bg-app:      #0A0A0C;
  --bg-card:     #161618;
  --bg-hover:    #242428;
  --accent:      #FF4B4B;
  --accent-soft: rgba(255,75,75,0.15);
  --accent-dim:  rgba(255,75,75,0.08);
  --text:        #FFFFFF;
  --text-sub:    #9A9A9C;
  --border:      rgba(255,255,255,0.05);
  --shadow:      0 8px 32px rgba(0,0,0,0.6);
  --glow:        0 0 20px rgba(255,75,75,0.4);
  --radius-card: 24px;
  --radius-pill: 40px;
  --radius-chip: 12px;
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;border:none;outline:none}
html,body{height:100%;width:100%;background:var(--bg);color:var(--text);
  font-family:'Outfit','Inter',system-ui,sans-serif;font-size:14px;line-height:1.5;overflow:hidden;}

/* ── LOADER ─────────────────────────── */
#loader{position:fixed;inset:0;z-index:999;background:var(--bg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.loader-spinner{width:44px;height:44px;border:3px solid var(--bg-hover);
  border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;box-shadow:var(--glow)}
.loader-text{color:var(--text-sub);font-size:13px;letter-spacing:.05em;text-transform:uppercase;font-weight:700}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── TOAST ──────────────────────────── */
#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%) translateY(10px);
  background:var(--bg-card);color:var(--text);padding:12px 24px;border-radius:var(--radius-pill);
  font-size:13px;font-weight:700;box-shadow:var(--shadow),0 0 0 1px var(--border);
  opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:800;white-space:nowrap;
  text-transform:uppercase;letter-spacing:1px}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ── APP LAYOUT ─────────────────────── */
#app-container { 
  max-width: 480px; 
  margin: 0 auto; 
  background: radial-gradient(circle at top left, rgba(255, 75, 75, 0.05) 0%, transparent 50%), 
              radial-gradient(circle at bottom right, rgba(255, 75, 75, 0.05) 0%, transparent 50%), 
              var(--bg-app);
  min-height: 100vh; 
  position: relative; 
  overflow: hidden; 
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
#app { display:flex;flex-direction:column;height:100vh;width:100% }

/* ── HEADER ─────────────────────────── */
.app-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px 12px; flex-shrink:0; z-index:10;
  background:linear-gradient(180deg, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.6) 100%);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,0.04);
  box-shadow:0 1px 0 rgba(255,75,75,0.04), 0 4px 20px rgba(0,0,0,0.3);
  position:relative;
}
.app-header::after {
  content:''; position:absolute; bottom:0; left:20px; right:20px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,75,75,0.25) 30%, rgba(255,75,75,0.25) 70%, transparent);
  pointer-events:none;
}
.header-brand {
  font-size:21px; font-weight:900; letter-spacing:.14em;
  color:var(--text); text-transform:uppercase; font-style:italic;
  background:linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
  text-shadow:none;
  filter:drop-shadow(0 0 12px rgba(255,75,75,0.2));
}
.header-badges { display:flex; gap:8px; }
.badge {
  background:rgba(255,255,255,0.04);
  border-radius:var(--radius-chip);
  padding:6px 13px; font-size:12px; font-weight:800; color:var(--text-sub);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.3);
  border:1px solid rgba(255,255,255,0.07);
  transition:background .2s, color .2s;
  backdrop-filter:blur(10px);
}
.badge.badge-accent {
  background:linear-gradient(135deg, rgba(255,75,75,0.2) 0%, rgba(255,75,75,0.08) 100%);
  color:var(--accent); border-color:rgba(255,75,75,0.3);
  box-shadow:0 0 12px rgba(255,75,75,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── MAIN SCROLL ────────────────────── */
.app-main{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 20px;scroll-behavior:smooth}
.app-main::-webkit-scrollbar{display:none;}

/* ── TABS ───────────────────────────── */
.tab{display:none;flex-direction:column;gap:20px;animation:fadein .3s ease}
.tab.active{display:flex}
.tab::after { content: ''; display: block; height: 140px; flex-shrink: 0; }
@keyframes fadein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ── BENTO CARDS ────────────────────── */
.bento-card{background:var(--bg-card);border-radius:var(--radius-card);padding:24px;
  box-shadow:var(--shadow);border:1px solid var(--border);position:relative;overflow:hidden;}
.bento-row{display:flex;gap:12px}
.bento-row .bento-card{flex:1}
.mini-stat{padding:18px;text-align:center}

/* ── SECTION HEADING ────────────────── */
.section-heading{font-size:13px;font-weight:900;color:var(--text);
  text-transform:uppercase;letter-spacing:.12em;margin-top:-2px;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.section-heading::before{content:'';display:block;width:4px;height:14px;background:var(--accent);border-radius:2px;box-shadow:var(--glow)}

/* ── PROFILE ────────────────────────── */
.profile-card {
  display:flex; align-items:center; gap:18px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255,75,75,0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(28,28,32,0.98) 0%, rgba(20,20,24,0.95) 100%);
  border:1px solid rgba(255,75,75,0.1);
  position:relative; overflow:hidden;
}
.profile-card::before {
  content:''; position:absolute; top:0; left:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--accent) 0%, rgba(255,75,75,0.2) 100%);
  border-radius:0 2px 2px 0;
}
.profile-avatar-wrap { position:relative; flex-shrink:0; }
.profile-avatar {
  width:80px; height:80px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #2a2a30 0%, #141416 100%);
  display:flex; align-items:center; justify-content:center; font-size:34px;
  color:var(--accent); overflow:hidden;
  box-shadow:
    0 0 0 2px rgba(255,75,75,0.35),
    0 0 0 4px rgba(255,75,75,0.08),
    0 8px 24px rgba(0,0,0,0.5),
    0 0 20px rgba(255,75,75,0.2);
  border:2px solid var(--bg-card);
  transition:box-shadow .3s;
}
.profile-avatar:hover {
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 0 5px rgba(255,75,75,0.15),
    0 8px 32px rgba(0,0,0,0.6),
    0 0 32px rgba(255,75,75,0.35);
}
.profile-info { flex:1; min-width:0; }
.profile-name {
  font-size:22px; font-weight:900;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  letter-spacing:0.3px; line-height:1.2;
  background:linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.profile-sub {
  font-size:12px; color:var(--text-sub); margin-top:5px;
  font-weight:600; letter-spacing:0.3px;
  display:flex; align-items:center; gap:5px;
}
.league-chip {
  display:inline-flex; align-items:center; gap:5px;
  margin-top:9px;
  background:linear-gradient(135deg, rgba(255,75,75,0.18) 0%, rgba(255,75,75,0.06) 100%);
  color:var(--accent); font-size:11px; font-weight:900;
  padding:5px 14px; border-radius:var(--radius-chip);
  border:1px solid rgba(255,75,75,0.3);
  box-shadow:0 0 10px rgba(255,75,75,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
  letter-spacing:0.8px; text-transform:uppercase;
}

/* ── STATS BENTO ────────────────────── */
.stats-bento { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat-tile {
  background:linear-gradient(145deg, rgba(22,22,26,0.98) 0%, rgba(18,18,22,0.96) 100%);
  border-radius:18px; padding:16px 10px; text-align:center; cursor:pointer;
  box-shadow:0 4px 16px rgba(0,0,0,0.4); border:1px solid rgba(255,255,255,0.05);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s;
  position:relative; overflow:hidden;
}
.stat-tile::before {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:0; height:2px; background:var(--accent); border-radius:0 0 2px 2px;
  transition:width .3s ease; box-shadow:0 0 8px rgba(255,75,75,0.6);
}
.stat-tile:hover::before { width:40%; }
.stat-tile:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
  border-color:rgba(255,255,255,0.09);
}
.stat-tile:active { transform:scale(0.94); }
.accent-tile {
  background:linear-gradient(145deg, rgba(255,75,75,0.14) 0%, rgba(255,75,75,0.04) 100%);
  border-color:rgba(255,75,75,0.25);
  box-shadow:0 4px 16px rgba(255,75,75,0.08);
}
.accent-tile::before { width:30% !important; }
.accent-tile::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(255,75,75,0.05) 0%, transparent 60%);
  pointer-events:none;
}
.stat-label {
  font-size:10px; color:var(--text-sub); font-weight:800;
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px;
}
.stat-value { font-size:22px; font-weight:900; letter-spacing:-0.5px; line-height:1.1; }
.accent-text { color:var(--accent); text-shadow:0 0 10px rgba(255,75,75,0.35); }

/* ── RECENT CARDS ───────────────────── */
.recent-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.recent-item { display: flex; align-items: center; gap: 14px; background: var(--bg-card); padding: 14px 16px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer; transition: all .2s; }
.recent-item:active { transform: scale(0.97); }
.recent-icon-wrap { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--bg-hover); flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.recent-icon { width: 100%; height: 100%; object-fit: cover; }
.recent-info { flex: 1; min-width: 0; }
.recent-name { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.recent-rank { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.recent-pts { font-size: 15px; font-weight: 900; color: #4ade80; text-shadow: 0 0 10px rgba(74,222,128,0.3); }

/* ── ACTION PILLS ───────────────────── */
.action-row{display:flex;gap:12px}
.action-pill{flex:1;padding:16px;background:var(--bg-card);
  border-radius:var(--radius-pill);color:var(--text);font-family:inherit;
  font-size:14px;font-weight:800;cursor:pointer;transition:all .2s;text-align:center;
  box-shadow:var(--shadow);border:1px solid var(--border);text-transform:uppercase;letter-spacing:1px}
.action-pill:active{transform:scale(.95)}
.accent-btn{background:linear-gradient(135deg,#ff5757 0%,#ff3434 100%);color:#fff;box-shadow:0 12px 34px rgba(255,75,75,.34);border:none;}
.accent-btn:hover{filter:brightness(1.1)}
.full-pill{width:100%;flex:unset;display:block}

/* ── FILTER PILLS ───────────────────── */
.filter-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
.filter-row::-webkit-scrollbar{display:none}
.filter-pill{flex-shrink:0;padding:8px 18px;background:var(--bg-card);
  border-radius:var(--radius-pill);color:var(--text-sub);font-family:inherit;
  font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .2s;
  box-shadow:var(--shadow);border:1px solid var(--border)}
.filter-pill.active{background:var(--accent-dim);color:var(--accent);border-color:var(--accent);box-shadow:var(--glow)}

/* ── CARDS GRID ─────────────────────── */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;width:100%;align-items:start;}
.card-item{background:var(--bg-card);border-radius:20px;overflow:hidden;cursor:pointer;
  box-shadow:var(--shadow);border:1px solid var(--border);transition:all .2s;display:flex;flex-direction:column;width:100%;position:relative}
.card-item:active{transform:scale(.95)}
.card-img-wrap{width:100%;aspect-ratio:3/4;background:var(--bg-hover);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;position:relative}
.card-img-wrap::after{content:'';position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);}
.card-img-wrap img, .card-img-wrap video{width:100%;height:100%;object-fit:cover;display:block}
.card-img-placeholder{font-size:40px;color:var(--text-sub);z-index:2}
.card-rank-bar{height:4px;width:100%;flex-shrink:0;position:relative;z-index:2}
.card-info{padding:14px;display:flex;flex-direction:column;gap:6px;position:absolute;bottom:0;left:0;right:0;z-index:2;}
.card-item .font-black{font-size:15px;font-weight:900;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,0.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.card-item .text-\[9px\]{font-size:10px;font-weight:800;letter-spacing:1px;text-shadow:0 1px 2px rgba(0,0,0,0.8);}
.card-item .flex.gap-1{display:flex;gap:6px;}
.card-item .flex.gap-1 span{background:rgba(0,0,0,0.6) !important;backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,0.1) !important;border-radius:8px;padding:4px 8px !important;color:#fff !important;font-size:11px;}

/* Rarity colors */
.bg-Обычный{background:#9e9e9e;box-shadow:0 0 10px #9e9e9e}
.bg-Редкий{background:#3898ff;box-shadow:0 0 10px #3898ff}
.bg-Эпический{background:#a855f7;box-shadow:0 0 10px #a855f7}
.bg-Легендарный{background:#ffd700;box-shadow:0 0 10px #ffd700}
.bg-Мифический{background:#ff4b4b;box-shadow:0 0 10px #ff4b4b}
.r-Обычный{color:#9e9e9e}
.r-Редкий{color:#3898ff}
.r-Эпический{color:#a855f7}
.r-Легендарный{color:#ffd700}
.r-Мифический{color:#ff4b4b}

/* ── PAGINATION ─────────────────────── */
.pagination-row{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0 8px}
.page-btn{padding:12px 24px;background:var(--bg-card);
  border-radius:var(--radius-pill);color:var(--text);font-family:inherit;
  font-size:14px;font-weight:800;cursor:pointer;transition:all .2s;box-shadow:var(--shadow);border:1px solid var(--border)}
.page-btn:disabled{opacity:.3;cursor:not-allowed}
.page-btn:not(:disabled):active{transform:scale(0.9)}
.page-info{font-size:14px;color:var(--text-sub);font-weight:800;letter-spacing:2px}

/* ── EMPTY STATE ────────────────────── */
.empty-state{text-align:center;color:var(--text-sub);font-size:14px;padding:48px 20px;font-weight:700;text-transform:uppercase;letter-spacing:1px}

/* ── ARENA ──────────────────────────── */
.arena-stats-card{text-align:center;background:radial-gradient(circle at center, rgba(255,75,75,0.1) 0%, var(--bg-card) 70%);}
.arena-stat-row{display:flex;justify-content:space-around;align-items:center;margin-bottom:20px}
.arena-stat-val{font-size:32px;font-weight:900;letter-spacing:-1px}
.arena-stat-lbl{font-size:12px;color:var(--text-sub);font-weight:700;margin-top:4px;text-transform:uppercase;letter-spacing:1px}
.arena-divider{width:2px;height:48px;background:var(--border);border-radius:1px}
.arena-league{font-size:15px;color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:2px}

/* ── LEADERBOARD ────────────────────── */
.leaderboard{display:flex;flex-direction:column;gap:10px}
.lb-row{display:flex;align-items:center;gap:16px;background:var(--bg-card);
  border-radius:20px;padding:16px 20px;box-shadow:var(--shadow);border:1px solid var(--border)}
.lb-rank{width:32px;font-size:20px;font-weight:900;text-align:center;flex-shrink:0;color:var(--text-sub)}
.lb-name{flex:1;font-weight:800;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-trophy{font-weight:900;color:var(--accent);font-size:15px;text-shadow:0 0 10px rgba(255,75,75,0.3)}

/* ── TEAM ───────────────────────────── */
.team-list{display:flex;flex-direction:column;gap:12px}
.team-slot{display:flex;align-items:center;gap:16px;background:var(--bg-card);
  border-radius:20px;padding:16px 20px;box-shadow:var(--shadow);border:1px solid var(--border)}
.slot-num{width:40px;height:40px;border-radius:50%;background:var(--bg-hover);
  color:var(--text-sub);font-weight:900;font-size:16px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--border)}
.team-slot:has(.filled) .slot-num{background:var(--accent-dim);color:var(--accent);border-color:var(--accent-soft);box-shadow:var(--glow)}
.slot-info{flex:1;min-width:0}
.slot-name{font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-stats{font-size:12px;color:var(--text-sub);margin-top:4px;font-weight:600;letter-spacing:1px}
.slot-btn{width:40px;height:40px;border-radius:50%;font-family:inherit;
  font-size:20px;font-weight:300;cursor:pointer;background:var(--bg-hover);color:var(--text-sub);
  transition:all .2s;flex-shrink:0;box-shadow:var(--shadow);border:1px solid var(--border);display:flex;align-items:center;justify-content:center}
.slot-btn.filled{background:rgba(255,75,75,.15);color:var(--accent);border-color:rgba(255,75,75,.3)}

/* ── TASKS ──────────────────────────── */
.tasks-list{display:flex;flex-direction:column;gap:16px}
.task-item{background:var(--bg-card);border-radius:20px;
  padding:20px;box-shadow:var(--shadow);border:1px solid var(--border);position:relative;overflow:hidden}
.task-completed{opacity:0.6;background:var(--bg-hover)}
.task-title{font-size:15px;font-weight:900;margin-bottom:6px;letter-spacing:0.5px}
.task-desc{font-size:13px;color:var(--text-sub);margin-bottom:12px;font-weight:500}
.task-progress-text{font-size:12px;color:var(--accent);font-family:monospace;font-weight:700;
  letter-spacing:1px;margin-bottom:8px;text-align:right}
.task-progress{height:8px;background:var(--bg-hover);border-radius:99px;
  overflow:hidden;margin-bottom:16px;border:1px solid var(--border)}
.task-bar{height:100%;background:var(--accent);border-radius:99px;transition:width .4s;box-shadow:var(--glow);}
.task-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.task-reward{font-size:13px;color:var(--text);font-weight:800;background:var(--bg-hover);padding:6px 12px;border-radius:10px}
.task-claim{padding:10px 20px;background:var(--accent);color:#fff;
  border-radius:var(--radius-pill);font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:var(--glow);border:none;letter-spacing:1px}
.task-done-badge{font-size:13px;color:#4ade80;font-weight:800;letter-spacing:1px}

/* ── CLAN ───────────────────────────── */
.clan-card{background:var(--bg-card);border-radius:24px;padding:24px;box-shadow:var(--shadow);border:1px solid var(--border);position:relative;overflow:hidden;}
.clan-card::before{content:'';position:absolute;top:0;left:0;width:4px;height:100%;background:var(--accent);box-shadow:var(--glow)}
.clan-name{font-size:24px;font-weight:900;margin-bottom:10px;letter-spacing:1px}
.clan-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.clan-tag{font-size:12px;font-weight:800;padding:6px 12px;background:var(--bg-hover);
  border-radius:var(--radius-chip);color:var(--text-sub);border:1px solid var(--border)}
.clan-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.clan-stat{background:var(--bg-hover);border-radius:16px;
  padding:16px;text-align:center;border:1px solid var(--border)}
.clan-stat-val{font-size:20px;font-weight:900;color:var(--accent)}
.clan-stat-lbl{font-size:10px;color:var(--text-sub);font-weight:800;text-transform:uppercase;margin-top:4px;letter-spacing:1px}
.section-title{font-size:14px;font-weight:900;color:var(--text);letter-spacing:2px;margin:24px 0 16px;text-align:center}
.title-bracket{color:var(--accent)}
.clan-members{display:flex;flex-direction:column;gap:10px}
.clan-member{display:flex;align-items:center;gap:16px;background:var(--bg-card);
  border-radius:16px;padding:16px;box-shadow:var(--shadow);border:1px solid var(--border)}
.cm-rank{width:28px;font-size:14px;font-weight:800;color:var(--text-sub);text-align:center;flex-shrink:0}
.cm-name{flex:1;font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-pts{font-size:14px;font-weight:900;color:var(--accent)}
.no-clan-box{text-align:center;padding:60px 20px;background:var(--bg-card);
  border-radius:24px;box-shadow:var(--shadow);border:1px solid var(--border)}
.no-clan-icon{font-size:64px;margin-bottom:20px;color:var(--text-sub);opacity:0.5}
.no-clan-title{font-size:22px;font-weight:900;margin-bottom:12px;letter-spacing:1px}
.no-clan-desc{font-size:14px;color:var(--text-sub);line-height:1.6;font-weight:500}

/* ── SHOP ───────────────────────────── */
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.shop-item{background:var(--bg-card);border-radius:20px;padding:24px 16px;text-align:center;cursor:pointer;position:relative;overflow:hidden;transition:all .2s;border:1px solid var(--border);box-shadow:var(--shadow)}
.shop-item:active{transform:scale(0.95)}
.shop-item.featured{border-color:var(--accent);box-shadow:var(--glow), var(--shadow);background:radial-gradient(circle at top, var(--accent-dim) 0%, var(--bg-card) 100%)}
.featured-badge{position:absolute;top:0;right:0;background:var(--accent);color:#fff;
  font-size:10px;font-weight:900;padding:6px 12px;border-radius:0 20px 0 16px;letter-spacing:1px;box-shadow:var(--glow)}
.shop-icon{font-size:36px;margin-bottom:12px;filter:drop-shadow(0 4px 8px rgba(0,0,0,0.5))}
.shop-name{font-size:15px;font-weight:800;margin-bottom:6px;letter-spacing:0.5px}
.shop-price{font-size:13px;color:var(--text-sub);font-weight:700}
.exchange-row{display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;transition:all .2s;padding:20px 24px;font-size:15px;font-weight:800;letter-spacing:0.5px}
.exchange-row:active{transform:scale(0.98)}

/* ── MODAL ──────────────────────────── */
.modal-overlay{display:none;position:fixed;inset:0;z-index:2000;
  background:rgba(0,0,0,.85);backdrop-filter:blur(10px);
  align-items:center;justify-content:center;padding:20px;}
.modal-overlay.open{display:flex}
.modal-sheet{background:var(--bg-card);border-radius:32px;
  width:100%;max-width:400px;padding:32px 24px;position:relative;
  animation:popIn .4s cubic-bezier(.175,.885,.32,1.275);
  box-shadow:0 20px 60px rgba(0,0,0,.8), 0 0 0 1px var(--border)}
@keyframes popIn{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}
.modal-close-btn{position:absolute;top:20px;right:20px;
  width:40px;height:40px;border-radius:50%;background:var(--bg-hover);
  color:var(--text-sub);font-size:20px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:.2s;border:1px solid var(--border);z-index:10;}
.modal-close-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:var(--glow)}

/* ── BOTTOM NAV (clean, uniform) ─────────────────────── */
.bottom-nav {
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(12,12,14,0.85); backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  padding:6px 8px; position:fixed; bottom:14px; left:50%;
  transform:translateX(-50%);
  width:calc(100% - 20px); max-width:440px; z-index:100;
  border-radius:22px; border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 16px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  gap:2px;
}

.nav-btn {
  display:flex; align-items:center; justify-content:center;
  background:transparent; color:rgba(255,255,255,0.42);
  cursor:pointer; border:none;
  flex:1; min-width:0; height:42px; border-radius:14px;
  transition:color .2s, background .2s, transform .15s;
  position:relative;
  -webkit-tap-highlight-color:transparent;
}
.nav-btn:active { transform:scale(0.92); }
.nav-btn.active {
  color:var(--accent);
  background:rgba(255,75,75,0.1);
}
.nav-btn.active::after {
  content:''; position:absolute; top:-1px; left:50%;
  transform:translateX(-50%);
  width:18px; height:2px; border-radius:99px;
  background:var(--accent);
  box-shadow:0 0 8px rgba(255,75,75,.6);
}
.nav-ico { display:flex; align-items:center; justify-content:center; }
.nav-ico svg { width:22px; height:22px; }
.nav-lbl { display:none; }

/* Elevated center Arena button (no diamond) */
.center-btn {
  background:linear-gradient(135deg, #FF4B4B 0%, #D80027 100%) !important;
  color:#fff !important;
  width:52px !important; height:52px !important;
  flex:0 0 52px !important; border-radius:18px !important;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(255,75,75,.45),
             inset 0 1px 0 rgba(255,255,255,.25) !important;
  transform:translateY(-12px) !important;
  border:none !important; margin:0 4px !important; z-index:101;
  transition:transform .2s !important;
}
.center-btn .nav-ico { transform:none !important; }
.center-btn::after { display:none !important; }
.center-btn.active {
  transform:translateY(-14px) scale(1.04) !important;
  background:linear-gradient(135deg, #FF4B4B 0%, #D80027 100%) !important;
  color:#fff !important;
}
.center-btn:active { transform:translateY(-10px) scale(.94) !important; }

/* ── LOGIN ──────────────────────────── */
#login-screen{position:fixed;inset:0;z-index:3000;background:var(--bg-app);
  display:flex;align-items:center;justify-content:center;padding:24px}
.login-box{width:100%;max-width:380px;background:var(--bg-card);border-radius:32px;
  padding:40px 32px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.8);border:1px solid var(--border)}
.login-title{font-size:36px;font-weight:900;color:var(--text);letter-spacing:4px;margin-bottom:8px;text-shadow:0 4px 20px rgba(255,255,255,0.1)}
.login-sub{font-size:13px;color:var(--text-sub);margin-bottom:40px;font-weight:700;text-transform:uppercase;letter-spacing:2px}
.login-input{width:100%;background:var(--bg-hover);border-radius:20px;
  padding:16px 20px;color:var(--text);font-family:inherit;font-size:16px;font-weight:700;
  transition:.2s;margin-bottom:16px;display:block;border:1px solid var(--border);text-align:center;letter-spacing:1px}
.login-input:focus{box-shadow:var(--glow);border-color:var(--accent)}
.login-btn{width:100%;padding:16px;border-radius:20px;font-family:inherit;
  font-size:14px;font-weight:800;cursor:pointer;transition:.2s;margin-bottom:12px;display:block;text-transform:uppercase;letter-spacing:1px}
.login-btn.primary{background:var(--accent);color:#fff;box-shadow:var(--glow);border:none}
.login-btn.primary:active{transform:scale(0.95)}
.login-btn.secondary{background:var(--bg-hover);color:var(--text);border:1px solid var(--border)}
.login-btn.secondary:active{transform:scale(0.95)}
.login-hint{font-size:12px;color:var(--text-sub);margin-top:24px;font-weight:500;line-height:1.6}
.shake{animation:shake .4s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px)}75%{transform:translateX(10px)}}

/* Retro button classes from JS */
.retro-button{border:none;box-shadow:var(--glow);transition:transform 0.2s}
.retro-button:active{transform:scale(0.95)}
.retro-border-sm{border:1px solid rgba(255,255,255,0.1)}

/* MODAL */
.modal-overlay { display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,0.88); backdrop-filter:blur(14px); justify-content:center; align-items:center; }
.modal-overlay.open { display:flex; }
.modal-sheet {
  background:linear-gradient(180deg, rgba(22,22,26,0.98) 0%, rgba(14,14,18,0.99) 100%);
  border-radius:36px; width:92%; max-width:380px;
  position:relative; overflow:hidden;
  border:1px solid rgba(255,255,255,0.07);
  box-shadow:0 32px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
}
.modal-close-btn {
  position:absolute; top:18px; right:18px;
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.07); color:var(--text-sub);
  border:1px solid rgba(255,255,255,0.1); cursor:pointer; z-index:10;
  font-size:16px; display:flex; align-items:center; justify-content:center;
  transition:.2s; backdrop-filter:blur(6px);
}
.modal-close-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:var(--glow); }
#card-reveal-inner {
  padding:0 0 24px;
  display:flex; flex-direction:column; align-items:center;
  text-align:center; position:relative;
}
.modal-card-img-wrap {
  width:100%; position:relative; overflow:hidden;
  border-radius:36px 36px 0 0;
  margin-bottom:20px;
}
.modal-card-img {
  width:100%; aspect-ratio:3/4; object-fit:cover;
  display:block;
}
.modal-card-img-glow {
  position:absolute; inset:0;
  background:linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.85) 100%);
  pointer-events:none;
}
.modal-rank-row {
  display:flex; align-items:center; gap:8px;
  margin-bottom:6px;
}
.modal-rank-badge {
  font-size:11px; font-weight:900; text-transform:uppercase;
  letter-spacing:2.5px; padding:5px 14px;
  border-radius:999px; border-width:1px; border-style:solid;
}
.modal-new-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:linear-gradient(135deg,#ff5959,#c02020);
  color:#fff; font-size:10px; font-weight:900;
  padding:5px 14px; border-radius:999px;
  letter-spacing:1px; box-shadow:0 0 14px rgba(255,75,75,0.5);
  animation:newBadgePulse 1.6s ease-in-out infinite;
}
@keyframes newBadgePulse { 0%,100%{box-shadow:0 0 14px rgba(255,75,75,0.5)} 50%{box-shadow:0 0 28px rgba(255,75,75,0.85)} }
.modal-card-name {
  font-size:22px; font-weight:900; line-height:1.15;
  margin-bottom:4px; text-transform:uppercase; letter-spacing:1.5px;
  padding:0 20px;
}
.modal-card-verce {
  font-size:11px; font-weight:700; color:var(--text-sub);
  text-transform:uppercase; letter-spacing:1.5px;
  margin-bottom:20px;
}
.modal-rarity-bar {
  width:calc(100% - 40px); height:3px;
  border-radius:2px; margin:0 20px 20px;
  opacity:0.7;
}
.modal-stats-row { display:flex; gap:10px; width:calc(100% - 40px); }
.modal-stat-box {
  flex:1; padding:14px 8px; border-radius:20px;
  background:rgba(255,255,255,0.04);
  border-width:1px; border-style:solid;
  transition:.2s;
}
.modal-stat-icon { font-size:18px; margin-bottom:6px; }
.modal-stat-val { font-size:20px; font-weight:900; color:var(--text); margin-bottom:3px; }
.modal-stat-lbl { font-size:9px; font-weight:800; color:var(--text-sub); text-transform:uppercase; letter-spacing:1px; }
/* sparkle particles on new card */
@keyframes sparkle { 0%{transform:translate(0,0) scale(1);opacity:1} 100%{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0} }
.spark {
  position:absolute; width:6px; height:6px;
  border-radius:50%; pointer-events:none;
  animation:sparkle .8s ease-out forwards;
}

/* ═══════════════════════════════════════
   ARENA — PvP Battle System
═══════════════════════════════════════ */

/* LOBBY */
.arena-lobby-card {
  padding:36px 24px 24px;
  margin-bottom:20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,89,89,0.18) 0%, transparent 26%),
    linear-gradient(160deg, rgba(34,35,39,0.98) 0%, rgba(16,16,19,0.96) 58%, rgba(255,75,75,0.14) 100%);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:28px;
  box-shadow:0 24px 46px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter:blur(6px);
  position:relative;
}
.arena-lobby-card::before {
  content:'CURRENT RANK';
  position:absolute;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  color:var(--accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:0.18em;
  text-transform:uppercase;
  opacity:0.8;
}
.arena-lobby-card::after {
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:20px;
  background:linear-gradient(to top, rgba(255,75,75,0.08) 0%, transparent 100%);
  border-radius:0 0 28px 28px;
}
.arena-vs-banner {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  margin-bottom:24px; padding:24px 16px;
  background:linear-gradient(90deg, rgba(255,75,75,0.08) 0%, transparent 50%, rgba(255,75,75,0.08) 100%);
  border-radius:20px;
  border:1px solid var(--border);
}
.arena-vs-left, .arena-vs-right {
  display:flex; flex-direction:column; align-items:center; gap:10px; flex:1;
}
.arena-vs-mid {
  font-size:36px; font-weight:900; color:var(--accent);
  text-shadow:0 0 20px rgba(255,75,75,0.6); letter-spacing:4px;
  animation:vsPulse 2s ease-in-out infinite;
}
@keyframes vsPulse { 0%,100%{opacity:1} 50%{opacity:0.7} }
.arena-vs-avatar {
  width:72px; height:72px; border-radius:50%;
  background:linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
  display:flex; align-items:center; justify-content:center;
  font-size:32px; border:3px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.arena-vs-name {
  font-size:12px; font-weight:800; color:var(--text);
  text-transform:uppercase; letter-spacing:1.5px; max-width:100px; text-align:center;
}
.arena-team-preview {
  display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:32px 0 16px 0;
}
.arena-team-slot {
  background:linear-gradient(145deg, var(--bg-hover) 0%, var(--bg-card) 100%);
  border-radius:16px; padding:12px 8px; text-align:center;
  font-size:10px; font-weight:700; color:var(--text-sub);
  border:1px solid var(--border); min-height:80px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; transition:all .3s cubic-bezier(0.4,0,0.2,1);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.arena-team-slot:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,0.4); }
.arena-team-slot.filled {
  border-color:rgba(255,75,75,0.5); color:var(--text);
  background:linear-gradient(145deg, rgba(255,75,75,0.1) 0%, var(--bg-card) 100%);
}
.arena-slot-rank { font-size:24px; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.arena-slot-name {
  font-size:9px; text-transform:uppercase; letter-spacing:.5px;
  overflow:hidden; text-overflow:ellipsis; width:100%; white-space:nowrap;
}

#arena-lobby .action-row { margin-bottom:12px; }
#arena-lobby .action-pill {
  padding:16px 14px;
  min-height:54px;
  background:var(--bg-card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
#arena-lobby .action-pill:not(.accent-btn) {
  color:rgba(255,255,255,0.88);
}
#arena-lobby .accent-btn {
  background:var(--accent);
  box-shadow:var(--glow);
}
#arena-lobby + #arena-lb-wrap,
#arena-lb-wrap { margin-top:24px; }
#arena-lb-wrap .section-title,
#arena-lb-wrap .section-heading {
  margin-top:0;
}
.filter-pill {
  backdrop-filter:blur(10px);
}
.filter-pill.active {
  background:linear-gradient(135deg, rgba(255,75,75,.24), rgba(255,75,75,.07));
}

/* LOADING */
.arena-loading-box {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:20px; padding:80px 24px;
}
.arena-spinner {
  width:56px; height:56px; border:4px solid var(--bg-hover);
  border-top-color:var(--accent); border-radius:50%;
  animation:spin .8s linear infinite; box-shadow:0 0 24px rgba(255,75,75,0.4);
}
.arena-loading-title {
  font-size:20px; font-weight:900; text-transform:uppercase; letter-spacing:2.5px;
  color:var(--accent); text-shadow:0 0 16px rgba(255,75,75,0.3);
}
.arena-loading-sub {
  font-size:13px; color:var(--text-sub); font-weight:600; letter-spacing:0.5px;
}

/* BATTLE */
.battle-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 8px 16px; margin-bottom:8px;
  border-bottom:1px solid var(--border);
}
.battle-round {
  font-size:16px; font-weight:900; text-transform:uppercase; letter-spacing:2px;
  color:var(--accent); text-shadow:0 0 12px rgba(255,75,75,0.4);
  background:var(--accent-dim); padding:8px 16px; border-radius:12px;
}
.battle-fighters {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:20px; padding:20px 16px;
  background:linear-gradient(145deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border-radius:24px; border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,0.4);
}
.battle-side {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:8px;
}
.battle-avatar {
  width:60px; height:60px; border-radius:50%;
  background:linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; border:3px solid var(--border);
  box-shadow:0 6px 16px rgba(0,0,0,0.4);
}
.battle-name {
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px;
  color:var(--text); max-width:90px; text-align:center; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap;
}
.battle-vs-center {
  font-size:24px; font-weight:900; color:var(--accent);
  text-shadow:0 0 16px rgba(255,75,75,0.5); animation:vsPulse 2s ease-in-out infinite;
}
.battle-atk {
  font-size:13px; font-weight:800; color:var(--accent);
  background:var(--accent-dim); padding:4px 12px; border-radius:8px;
}

/* HP BARS */
.hp-bar-wrap { width:100%; max-width:120px; }
.hp-bar-bg {
  width:100%; height:10px; background:var(--bg-hover);
  border-radius:6px; overflow:hidden; box-shadow:inset 0 2px 4px rgba(0,0,0,0.3);
}
.hp-bar-fill {
  height:100%; border-radius:6px; transition:width .5s cubic-bezier(0.4,0,0.2,1);
  box-shadow:0 0 12px currentColor;
}
.hp-bar-fill.hp-me { background:linear-gradient(90deg,#4ade80,#22c55e); color:#22c55e; }
.hp-bar-fill.hp-opp { background:linear-gradient(90deg,#f87171,#ef4444); color:#ef4444; }
.hp-text {
  font-size:11px; font-weight:800; color:var(--text-sub);
  text-align:center; margin-top:6px; letter-spacing:0.5px;
}

/* BATTLE LOG */
.battle-log {
  background:linear-gradient(145deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border-radius:20px; padding:16px; min-height:140px; max-height:220px;
  overflow-y:auto; margin-bottom:20px; border:1px solid var(--border);
  font-size:12px; line-height:1.8; box-shadow:inset 0 2px 8px rgba(0,0,0,0.3);
}
.battle-log-entry {
  margin-bottom:6px; padding:6px 0; border-bottom:1px solid var(--border);
  animation:logFadeIn 0.3s ease;
}
@keyframes logFadeIn { from{opacity:0;transform:translateX(-10px)} to{opacity:1;transform:translateX(0)} }
.battle-log-entry:last-child { border-bottom:none; }
.battle-log-dmg { color:var(--accent); font-weight:800; }
.battle-log-heal { color:#4ade80; font-weight:800; }

/* BATTLE ACTIONS */
.battle-actions { display:flex; gap:12px; }
.battle-actions .action-btn-large { flex:1; }
.battle-attack {
  background:linear-gradient(135deg, var(--accent) 0%, #cc3a3a 100%)!important;
  color:#fff!important; box-shadow:0 8px 24px rgba(255,75,75,0.4)!important;
  border:none!important;
}
.battle-attack:hover { filter:brightness(1.1); }
.battle-skip {
  background:linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%)!important;
  color:var(--text)!important; border:1px solid var(--border);
}

/* RESULT */
.arena-result-box {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; padding:50px 24px; text-align:center;
}
.arena-result-icon {
  font-size:80px; line-height:1;
  filter:drop-shadow(0 0 24px rgba(255,75,75,0.6));
  animation:resultPop 1s cubic-bezier(0.4,0,0.2,1);
}
@keyframes resultPop { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }
.arena-result-title {
  font-size:28px; font-weight:900; text-transform:uppercase; letter-spacing:3px;
  background:linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.arena-result-stats {
  font-size:14px; color:var(--text-sub); line-height:2; font-weight:600;
  background:var(--bg-hover); padding:16px 24px; border-radius:16px;
  border:1px solid var(--border);
}

/* ARENA STATS SCREEN */
#arena-stats-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
#arena-stats-grid .stat-tile {
  padding:18px 12px; background:linear-gradient(145deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border:1px solid var(--border); box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

/* DAMAGE FLASH */
@keyframes dmgFlash { 0%{background:rgba(255,75,75,0.4)} 100%{background:transparent} }
.dmg-flash { animation:dmgFlash .4s ease; }

/* ACTION BUTTON LARGE */
.action-btn-large {
  width:100%; padding:20px 28px; background:linear-gradient(145deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border-radius:var(--radius-pill); color:var(--text); font-family:inherit;
  font-size:15px; font-weight:900; cursor:pointer; transition:all .3s cubic-bezier(0.4,0,0.2,1);
  text-align:center; box-shadow:0 6px 20px rgba(0,0,0,0.4);
  border:1px solid var(--border); text-transform:uppercase; letter-spacing:1.5px;
}
.action-btn-large:active { transform:scale(0.94); box-shadow:0 2px 8px rgba(0,0,0,0.3); }

/* ── MOBILE ADAPTIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-heading { margin-top:0; margin-bottom:8px; }
  .arena-lobby-card { padding:32px 16px 20px; margin-bottom:16px; }
  .arena-stat-row { min-height:96px; }
  .arena-stat-val { font-size:34px; }
  #ar-league { font-size:30px; }
  #arena-lobby .action-row { gap:10px; margin-bottom:10px; }
  #arena-lobby .action-pill { min-height:50px; padding:12px 10px; font-size:13px; }
  #arena-lb-wrap { margin-top:24px; }
  .arena-vs-banner {
    gap:12px; padding:16px 12px; margin-bottom:16px;
  }
  .arena-vs-avatar {
    width:56px; height:56px; font-size:24px;
  }
  .arena-vs-mid {
    font-size:28px; letter-spacing:2px;
  }
  .arena-team-preview {
    gap:8px; margin:16px 0;
  }
  .arena-team-slot {
    min-height:70px; padding:8px 4px;
  }
  .arena-slot-rank { font-size:18px; }
  .arena-slot-name { font-size:8px; }
  .battle-fighters {
    gap:12px; padding:16px 12px;
  }
  .battle-avatar {
    width:52px; height:52px; font-size:22px;
  }
  .battle-vs-center { font-size:20px; }
  .hp-bar-wrap { max-width:100px; }
  .battle-log {
    padding:12px; min-height:120px; font-size:11px;
  }
  .action-btn-large {
    padding:16px 20px; font-size:14px;
  }
}

/* ══════════════════════════════════════════════════════════════
   GAMES — Premium design system
══════════════════════════════════════════════════════════════ */
#tab-games.active { gap:14px; }

/* ── Hero (minimal one-line) ── */
.games-hero {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:18px; padding:14px 16px;
}
.games-hero-row {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.games-hero-title {
  font-size:15px; font-weight:900; letter-spacing:.04em;
}
.games-hero-balances { display:flex; gap:10px; }
.hero-bal {
  display:inline-flex; align-items:center; gap:5px;
  font-size:14px; font-weight:800; color:var(--text);
}
.hero-bal-ico { font-size:13px; opacity:.85; }

/* ── Game picker (clean, no themes) ── */
.games-picker {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.game-pick-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:16px; padding:14px 10px 12px; text-align:center;
  cursor:pointer; transition:border-color .15s, transform .15s;
  user-select:none; display:flex; flex-direction:column;
  align-items:center; justify-content:center; min-height:96px;
  -webkit-tap-highlight-color:transparent;
}
.game-pick-card:active { transform:scale(.96); }
.game-pick-card.game-pick-active {
  border-color:var(--accent);
}
.game-pick-icon {
  font-size:26px; line-height:1; margin-bottom:8px;
  pointer-events:none;
}
.game-pick-name, .game-pick-status { pointer-events:none; }
.game-pick-name {
  font-weight:800; font-size:12px; color:var(--text);
  letter-spacing:.06em;
}
.game-pick-status {
  font-size:9px; color:var(--text-sub); font-weight:700;
  margin-top:3px; letter-spacing:.08em;
}
.game-pick-card.game-pick-active .game-pick-status {
  color:var(--accent);
}

/* Theme classes — kept minimal, only used by panels not picker */
.theme-dice-header,
.theme-slots-header,
.theme-bj-header,
.theme-guess-header { color:var(--text-sub); }

/* ── Panel header ── */
.game-panel-header {
  font-size:12px; font-weight:800; letter-spacing:.12em;
  color:var(--text-sub); padding:2px 0 6px;
  border-bottom:1px solid var(--border);
}

/* ── Section label ── */
.section-label {
  font-size:10px; font-weight:800; letter-spacing:.1em;
  color:var(--text-sub); margin-bottom:12px;
}

/* ── Bet input row ── */
.bet-input-row {
  display:flex; align-items:center; gap:10px;
  background:var(--bg-hover); border-radius:16px;
  padding:4px 18px; margin-bottom:12px;
}
.bet-input {
  flex:1; background:transparent; color:var(--text);
  font-size:22px; font-weight:900; padding:11px 0;
  font-family:inherit; border:none; outline:none;
}
.bet-input::placeholder { color:rgba(255,255,255,.2); }

/* ── Quick bet buttons ── */
.quick-bets {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
}
.qb-btn {
  background:var(--bg-hover); border:1.5px solid rgba(255,255,255,.07);
  color:var(--text); border-radius:12px; padding:10px 0;
  font-size:13px; font-weight:700; cursor:pointer;
  transition:background .15s, border-color .15s, transform .1s;
}
.qb-btn:active { transform:scale(.94); }
.qb-btn:hover  { background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.15); }
.qb-max {
  color:var(--accent); border-color:rgba(255,75,75,.25);
  background:rgba(255,75,75,.06);
}

/* ── Main action button ── */
.game-btn {
  width:100%; color:#fff; border:none; border-radius:20px;
  padding:18px; font-weight:900; font-size:15px;
  letter-spacing:2px; text-transform:uppercase;
  cursor:pointer; transition:opacity .2s, transform .15s;
}
.game-btn:active { transform:scale(.97); opacity:.9; }
.game-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }

/* ── Cooldown card ── */
.cd-card {
  background:var(--bg-card); border-radius:var(--radius-card);
  padding:16px 18px; border:1px solid var(--border); text-align:center;
}
.cd-label {
  font-size:10px; font-weight:800; color:var(--text-sub);
  letter-spacing:.1em; margin-bottom:8px;
}
.cd-time {
  font-size:30px; font-weight:900; font-variant-numeric:tabular-nums;
  color:var(--accent); letter-spacing:.04em;
}
.cd-bar-wrap {
  margin-top:10px; height:5px; background:var(--bg-hover);
  border-radius:99px; overflow:hidden;
}
.cd-bar {
  height:100%; background:var(--accent); border-radius:99px;
  transition:width 1s linear; width:0%;
}

/* ══════════════════════════════════════════════════════════════
   🎰 SLOT MACHINE
══════════════════════════════════════════════════════════════ */
.slot-machine {
  position:relative; padding:18px 14px 16px;
  border-radius:24px;
  background:
    linear-gradient(180deg, #2a1a05 0%, #1a0f02 100%);
  border:1px solid rgba(245,158,11,0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,200,80,0.15),
    inset 0 -2px 8px rgba(0,0,0,0.4),
    0 8px 24px rgba(245,158,11,0.12);
  overflow:hidden;
}
.slot-machine::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,
    transparent, #fbbf24 20%, #f59e0b 50%, #fbbf24 80%, transparent);
}
.slot-machine-lights {
  display:flex; justify-content:space-between; gap:4px;
  margin-bottom:14px; padding:0 4px;
}
.slot-machine-lights span {
  width:6px; height:6px; border-radius:50%;
  background:#3a2308; box-shadow:inset 0 0 2px rgba(0,0,0,0.6);
  transition:background .3s, box-shadow .3s;
}
.slot-machine.lit .slot-machine-lights span {
  background:#fbbf24; box-shadow:0 0 8px #fbbf24, 0 0 14px rgba(251,191,36,0.6);
  animation:light-blink .4s infinite alternate;
}
.slot-machine.lit .slot-machine-lights span:nth-child(2n) { animation-delay:.2s; }
.slot-machine.lit .slot-machine-lights span:nth-child(3n) { animation-delay:.1s; }
@keyframes light-blink {
  from { opacity:.4; }
  to   { opacity:1; }
}
.slot-machine-screen {
  position:relative;
  background:linear-gradient(180deg, #050507 0%, #0e0e14 50%, #050507 100%);
  border-radius:18px; padding:18px 10px;
  border:2px solid rgba(0,0,0,0.6);
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(245,158,11,0.15);
}
.slot-machine-line {
  position:absolute; top:50%; left:8px; right:8px; height:2px;
  background:linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
  transform:translateY(-1px); pointer-events:none;
}
.slot-reels {
  display:flex; justify-content:center; gap:8px; position:relative; z-index:1;
}
.slot-reel {
  width:80px; height:90px;
  background:linear-gradient(180deg, #fafafa 0%, #e5e5e5 50%, #fafafa 100%);
  border:1px solid rgba(0,0,0,0.4); border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:42px; line-height:1; user-select:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.4);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  overflow:hidden;
}
.slot-reel.spinning {
  filter:blur(2px);
  animation:reel-spin .08s linear infinite;
}
@keyframes reel-spin {
  0%   { transform:translateY(-12px); }
  100% { transform:translateY(12px);  }
}
.slot-reel.winner {
  background:linear-gradient(180deg, #fff8d6 0%, #ffd700 50%, #fff8d6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 0 24px rgba(255,215,0,0.7),
    0 0 48px rgba(255,215,0,0.3);
  animation:winner-pulse .8s ease-in-out;
}
@keyframes winner-pulse {
  0%, 100% { transform:scale(1.05); }
  50%      { transform:scale(1.18); }
}
.slot-machine-label {
  text-align:center; margin-top:14px; font-size:13px;
  font-weight:800; color:#fbbf24; letter-spacing:.05em;
  text-shadow:0 0 10px rgba(251,191,36,0.4); min-height:20px;
}

/* ══════════════════════════════════════════════════════════════
   🃏 BLACKJACK FELT TABLE
══════════════════════════════════════════════════════════════ */
.bj-felt {
  position:relative; padding:18px 16px;
  border-radius:24px;
  background:
    radial-gradient(ellipse at center, #0a5e3a 0%, #053826 70%, #032118 100%);
  border:2px solid rgba(139,92,246,0.3);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 28px rgba(139,92,246,0.15);
  overflow:hidden;
}
.bj-felt::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(139,92,246,0.12), transparent 60%);
  pointer-events:none;
}
.bj-section { position:relative; z-index:1; }
.bj-section-label {
  font-size:11px; font-weight:800; letter-spacing:.14em;
  color:rgba(255,255,255,0.65); margin-bottom:10px;
  display:flex; align-items:center; gap:8px;
}
.bj-dot {
  width:8px; height:8px; border-radius:50%;
  background:#ef4444; box-shadow:0 0 8px #ef4444;
  animation:dot-pulse 1.4s ease-in-out infinite;
}
.bj-dot-player {
  background:#22c55e; box-shadow:0 0 8px #22c55e;
}
@keyframes dot-pulse {
  0%, 100% { opacity:1;   transform:scale(1);    }
  50%      { opacity:.45; transform:scale(1.25); }
}
.bj-cards-row {
  display:flex; gap:8px; flex-wrap:wrap; min-height:88px; align-items:center;
}
.bj-divider {
  height:1px; margin:14px 0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  position:relative; z-index:1;
}
.bj-score {
  font-size:16px; font-weight:900; color:#ffd700;
  text-shadow:0 0 8px rgba(255,215,0,.4);
}

.bj-card {
  width:58px; height:84px; border-radius:10px; padding:5px 7px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:18px; font-weight:900; line-height:1;
  background:linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  box-shadow:0 4px 12px rgba(0,0,0,.55), 0 1px 0 rgba(0,0,0,.3);
  border:1px solid rgba(0,0,0,0.1);
  animation:card-deal .35s cubic-bezier(.34,1.56,.64,1);
  transform-origin:50% 50%;
}
.bj-card-back {
  width:58px; height:84px; border-radius:10px;
  background:
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #4f46e5 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 4px, transparent 4px 8px);
  background-blend-mode:overlay;
  display:flex; align-items:center; justify-content:center;
  font-size:28px;
  box-shadow:0 4px 12px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,0.15);
  animation:card-deal .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes card-deal {
  0%   { opacity:0; transform:translate(-30px,-25px) rotate(-12deg) scale(.7); }
  60%  { opacity:1; transform:translate(0,0)         rotate(3deg)   scale(1.04); }
  100% { opacity:1; transform:translate(0,0)         rotate(0)      scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   🎯 GUESS STAGE
══════════════════════════════════════════════════════════════ */
.guess-stage {
  position:relative; overflow:hidden; text-align:center;
  padding:32px 16px 26px; border-radius:24px;
  background:linear-gradient(180deg, #0a1929 0%, #061018 100%);
  border:1px solid rgba(14,165,233,0.25);
  box-shadow:0 8px 28px rgba(14,165,233,0.12);
}
.guess-stage-glow {
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(14,165,233,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(124,58,237,0.15) 0%, transparent 50%);
  animation:guess-glow 4s ease-in-out infinite alternate;
}
@keyframes guess-glow {
  from { opacity:.6; transform:scale(.95); }
  to   { opacity:1;  transform:scale(1.1); }
}
.guess-dice {
  position:relative; z-index:1;
  font-size:96px; line-height:1; display:inline-block;
  filter:drop-shadow(0 8px 24px rgba(14,165,233,.4));
}
.guess-stage-text {
  position:relative; z-index:1;
  font-size:13px; color:rgba(255,255,255,0.65); margin-top:18px;
  letter-spacing:.02em;
}

/* Guess number buttons */
.guess-num-btn {
  background:#0e1722; border:2px solid rgba(255,255,255,.06);
  color:var(--text); border-radius:14px; padding:14px 4px;
  font-size:12px; font-weight:800; cursor:pointer;
  transition:all .2s cubic-bezier(.34,1.56,.64,1);
  display:flex; flex-direction:column; align-items:center; gap:3px;
  line-height:1; -webkit-tap-highlight-color:transparent;
}
.guess-num-btn:active { transform:scale(.88); }
.guess-num-btn.active {
  background:linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  border-color:#38bdf8; color:#fff;
  box-shadow:0 0 18px rgba(14,165,233,.55), inset 0 1px 0 rgba(255,255,255,.2);
  transform:translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   🎲 DICE / shared
══════════════════════════════════════════════════════════════ */
@keyframes dice-spin {
  0%   { transform:rotate(0deg)   scale(1);   }
  25%  { transform:rotate(90deg)  scale(.75); }
  50%  { transform:rotate(180deg) scale(1.15); }
  75%  { transform:rotate(270deg) scale(.75); }
  100% { transform:rotate(360deg) scale(1);   }
}
.dice-rolling { animation:dice-spin .15s linear infinite; }

/* ══════════════════════════════════════════════════════════════
   THEMED ACTION BUTTONS
══════════════════════════════════════════════════════════════ */
.game-btn-dice {
  background:linear-gradient(135deg, #ff4b4b 0%, #ff6020 100%);
  box-shadow:0 6px 24px rgba(255,75,75,.4),
             inset 0 1px 0 rgba(255,255,255,.25);
}
.game-btn-slots {
  background:linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
  box-shadow:0 6px 24px rgba(245,158,11,.4),
             inset 0 1px 0 rgba(255,255,255,.25);
}
.game-btn-bj {
  background:linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #7c3aed 100%);
  box-shadow:0 6px 24px rgba(139,92,246,.4),
             inset 0 1px 0 rgba(255,255,255,.25);
}
.game-btn-guess {
  background:linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7c3aed 100%);
  box-shadow:0 6px 24px rgba(14,165,233,.4),
             inset 0 1px 0 rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════════════════════════
   RESULT CARD
══════════════════════════════════════════════════════════════ */
.game-result-card {
  background:var(--bg-card); border-radius:var(--radius-card);
  padding:20px; border:1px solid var(--border); text-align:center;
  animation:result-pop .4s cubic-bezier(.34,1.56,.64,1);
  position:relative; overflow:hidden;
}
.game-result-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, transparent, currentColor, transparent);
  opacity:.3;
}
@keyframes result-pop {
  from { opacity:0; transform:scale(.85) translateY(12px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   CONFETTI
══════════════════════════════════════════════════════════════ */
#confetti-root {
  position:fixed; inset:0; pointer-events:none; z-index:9999;
  overflow:hidden;
}
.confetti-piece {
  position:absolute; top:-20px; width:9px; height:14px;
  border-radius:2px; opacity:0;
  animation:confetti-fall 2.4s cubic-bezier(.4,.6,.6,1) forwards;
}
@keyframes confetti-fall {
  0%   { opacity:0; transform:translateY(0) rotate(0); }
  10%  { opacity:1; }
  100% { opacity:0; transform:translateY(110vh) rotate(720deg); }
}

/* ══════════════════════════════════════════════════════════════
   CLAN SYSTEM OVERHAUL
══════════════════════════════════════════════════════════════ */

/* Sub-navigation Tabs */
.clan-subnav {
  display: flex; overflow-x: auto; gap: 8px; margin-bottom: 16px;
  padding-bottom: 4px; scrollbar-width: none;
}
.clan-subnav::-webkit-scrollbar { display: none; }
.clan-tab-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sub); padding: 10px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: all 0.2s ease; cursor: pointer;
}
.clan-tab-btn.active {
  background: var(--accent); color: #000; border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255,213,79,0.3);
}

/* Panels */
.clan-panel { display: none; animation: fadeIn 0.3s ease; }
.clan-panel.active { display: block; }

/* Clan Hero Card */
.clan-hero-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px; overflow: hidden; margin-bottom: 16px;
}
.clan-hero-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, rgba(255,213,79,0.15) 0%, transparent 100%);
  pointer-events: none;
}
.clan-hero-body { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.clan-hero-left { position: relative; }
.clan-hero-emblem {
  width: 64px; height: 64px; border-radius: 16px; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  border: 2px solid var(--border);
}
.clan-hero-level-ring {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000; font-size: 10px; font-weight: 900;
  padding: 2px 8px; border-radius: 10px; border: 2px solid var(--bg-main);
}
.clan-hero-name { font-size: 20px; font-weight: 900; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.clan-hero-sub { font-size: 12px; color: var(--text-sub); font-weight: 600; margin-bottom: 8px; }
.clan-hero-xp-wrap { margin-top: 20px; position: relative; z-index: 1; }
.clan-hero-xp-label { font-size: 10px; color: var(--text-sub); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.clan-hero-xp-bar {
  height: 6px; background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden;
}
.clan-hero-xp-fill {
  height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
  transition: width 0.5s ease;
}
.clan-hero-xp-text {
  position: absolute; right: 0; top: 0; font-size: 10px; font-weight: 800; color: var(--text);
}

/* KPI Row */
.clan-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.clan-kpi {
  background: var(--bg-card); border: 1px solid var(--border); padding: 12px 4px;
  border-radius: 16px; text-align: center;
}
.clan-kpi-val { font-size: 14px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.clan-kpi-lbl { font-size: 9px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; }
.accent-text { color: var(--accent); text-shadow: 0 0 8px rgba(255,213,79,0.3); }

/* Chat */
.clan-chat-wrap {
  display: flex; flex-direction: column; height: 60vh; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
}
.clan-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.clan-chat-input-row {
  display: flex; gap: 8px; padding: 12px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border);
}
.clan-chat-input {
  flex: 1; background: #000; border: 1px solid var(--border); border-radius: 20px;
  padding: 0 16px; color: var(--text); font-size: 14px; outline: none;
}
.clan-chat-send {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  color: #000; border: none; font-size: 18px; display: flex; align-items: center; justify-content: center;
}

/* Treasury */
.clan-treasury-hero {
  background: var(--bg-card); border: 1px solid var(--border); padding: 24px;
  border-radius: var(--radius-card); text-align: center; margin-bottom: 12px;
}
.treasury-icon { font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 4px 12px rgba(255,213,79,0.4)); }
.treasury-balance { font-size: 32px; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.treasury-label { font-size: 12px; color: var(--text-sub); font-weight: 700; text-transform: uppercase; }

/* Activity Log */
.clan-activity {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 12px; max-height: 200px; overflow-y: auto;
}
.clan-log-item {
  font-size: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-sub);
}
.clan-log-item:last-child { border-bottom: none; }

/* Wars */
.clan-war-hero {
  background: linear-gradient(135deg, #1a0f0f 0%, #2a1111 100%);
  border: 1px solid #ff4b4b; padding: 20px; border-radius: var(--radius-card);
  text-align: center; margin-bottom: 12px;
}
.war-hero-title { font-size: 20px; font-weight: 900; color: #ff4b4b; margin-bottom: 4px; }
.war-season-info { font-size: 11px; color: rgba(255,75,75,0.7); font-weight: 700; text-transform: uppercase; }
.war-active-card { border-color: #ff4b4b; background: rgba(255,75,75,0.05); }
.war-active-title { font-size: 12px; font-weight: 900; color: #ff4b4b; margin-bottom: 16px; text-align: center; letter-spacing: 1px; }
.war-vs-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.war-side { text-align: center; width: 40%; }
.war-vs-mid { font-size: 24px; font-weight: 900; color: #ff4b4b; opacity: 0.5; font-style: italic; }
.war-emblem { font-size: 32px; margin-bottom: 8px; }
.war-name { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.war-score { font-size: 20px; font-weight: 900; color: #fff; }
.war-progress-wrap { margin-bottom: 12px; }
.war-progress-bar { height: 8px; background: rgba(0,0,0,0.5); border-radius: 4px; overflow: hidden; display: flex; }
.war-progress-fill { background: #ff4b4b; box-shadow: 0 0 10px #ff4b4b; }
.war-time-left { font-size: 11px; text-align: center; color: var(--text-sub); font-weight: 700; }

/* Trade */
.clan-trade-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.trade-panel { display: none; }
.trade-panel.active { display: block; }
.clan-trade-list { display: flex; flex-direction: column; gap: 12px; }

/* Stats Bento */
.stats-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.stat-label { font-size: 10px; color: var(--text-sub); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-size: 20px; font-weight: 900; color: var(--text); }
.accent-tile { background: rgba(255,213,79,0.05); border-color: rgba(255,213,79,0.2); }

/* Chat Messages Formatting */
.clan-chat-msg { display: flex; flex-direction: column; margin-bottom: 4px; animation: fadeIn 0.2s ease; }
.msg-author { font-size: 10px; font-weight: 800; color: var(--text-sub); margin-bottom: 2px; margin-left: 12px; }
.msg-bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 18px;
    position: relative; display: inline-flex; flex-direction: column;
}
.msg-text { font-size: 13px; color: #fff; word-break: break-word; line-height: 1.4; }
.msg-time { font-size: 9px; color: rgba(255,255,255,0.5); text-align: right; margin-top: 4px; }

.msg-me { align-items: flex-end; }
.msg-me .msg-bubble {
    background: linear-gradient(135deg, var(--accent) 0%, #d4af37 100%);
    border-bottom-right-radius: 4px; color: #000;
}
.msg-me .msg-text { color: #000; font-weight: 600; }
.msg-me .msg-time { color: rgba(0,0,0,0.6); font-weight: 700; }

.msg-other { align-items: flex-start; }
.msg-other .msg-bubble {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   VIP CASINO THEME
══════════════════════════════════════════════════════════════ */
:root {
  --gold:        #C9A84C;
  --gold-light:  #F5D78A;
  --gold-dark:   #8A6820;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.35);
  --felt:        #0B2D1A;
  --felt-mid:    #0D3820;
  --felt-light:  #114828;
}

/* ── Casino Lobby Header ──────────────────────────────── */
.casino-lobby-header {
  padding: 20px 0 16px;
  text-align: center;
  position: relative;
}
.casino-lobby-title {
  font-size: 15px; font-weight: 900; letter-spacing: .22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.clh-diamond {
  font-size: 9px; opacity: .7;
  -webkit-text-fill-color: var(--gold);
}
.casino-bal-row {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--gold-border);
  border-radius: 20px; padding: 0 20px;
  backdrop-filter: blur(12px);
  width: fit-content; margin: 0 auto;
  box-shadow: 0 0 24px rgba(201,168,76,0.08), inset 0 1px 0 rgba(201,168,76,0.12);
}
.casino-bal-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
}
.cbc-icon {
  font-size: 14px; color: var(--gold); line-height: 1;
}
.cbc-val {
  font-size: 18px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff; letter-spacing: -.3px;
}
.cbc-lbl {
  font-size: 9px; font-weight: 800; color: var(--gold);
  letter-spacing: .12em; text-transform: uppercase; opacity: .7;
}
.casino-bal-sep {
  width: 1px; height: 28px;
  background: var(--gold-border);
}

/* ── VIP Game Picker Grid ─────────────────────────────── */
.vip-games-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 4px;
}
.vip-game-card {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 18px 12px 14px;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(145deg, rgba(20,20,24,0.98) 0%, rgba(14,14,18,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1),
              border-color .18s, box-shadow .18s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; min-height: 112px; justify-content: center;
}
.vip-game-card:active { transform: scale(.94); }
.vip-game-card.game-pick-active {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 1px var(--gold-border),
              0 8px 28px rgba(201,168,76,0.18),
              inset 0 0 40px rgba(201,168,76,0.04);
}
.vgc-glow {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.14) 0%, transparent 65%);
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.vip-game-card.game-pick-active .vgc-glow { opacity: 1; }
.vgc-art {
  color: rgba(255,255,255,0.35);
  transition: color .18s;
  line-height: 1;
}
.vip-game-card.game-pick-active .vgc-art { color: var(--gold); }
.vgc-name {
  font-size: 12px; font-weight: 900; letter-spacing: .1em;
  color: var(--text); text-transform: uppercase;
}
.vgc-sub {
  font-size: 10px; font-weight: 700; color: var(--text-sub);
  letter-spacing: .06em;
}
.vip-game-card.game-pick-active .vgc-sub { color: var(--gold); }
.vgc-line {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 2px; width: 0%; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width .25s ease;
}
.vip-game-card.game-pick-active .vgc-line { width: 60%; }

/* Per-card accent colors (inactive) */
.vgc-dice  { --card-accent: rgba(251,191,36,0.08); }
.vgc-slots { --card-accent: rgba(251,191,36,0.08); }
.vgc-bj    { --card-accent: rgba(74,222,128,0.06); }
.vgc-guess { --card-accent: rgba(147,197,253,0.06); }

/* ── Casino Panel Header ──────────────────────────────── */
.casino-panel-header {
  font-size: 11px; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  padding: 6px 2px 10px;
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}
.cph-suit {
  font-size: 14px; opacity: .8;
}

/* ── Casino Card ──────────────────────────────────────── */
.casino-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
.casino-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

/* ── Casino Input Row ─────────────────────────────────── */
.casino-input-row {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--gold-border) !important;
  border-radius: 14px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 12px rgba(201,168,76,0.05);
}

/* ── Casino Quick Bets ────────────────────────────────── */
.casino-quick-bets .cqb {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.2) !important;
  color: var(--gold-light);
  font-weight: 800;
  transition: background .15s, border-color .15s, transform .1s;
}
.casino-quick-bets .cqb:hover {
  background: rgba(201,168,76,0.14);
  border-color: var(--gold-border) !important;
}
.casino-quick-bets .qb-max {
  background: rgba(201,168,76,0.14) !important;
  border-color: rgba(201,168,76,0.4) !important;
  color: var(--gold) !important;
}

/* ── Casino Cooldown Card ─────────────────────────────── */
.casino-cd-card {
  background: rgba(0,0,0,0.5);
  border-color: var(--gold-border) !important;
}
.casino-cd-card .cd-label {
  color: var(--gold) !important; opacity: .7;
}

/* ── Casino Main Action Buttons ───────────────────────── */
.casino-main-btn {
  width: 100%; border: none; border-radius: 18px;
  padding: 19px; font-weight: 900; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .15s, filter .15s, opacity .2s;
  font-family: inherit;
}
.casino-main-btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.casino-main-btn:hover::before { left: 160%; }
.casino-main-btn:active { transform: scale(.97); filter: brightness(1.1); }
.casino-main-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.casino-btn-dice {
  background: linear-gradient(135deg, #92490a 0%, #b85c0e 50%, #7a3b08 100%);
  color: #fde8c8;
  box-shadow: 0 6px 24px rgba(184,92,14,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.casino-btn-slots {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #1a0f00;
  box-shadow: 0 6px 24px rgba(201,168,76,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.casino-btn-bj {
  background: linear-gradient(135deg, #0f4a2a 0%, #186438 50%, #0d3d22 100%);
  color: var(--gold-light);
  box-shadow: 0 6px 24px rgba(15,74,42,0.5), inset 0 1px 0 rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.25);
}
.casino-btn-guess {
  background: linear-gradient(135deg, #1a1a6e 0%, #2828a8 50%, #141460 100%);
  color: #c7d2fe;
  box-shadow: 0 6px 24px rgba(40,40,168,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════════════════════════════
   BLACKJACK CASINO TABLE
══════════════════════════════════════════════════════════════ */

/* ── Preview Felt (Start Panel) ───────────────────────── */
.bj-preview-felt {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, var(--felt-light) 0%, var(--felt-mid) 50%, var(--felt) 100%);
  border-radius: 18px 18px 0 0;
  padding: 28px 20px 24px;
  text-align: center;
  border-bottom: 2px solid rgba(201,168,76,0.3);
}
.bj-preview-felt::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 8px,
    rgba(0,0,0,0.04) 8px, rgba(0,0,0,0.04) 9px
  );
  pointer-events: none;
}
.bj-preview-arc {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 240%; height: 120px;
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  pointer-events: none;
}
.bj-preview-logo { position: relative; z-index: 1; }
.bj-preview-suits {
  font-size: 18px; letter-spacing: 8px; color: rgba(201,168,76,0.6);
  margin-bottom: 8px;
}
.bj-preview-title {
  font-size: 24px; font-weight: 900; letter-spacing: .3em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}
.bj-preview-sub {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  color: rgba(201,168,76,0.55); text-transform: uppercase; margin-top: 4px;
}
.bj-rules-chips-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-top: 16px;
  position: relative; z-index: 1;
}
.bj-rule-chip {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.bj-chip-gold {
  background: rgba(201,168,76,0.18) !important;
  border-color: rgba(201,168,76,0.45) !important;
  color: var(--gold) !important;
}

/* ── Chip Betting Panel ───────────────────────────────── */
.bj-chip-betting {
  padding: 20px 16px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.bj-chip-title {
  font-size: 10px; font-weight: 800; letter-spacing: .16em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 14px; text-align: center;
}
.casino-chips-row {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.casino-chip-btn {
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 10px; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s;
  border: 3px solid transparent;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.casino-chip-btn::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,0.25);
  pointer-events: none;
}
.casino-chip-btn:active { transform: scale(.9); }
.casino-chip-btn:hover  { transform: translateY(-2px) scale(1.06); }

.chip-v25  { background: radial-gradient(circle, #4a4a4a 0%, #2a2a2a 100%); color: #ddd; border-color: #666; }
.chip-v100 { background: radial-gradient(circle, #2563eb 0%, #1d4ed8 100%); color: #bfdbfe; border-color: #3b82f6; }
.chip-v500 { background: radial-gradient(circle, #16a34a 0%, #15803d 100%); color: #bbf7d0; border-color: #22c55e; }
.chip-v1k  { background: radial-gradient(circle, #c9a84c 0%, #8a6820 100%); color: #1a0f00; border-color: var(--gold-light); }
.chip-v5k  { background: radial-gradient(circle, #7c3aed 0%, #6d28d9 100%); color: #ede9fe; border-color: #a78bfa; }
.chip-vmax { background: radial-gradient(circle, #dc2626 0%, #b91c1c 100%); color: #fee2e2; border-color: #f87171; }

.bj-manual-bet {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  overflow: hidden;
}

/* ── Active Casino Felt Table ─────────────────────────── */
.bj-casino-table {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, var(--felt-light) 0%, var(--felt-mid) 40%, var(--felt) 100%);
  padding: 20px 16px 16px;
  min-height: 240px;
}
.bj-casino-table::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(0,0,0,0.035) 10px, rgba(0,0,0,0.035) 11px
  );
  pointer-events: none;
}
.bj-table-arc-outer {
  position: absolute; left: 50%; bottom: -80px;
  transform: translateX(-50%);
  width: 200%; height: 200px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  pointer-events: none;
}
.bj-table-arc-inner {
  position: absolute; left: 50%; bottom: -100px;
  transform: translateX(-50%);
  width: 160%; height: 160px;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* Zones */
.bj-dealer-zone {
  position: relative; z-index: 1; margin-bottom: 12px;
}
.bj-player-zone {
  position: relative; z-index: 1;
}
.bj-zone-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.75);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 10px;
}
.bj-zone-tag-player { color: rgba(74,222,128,0.8); }
.bj-zone-pip { font-size: 12px; }
.bj-zone-header-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}
.bj-score-pill {
  font-size: 14px; font-weight: 900;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 20px; padding: 4px 14px;
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}
.bj-table-rule {
  position: relative; text-align: center;
  margin: 14px 0;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.bj-rule-text {
  position: absolute; top: -9px; left: 50%;
  transform: translateX(-50%);
  background: var(--felt-mid);
  padding: 0 10px;
  font-size: 8px; font-weight: 800; letter-spacing: .18em;
  color: rgba(201,168,76,0.5); text-transform: uppercase;
  white-space: nowrap;
}

/* Cards row */
.bj-cards-row {
  display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px;
  align-items: flex-start;
}
.bj-card {
  width: 44px; height: 64px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.2);
  animation: card-deal .22s cubic-bezier(.34,1.56,.64,1) both;
  flex-shrink: 0;
}
@keyframes card-deal {
  from { transform: translateY(-18px) scale(0.8) rotate(-8deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.bj-card-back {
  width: 44px; height: 64px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  background: linear-gradient(135deg, #1a3d6b 0%, #0f2447 100%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  animation: card-deal .22s cubic-bezier(.34,1.56,.64,1) both;
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.bj-card-back::before {
  content: ''; position: absolute; inset: 4px;
  background: repeating-linear-gradient(
    45deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 2px,
    transparent 2px, transparent 6px
  );
  border-radius: 3px;
}
.bj-card-back::after {
  content: '◆'; position: absolute;
  font-size: 14px; color: rgba(255,255,255,0.15);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}

/* ── Blackjack Action Bar ─────────────────────────────── */
.bj-action-bar {
  display: flex; gap: 0;
  background: #0a0a0c;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.bj-act-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 14px 6px;
  border: none; background: transparent;
  cursor: pointer; font-family: inherit;
  position: relative; overflow: hidden;
  transition: background .15s;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.bj-act-btn:last-child { border-right: none; }
.bj-act-btn:active { background: rgba(255,255,255,0.06); }
.bja-icon {
  font-size: 17px; font-weight: 900; line-height: 1;
}
.bja-label {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase;
}

.bj-act-hit {
  background: rgba(34,197,94,0.08);
  border-right-color: rgba(34,197,94,0.15) !important;
}
.bj-act-hit .bja-icon,
.bj-act-hit .bja-label { color: #4ade80; }
.bj-act-hit:active { background: rgba(34,197,94,0.18); }

.bj-act-stand {
  background: rgba(239,68,68,0.08);
  border-right-color: rgba(239,68,68,0.15) !important;
}
.bj-act-stand .bja-icon,
.bj-act-stand .bja-label { color: #f87171; }
.bj-act-stand:active { background: rgba(239,68,68,0.18); }

.bj-act-double {
  background: rgba(201,168,76,0.07);
}
.bj-act-double .bja-icon,
.bj-act-double .bja-label { color: var(--gold); }
.bj-act-double:active { background: rgba(201,168,76,0.15); }

.bj-act-split {
  background: rgba(147,197,253,0.06);
}
.bj-act-split .bja-icon,
.bj-act-split .bja-label { color: #93c5fd; }

.bj-act-surr {
  background: rgba(156,163,175,0.05);
}
.bj-act-surr .bja-icon,
.bj-act-surr .bja-label { color: rgba(255,255,255,0.4); }

.bj-act-inactive .bja-icon,
.bj-act-inactive .bja-label {
  opacity: .38;
}

/* Active hit/stand on disabled state */
.bj-act-btn:disabled {
  opacity: .35; cursor: not-allowed;
}

/* ── Guess Casino Style ───────────────────────────────── */
.casino-guess-stage {
  background: linear-gradient(135deg, rgba(20,20,24,0.98) 0%, rgba(14,14,18,0.96) 100%);
  border: 1px solid var(--gold-border);
  box-shadow: inset 0 0 40px rgba(201,168,76,0.04), 0 0 24px rgba(201,168,76,0.06);
}
.casino-guess-btn {
  background: rgba(201,168,76,0.07) !important;
  border: 1.5px solid rgba(201,168,76,0.2) !important;
  color: var(--gold-light) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  border-radius: 12px; padding: 12px 0;
  transition: background .15s, border-color .15s, transform .1s;
}
.casino-guess-btn:active { transform: scale(.93); }
.casino-guess-btn.active {
  background: rgba(201,168,76,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(201,168,76,0.25) !important;
}

/* ══════════════════════════════════════════════════════════════
   GAME CARD COLOR THEMES — per-game vivid backgrounds
══════════════════════════════════════════════════════════════ */

/* Base card size & layout fix */
.vip-game-card {
  min-height: 148px !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* DICE – fiery orange */
.vgc-dice {
  background: linear-gradient(155deg, #3d1a06 0%, #6b2e0d 55%, #280f02 100%) !important;
  border-color: rgba(251,146,60,0.45) !important;
  box-shadow: 0 4px 28px rgba(251,146,60,0.18), inset 0 0 40px rgba(251,146,60,0.06) !important;
}
.vgc-dice.game-pick-active {
  border-color: #fb923c !important;
  box-shadow: 0 0 0 1.5px #fb923c, 0 8px 36px rgba(251,146,60,0.45) !important;
}
.vgc-dice .vgc-glow {
  opacity: 1 !important;
  background: radial-gradient(ellipse at 50% -5%, rgba(251,146,60,.32) 0%, transparent 65%) !important;
}
.vgc-dice .vgc-art  { color: #fb923c !important; filter: drop-shadow(0 0 16px rgba(251,146,60,.9)); }
.vgc-dice .vgc-name { color: #fed7aa !important; }
.vgc-dice .vgc-sub  { color: #fb923c !important; }
.vgc-dice .vgc-line { background: linear-gradient(90deg, transparent, #fb923c, transparent) !important; }

/* SLOTS – golden amber */
.vgc-slots {
  background: linear-gradient(155deg, #3a2d00 0%, #665000 55%, #261e00 100%) !important;
  border-color: rgba(251,191,36,0.45) !important;
  box-shadow: 0 4px 28px rgba(251,191,36,0.18), inset 0 0 40px rgba(251,191,36,0.06) !important;
}
.vgc-slots.game-pick-active {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 1.5px #fbbf24, 0 8px 36px rgba(251,191,36,0.45) !important;
}
.vgc-slots .vgc-glow {
  opacity: 1 !important;
  background: radial-gradient(ellipse at 50% -5%, rgba(251,191,36,.3) 0%, transparent 65%) !important;
}
.vgc-slots .vgc-art  { color: #fbbf24 !important; filter: drop-shadow(0 0 16px rgba(251,191,36,.9)); }
.vgc-slots .vgc-name { color: #fef3c7 !important; }
.vgc-slots .vgc-sub  { color: #fbbf24 !important; }
.vgc-slots .vgc-line { background: linear-gradient(90deg, transparent, #fbbf24, transparent) !important; }

/* BLACKJACK – casino green */
.vgc-bj {
  background: linear-gradient(155deg, #002b14 0%, #00471f 55%, #001b0d 100%) !important;
  border-color: rgba(34,197,94,0.45) !important;
  box-shadow: 0 4px 28px rgba(34,197,94,0.15), inset 0 0 40px rgba(34,197,94,0.05) !important;
}
.vgc-bj.game-pick-active {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 1.5px #4ade80, 0 8px 36px rgba(74,222,128,0.4) !important;
}
.vgc-bj .vgc-glow {
  opacity: 1 !important;
  background: radial-gradient(ellipse at 50% -5%, rgba(34,197,94,.26) 0%, transparent 65%) !important;
}
.vgc-bj .vgc-art  { color: #4ade80 !important; filter: drop-shadow(0 0 16px rgba(74,222,128,.8)); }
.vgc-bj .vgc-name { color: #dcfce7 !important; }
.vgc-bj .vgc-sub  { color: #4ade80 !important; }
.vgc-bj .vgc-line { background: linear-gradient(90deg, transparent, #4ade80, transparent) !important; }

/* GUESS – deep indigo */
.vgc-guess {
  background: linear-gradient(155deg, #0c0e3d 0%, #161a62 55%, #070926 100%) !important;
  border-color: rgba(129,140,248,0.45) !important;
  box-shadow: 0 4px 28px rgba(129,140,248,0.18), inset 0 0 40px rgba(129,140,248,0.05) !important;
}
.vgc-guess.game-pick-active {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 1.5px #818cf8, 0 8px 36px rgba(129,140,248,0.4) !important;
}
.vgc-guess .vgc-glow {
  opacity: 1 !important;
  background: radial-gradient(ellipse at 50% -5%, rgba(129,140,248,.28) 0%, transparent 65%) !important;
}
.vgc-guess .vgc-art  { color: #818cf8 !important; filter: drop-shadow(0 0 16px rgba(129,140,248,.9)); }
.vgc-guess .vgc-name { color: #e0e7ff !important; }
.vgc-guess .vgc-sub  { color: #818cf8 !important; }
.vgc-guess .vgc-line { background: linear-gradient(90deg, transparent, #818cf8, transparent) !important; }

/* Bigger SVG art */
.vgc-art svg { width: 54px !important; height: 54px !important; }

/* Diagonal texture overlay on each card */
.vip-game-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(
    135deg, transparent, transparent 12px,
    rgba(255,255,255,0.018) 12px, rgba(255,255,255,0.018) 13px
  );
  pointer-events: none; z-index: 0;
}
.vgc-glow, .vgc-art, .vgc-name, .vgc-sub, .vgc-line { position: relative; z-index: 1; }

/* ── Casino Lobby Header – make it pop ─────────────────── */
.casino-lobby-header { padding: 24px 0 20px !important; }
.casino-lobby-title  { font-size: 17px !important; letter-spacing: .28em !important; }
.casino-bal-row {
  box-shadow: 0 0 32px rgba(201,168,76,0.14),
              inset 0 1px 0 rgba(201,168,76,0.18) !important;
}
.cbc-val { font-size: 20px !important; }

/* ── Casino Panel Header – colored per section ─────────── */
.casino-btn-dice::before,
.casino-btn-slots::before,
.casino-btn-bj::before,
.casino-btn-guess::before { content: ''; }

/* Game result card – gold top accent */
.game-result-card {
  background: rgba(12,12,16,0.96) !important;
  border-color: rgba(201,168,76,0.2) !important;
}
.game-result-card::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
  opacity: .5 !important;
}

/* ══════════════════════════════════════════════════════════════
   🎡  ROULETTE  –  Executive Casino Suite
══════════════════════════════════════════════════════════════ */

/* ── Picker card theme (mahogany gold) ────────────────────── */
.vgc-rl {
  background: linear-gradient(135deg, #1a0808 0%, #2a1008 55%, #0f0604 100%) !important;
  border-color: rgba(201,168,76,.45) !important;
  box-shadow: 0 4px 28px rgba(201,168,76,.15), inset 0 0 40px rgba(201,168,76,.04) !important;
}
.vgc-rl.game-pick-active {
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 1.5px #c9a84c, 0 8px 30px rgba(201,168,76,.35) !important;
}
.vgc-rl .vgc-glow {
  opacity: 1 !important;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,.2) 0%, transparent 65%) !important;
}
.vgc-rl .vgc-art  { color: #d4a847 !important; filter: drop-shadow(0 0 10px rgba(212,168,71,.6)); }
.vgc-rl .vgc-name { color: #fef3c7 !important; }
.vgc-rl .vgc-sub  { color: #d4a847 !important; }

.vgc-new-badge {
  position: relative; z-index: 2;
  background: linear-gradient(135deg, #8b6914, #c9a84c);
  color: #1a0808; font-size: 9px; font-weight: 900;
  letter-spacing: .12em; padding: 3px 7px;
  border-radius: 20px; align-self: center;
  box-shadow: 0 0 8px rgba(201,168,76,.5);
  animation: rl-badge-pulse 3s ease-in-out infinite;
}
@keyframes rl-badge-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(201,168,76,.5); }
  50%      { box-shadow: 0 0 14px rgba(201,168,76,.75); }
}

/* ── Wheel section ───────────────────────────────────────── */
.rl-wheel-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 14px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,76,.05) 0%, transparent 60%),
    linear-gradient(180deg, #0d0604 0%, #0a0503 50%, #080402 100%);
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.rl-wheel-container {
  position: relative;
  width:  min(88vw, 360px);
  height: min(88vw, 360px);
}
.rl-wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #2a1a08,
    0 0 0 7px rgba(201,168,76,.5),
    0 0 0 9px #1a0e04,
    0 8px 40px rgba(0,0,0,.8),
    0 0 60px rgba(201,168,76,.15);
  will-change: transform;
  cursor: default;
  overflow: visible;
}
.rl-pointer {
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  color: #c9a84c; font-size: 22px; line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 0 10px rgba(201,168,76,.6);
  z-index: 10; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(201,168,76,.4));
}
.rl-center-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1a0e04 0%, #080402 100%);
  border: 2px solid rgba(201,168,76,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 6; pointer-events: none;
  box-shadow: inset 0 0 16px rgba(0,0,0,.9), 0 0 20px rgba(201,168,76,.25);
}
.rl-win-num {
  font-size: 20px; font-weight: 900; color: #fef3c7;
  text-shadow: 0 0 8px rgba(201,168,76,.6);
  font-family: 'Georgia', serif;
}
.rl-win-num.rl-col-red   { color: #fca5a5; text-shadow: 0 0 8px rgba(248,113,113,.5); }
.rl-win-num.rl-col-black { color: #e2e8f0; text-shadow: 0 0 6px rgba(226,232,240,.3); }
.rl-win-num.rl-col-green { color: #86efac; text-shadow: 0 0 8px rgba(74,222,128,.5); }

/* ── Spin stats row ──────────────────────────────────────── */
.rl-spin-stats {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 340px; margin-top: 16px; gap: 10px;
  padding: 0 8px;
}
.rl-stat-box {
  flex: 1;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 10px; padding: 8px 12px;
}
.rl-stat-lbl {
  font-size: 8px; font-weight: 700; letter-spacing: .14em;
  color: rgba(201,168,76,.6); text-transform: uppercase;
}
.rl-stat-val {
  font-size: 16px; font-weight: 900; color: #fef3c7;
  margin-top: 2px; font-family: 'Georgia', serif;
}
.rl-spin-big-btn {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #c9a84c 0%, #8b6914 50%, #6d5011 100%);
  color: #1a0808; border: none; border-radius: 50px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em;
  padding: 14px 28px; cursor: pointer;
  box-shadow:
    0 2px 0 #5c3a00,
    0 4px 16px rgba(201,168,76,.4),
    inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .12s, box-shadow .12s;
  text-shadow: 0 1px 0 rgba(255,255,255,.2);
}
.rl-spin-big-btn:active {
  transform: scale(.94) translateY(1px);
  box-shadow: 0 1px 0 #5c3a00, 0 2px 8px rgba(201,168,76,.3);
}
.rl-spin-big-btn:disabled { opacity: .35; filter: saturate(.5); }

/* ── Chip selector ───────────────────────────────────────── */
.rl-chips-section {
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, #0a0503, #0c0604);
  border-bottom: 1px solid rgba(201,168,76,.1);
}
.rl-chips-label {
  font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: rgba(201,168,76,.5); margin-bottom: 10px;
}
.rl-chips-bar {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px; justify-content: center;
}
.rl-chips-bar::-webkit-scrollbar { display: none; }
.rl-chip {
  flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid; font-size: 11px; font-weight: 900;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  position: relative;
  box-shadow: 0 3px 8px rgba(0,0,0,.6), inset 0 2px 4px rgba(255,255,255,.1);
}
.rl-chip::before {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.2);
}
.rl-chip::after {
  content: ''; position: absolute; inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.08), transparent 60%);
}
.rl-chip:active  { transform: scale(.88); }
.rl-chip-sel {
  transform: scale(1.22) translateY(-3px) !important;
  box-shadow: 0 0 0 2.5px #c9a84c, 0 6px 24px rgba(201,168,76,.5), 0 0 12px rgba(201,168,76,.3) !important;
}

/* ── Betting table ───────────────────────────────────────── */
.rl-table-outer {
  overflow-x: auto; padding: 14px 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 36px, rgba(201,168,76,.03) 36px, rgba(201,168,76,.03) 37px),
    linear-gradient(180deg, #0b2818 0%, #082213 50%, #061a0e 100%);
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(201,168,76,.12);
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.rl-table-outer::-webkit-scrollbar { height: 3px; }
.rl-table-outer::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
.rl-table-outer::-webkit-scrollbar-thumb { background: rgba(201,168,76,.4); border-radius: 2px; }

.rl-table {
  min-width: 530px; padding: 0 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.rl-tbl-row { display: flex; gap: 2px; }

/* Number cells */
.rl-num-cell {
  width: 38px; height: 38px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; cursor: pointer;
  position: relative; transition: transform .1s, filter .15s;
  border: 1px solid rgba(201,168,76,.2);
  user-select: none;
  font-family: 'Georgia', serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.rl-num-cell:active { transform: scale(.88); filter: brightness(1.3); }
.rl-num-cell.rl-red {
  background: linear-gradient(145deg, #8b2020, #6b1515);
  color: #fef2f2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.rl-num-cell.rl-black {
  background: linear-gradient(145deg, #1a1a28, #0f0f1a);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rl-num-cell.rl-zero {
  background: linear-gradient(145deg, #166534, #0f4a22);
  color: #bbf7d0;
}
.rl-num-cell.rl-won {
  outline: 2.5px solid #c9a84c;
  box-shadow: 0 0 12px rgba(201,168,76,.5);
}

/* Zero cell */
.rl-zero-cell {
  width: 38px; border-radius: 4px;
  background: linear-gradient(180deg, #166534, #0f4a22);
  color: #bbf7d0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; cursor: pointer;
  border: 1.5px solid rgba(201,168,76,.4);
  transition: transform .1s; user-select: none;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 6px rgba(74,222,128,.4);
  box-shadow: inset 0 0 10px rgba(0,0,0,.3);
}
.rl-zero-cell:active { transform: scale(.88); }

/* Column 2:1 buttons */
.rl-col-btn {
  width: 38px; height: 38px; border-radius: 4px;
  background: linear-gradient(145deg, rgba(201,168,76,.12), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.35);
  color: #c9a84c; font-size: 10px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .1s;
  letter-spacing: .05em;
}
.rl-col-btn:active { transform: scale(.88); }

/* Dozen / outside bet cells */
.rl-dozen-btn, .rl-out-btn {
  height: 34px; border-radius: 4px;
  background: rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.2);
  color: #fef3c7; font-size: 10px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .1s, background .15s;
  user-select: none; letter-spacing: .06em;
}
.rl-dozen-btn:active, .rl-out-btn:active { transform: scale(.94); background: rgba(201,168,76,.12); }
.rl-out-btn.rl-red {
  background: linear-gradient(145deg, rgba(139,29,29,.6), rgba(100,20,20,.4));
  border-color: rgba(201,168,76,.25); color: #fecaca;
}
.rl-out-btn.rl-black {
  background: linear-gradient(145deg, rgba(15,15,26,.8), rgba(10,10,18,.6));
  border-color: rgba(201,168,76,.2); color: #f1f5f9;
}

/* Chip marker on cell */
.rl-chip-marker {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(145deg, #c9a84c, #8b6914);
  color: #1a0808; font-size: 7px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.7); z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  animation: rl-chip-pop .2s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
@keyframes rl-chip-pop {
  0%   { transform: scale(0) rotate(-20deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Action bar ──────────────────────────────────────────── */
.rl-actions-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; padding: 14px 16px;
  background: linear-gradient(180deg, #0a0503, #080402);
  border-top: 1px solid rgba(201,168,76,.12);
}
.rl-act-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 8px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(201,168,76,.08), rgba(201,168,76,.03));
  border: 1px solid rgba(201,168,76,.2);
  color: #c9a84c; cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.rl-act-btn > span { font-size: 18px; line-height: 1; }
.rl-act-btn > small { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: rgba(201,168,76,.8); }
.rl-act-btn:active {
  transform: scale(.92) translateY(1px);
  background: rgba(201,168,76,.15);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.rl-act-double {
  background: linear-gradient(180deg, rgba(201,168,76,.14), rgba(201,168,76,.06)) !important;
  border-color: rgba(201,168,76,.4) !important;
  color: #fbbf24 !important;
}
.rl-act-double > small { color: rgba(251,191,36,.8) !important; }
.rl-act-rebet {
  background: linear-gradient(180deg, rgba(74,222,128,.08), rgba(74,222,128,.03)) !important;
  border-color: rgba(74,222,128,.25) !important;
  color: #4ade80 !important;
}
.rl-act-rebet > small { color: rgba(74,222,128,.7) !important; }

/* ── History bar ─────────────────────────────────────────── */
.rl-history-wrap {
  padding: 12px 16px 18px;
  background: #080402;
}
.rl-history-label {
  font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: rgba(201,168,76,.4); margin-bottom: 10px;
}
.rl-history {
  display: flex; gap: 7px; overflow-x: auto;
}
.rl-history::-webkit-scrollbar { display: none; }
.rl-hist-num {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(201,168,76,.2);
  font-family: 'Georgia', serif;
  animation: rl-chip-pop .2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.rl-hist-num.rl-col-red {
  background: linear-gradient(145deg, #7f1d1d, #5a1515);
  color: #fecaca; border-color: rgba(201,168,76,.3);
}
.rl-hist-num.rl-col-black {
  background: linear-gradient(145deg, #1a1a28, #0f0f18);
  color: #e2e8f0; border-color: rgba(201,168,76,.2);
}
.rl-hist-num.rl-col-green {
  background: linear-gradient(145deg, #166534, #0f4a22);
  color: #bbf7d0; border-color: rgba(201,168,76,.4);
}

