/* ============================================
   DEEDRA 회원용 앱 - v2.0 전면 리디자인
   UI 설계안 기반: Home/Invest/Network/Play/More
============================================ */

/* ===== 테마 변수 ===== */
:root {
  /* 다크 모드 (기본) */
  --bg: #121212;
  --bg2: #1e1e1e;
  --bg3: #252525;
  --bg4: #2e2e2e;
  --border: #333333;
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;

  /* 브랜드 */
  --primary: #0d47a1;
  --primary-light: #1565c0;
  --primary-glow: rgba(13,71,161,0.25);
  --accent: #1976d2;
  --neon: #42a5f5;
  --gold: #ffd54f;
  --gold-glow: rgba(255,213,79,0.15);

  /* 상태 */
  --green: #4caf50;
  --green-light: rgba(76,175,80,0.15);
  --red: #f44336;
  --red-light: rgba(244,67,54,0.15);

  /* 레이아웃 */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --nav-height: 64px;
  --header-height: 60px;
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --bg3: #f0f0f0;
  --bg4: #e8e8e8;
  --border: #e0e0e0;
  --text: #212121;
  --text2: #555555;
  --text3: #999999;
  --primary-glow: rgba(13,71,161,0.1);
  --gold-glow: rgba(180,130,0,0.1);
  --green-light: rgba(76,175,80,0.1);
  --red-light: rgba(244,67,54,0.1);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== 리셋 & 기본 ===== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; overflow:hidden; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

#app {
  height: 100vh;
  position: relative;
  overflow: hidden;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
}

/* ===== 유틸 ===== */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.green { color: var(--green) !important; }
.red { color: var(--red) !important; }
.gold { color: var(--gold) !important; }
.blue { color: var(--neon) !important; }
.bold { font-weight: 700; }
.text-center { text-align: center; }

/* ===== 로딩 화면 ===== */
.loading-screen {
  position: fixed; inset: 0;
  background: #0a0a0a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
}

.loading-banner {
  width: 90%; max-width: 380px;
  border-radius: 16px;
  animation: pulseFade 2s ease-in-out infinite;
}

@keyframes pulseFade {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.015); }
}

.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 스크린 ===== */
.screen { position: absolute; inset: 0; background: var(--bg); }

/* ===== 인증 화면 ===== */
.auth-container {
  max-width: 430px; margin: 0 auto;
  min-height: 100vh; overflow-y: auto;
  background: var(--bg);
}

.auth-logo { text-align: center; }

.auth-banner-img {
  width: 100%; max-width: 100%;
  display: block;
}

.auth-form-wrap {
  padding: 24px 24px 40px;
}

.auth-tagline {
  text-align: center;
  font-size: 14px; color: var(--text2);
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex; background: var(--bg3);
  border-radius: var(--radius);
  padding: 4px; margin-bottom: 24px;
}

.auth-tab {
  flex: 1; padding: 10px;
  border: none; background: transparent;
  border-radius: 9px;
  font-size: 15px; font-weight: 700;
  color: var(--text2);
  cursor: pointer; transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
}

.required { color: var(--red); font-size: 12px; }

/* ===== 폼 ===== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--text2);
  margin-bottom: 7px;
}

.form-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; color: var(--text);
  background: var(--bg3);
  transition: all 0.2s; outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input.textarea { height: 100px; resize: none; font-family: inherit; }
.input-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 13px 20px; border: none;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  outline: none; min-height: 48px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }

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

.btn-ghost {
  background: var(--bg3);
  color: var(--text2);
  border: 1.5px solid var(--border);
}

.btn-danger { background: var(--red); color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 앱 헤더 ===== */
.app-header {
  height: var(--header-height);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px; position: relative; z-index: 10;
}

.header-logo-img {
  height: 44px; width: auto;
  object-fit: contain; display: block;
}

.header-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border: none;
  background: var(--bg3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text2);
  position: relative; transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg4); }
.icon-btn i { font-size: 15px; }

.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  border: 2px solid var(--bg2);
}

/* ===== 페이지 컨테이너 ===== */
.page-container {
  position: absolute;
  top: var(--header-height);
  left: 0; right: 0; bottom: var(--nav-height);
  overflow: hidden;
}

.page { position: absolute; inset: 0; display: none; background: var(--bg); }
.page.active { display: block; }

.page-scroll {
  height: 100%; overflow-y: auto; overflow-x: hidden;
  padding: 16px 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.page-title-bar { margin-bottom: 16px; }

/* ===== 하단 탭 ===== */
.bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0); z-index: 100;
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 0;
  border: none; background: transparent;
  color: var(--text3); font-size: 10px; font-weight: 600;
  cursor: pointer; transition: color 0.2s; min-height: 44px;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--accent); }

/* ===== 섹션 헤더 ===== */
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--text); }
.see-all-btn {
  border: none; background: none;
  color: var(--accent); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 4px 8px;
}

/* ===== 카드 기본 ===== */
.card {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 14px;
}

/* ===== 홈 - 자산 메인 카드 ===== */
.asset-main-card {
  background: linear-gradient(145deg, #0a1929 0%, #0d2137 50%, #0a1929 100%);
  border: 1px solid rgba(25,118,210,0.3);
  border-radius: var(--radius-xl);
  padding: 24px 22px 20px;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
}

[data-theme="light"] .asset-main-card {
  background: linear-gradient(145deg, #0d47a1 0%, #1565c0 50%, #0d47a1 100%);
  border: 1px solid rgba(25,118,210,0.4);
}

.asset-main-card::after {
  content: '◈';
  position: absolute; right: -10px; bottom: -20px;
  font-size: 120px; color: rgba(255,255,255,0.03);
  pointer-events: none;
}

.asset-total-label {
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin-bottom: 4px; letter-spacing: 0.5px;
}

.asset-total-amount {
  font-size: 40px; font-weight: 800;
  color: #ffffff; margin-bottom: 2px;
  letter-spacing: -1.5px;
}

.asset-total-sub {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

/* 원금/이자 분리 */
.asset-split-row {
  display: flex; gap: 10px; margin-bottom: 20px;
}

.asset-split-item {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 14px;
}

.asset-split-icon {
  font-size: 18px; margin-bottom: 6px;
}

.asset-split-label {
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.asset-split-value {
  font-size: 17px; font-weight: 700; color: #fff;
  margin-bottom: 2px;
}

.asset-split-sub {
  font-size: 11px; color: rgba(255,255,255,0.4);
}

/* 입출금 버튼 */
.asset-action-row { display: flex; gap: 10px; }

.asset-action-btn {
  flex: 1; padding: 12px 10px;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 6px;
  transition: all 0.18s;
}

.asset-action-btn.deposit {
  background: rgba(33,150,243,0.2);
  border: 1px solid rgba(33,150,243,0.4);
  color: #64b5f6;
}

.asset-action-btn.withdraw {
  background: rgba(244,67,54,0.15);
  border: 1px solid rgba(244,67,54,0.3);
  color: #ef9a9a;
}

.asset-action-btn:active { transform: scale(0.97); }

/* ===== DEEDRA 시세창 ===== */
.price-ticker-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}

.price-ticker-coin {
  width: 44px; height: 44px;
  background: rgba(13,71,161,0.2);
  border: 2px solid rgba(13,71,161,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.price-ticker-info { flex: 1; }
.price-ticker-name { font-size: 12px; color: var(--text3); margin-bottom: 2px; }
.price-ticker-value { font-size: 22px; font-weight: 800; color: var(--text); }
.price-ticker-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }

.price-ticker-change {
  text-align: right;
}
.price-change-value {
  font-size: 14px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.price-change-value.up {
  background: var(--green-light);
  color: var(--green);
}
.price-change-value.down {
  background: var(--red-light);
  color: var(--red);
}

/* ===== 홈 분할 패널 (DDRA 시세 + EARN) ===== */
.home-split-panel {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 180px;
}

/* 왼쪽: DDRA 시세 */
.split-left {
  flex: 1;
  background: linear-gradient(145deg, #0d1b2a, #1a2e44);
  border: 1px solid rgba(13,71,161,0.4);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.split-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.split-price {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.split-price-sub {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
}
.split-price-updated {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* 오른쪽: EARN */
.split-right {
  flex: 1;
  background: linear-gradient(145deg, #0d2218, #1a3a28);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.split-earn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.split-earn-title {
  font-size: 16px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 1px;
}
.split-earn-more {
  font-size: 10px;
  color: rgba(74,222,128,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}
.home-earn-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}
.earn-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}
.earn-item:active { background: rgba(74,222,128,0.1); }
.earn-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.earn-item-period {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.earn-item-roi {
  font-size: 15px;
  font-weight: 900;
  color: #4ade80;
  text-align: right;
}
.earn-item-roi-label {
  font-size: 9px;
  color: rgba(74,222,128,0.6);
  text-align: right;
  margin-top: 1px;
}
.earn-skeleton {
  height: 42px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  animation: pulse 1.4s infinite;
}

/* ===== D-Day 투자 현황 카드 ===== */
.dday-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
}

.dday-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}

.dday-title { font-size: 15px; font-weight: 700; color: var(--text); }

.dday-badge {
  background: var(--gold-glow);
  border: 1px solid rgba(255,213,79,0.4);
  color: var(--gold);
  padding: 4px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}

.dday-name { font-size: 13px; color: var(--text2); margin-bottom: 10px; }

.dday-progress-wrap { margin-bottom: 8px; }

.dday-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text3); margin-bottom: 6px;
}

.dday-progress-bar {
  height: 6px; background: var(--bg4);
  border-radius: 3px; overflow: hidden;
}

.dday-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  border-radius: 3px; transition: width 0.8s ease;
}

.dday-stats { display: flex; gap: 8px; margin-top: 12px; }

.dday-stat {
  flex: 1; background: var(--bg3);
  border-radius: 10px; padding: 10px;
  text-align: center;
}

.dday-stat-label { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.dday-stat-value { font-size: 14px; font-weight: 700; color: var(--text); }
.dday-stat-value.green { color: var(--green); }

/* ===== 공지사항 ===== */
.announcement-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.announcement-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px; cursor: pointer;
  transition: border-color 0.2s;
}
.announcement-item:hover { border-color: var(--accent); }
.ann-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-date { font-size: 12px; color: var(--text3); }
.pin-badge { display: inline-block; background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: 5px; }

/* ===== 거래 내역 ===== */
.tx-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; max-height: 420px; overflow-y: auto; }
.tx-list::-webkit-scrollbar { width: 4px; }
.tx-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.tx-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 13px;
  transition: background 0.18s;
}
.tx-item:active { background: var(--bg3); }

.tx-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tx-icon.deposit { background: var(--green-light); }
.tx-icon.withdrawal { background: var(--red-light); }
.tx-icon.bonus { background: var(--gold-glow); }
.tx-icon.invest { background: rgba(33,150,243,0.12); }

.tx-info { flex: 1; min-width: 0; }
.tx-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 11px; color: var(--text3); margin-top: 3px; }
.tx-amount { font-size: 15px; font-weight: 700; text-align: right; flex-shrink: 0; line-height: 1.4; }
.tx-amount.plus { color: var(--green); }
.tx-amount.minus { color: var(--red); }
.tx-amount-sub { font-size: 11px; color: var(--text3); font-weight: 400; display: block; text-align: right; }
.tx-status { font-size: 11px; color: var(--text3); margin-top: 2px; text-align: right; }

/* ===== 투자 탭 ===== */
.simulator-card {
  background: var(--bg2);
  border: 1px solid rgba(25,118,210,0.3);
  border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px;
}

.simulator-title {
  font-size: 16px; font-weight: 700; color: var(--accent);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

.simulator-inputs {
  display: flex; gap: 10px; margin-bottom: 12px;
}

.sim-select {
  flex: 1; padding: 10px 12px;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; outline: none; cursor: pointer;
}

.simulator-result {
  background: var(--bg3); border-radius: var(--radius);
  padding: 16px; margin-top: 12px;
  border: 1px solid var(--border); display: none;
}
.simulator-result.show { display: block; }
.sim-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.sim-row:last-child { border-bottom: none; }
.sim-label { font-size: 13px; color: var(--text2); }
.sim-value { font-size: 14px; font-weight: 700; color: var(--text); }
.sim-value.highlight { color: var(--green); font-size: 20px; }

/* 상품 카드 */
.product-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.product-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.product-card:hover { border-color: rgba(25,118,210,0.4); }

.product-tier-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tier-basic { background: linear-gradient(90deg, #4caf50, #8bc34a); }
.tier-standard { background: linear-gradient(90deg, #2196f3, #03a9f4); }
.tier-premium { background: linear-gradient(90deg, #9c27b0, #e91e63); }
.tier-vip { background: linear-gradient(90deg, #ff9800, #f44336); }

.product-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 12px; margin-top: 8px;
}
.product-name { font-size: 20px; font-weight: 800; color: var(--text); }
.product-tag {
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.tag-basic { background: rgba(76,175,80,0.15); color: #81c784; border: 1px solid rgba(76,175,80,0.3); }
.tag-standard { background: rgba(33,150,243,0.15); color: #64b5f6; border: 1px solid rgba(33,150,243,0.3); }
.tag-premium { background: rgba(156,39,176,0.15); color: #ce93d8; border: 1px solid rgba(156,39,176,0.3); }
.tag-vip { background: rgba(255,152,0,0.15); color: #ffcc80; border: 1px solid rgba(255,152,0,0.3); }

.product-roi-block { text-align: right; }
.product-roi { font-size: 34px; font-weight: 900; color: var(--green); letter-spacing: -1px; }
.product-roi-label { font-size: 11px; color: var(--text3); }

.product-meta {
  display: flex; gap: 16px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.product-meta-item { font-size: 13px; color: var(--text2); }
.product-meta-item strong { color: var(--text); }

/* 수익 환산 */
.product-conversion {
  background: var(--bg3); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 14px;
  font-size: 13px; color: var(--text2);
}
.product-conversion strong { color: var(--green); }

.invest-btn {
  width: 100%; padding: 13px; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.invest-btn:active { transform: scale(0.98); opacity: 0.9; }

/* 내 투자 목록 */
.invest-list { display: flex; flex-direction: column; gap: 10px; }
.invest-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.invest-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.invest-item-name { font-size: 15px; font-weight: 700; color: var(--text); }
.invest-item-amount { font-size: 15px; font-weight: 700; color: var(--accent); }
.invest-item-detail { font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.invest-progress { height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.invest-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #42a5f5); transition: width 0.8s ease; }

.invest-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.invest-sum-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 10px; text-align: center;
}
.invest-sum-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.invest-sum-value { font-size: 16px; font-weight: 800; color: var(--text); }
.invest-sum-value.green { color: var(--green); }

/* ===== 네트워크 탭 ===== */
.network-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.net-stat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 10px; text-align: center;
}
.net-stat-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.net-stat-value { font-size: 18px; font-weight: 800; color: var(--text); }
.net-stat-value.accent { color: var(--accent); }

/* 추천 코드 카드 */
.referral-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
}
.referral-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.referral-code-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.referral-code {
  flex: 1; padding: 11px 14px;
  background: var(--bg3); border-radius: var(--radius);
  font-size: 18px; font-weight: 800;
  color: var(--accent); letter-spacing: 2px;
  border: 1px solid var(--border);
}
.copy-btn {
  padding: 11px 16px; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.share-btn {
  width: 100%; padding: 12px;
  background: var(--bg3); color: var(--text2);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* 조직도 */
.org-chart-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  overflow: auto; margin-bottom: 14px;
  min-height: 300px;
  touch-action: pan-x pan-y; cursor: grab;
}
.org-chart-wrap:active { cursor: grabbing; }

.org-tree {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  min-width: max-content; padding: 16px;
  transform-origin: top center;
  transition: transform 0.1s;
}

.org-node-row {
  display: flex; align-items: flex-start; gap: 24px;
  justify-content: center;
}

.org-node-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  position: relative;
}

.org-connector-v {
  width: 2px; height: 24px;
  background: var(--border);
}

.org-connector-h-wrap {
  display: flex; align-items: flex-start; position: relative;
  margin-top: 0;
}

.org-node {
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 90px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  position: relative;
}
.org-node:hover { border-color: var(--accent); }
.org-node.root {
  background: var(--primary);
  border-color: var(--accent);
}
.org-node.me {
  background: rgba(13,71,161,0.2);
  border-color: var(--accent);
}

.org-node-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.org-node-rank {
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: rgba(25,118,210,0.2);
  color: var(--accent); margin-top: 4px;
  display: inline-block;
}

/* 직급 카드 */
.rank-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
}
.rank-title { font-size: 14px; color: var(--text3); margin-bottom: 8px; }
.rank-current {
  font-size: 36px; font-weight: 900; color: var(--accent);
  margin-bottom: 4px;
}
.rank-progress-label { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.rank-progress-bar { height: 8px; background: var(--bg4); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.rank-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.8s ease; }
.rank-referral-count { font-size: 13px; color: var(--text2); }

/* 추천인 목록 */
.referral-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.referral-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
}
.ref-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(13,71,161,0.2);
  border: 2px solid rgba(13,71,161,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; color: var(--accent);
}
.ref-info { flex: 1; }
.ref-name { font-size: 14px; font-weight: 700; color: var(--text); }
.ref-date { font-size: 12px; color: var(--text3); margin-top: 2px; }
.ref-rank {
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(13,71,161,0.15);
  color: var(--accent);
}

/* ===== Play 탭 ===== */

/* 게임 지갑바 - 네온 글로우 */
.game-wallet-bar {
  background: linear-gradient(135deg, rgba(13,71,161,0.25) 0%, rgba(74,20,140,0.25) 100%);
  border: 1px solid rgba(13,71,161,0.4);
  border-radius: var(--radius-lg); padding: 18px 20px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  box-shadow: 0 0 20px rgba(13,71,161,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.game-wallet-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(13,71,161,0.05) 50%, transparent 100%);
  animation: walletShimmer 3s ease-in-out infinite;
}
@keyframes walletShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.game-wallet-icon {
  font-size: 28px; margin-right: 4px;
  filter: drop-shadow(0 0 6px rgba(100,181,246,0.7));
  animation: coinFloat 2s ease-in-out infinite;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.game-wallet-label { font-size: 11px; color: var(--text3); margin-bottom: 2px; letter-spacing: 0.5px; text-transform: uppercase; }
.game-wallet-value {
  font-size: 24px; font-weight: 900; color: #fff;
  text-shadow: 0 0 12px rgba(100,181,246,0.6);
}
.game-wallet-sub { font-size: 12px; color: rgba(100,181,246,0.7); }

/* 게임 그리드 */
.game-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}

/* 게임 카드 - 홀로그램 효과 */
.game-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 20px 14px 18px;
  text-align: center; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.game-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  border-radius: 20px; pointer-events: none;
}
.game-card::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover::after { opacity: 1; }
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.game-card:active { transform: scale(0.96); transition: all 0.1s; }
.game-card.coming-soon { opacity: 0.45; cursor: default; filter: grayscale(0.3); }
.game-card.coming-soon:hover { transform: none; box-shadow: none; }

/* 활성 게임카드별 테마색 border glow */
.game-card:not(.coming-soon):hover { border-color: rgba(100,181,246,0.5); }
.game-card[onclick*="oddeven"]:hover { border-color: rgba(33,150,243,0.6); box-shadow: 0 8px 32px rgba(33,150,243,0.2); }
.game-card[onclick*="dice"]:hover { border-color: rgba(102,187,106,0.6); box-shadow: 0 8px 32px rgba(102,187,106,0.2); }
.game-card[onclick*="slot"]:hover { border-color: rgba(186,104,200,0.6); box-shadow: 0 8px 32px rgba(186,104,200,0.2); }

/* 게임 썸네일 아이콘 */
.game-thumb {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 14px;
  position: relative; transition: transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.game-card:hover .game-thumb { transform: scale(1.12) rotate(-3deg); }
.game-thumb.oddeven {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  box-shadow: 0 4px 20px rgba(13,71,161,0.5);
}
.game-thumb.dice {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
  box-shadow: 0 4px 20px rgba(27,94,32,0.5);
}
.game-thumb.slot {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%);
  box-shadow: 0 4px 20px rgba(74,20,140,0.5);
}
.game-thumb.baccarat {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 50%, #d32f2f 100%);
  box-shadow: 0 4px 20px rgba(183,28,28,0.4);
}
.game-thumb.roulette {
  background: linear-gradient(135deg, #212121 0%, #37474f 50%, #455a64 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.game-thumb.poker {
  background: linear-gradient(135deg, #0a1628 0%, #0d47a1 50%, #1565c0 100%);
  box-shadow: 0 4px 20px rgba(13,71,161,0.4);
}
/* 썸네일 내부 이모지 글로우 */
.game-thumb::after {
  content: ''; position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.game-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; letter-spacing: -0.3px; }
.game-desc { font-size: 11px; color: var(--text3); line-height: 1.4; }

.game-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 10px;
  letter-spacing: 0.3px;
}
.badge-live {
  background: linear-gradient(90deg, rgba(76,175,80,0.25), rgba(76,175,80,0.15));
  color: #69f0ae; border: 1px solid rgba(76,175,80,0.4);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(76,175,80,0); }
}
.badge-hot {
  background: linear-gradient(90deg, rgba(244,67,54,0.25), rgba(255,87,34,0.15));
  color: #ff6b6b; border: 1px solid rgba(244,67,54,0.4);
}
.badge-soon { background: var(--bg4); color: var(--text3); border: 1px solid var(--border); }
.badge-new  {
  background: linear-gradient(90deg, rgba(255,183,0,0.25), rgba(255,100,0,0.15));
  color: #ffd740; border: 1px solid rgba(255,183,0,0.45);
  animation: livePulse 1.8s ease-in-out infinite;
}

/* ===== 게임 플레이 영역 ===== */
.game-area {
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(13,71,161,0.05) 100%);
  border: 1px solid rgba(13,71,161,0.25);
  border-radius: 20px; margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.game-area-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(13,71,161,0.2);
  background: linear-gradient(90deg, rgba(13,71,161,0.15) 0%, rgba(74,20,140,0.1) 100%);
}
.game-area-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.close-game-btn {
  width: 34px; height: 34px; border: 1px solid var(--border);
  background: var(--bg3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 14px;
  transition: all 0.2s;
}
.close-game-btn:hover { background: rgba(244,67,54,0.15); border-color: var(--red); color: var(--red); }

.game-body { padding: 20px 16px; }

/* 베팅 정보 행 */
.bet-info-row {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, rgba(13,71,161,0.12), rgba(74,20,140,0.08));
  border: 1px solid rgba(13,71,161,0.2);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
}
.bet-info-label { font-size: 13px; color: var(--text3); }
.bet-info-value {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(90deg, #64b5f6, #ce93d8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px rgba(100,181,246,0.4));
}

/* 슬라이더 */
.bet-slider-wrap { margin-bottom: 14px; }
.bet-slider-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; display: flex; justify-content: space-between; }
.bet-slider {
  width: 100%; -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) var(--val, 1%), var(--bg4) var(--val, 1%));
  border-radius: 3px; outline: none; cursor: pointer;
}
.bet-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #90caf9, #1976d2);
  cursor: pointer; border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 10px rgba(25,118,210,0.5);
  transition: transform 0.15s;
}
.bet-slider::-webkit-slider-thumb:active { transform: scale(1.2); }

/* 빠른 베팅 버튼 */
.bet-quick-row { display: flex; gap: 8px; margin-bottom: 18px; }
.bet-quick-btn {
  flex: 1; padding: 9px 4px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all 0.2s;
}
.bet-quick-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(25,118,210,0.08);
  box-shadow: 0 0 8px rgba(25,118,210,0.2);
}
.bet-quick-btn:active { transform: scale(0.95); }

/* ===== 홀짝 게임 ===== */
.coin-arena {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 0 8px; position: relative;
}
.coin-flip-wrap {
  perspective: 600px; margin-bottom: 20px;
}
.coin-flip {
  width: 100px; height: 100px;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.1s;
}
.coin-flip.flipping {
  animation: coinFlip3D 0.7s ease-in-out;
}
@keyframes coinFlip3D {
  0%   { transform: rotateY(0deg) translateY(0); }
  25%  { transform: rotateY(180deg) translateY(-20px); }
  50%  { transform: rotateY(360deg) translateY(-30px); }
  75%  { transform: rotateY(540deg) translateY(-10px); }
  100% { transform: rotateY(720deg) translateY(0); }
}
.coin-face {
  position: absolute; width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; backface-visibility: hidden;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 8px 24px rgba(0,0,0,0.4);
}
.coin-face.front {
  background: radial-gradient(circle at 35% 35%, #ffd54f, #ff8f00 60%, #e65100);
}
.coin-face.back {
  background: radial-gradient(circle at 35% 35%, #b0bec5, #607d8b 60%, #37474f);
  transform: rotateY(180deg);
}
.coin-result-text {
  font-size: 15px; font-weight: 700; color: var(--text2);
  margin-top: 8px; min-height: 22px; text-align: center;
  transition: all 0.3s;
}

.choice-row { display: flex; gap: 12px; margin-bottom: 14px; }
.choice-btn {
  flex: 1; padding: 18px 8px;
  border: 2px solid var(--border); border-radius: 16px;
  font-size: 15px; font-weight: 900; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--bg3); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; overflow: hidden;
}
.choice-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
}
.choice-btn .choice-icon { font-size: 28px; display: block; }
.choice-btn .choice-label { font-size: 14px; font-weight: 900; }
.choice-btn .choice-odds { font-size: 11px; font-weight: 600; opacity: 0.7; }
.choice-btn.odd {
  border-color: rgba(33,150,243,0.4);
  background: linear-gradient(135deg, rgba(13,71,161,0.2) 0%, rgba(33,150,243,0.08) 100%);
}
.choice-btn.even {
  border-color: rgba(244,67,54,0.4);
  background: linear-gradient(135deg, rgba(183,28,28,0.2) 0%, rgba(244,67,54,0.08) 100%);
}
.choice-btn.odd:hover, .choice-btn.odd.selected {
  background: linear-gradient(135deg, rgba(13,71,161,0.35), rgba(33,150,243,0.15));
  border-color: #42a5f5; color: #90caf9;
  box-shadow: 0 0 16px rgba(33,150,243,0.3), inset 0 0 16px rgba(33,150,243,0.05);
  transform: translateY(-2px);
}
.choice-btn.even:hover, .choice-btn.even.selected {
  background: linear-gradient(135deg, rgba(183,28,28,0.35), rgba(244,67,54,0.15));
  border-color: #ef5350; color: #ef9a9a;
  box-shadow: 0 0 16px rgba(244,67,54,0.3), inset 0 0 16px rgba(244,67,54,0.05);
  transform: translateY(-2px);
}
.choice-btn:active { transform: scale(0.96) !important; }

/* ===== 주사위 게임 ===== */
.dice-arena {
  display: flex; flex-direction: column; align-items: center; padding: 20px 0 8px;
}

/* SVG 주사위 */
.dice-3d-wrap {
  perspective: 400px; margin-bottom: 24px; cursor: default;
}
.dice-3d {
  width: 100px; height: 100px;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.1s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}
.dice-3d.rolling {
  animation: diceRoll 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes diceRoll {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  20%  { transform: rotateX(180deg) rotateY(90deg) rotateZ(45deg) scale(1.1); }
  40%  { transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg) scale(0.95); }
  60%  { transform: rotateX(450deg) rotateY(270deg) rotateZ(135deg) scale(1.05); }
  80%  { transform: rotateX(630deg) rotateY(360deg) rotateZ(180deg) scale(1); }
  100% { transform: rotateX(720deg) rotateY(720deg) rotateZ(180deg); }
}
.dice-face-svg {
  width: 100px; height: 100px;
  background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 40%, #c0c0c0 100%);
  border-radius: 18px;
  box-shadow:
    inset -4px -4px 8px rgba(0,0,0,0.2),
    inset 4px 4px 8px rgba(255,255,255,0.9),
    0 0 0 2px rgba(0,0,0,0.15),
    0 8px 24px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dice-dots {
  display: grid; width: 74px; height: 74px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px; padding: 2px;
}
.dice-dot {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e53935, #880e0e);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.3), 0 1px 3px rgba(0,0,0,0.3);
}
.dice-dot.hidden { visibility: hidden; }
.dice-num-label {
  font-size: 52px; font-weight: 900; color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2), -1px -1px 0 rgba(255,255,255,0.8);
  line-height: 1;
}

.dice-number-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.dice-num-btn {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg3); border: 2px solid var(--border);
  font-size: 20px; font-weight: 900; color: var(--text);
  cursor: pointer; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.dice-num-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
}
.dice-num-btn:hover {
  border-color: #66bb6a; color: #a5d6a7;
  background: linear-gradient(135deg, rgba(27,94,32,0.3), rgba(46,125,50,0.15));
  box-shadow: 0 0 16px rgba(76,175,80,0.3);
  transform: translateY(-3px) scale(1.05);
}
.dice-num-btn:active { transform: scale(0.92); }

/* ===== 슬롯머신 ===== */
.slot-cabinet {
  background: linear-gradient(180deg, #1a0a2e 0%, #0d0515 50%, #1a0a2e 100%);
  border: 2px solid rgba(186,104,200,0.4);
  border-radius: 20px; padding: 20px 16px;
  margin-bottom: 16px; position: relative;
  box-shadow: 0 0 30px rgba(186,104,200,0.15), inset 0 0 30px rgba(0,0,0,0.3);
}
.slot-cabinet::before {
  content: '🎰'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 24px; background: var(--bg1); padding: 0 8px;
  filter: drop-shadow(0 0 8px rgba(186,104,200,0.6));
}
.slot-title {
  text-align: center; font-size: 11px; font-weight: 700; color: rgba(186,104,200,0.7);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; margin-top: 4px;
}
.slot-machine {
  display: flex; gap: 8px; justify-content: center;
  background: rgba(0,0,0,0.4); border-radius: 14px;
  padding: 10px; margin-bottom: 10px;
  border: 1px solid rgba(186,104,200,0.2);
  position: relative; overflow: hidden;
}
/* 슬롯 윈도우 라인 */
.slot-machine::before {
  content: ''; position: absolute; top: 50%; left: 10px; right: 10px;
  height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.6), transparent);
  z-index: 5; pointer-events: none;
}
.slot-reel {
  flex: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(30,0,60,0.6) 50%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(186,104,200,0.3);
  border-radius: 10px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; transition: all 0.15s;
  position: relative; overflow: hidden;
}
.slot-reel::before, .slot-reel::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px;
  pointer-events: none; z-index: 2;
}
.slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
}
.slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
}
.slot-reel.spinning {
  animation: slotSpinNew 0.12s linear infinite;
  border-color: rgba(186,104,200,0.8);
  box-shadow: 0 0 12px rgba(186,104,200,0.4);
}
@keyframes slotSpinNew {
  0%   { transform: translateY(0); filter: blur(1px) brightness(0.8); }
  25%  { filter: blur(2px) brightness(0.6); }
  50%  { transform: translateY(4px); filter: blur(3px) brightness(0.5); }
  75%  { filter: blur(2px) brightness(0.6); }
  100% { transform: translateY(0); filter: blur(1px) brightness(0.8); }
}
.slot-reel.win-flash {
  animation: winFlash 0.4s ease-in-out 3;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255,215,0,0.6);
}
@keyframes winFlash {
  0%, 100% { background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(30,0,60,0.6), rgba(0,0,0,0.3)); }
  50% { background: linear-gradient(180deg, rgba(255,215,0,0.15), rgba(255,165,0,0.2), rgba(255,215,0,0.15)); }
}

/* 잭팟 파티클 */
.jackpot-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden;
}
.jackpot-particle {
  position: absolute; font-size: 20px;
  animation: particleFall 2s ease-in forwards;
}
@keyframes particleFall {
  0%   { transform: translateY(-20px) rotate(0deg) scale(0); opacity: 1; }
  20%  { transform: translateY(80px) rotate(180deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(calc(100vh + 20px)) rotate(720deg) scale(0.5); opacity: 0; }
}

/* 스핀 버튼 */
.spin-btn-wrap { display: flex; justify-content: center; }
.btn-spin {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 50%, #7b1fa2 100%);
  border: none; border-radius: 14px;
  font-size: 18px; font-weight: 900; color: #fff;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(106,27,154,0.5), 0 0 0 1px rgba(186,104,200,0.3);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-spin:hover:not(:disabled) {
  background: linear-gradient(135deg, #7b1fa2 0%, #ab47bc 50%, #8e24aa 100%);
  box-shadow: 0 6px 28px rgba(106,27,154,0.7), 0 0 20px rgba(186,104,200,0.4);
  transform: translateY(-2px);
}
.btn-spin:active:not(:disabled) { transform: scale(0.97); }
.btn-spin:disabled {
  background: var(--bg3); color: var(--text3);
  box-shadow: none; cursor: not-allowed;
}
.btn-spin .spin-icon { font-size: 22px; transition: transform 0.5s; }
.btn-spin:hover .spin-icon { transform: rotate(180deg); }

/* 페이테이블 */
.pay-table {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
}
.pay-item {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(186,104,200,0.2);
  border-radius: 8px; padding: 5px 10px;
  font-size: 11px; color: rgba(186,104,200,0.8); white-space: nowrap;
}
.pay-item span { color: #ffd700; font-weight: 700; }

/* ===== 게임 결과 ===== */
.game-result {
  text-align: center; padding: 18px 16px;
  border-radius: 14px; margin-top: 14px;
  font-size: 20px; font-weight: 800;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.game-result::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
}
.game-result.win {
  background: linear-gradient(135deg, rgba(27,94,32,0.4) 0%, rgba(46,125,50,0.2) 100%);
  color: #69f0ae; border: 1px solid rgba(76,175,80,0.4);
  box-shadow: 0 0 20px rgba(76,175,80,0.2);
  animation: winPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-result.lose {
  background: linear-gradient(135deg, rgba(183,28,28,0.3) 0%, rgba(198,40,40,0.15) 100%);
  color: #ef9a9a; border: 1px solid rgba(244,67,54,0.3);
  animation: losePop 0.3s ease-out;
}
@keyframes winPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes losePop {
  0%  { transform: translateX(-6px); }
  25% { transform: translateX(6px); }
  50% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ===== More 탭 ===== */
.profile-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(13,71,161,0.2);
  border: 3px solid rgba(13,71,161,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.profile-email { font-size: 13px; color: var(--text3); margin-bottom: 6px; }
.profile-rank-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(13,71,161,0.2);
  border: 1px solid rgba(13,71,161,0.4);
  color: var(--accent); font-size: 13px; font-weight: 700;
}

/* 메뉴 목록 */
.menu-section { margin-bottom: 16px; }
.menu-section-title { font-size: 13px; color: var(--text3); font-weight: 700; margin-bottom: 10px; padding: 0 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.menu-section-title.large { font-size: 16px; color: var(--text); font-weight: 800; letter-spacing: 0; text-transform: none; margin-bottom: 12px; }

.menu-list {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}

.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg3); }
.menu-item:active { background: var(--bg4); }

.menu-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.icon-blue { background: rgba(13,71,161,0.15); color: var(--accent); }
.icon-green { background: var(--green-light); color: var(--green); }
.icon-red { background: var(--red-light); color: var(--red); }
.icon-gold { background: var(--gold-glow); color: var(--gold); }
.icon-gray { background: var(--bg3); color: var(--text2); }

.menu-item-text { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.menu-item-value { font-size: 13px; color: var(--text3); margin-right: 6px; }
.menu-item-arrow { font-size: 12px; color: var(--text3); }

.menu-item.danger .menu-item-text { color: var(--red); }
.menu-item.danger .menu-item-icon { background: var(--red-light); color: var(--red); }

/* 설정 토글 */
.menu-item-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--bg4); border: none; cursor: pointer;
  position: relative; transition: background 0.2s;
}
.menu-item-toggle.on { background: var(--accent); }
.menu-item-toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left 0.2s;
}
.menu-item-toggle.on::after { left: 22px; }

/* 언어 선택 */
.lang-select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 4px 8px;
  font-size: 13px; cursor: pointer; outline: none;
}

/* ===== 지갑 탭 (More 내) ===== */
.wallet-balance-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.wb-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; background: var(--bg3); border-radius: var(--radius);
}
.wb-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.usdt-icon { background: rgba(38,161,123,0.15); color: #4db6ac; border: 1px solid rgba(38,161,123,0.3); }
.dedra-icon { background: rgba(13,71,161,0.15); color: var(--accent); border: 1px solid rgba(13,71,161,0.3); }
.bonus-icon { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(255,213,79,0.3); }

.wb-info { flex: 1; }
.wb-label { font-size: 11px; color: var(--text3); margin-bottom: 2px; }
.wb-value { font-size: 20px; font-weight: 800; color: var(--text); }
.wb-sub { font-size: 12px; color: var(--text3); }

.wallet-action-row { display: flex; gap: 12px; margin-bottom: 18px; }
.wallet-action-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  padding: 16px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; min-height: 72px;
}
.wallet-action-btn i { font-size: 22px; }
.wallet-action-btn.deposit { background: rgba(33,150,243,0.12); color: #64b5f6; border: 1px solid rgba(33,150,243,0.3); }
.wallet-action-btn.withdraw { background: var(--red-light); color: #ef9a9a; border: 1px solid rgba(244,67,54,0.3); }
.wallet-action-btn:active { transform: scale(0.97); }

.tx-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.tx-tabs::-webkit-scrollbar { height: 0; }
.tx-tab {
  padding: 8px 16px; border: none; background: var(--bg3);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  color: var(--text3); cursor: pointer; transition: all 0.2s;
  border: 1px solid var(--border); white-space: nowrap; flex-shrink: 0;
}
.tx-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 800; }

/* ===== 모달 ===== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal.center { align-items: center; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
}

.modal-sheet {
  position: relative; z-index: 1;
  background: var(--bg2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-height: 90vh; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.modal-sheet.large { max-height: 85vh; }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border); border-radius: 2px;
  margin: 14px auto 0;
}

.modal-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  padding: 16px 20px 4px; margin-bottom: 0;
}

.modal-body { padding: 16px 20px; }

.modal-footer {
  display: flex; gap: 10px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

/* 인포 박스 */
.info-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 14px;
}
.info-label { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.wallet-address-box {
  display: flex; align-items: center; gap: 8px;
  word-break: break-all; font-size: 13px; color: var(--text);
}

/* 경고 박스 */
.warning-box {
  background: rgba(255,213,79,0.08);
  border: 1px solid rgba(255,213,79,0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px; color: var(--gold);
  margin-top: 12px; line-height: 1.6;
}

/* 투자 상품 요약 */
.invest-product-summary {
  background: var(--bg3); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.invest-preview {
  background: var(--bg3); border-radius: var(--radius);
  padding: 14px; margin-top: 12px;
  font-size: 14px; color: var(--text2); line-height: 2;
}

/* ===== 스켈레톤 & 빈 상태 ===== */
.skeleton-item {
  height: 52px; background: var(--bg3);
  border-radius: var(--radius); margin-bottom: 8px;
  animation: shimmer 1.2s ease-in-out infinite;
}
.skeleton-item.tall { height: 120px; }

@keyframes shimmer {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text3); font-size: 14px;
}
.empty-state i { font-size: 36px; display: block; margin-bottom: 10px; opacity: 0.4; }

/* ===== 토스트 ===== */
.toast {
  position: fixed; bottom: calc(var(--nav-height) + 16px);
  left: 50%; transform: translateX(-50%) translateY(100px);
  background: #303030; color: #fff;
  padding: 12px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap; z-index: 9999;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 90vw; text-align: center;
  word-break: keep-all; white-space: normal;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #1b5e20; }
.toast.error { background: #b71c1c; }
.toast.warning { background: #e65100; }
.toast.info { background: #0d47a1; }

/* ===== 그리팅 ===== */
.greeting-section {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; padding: 0 2px;
}
.greeting-text { font-size: 14px; color: var(--text2); }
.greeting-name { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 2px; }
.rank-badge {
  padding: 6px 14px; border-radius: 20px;
  background: rgba(13,71,161,0.2);
  border: 1px solid rgba(13,71,161,0.4);
  color: var(--accent); font-size: 14px; font-weight: 800;
}

/* ===== 구분선 ===== */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ===== 티켓 ===== */
.ticket-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ticket-item {
  background: var(--bg3); border-radius: var(--radius);
  padding: 14px; border: 1px solid var(--border);
}
.ticket-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ticket-meta { font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.ticket-status-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 700;
}
.ticket-open { background: rgba(13,71,161,0.15); color: var(--accent); }
.ticket-closed { background: var(--green-light); color: var(--green); }

/* ===== 스크롤바 ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ===== 반응형 ===== */
@media (min-width: 430px) {
  #app { box-shadow: 0 0 40px rgba(0,0,0,0.5); }
}

/* ===== 게임 추가 애니메이션 ===== */
@keyframes spinRotate { to { transform: rotate(360deg); } }

/* 게임 카드 이모지 호버 효과 */
.game-thumb span { display: block; transition: transform 0.3s; }
.game-card:hover .game-thumb span { transform: scale(1.15) rotate(-5deg); }

/* ============================================
   ROULETTE  –  고화질 룰렛 게임
============================================ */

/* 바퀴 래퍼 */
.roulette-body { padding: 16px; }

.roulette-wheel-wrap {
  position: relative;
  width: 300px; height: 300px;
  margin: 0 auto 20px;
}

/* 황금 외부 링 */
.roulette-outer-ring {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: conic-gradient(
    #b8860b 0deg, #ffd700 20deg, #b8860b 40deg,
    #ffd700 60deg, #b8860b 80deg, #ffd700 100deg,
    #b8860b 120deg, #ffd700 140deg, #b8860b 160deg,
    #ffd700 180deg, #b8860b 200deg, #ffd700 220deg,
    #b8860b 240deg, #ffd700 260deg, #b8860b 280deg,
    #ffd700 300deg, #b8860b 320deg, #ffd700 340deg,
    #b8860b 360deg
  );
  padding: 8px;
  box-shadow:
    0 0 0 2px #7a5800,
    0 0 30px rgba(255,215,0,0.35),
    0 0 60px rgba(255,215,0,0.15),
    inset 0 0 20px rgba(0,0,0,0.4);
  box-sizing: border-box;
}

/* 내부 그림자 링 */
.roulette-inner-shadow {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.7);
  overflow: hidden;
  position: relative;
}

/* Canvas */
#rouletteCanvas {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
}

/* 포인터 화살표 */
.roulette-pointer {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.9), 0 2px 6px rgba(0,0,0,0.8);
  z-index: 10;
  line-height: 1;
  filter: drop-shadow(0 0 6px #ffd700);
}

/* 베팅 탭 */
.rl-bet-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.rl-tab {
  flex: 1; padding: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all 0.2s;
}
.rl-tab.active {
  background: linear-gradient(135deg, rgba(255,183,0,0.2), rgba(255,100,0,0.1));
  border-color: rgba(255,183,0,0.5); color: #ffd740;
  box-shadow: 0 0 10px rgba(255,183,0,0.15);
}

/* 간단 베팅 그리드 */
.rl-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rl-simple-btn {
  padding: 13px 8px; border-radius: 12px;
  font-size: 13px; font-weight: 800;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.rl-simple-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent);
}
.rl-simple-btn.red    { background: linear-gradient(135deg,#7f0000,#c62828); color:#ffcdd2; border-color:rgba(198,40,40,.5); }
.rl-simple-btn.black  { background: linear-gradient(135deg,#111,#37474f);    color:#cfd8dc; border-color:rgba(96,125,139,.5); }
.rl-simple-btn.green  { background: linear-gradient(135deg,#1b5e20,#2e7d32); color:#b9f6ca; border-color:rgba(46,125,50,.5); }
.rl-simple-btn.blue   { background: linear-gradient(135deg,#0d47a1,#1565c0); color:#bbdefb; border-color:rgba(21,101,192,.5); }
.rl-simple-btn.orange { background: linear-gradient(135deg,#e65100,#f57c00); color:#ffe0b2; border-color:rgba(245,124,0,.5); }
.rl-simple-btn.purple { background: linear-gradient(135deg,#4a148c,#6a1b9a); color:#e1bee7; border-color:rgba(106,27,154,.5); }
.rl-simple-btn:hover  { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); }
.rl-simple-btn:active { transform: scale(0.95); }
.rl-simple-btn.selected {
  filter: brightness(1.25);
  box-shadow: 0 0 14px rgba(255,255,255,0.25), inset 0 0 8px rgba(255,255,255,0.1);
  transform: scale(1.04);
}

/* 숫자 베팅 보드 */
.rl-number-board {
  display: flex; gap: 6px; align-items: flex-start;
}
.rl-num.zero {
  width: 36px; flex-shrink: 0;
  padding: 0; height: 100%;
  min-height: 180px;
  background: linear-gradient(180deg,#1b5e20,#2e7d32);
  color: #b9f6ca; border: 1px solid rgba(46,125,50,.6);
  border-radius: 8px; font-size: 15px; font-weight: 900;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.rl-num-grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.rl-num {
  padding: 9px 4px; border-radius: 7px;
  font-size: 12px; font-weight: 800; text-align: center;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s;
}
.rl-num.red   { background: #c62828; color: #fff; border-color: rgba(255,255,255,.1); }
.rl-num.black { background: #212121; color: #fff; border-color: rgba(255,255,255,.1); }
.rl-num:hover { filter: brightness(1.3); transform: scale(1.08); }
.rl-num.selected {
  outline: 2px solid #ffd700;
  filter: brightness(1.4);
  box-shadow: 0 0 8px rgba(255,215,0,.5);
}

/* 선택 베팅 표시줄 */
.rl-selected-bet {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,183,0,.08); border: 1px solid rgba(255,183,0,.2);
  border-radius: 10px; padding: 10px 14px; margin: 12px 0;
}
.rl-sel-label { font-size: 12px; color: var(--text3); }
.rl-sel-value { font-size: 14px; font-weight: 800; color: #ffd740; }

/* 스핀 버튼 */
.btn-roulette-spin {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #7a3800 0%, #c85000 50%, #e65100 100%);
  border: none; border-radius: 14px;
  font-size: 18px; font-weight: 900; color: #fff;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(230,81,0,0.5), 0 0 0 1px rgba(255,183,0,0.3);
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}
.btn-roulette-spin:hover:not(:disabled) {
  background: linear-gradient(135deg, #a84e00, #e65100, #ff6d00);
  box-shadow: 0 6px 28px rgba(230,81,0,0.7), 0 0 20px rgba(255,183,0,0.3);
  transform: translateY(-2px);
}
.btn-roulette-spin:active:not(:disabled) { transform: scale(0.97); }
.btn-roulette-spin:disabled {
  background: var(--bg3); color: var(--text3); box-shadow: none; cursor: not-allowed;
}

/* 당첨 번호 표시 */
.rl-win-number {
  font-size: 64px; font-weight: 900; text-align: center;
  padding: 12px 0 4px;
  text-shadow: 0 0 20px currentColor;
  animation: winPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================================
   바카라 게임 스타일
   ============================================================ */
.bac-table {
  display: flex; align-items: stretch; gap: 8px;
  background: radial-gradient(ellipse at center, #1a4a1a 0%, #0d2b0d 100%);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 16px; padding: 16px 10px; margin: 12px 0;
}
.bac-side {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.bac-side-label {
  font-size: 12px; font-weight: 700; color: #ffd740; letter-spacing: 0.5px;
}
.bac-cards {
  display: flex; gap: 4px; min-height: 70px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.bac-score {
  font-size: 24px; font-weight: 900; color: #fff;
  background: rgba(0,0,0,0.4); border-radius: 8px;
  padding: 4px 14px; min-width: 48px; text-align: center;
}
.bac-tie-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 0 4px;
}
.bac-tie-label { font-size: 11px; color: #fbbf24; font-weight: 700; }
.bac-odds { font-size: 12px; color: #94a3b8; font-weight: 600; }
.bac-bet-row {
  display: flex; gap: 8px; margin: 12px 0 4px;
}
.bac-bet-btn {
  flex: 1; padding: 13px 6px; border: none; border-radius: 12px;
  font-size: 12px; font-weight: 800; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.bac-bet-btn.player {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff; box-shadow: 0 4px 15px rgba(21,101,192,0.5);
}
.bac-bet-btn.banker {
  background: linear-gradient(135deg, #b71c1c, #c62828);
  color: #fff; box-shadow: 0 4px 15px rgba(183,28,28,0.5);
}
.bac-bet-btn.tie {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: #fff; box-shadow: 0 4px 15px rgba(46,125,50,0.5);
}
.bac-bet-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); }
.bac-bet-btn:active:not(:disabled) { transform: scale(0.97); }
.bac-bet-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 카드 공통 스타일 */
.play-card {
  width: 42px; height: 58px; border-radius: 6px;
  background: #fff; border: 1px solid #ddd;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 3px 4px; font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative; cursor: default;
  animation: cardDeal 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.play-card.red { color: #c62828; }
.play-card.black { color: #212121; }
.play-card .card-rank { font-size: 14px; line-height: 1; }
.play-card .card-suit { font-size: 16px; line-height: 1; }
.play-card .card-rank-bot { font-size: 14px; line-height: 1; transform: rotate(180deg); align-self: flex-end; }
.play-card.face-down {
  background: linear-gradient(135deg, #1a237e 25%, #283593 100%);
  border-color: #3949ab;
}
@keyframes cardDeal {
  from { opacity: 0; transform: translateY(-20px) rotate(-5deg) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

/* ============================================================
   포커 게임 스타일
   ============================================================ */
.poker-community {
  background: radial-gradient(ellipse at center, #1b4332 0%, #0d2b1a 100%);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 14px; padding: 12px 10px; margin: 12px 0 8px;
  text-align: center;
}
.poker-label {
  font-size: 11px; color: #ffd740; font-weight: 700;
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.poker-cards {
  display: flex; gap: 5px; justify-content: center; flex-wrap: wrap;
  min-height: 62px; align-items: center;
}
.poker-hands {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.poker-hand-col {
  flex: 1; background: var(--bg2); border-radius: 12px;
  padding: 10px 8px; text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
}
.poker-hand-name {
  font-size: 12px; font-weight: 700; color: #f59e0b;
  margin-top: 6px; min-height: 18px;
}
.poker-paytable {
  background: var(--bg2); border-radius: 12px; padding: 10px 14px;
  margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.07);
}
.paytable-title {
  font-size: 12px; font-weight: 700; color: #ffd740;
  margin-bottom: 8px; text-align: center;
}
.paytable-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4px 12px; font-size: 11px; color: var(--text2);
}
.paytable-grid span:nth-child(even) {
  color: #f59e0b; font-weight: 700; text-align: right;
}
.btn-deal {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
  border: none; border-radius: 14px;
  font-size: 18px; font-weight: 900; color: #fff;
  cursor: pointer; transition: all 0.2s; margin-top: 4px;
  box-shadow: 0 4px 20px rgba(26,35,126,0.5);
  letter-spacing: 0.5px;
}
.btn-deal:hover:not(:disabled) {
  background: linear-gradient(135deg, #283593, #5c6bc0);
  box-shadow: 0 6px 28px rgba(26,35,126,0.7);
  transform: translateY(-2px);
}
.btn-deal:active:not(:disabled) { transform: scale(0.97); }
.btn-deal:disabled { background: var(--bg3); color: var(--text3); box-shadow: none; cursor: not-allowed; }

/* 카드 뒷면 애니메이션 */
@keyframes cardFlip {
  0%   { transform: rotateY(90deg); opacity: 0; }
  100% { transform: rotateY(0deg); opacity: 1; }
}
.card-flip-in { animation: cardFlip 0.3s ease-out; }

/* ============================================================ */
/* ===== 게임 V2 - 고화질 카지노 UI ===== */
/* ============================================================ */

/* 게임 헤더 배너 */
.game-header-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a1f3a 50%, #0d2540 100%);
  border: 1px solid rgba(99,179,237,0.2);
  border-radius: 20px; padding: 18px 20px; margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.game-header-title { font-size: 22px; font-weight: 900; color: #f59e0b; letter-spacing: 1px; text-shadow: 0 0 20px rgba(245,158,11,0.5); }
.game-header-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.game-balance-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 50px; padding: 10px 16px;
}
.gbp-icon { font-size: 20px; }
.gbp-val { font-size: 20px; font-weight: 800; color: #f59e0b; line-height: 1; }
.gbp-sub { font-size: 11px; color: #94a3b8; }
.gbp-unit { font-size: 12px; font-weight: 700; color: #f59e0b; opacity: 0.7; }

/* 게임 그리드 V2 */
.game-grid-v2 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.game-card-v2 {
  background: linear-gradient(160deg, #1a1f3a 0%, #0d1b2a 100%);
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: 16px; padding: 14px 8px 12px;
  text-align: center; cursor: pointer; position: relative;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.game-card-v2::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  border-radius: 16px;
}
.game-card-v2:active { transform: scale(0.93); }
.game-card-v2:hover { border-color: rgba(245,158,11,0.4); box-shadow: 0 4px 20px rgba(245,158,11,0.15); transform: translateY(-2px); }
.gcv2-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 800; padding: 2px 6px;
  border-radius: 6px; letter-spacing: 0.5px;
}
.gcv2-badge.live { background: #ef4444; color: #fff; animation: badgePulse 1.5s ease-in-out infinite; }
.gcv2-badge.hot { background: #f97316; color: #fff; }
.gcv2-badge.jackpot { background: linear-gradient(90deg,#f59e0b,#ef4444); color: #fff; }
.gcv2-badge.new-badge { background: #22c55e; color: #fff; }
@keyframes badgePulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.gcv2-icon { font-size: 36px; margin-bottom: 6px; display: block; filter: drop-shadow(0 2px 8px rgba(245,158,11,0.3)); }
.gcv2-name { font-size: 13px; font-weight: 800; color: #e2e8f0; margin-bottom: 3px; }
.gcv2-desc { font-size: 10px; color: #94a3b8; }
.gcv2-rtp { font-size: 10px; color: #4ade80; font-weight: 600; margin-top: 4px; }

/* 게임 영역 V2 */
.game-area-v2 {
  background: linear-gradient(180deg, #1a1f3a 0%, #0d1b2a 100%);
  border: 1px solid rgba(99,179,237,0.2);
  border-radius: 20px; margin-bottom: 16px;
  overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.gav2-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  background: linear-gradient(90deg, rgba(245,158,11,0.1), rgba(99,179,237,0.05));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gav2-title-wrap { display: flex; align-items: center; gap: 10px; }
.gav2-icon { font-size: 24px; }
.gav2-title { font-size: 18px; font-weight: 800; color: #f1f5f9; letter-spacing: 0.3px; }
.gav2-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.gav2-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

.gav2-body { padding: 16px 18px 20px; }

/* 베팅 행 V2 */
.gav2-bet-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
}
.gav2-bet-label { font-size: 13px; color: #94a3b8; font-weight: 600; }
.gav2-bet-val { font-size: 18px; font-weight: 800; color: #f59e0b; }
.gav2-bet-val small { font-size: 11px; color: #64748b; margin-left: 6px; }

/* 칩 버튼 */
.bet-chip-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bet-chip {
  flex: 1; min-width: 48px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(99,179,237,0.25);
  border-radius: 50px; padding: 8px 4px;
  color: #e2e8f0; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.bet-chip:active { transform: scale(0.9); background: rgba(245,158,11,0.2); border-color: #f59e0b; color: #f59e0b; }
.bet-chip.half {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border-color: rgba(245,158,11,0.4); color: #f59e0b; font-size: 12px;
}

/* 슬라이더 V2 */
.bet-slider-v2 {
  width: 100%; margin-bottom: 16px; accent-color: #f59e0b;
  height: 6px; border-radius: 3px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, #f59e0b 0%, #f59e0b var(--val,20%), #1e293b var(--val,20%), #1e293b 100%);
}
.bet-slider-v2::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: #f59e0b;
  box-shadow: 0 2px 8px rgba(245,158,11,0.5); cursor: pointer;
}

/* ===== 홀짝 코인 V2 ===== */
.coin-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 0 16px; position: relative;
}
.coin-3d {
  width: 90px; height: 90px; position: relative;
  transform-style: preserve-3d; transition: transform 0.1s;
}
.coin-side {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.heads {
  background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b);
  box-shadow: 0 4px 20px rgba(255,215,0,0.4), inset 0 2px 4px rgba(255,255,255,0.3);
  border: 3px solid #daa520;
}
.tails {
  background: radial-gradient(circle at 35% 35%, #e8e8e8, #a0a0a0);
  box-shadow: 0 4px 20px rgba(200,200,200,0.3);
  border: 3px solid #c0c0c0;
  transform: rotateY(180deg);
}
.coin-face-inner { font-size: 22px; font-weight: 900; color: rgba(0,0,0,0.6); text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
.coin-shadow {
  width: 70px; height: 16px; background: rgba(0,0,0,0.3);
  border-radius: 50%; margin-top: 6px;
  filter: blur(4px); transition: all 0.3s;
}
.coin-hint { font-size: 13px; color: #94a3b8; margin-top: 12px; }
@keyframes coinSpin3D {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(1440deg); }
}
.coin-flipping { animation: coinSpin3D 0.8s cubic-bezier(0.4,0,0.6,1) !important; }

/* 홀짝 선택 버튼 */
.oe-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.oe-btn {
  border-radius: 16px; padding: 18px 12px; border: 2px solid transparent;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 4px; transition: all 0.2s;
}
.odd-btn {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.1));
  border-color: rgba(59,130,246,0.4);
}
.even-btn {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.1));
  border-color: rgba(239,68,68,0.4);
}
.oe-btn:active { transform: scale(0.95); }
.oe-num { font-size: 14px; font-weight: 800; color: #94a3b8; letter-spacing: 4px; }
.oe-name { font-size: 16px; font-weight: 800; color: #e2e8f0; }
.oe-odds { font-size: 13px; font-weight: 700; color: #4ade80; }

/* ===== 주사위 V2 ===== */
.dice-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 24px 0; position: relative;
}
.dice-glow {
  position: absolute; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent 70%);
  border-radius: 50%;
}
.dice-3d-v2 {
  width: 90px; height: 90px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 50%, #bdbdbd 100%);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 2px 4px rgba(255,255,255,0.1),
              inset 0 2px 4px rgba(255,255,255,0.4),
              inset 0 -2px 4px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all 0.2s;
}
.dice-face-v2 {
  width: 72px; height: 72px; display: grid; grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr); gap: 4px; padding: 6px;
}
.dice-dot {
  width: 100%; height: 100%; background: #212121;
  border-radius: 50%; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.dice-dot.empty { background: transparent; box-shadow: none; }
@keyframes diceRollV2 {
  0%   { transform: rotate3d(1,1,0,0deg); }
  25%  { transform: rotate3d(1,0,1,180deg); }
  50%  { transform: rotate3d(0,1,1,360deg); }
  75%  { transform: rotate3d(1,1,1,540deg); }
  100% { transform: rotate3d(1,1,0,720deg); }
}
.dice-rolling { animation: diceRollV2 0.8s cubic-bezier(0.4,0,0.6,1)!important; }
.dice-hint { text-align: center; font-size: 12px; color: #64748b; margin: -8px 0 12px; }
.dice-btn-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.dice-num-v2 {
  aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(135deg, #1e2a3a, #0f1a28);
  border: 1px solid rgba(99,179,237,0.2);
  font-size: 18px; font-weight: 800; color: #e2e8f0;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.dice-num-v2:active { transform: scale(0.88); background: rgba(245,158,11,0.2); color: #f59e0b; border-color: #f59e0b; }
.dice-num-inner { pointer-events: none; }

/* ===== 슬롯머신 V2 ===== */
.slot-machine-v2 {
  background: linear-gradient(180deg, #1a0a2e 0%, #16213e 100%);
  border: 2px solid rgba(245,158,11,0.3);
  border-radius: 20px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(245,158,11,0.15), inset 0 0 20px rgba(0,0,0,0.5);
}
.slot-machine-top {
  background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
  padding: 8px; text-align: center;
  background-size: 200% 100%; animation: slotBannerShimmer 2s linear infinite;
}
@keyframes slotBannerShimmer { 0%{background-position:0% 0} 100%{background-position:200% 0} }
.slot-brand { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.slot-screen {
  display: flex; gap: 0; padding: 16px 12px;
  background: rgba(0,0,0,0.4);
  position: relative;
}
.slot-reel-wrap {
  flex: 1; height: 100px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.6) 100%);
  border-radius: 8px;
}
.slot-reel-v2 {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 52px;
  transition: all 0.1s;
}
.slot-divider { width: 2px; background: rgba(245,158,11,0.3); margin: 0 4px; border-radius: 1px; }
.slot-win-line {
  position: absolute; top: 50%; left: 8px; right: 8px; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.6), transparent);
  pointer-events: none;
}
@keyframes slotSpinV2 {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-300px); }
}
.slot-spinning .slot-reel-v2 { animation: slotSpinV2 0.3s linear infinite; }
@keyframes winFlashV2 {
  0%,100%{ box-shadow: 0 0 0 rgba(245,158,11,0); }
  50%    { box-shadow: 0 0 20px rgba(245,158,11,0.8); }
}
.win-flash { animation: winFlashV2 0.3s ease-in-out infinite; }

.slot-paytable-v2 {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.spt-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 6px 10px;
  font-size: 12px; color: #94a3b8;
}
.spt-item span { font-weight: 700; }
.spt-item.jackpot { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.spt-item.gold { color: #fbbf24; }
.spt-item.silver { color: #e2e8f0; }
.spt-item.bronze { color: #cd7f32; }

/* 스핀 버튼 V2 */
.btn-spin-v2 {
  width: 100%; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none; color: #000; font-size: 16px; font-weight: 900;
  letter-spacing: 1px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4), 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s; margin-bottom: 12px;
}
.btn-spin-v2:active { transform: scale(0.97); }
.btn-spin-v2:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.roulette-spin-v2 { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

/* ===== 룰렛 V2 ===== */
.roulette-stage { display: flex; justify-content: center; padding: 16px 0; position: relative; }
.roulette-wheel-v2 { position: relative; width: 280px; height: 280px; }
.roulette-wheel-v2 canvas { display: block; border-radius: 50%; box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(124,58,237,0.15); }
.roulette-pointer-v2 {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  color: #f59e0b; font-size: 22px; text-shadow: 0 0 10px rgba(245,158,11,0.8);
  z-index: 2; animation: pointerBounce 1s ease-in-out infinite;
}
@keyframes pointerBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-4px)} }
.roulette-center-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #b8860b);
  box-shadow: 0 0 12px rgba(255,215,0,0.6); z-index: 2;
}

.rl-tab-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.rl-tab-v2 {
  flex: 1; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.rl-tab-v2.active { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.5); color: #c4b5fd; }

.rl-panel { margin-bottom: 14px; }
.rl-simple-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-chip-btn {
  padding: 12px 8px; border-radius: 12px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-align: center;
}
.rl-chip-btn:active { transform: scale(0.93); }
.rlc-red    { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.4); color: #fca5a5; }
.rlc-black  { background: rgba(30,41,59,0.8);   border-color: rgba(100,116,139,0.4); color: #94a3b8; }
.rlc-green  { background: rgba(22,163,74,0.15); border-color: rgba(22,163,74,0.4); color: #86efac; }
.rlc-blue   { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.4); color: #93c5fd; }
.rlc-orange { background: rgba(234,88,12,0.15); border-color: rgba(234,88,12,0.4); color: #fdba74; }
.rlc-purple { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: #c4b5fd; }
.rl-chip-btn.selected { box-shadow: 0 0 0 2px #f59e0b; color: #f59e0b !important; border-color: #f59e0b !important; }

.rl-number-board-v2 { }
.rn-zero {
  width: 100%; margin-bottom: 8px; padding: 10px;
  background: rgba(22,163,74,0.2); border: 1px solid rgba(22,163,74,0.5);
  border-radius: 10px; color: #86efac; font-size: 15px; font-weight: 800; cursor: pointer;
}
.rl-num-grid-v2 { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.rl-num-v2 {
  aspect-ratio: 1; border-radius: 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
}
.rn-red   { background: rgba(220,38,38,0.25); color: #fca5a5; }
.rn-black { background: rgba(30,41,59,0.8);   color: #94a3b8; }
.rl-num-v2.selected { box-shadow: 0 0 0 2px #f59e0b; color: #f59e0b !important; }
.rl-num-v2:active { transform: scale(0.85); }

.rl-selected-v2 {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border-radius: 10px; padding: 10px 14px;
  margin-bottom: 12px; font-size: 13px; color: #94a3b8;
}
.rl-sel-val { font-weight: 800; color: #f59e0b; }

/* ===== 바카라 V2 ===== */
.bac-felt-table {
  display: flex; gap: 8px; margin-bottom: 14px;
  background: linear-gradient(135deg, #064e3b, #065f46, #064e3b);
  border: 2px solid rgba(16,185,129,0.3); border-radius: 16px;
  padding: 14px 10px; position: relative; overflow: hidden;
}
.bac-felt-table::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.01) 20px, rgba(255,255,255,0.01) 21px);
}
.bac-felt-side { flex: 1; text-align: center; position: relative; z-index: 1; }
.bac-felt-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 56px; position: relative; z-index: 1; }
.bac-felt-vs { font-size: 16px; font-weight: 900; color: rgba(255,255,255,0.3); }
.bac-tie-box { text-align: center; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3); border-radius: 10px; padding: 6px 8px; }
.bac-tie-txt { font-size: 11px; color: #fbbf24; font-weight: 600; }
.bac-tie-odd { font-size: 14px; font-weight: 800; color: #fbbf24; }
.bac-felt-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.bac-felt-cards { display: flex; justify-content: center; gap: 6px; min-height: 56px; align-items: center; margin-bottom: 6px; }
.bac-felt-score {
  font-size: 22px; font-weight: 900; color: #fde68a;
  text-shadow: 0 0 8px rgba(253,230,138,0.5); margin-bottom: 4px;
}
.bac-felt-odds { font-size: 12px; color: rgba(255,255,255,0.6); }
.player-felt { }
.banker-felt { }

.bac-action-row { display: flex; gap: 10px; }
.bac-action-btn {
  flex: 1; padding: 14px 8px; border-radius: 14px; border: 2px solid transparent;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.bac-action-btn span { font-size: 20px; }
.bab-player { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.4); color: #93c5fd; }
.bab-player:active { background: rgba(37,99,235,0.3); }
.bab-tie    { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); color: #fbbf24; }
.bab-banker { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.4); color: #fca5a5; }
.bab-banker:active { background: rgba(220,38,38,0.3); }
.bac-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 포커 V2 ===== */
.poker-table-v2 {
  background: linear-gradient(135deg, #1a3a2a, #0d2a1a, #1a3a2a);
  border: 2px solid rgba(34,197,94,0.2); border-radius: 20px;
  padding: 14px 12px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.poker-table-v2::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(34,197,94,0.04), transparent 70%);
}
.poker-community-v2, .poker-hands-v2 { position: relative; z-index: 1; margin-bottom: 12px; }
.poker-section-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.poker-cards-v2 { display: flex; gap: 6px; align-items: center; min-height: 64px; flex-wrap: wrap; }
.card-placeholder { width: 42px; height: 60px; border-radius: 8px; background: rgba(0,0,0,0.3); border: 1px dashed rgba(255,255,255,0.1); }
.poker-hands-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.poker-hand-v2 { }
.poker-hand-rank { font-size: 13px; font-weight: 800; color: #94a3b8; margin-top: 6px; padding: 4px 8px; background: rgba(0,0,0,0.3); border-radius: 6px; display: inline-block; }
.player-rank { color: #4ade80; background: rgba(34,197,94,0.1); }

.poker-paytable-v2 { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 10px; }
.ppt-title { font-size: 12px; font-weight: 800; color: #fbbf24; margin-bottom: 8px; }
.ppt-grid { display: flex; flex-direction: column; gap: 3px; }
.ppt-row { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; padding: 2px 4px; border-radius: 4px; }
.ppt-row span:last-child { font-weight: 700; }
.ppt-row.jackpot { color: #f59e0b; background: rgba(245,158,11,0.05); }
.ppt-row.gold { color: #fbbf24; }
.ppt-row.silver { color: #94a3b8; }
.ppt-row.bronze { color: #cd7f32; }
.ppt-row.lose { color: #ef4444; }

.btn-deal-v2 {
  width: 100%; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none; color: #fff; font-size: 16px; font-weight: 900;
  cursor: pointer; box-shadow: 0 4px 20px rgba(34,197,94,0.4);
  transition: all 0.2s; margin-bottom: 12px;
}
.btn-deal-v2:active { transform: scale(0.97); }
.btn-deal-v2:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 카드 디자인 V2 ===== */
.play-card {
  width: 42px; height: 60px; border-radius: 8px;
  background: #fff; border: 1px solid rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  padding: 4px 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative; flex-shrink: 0;
}
.play-card.red .card-rank, .play-card.red .card-suit, .play-card.red .card-rank-bot { color: #dc2626; }
.play-card.black .card-rank, .play-card.black .card-suit, .play-card.black .card-rank-bot { color: #111; }
.card-rank { font-size: 13px; font-weight: 800; line-height: 1; }
.card-suit { font-size: 18px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); line-height: 1; }
.card-rank-bot { font-size: 13px; font-weight: 800; line-height: 1; position: absolute; bottom: 4px; right: 5px; transform: rotate(180deg); }
.play-card.face-down {
  background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 4px, #1d4ed8 4px, #1d4ed8 8px);
  border: 2px solid rgba(255,255,255,0.15);
}
.card-flip-in { animation: cardFlip 0.25s ease-out; }

/* ===== 결과 표시 V2 ===== */
.game-result-v2 {
  border-radius: 14px; padding: 16px 18px; margin-top: 12px;
  font-size: 15px; font-weight: 700; text-align: center; line-height: 1.5;
}
.game-result-v2.win {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(21,128,61,0.1));
  border: 1px solid rgba(34,197,94,0.4); color: #4ade80;
  animation: resultWinPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.game-result-v2.lose {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(153,27,27,0.1));
  border: 1px solid rgba(239,68,68,0.4); color: #f87171;
  animation: resultLosePop 0.3s ease-out;
}
@keyframes resultWinPop { 0%{transform:scale(0.8);opacity:0} 60%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }
@keyframes resultLosePop { 0%{transform:translateY(8px);opacity:0} 100%{transform:translateY(0);opacity:1} }

/* 잭팟 파티클 */
@keyframes particleFallV2 {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}
.jackpot-particle { position: fixed; pointer-events: none; z-index: 9999; font-size: 18px; animation: particleFallV2 2s ease-in forwards; }


/* ===== 알림 시스템 ===== */
.badge-dot {
  position: absolute; top: 4px; right: 4px;
  background: #ef4444; color: #fff;
  border-radius: 10px; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; text-align: center;
}
.icon-btn { position: relative; }
.noti-list { display: flex; flex-direction: column; gap: 0; }
.noti-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.noti-item:last-child { border-bottom: none; }
.noti-item.unread { background: rgba(99,102,241,0.05); border-radius: 10px; padding: 12px 10px; margin-bottom: 4px; }
.noti-icon { font-size: 22px; min-width: 32px; text-align: center; margin-top: 2px; }
.noti-body { flex: 1; }
.noti-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.noti-msg { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 4px; }
.noti-date { font-size: 11px; color: var(--text3, #64748b); }

/* ===== 공지사항 상세 ===== */
.ann-detail-content {
  font-size: 14px; color: var(--text2); line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
  padding: 8px 0;
}
