/* emir · app styles
   colors_and_type.css supplies tokens; this file builds chrome + components
   for the SPA at index.html.
*/

* { box-sizing: border-box; }
html, body { margin:0; padding:0; min-height:100vh; background:var(--bg-0); color:var(--fg-1); }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

#view {
  max-width: 1360px; margin: 0 auto; padding: 24px 20px 60px;
  opacity: 0; transition: opacity 220ms var(--ease-out);
}
#view.fade-in { opacity: 1; }

/* ============== utilities ============== */
.muted { color: var(--fg-3); }
.accent { color: var(--accent); }
.lbl { font-family: var(--font-grotesk); font-weight: 600; font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.1em; display:block; margin-bottom: 6px; }
.link { color: var(--fg-2); font-family: var(--font-grotesk); font-size: 13px; display:inline-flex; align-items:center; gap:4px; }
.link:hover { color: var(--accent); }
.num { font-family: var(--font-grotesk); font-weight: 700; font-feature-settings: "tnum" 1, "lnum" 1; }
.num.pos { color: var(--accent); }
.num.neg { color: var(--red-400); }

/* ============== buttons ============== */
.btn {
  font-family: var(--font-grotesk); font-weight: 600; font-size: 13px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  letter-spacing: 0.02em; transition: all 120ms var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-primary:active:not(:disabled) { background: var(--accent-press); transform: scale(0.98); }
.btn-secondary { background: var(--bg-2); color: var(--fg-1); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--bg-3); border-color: var(--border-3); }
.btn-ghost { background: transparent; color: var(--fg-2); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--fg-1); }
.btn-danger { background: rgba(255,61,61,0.12); color: var(--red-400); border: 1px solid rgba(255,61,61,0.3); }
.btn-lg { padding: 13px 22px; font-size: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ============== badges ============== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-grotesk); font-weight: 600; font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: var(--bg-3); color: var(--fg-2);
}
.badge.mini { font-size: 10px; padding: 2px 8px; }
.badge-live { background: rgba(255,61,61,0.12); color: var(--red-400); border: 1px solid rgba(255,61,61,0.3); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-400); animation: pulse 1.2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: 0.35 } }

/* ============== inputs ============== */
.input {
  font-family: var(--font-sans); font-size: 14px;
  padding: 10px 14px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 8px;
  color: var(--fg-1); outline: none; transition: all 120ms var(--ease-out);
  width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,230,16,0.18); }
.input::placeholder { color: var(--fg-3); }

/* ============== odds chip ============== */
.chip {
  font-family: var(--font-grotesk); font-weight: 700;
  font-feature-settings: "tnum" 1, "lnum" 1;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 9px 12px; border-radius: 8px; min-width: 70px;
  background: var(--bg-3); border: 1px solid transparent; color: var(--fg-0);
  transition: all 120ms var(--ease-out); cursor: pointer;
}
.chip .chip-lbl { font-size: 10px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.chip .chip-val { font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.sel .chip-lbl { color: var(--accent-ink); opacity: 0.8; }
.chip.mini { padding: 6px 9px; min-width: 56px; }
.chip.mini .chip-val { font-size: 12px; }

/* ============== form dots / crest ============== */
.form-row { display: inline-flex; gap: 3px; }
.form-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.form-w { background: var(--green-400); }
.form-d { background: var(--fg-3); }
.form-l { background: var(--red-400); }

.crest {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-grotesk); font-weight: 800;
  border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}

/* ============== topbar ============== */
#topbar { position: sticky; top: 0; z-index: 50; background: rgba(7,9,11,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-1); }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; }
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--fg-0); letter-spacing: -0.04em; line-height: 1; }
.topnav { display: flex; gap: 22px; flex: 1; }
.nav-link {
  font-family: var(--font-grotesk); font-weight: 500; font-size: 13px;
  color: var(--fg-2); padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 120ms var(--ease-out); letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--fg-1); }
.nav-link.active { color: var(--fg-0); border-bottom-color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.profile-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 8px 5px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  cursor: pointer; transition: all 120ms var(--ease-out);
}
.profile-btn:hover { background: var(--bg-3); border-color: var(--border-3); }
.profile-btn .bal { font-family: var(--font-grotesk); font-weight: 700; font-size: 13px; color: var(--fg-0); font-feature-settings: "tnum" 1; }
.profile-btn .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #007500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 12px; color: var(--accent-ink);
}

.profile-menu {
  width: 280px; background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; z-index: 60;
  animation: slideDown 200ms var(--ease-out);
}
@keyframes slideDown { from { transform: translateY(-8px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border-1); }
.pm-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #007500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 16px; color: var(--accent-ink);
}
.pm-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg-0); letter-spacing: -0.02em; }
.pm-phone { font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; margin-top: 2px; }
.pm-balance { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-1); }
.pm-balance .muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.pm-balance strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 18px; color: var(--accent); font-feature-settings: "tnum" 1; }
.pm-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: var(--fg-1); cursor: pointer; transition: background 120ms var(--ease-out); width: 100%; text-align: left; }
.pm-item:hover { background: var(--bg-2); }
.pm-logout { color: var(--red-400); border-top: 1px solid var(--border-1); }

/* ============== footer ============== */
#footer { border-top: 1px solid var(--border-1); margin-top: 80px; padding: 40px 20px 32px; background: var(--bg-0); }
.foot-grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--fg-0); letter-spacing: -0.04em; margin-bottom: 12px; }
.foot-grid h5 { font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 12px; }
.foot-grid a { display: block; font-size: 13px; color: var(--fg-2); padding: 4px 0; }
.foot-grid a:hover { color: var(--fg-1); }
.foot-grid p { color: var(--fg-3); font-size: 13px; margin: 0; line-height: 1.6; }
.legal { max-width: 1360px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--border-1); display: flex; align-items: center; justify-content: space-between; font-family: var(--font-grotesk); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; gap: 16px; flex-wrap: wrap; }
.legal-left { display: flex; align-items: center; gap: 12px; }
.eighteen {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--red-400); color: var(--red-400);
  font-weight: 900; font-size: 10px; font-family: var(--font-grotesk); flex-shrink: 0;
}

/* ============== modal ============== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7,9,11,0.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 200ms var(--ease-out);
}
.modal-overlay.show { opacity: 1; }
.modal {
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: 16px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow: auto;
  transform: translateY(16px); opacity: 0;
  transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out);
  box-shadow: var(--shadow-3);
}
.modal-overlay.show .modal { transform: translateY(0); opacity: 1; }
.modal-auth { max-width: 440px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border-1); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--fg-0); }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border-1); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { color: var(--fg-3); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.modal-close:hover { background: var(--bg-2); color: var(--fg-1); }
.quick-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ============== toast ============== */
#toast-root { position: fixed; top: 80px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 12px 16px; min-width: 280px; max-width: 380px; box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 12px; pointer-events: auto;
  transform: translateX(20px); opacity: 0;
  transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out);
  font-size: 13px; color: var(--fg-1);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-win { border-color: var(--accent); }
.toast-win i { color: var(--accent); }
.toast-lose { border-color: var(--red-400); }
.toast-lose i { color: var(--red-400); }
.toast-info i { color: var(--blue-400); }

/* ============== auth ============== */
.step-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.step-dots .dot { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-3); transition: background 200ms var(--ease-out); }
.step-dots .dot.active, .step-dots .dot.done { background: var(--accent); }

.auth-h { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 6px; color: var(--fg-0); letter-spacing: -0.02em; }

.phone-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ccode { font-family: var(--font-grotesk); font-weight: 700; font-size: 15px; color: var(--fg-2); padding: 10px 12px; background: var(--bg-3); border-radius: 8px; }
.phone-input { flex: 1; font-family: var(--font-grotesk); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; }

.otp-row { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.otp-box {
  width: 44px; height: 54px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--bg-2);
  text-align: center;
  font-family: var(--font-grotesk); font-weight: 700; font-size: 22px; color: var(--fg-0);
  outline: none;
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,230,16,0.22); }

.welcome-bonus {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(31,230,16,0.1), rgba(31,230,16,0.02));
  border: 1px solid rgba(31,230,16,0.2); border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.welcome-bonus strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 18px; color: var(--accent); }
.legal-mini { font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); margin-top: 12px; line-height: 1.5; }
.legal-mini a { color: var(--fg-2); border-bottom: 1px dashed var(--fg-3); }

/* ============== hero ============== */
.hero {
  position: relative; padding: 80px 20px 70px;
  border-bottom: 1px solid var(--border-1); overflow: hidden;
  margin: -24px -20px 32px;
}
.hero-bg { position: absolute; inset: 0; background: url('../assets/pattern-pitch.svg') center / 600px; opacity: 0.35; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 35%, rgba(31,230,16,0.14), transparent 60%); pointer-events: none; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg-0) 100%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 999px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 76px; line-height: 0.96; letter-spacing: -0.04em;
  margin: 18px 0 0; color: var(--fg-0);
}
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 18px; font-size: 16px; color: var(--fg-2); max-width: 520px; line-height: 1.6; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hs { display: flex; flex-direction: column; }
.hs strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 24px; color: var(--fg-0); font-feature-settings: "tnum" 1; }
.hs strong .muted { font-size: 16px; }
.hs span { font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); margin-top: 2px; letter-spacing: 0.08em; text-transform: uppercase; }

.match-hero {
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 20px;
  box-shadow: var(--shadow-2);
}
.mh-head { display: flex; justify-content: space-between; align-items: center; }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 0; gap: 12px; }
.mh-team { display: flex; align-items: center; gap: 12px; }
.mh-team strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg-0); display: block; }
.mh-team .muted { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0; }
.mh-away { flex-direction: row-reverse; text-align: right; }
.mh-score strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 36px; color: var(--fg-0); font-feature-settings: "tnum" 1; line-height: 1; display: block; text-align: center; }
.mh-score .muted { font-size: 11px; display: block; text-align: center; margin-top: 4px; }
.mh-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mh-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--fg-2); font-family: var(--font-grotesk); font-size: 12px; }
.mh-more:hover { color: var(--accent); }

/* ============== bands / sections ============== */
.band { margin-top: 36px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.band-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--fg-0); letter-spacing: -0.02em; margin: 0; }

.match-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.match-card { padding: 16px; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; transition: all 120ms var(--ease-out); }
.match-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.mc-head { display: flex; justify-content: space-between; align-items: center; }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 0; }
.mc-teams > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mc-teams strong { font-size: 13px; color: var(--fg-1); }
.mc-score { font-family: var(--font-grotesk); font-weight: 700; font-size: 22px; color: var(--fg-0); }
.vs { font-family: var(--font-grotesk); font-size: 12px; color: var(--fg-3); }
.mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* ============== cta band ============== */
.cta-band {
  margin-top: 56px; padding: 40px 36px; border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before { content:''; position:absolute; top:-80px; right:-80px; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, rgba(31,230,16,0.18), transparent 70%); pointer-events:none; }
.cta-band h2 { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: -0.03em; margin: 0; color: var(--fg-0); }
.cta-band .accent { color: var(--accent); }
.cta-band p { margin-top: 8px; color: var(--fg-2); font-size: 14px; max-width: 520px; }

/* ============== page-head ============== */
.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: -0.03em; margin: 0; color: var(--fg-0); }
.page-head p { margin: 6px 0 0; color: var(--fg-2); font-size: 14px; }
.page-stat { text-align: right; }
.page-stat strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 22px; color: var(--accent); display: block; font-feature-settings: "tnum" 1; }
.page-stat span { font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============== betting page ============== */
.betting-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 16px; }

.league-side {
  background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px;
  padding: 12px; align-self: start; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto;
}
.ls-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.ls-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; text-align: left; width: 100%;
  background: transparent; color: var(--fg-2); cursor: pointer; transition: all 120ms var(--ease-out);
  font-size: 13px;
}
.ls-item:hover { background: var(--bg-2); color: var(--fg-1); }
.ls-item.active { background: var(--bg-3); color: var(--fg-0); }
.ls-icon { color: var(--fg-3); display: inline-flex; }
.ls-name { flex: 1; font-weight: 500; }
.ls-item .muted { font-family: var(--font-grotesk); font-size: 11px; }
.badge.mini { font-size: 10px; padding: 2px 8px; }

.match-list { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; overflow: hidden; }
.ml-head { padding: 12px 16px; border-bottom: 1px solid var(--border-1); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ml-tabs { display: flex; gap: 4px; }
.tab {
  font-family: var(--font-grotesk); font-weight: 600; font-size: 12px;
  padding: 7px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--fg-2); cursor: pointer; transition: all 120ms var(--ease-out);
}
.tab:hover { color: var(--fg-1); }
.tab.active { background: var(--bg-3); color: var(--fg-0); border-color: var(--border-2); }
.ml-cols { display: grid; grid-template-columns: 130px 1fr 320px 28px; gap: 16px; align-items: center; font-family: var(--font-grotesk); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.ml-cols-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }

.match-row {
  display: grid; grid-template-columns: 130px 1fr 320px 28px; gap: 16px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border-1);
  transition: background 120ms var(--ease-out);
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--bg-2); }
.mr-time { display: flex; flex-direction: column; gap: 4px; }
.mr-kick { font-family: var(--font-grotesk); font-size: 13px; color: var(--fg-1); font-feature-settings: "tnum" 1; }
.mr-score { font-family: var(--font-grotesk); font-weight: 700; font-size: 16px; color: var(--fg-0); }
.mr-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mr-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-team span { font-size: 13px; color: var(--fg-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mr-more { color: var(--fg-3); display: flex; align-items: center; justify-content: center; }
.mr-more:hover { color: var(--fg-1); }

/* ============== bet slip ============== */
.bet-slip {
  background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px;
  align-self: start; position: sticky; top: 80px; overflow: hidden; max-height: calc(100vh - 100px); display: flex; flex-direction: column;
}
.bs-head { padding: 14px 16px; border-bottom: 1px solid var(--border-1); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-grotesk); font-size: 13px; color: var(--fg-1); }
.bs-empty { padding: 36px 20px; text-align: center; }
.bs-list { flex: 1; overflow-y: auto; }
.bs-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-1); align-items: center; }
.bs-rm { color: var(--fg-3); width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.bs-rm:hover { background: var(--bg-3); color: var(--red-400); }
.bs-meta { min-width: 0; }
.bs-label { font-size: 13px; color: var(--fg-1); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; }
.bs-meta .muted { font-size: 11px; }
.bs-odd { font-family: var(--font-grotesk); font-weight: 700; font-size: 15px; color: var(--fg-0); }
.bs-stake { padding: 12px 16px 0; }
.bs-totals { padding: 10px 16px; display: flex; justify-content: space-between; gap: 12px; }
.bs-totals > div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bs-totals .muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.bs-totals strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 16px; color: var(--fg-0); font-feature-settings: "tnum" 1; }
.bs-foot { padding: 12px 16px; border-top: 1px solid var(--border-1); display: flex; align-items: center; gap: 10px; font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-3); }
#bs-place, #bs-clear { margin-left: 16px; margin-right: 16px; }
#bs-place { width: calc(100% - 32px); margin-top: 8px; }
#bs-clear { width: calc(100% - 32px); margin-top: 6px; margin-bottom: 8px; }

/* ============== polls ============== */
.poll-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.poll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.poll-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 18px; transition: border-color 120ms var(--ease-out); }
.poll-card:hover { border-color: var(--border-2); }
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pc-cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-grotesk); font-size: 11px; color: var(--fg-2); letter-spacing: 0.06em; }
.pc-cat i { color: var(--accent); }
.pc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; margin: 0; color: var(--fg-0); }
.pc-sub { margin: 6px 0 14px; font-size: 12px; }
.pc-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-opt {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  position: relative; padding: 10px 14px; border-radius: 8px; background: var(--bg-3);
  border: 1px solid transparent; cursor: pointer; overflow: hidden; transition: all 120ms var(--ease-out);
  text-align: left;
}
.poll-opt:hover { border-color: var(--border-3); }
.poll-opt .po-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,0.04); z-index: 0; transition: width 200ms var(--ease-out); }
.poll-opt.lead .po-bar { background: rgba(31,230,16,0.12); }
.poll-opt > * { position: relative; z-index: 1; }
.po-label { font-size: 13px; color: var(--fg-1); }
.po-pct { font-family: var(--font-grotesk); font-size: 12px; color: var(--fg-2); font-feature-settings: "tnum" 1; }
.po-odd { font-family: var(--font-grotesk); font-weight: 700; font-size: 14px; color: var(--fg-0); font-feature-settings: "tnum" 1; min-width: 44px; text-align: right; }
.poll-opt.lead .po-odd { color: var(--accent); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-1); }
.pc-foot .muted { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-grotesk); font-size: 11px; }

.play-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border-1); }
.play-meta strong { font-family: var(--font-grotesk); font-weight: 700; }

/* ============== casino ============== */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.game-tile {
  --g-bg: var(--bg-2); --g-acc: var(--accent);
  position: relative; border-radius: 12px; overflow: hidden;
  display: block; aspect-ratio: 4/5; transition: all 200ms var(--ease-out);
  border: 1px solid var(--border-1);
}
.game-tile:hover { transform: translateY(-3px); border-color: var(--g-acc); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.gt-bg { position: absolute; inset: 0; background: var(--g-bg); display: flex; align-items: center; justify-content: center; }
.gt-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.10), transparent 60%); }
.gt-glyph { font-family: var(--font-display); font-weight: 900; font-size: 80px; color: var(--g-acc); opacity: 0.85; letter-spacing: -0.05em; }
.gt-meta { position: absolute; bottom: 10px; left: 12px; right: 40px; }
.gt-meta strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg-0); display: block; letter-spacing: -0.01em; }
.gt-meta .muted { font-family: var(--font-grotesk); font-size: 10px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.gt-play { position: absolute; bottom: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--g-acc); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.live-tile { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; }
.lt-head { display: flex; justify-content: space-between; align-items: center; }
.live-tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 8px 0 4px; color: var(--fg-0); letter-spacing: -0.01em; }
.live-tile .muted { font-size: 12px; }
.lt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; padding: 12px; background: var(--bg-2); border-radius: 8px; }
.lt-stats > div { display: flex; flex-direction: column; gap: 4px; }
.lt-stats .muted { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.lt-stats strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 14px; color: var(--fg-0); font-feature-settings: "tnum" 1; }

/* ============== empty card ============== */
.empty-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 40px 24px; text-align: center; }
.empty-card p { margin: 0 0 16px; }

/* ============== news ============== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 18px; transition: all 120ms var(--ease-out); cursor: pointer; }
.news-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.nc-cat { font-family: var(--font-grotesk); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0 0 10px; color: var(--fg-0); letter-spacing: -0.01em; }
.news-card .muted { font-size: 11px; font-family: var(--font-grotesk); }

/* ============== account ============== */
.profile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.ph-left { display: flex; align-items: center; gap: 16px; }
.ph-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #007500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--accent-ink);
}
.profile-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -0.03em; margin: 0; color: var(--fg-0); }
.profile-head .muted { font-size: 12px; font-family: var(--font-grotesk); margin-top: 4px; }

.wallet-strip { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }
.ws-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ws-card.primary { background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); border-color: var(--border-2); }
.ws-card .muted { font-family: var(--font-grotesk); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.ws-card strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 24px; color: var(--fg-0); font-feature-settings: "tnum" 1; line-height: 1; }
.ws-card.primary strong { font-size: 32px; color: var(--accent); }
.ws-card .btn { align-self: flex-start; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat-card .muted { font-family: var(--font-grotesk); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 24px; color: var(--fg-0); font-feature-settings: "tnum" 1; line-height: 1; }

.history-table { width: 100%; border-collapse: collapse; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; overflow: hidden; }
.history-table th { padding: 12px 16px; text-align: left; font-family: var(--font-grotesk); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); border-bottom: 1px solid var(--border-1); }
.history-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-1); font-size: 13px; color: var(--fg-1); }
.history-table tr:last-child td { border-bottom: none; }
.history-table .num { font-family: var(--font-grotesk); font-weight: 700; }
.history-table .pos { color: var(--accent); }
.history-table .neg { color: var(--red-400); }

/* ============== game shell common ============== */
.game-page { max-width: 1100px; margin: 0 auto; }
.gp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.gp-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -0.03em; margin: 0 0 2px; color: var(--fg-0); }
.gp-head .muted { font-family: var(--font-grotesk); font-size: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--fg-2); font-family: var(--font-grotesk); font-size: 12px; }
.back:hover { color: var(--fg-1); border-color: var(--border-3); }
.rg-note { margin-top: 24px; padding: 12px 16px; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 10px; font-family: var(--font-grotesk); font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.ap-row { margin-bottom: 12px; }
.ap-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }

/* ============== aviator ============== */
.aviator-stage {
  position: relative; aspect-ratio: 16/9; max-height: 420px;
  background: radial-gradient(ellipse at 20% 100%, #2B0E1E, #0A0A0F 60%);
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-1); margin-bottom: 16px;
}
.av-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-mult {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-size: 92px; color: var(--fg-0);
  letter-spacing: -0.05em; font-feature-settings: "tnum" 1; line-height: 1;
}
.av-mult.crashed { color: var(--red-400); }
.av-status { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--font-grotesk); font-size: 13px; color: var(--fg-2); letter-spacing: 0.06em; text-transform: uppercase; }
.av-history { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; overflow-x: auto; }
.av-pill { font-family: var(--font-grotesk); font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); font-feature-settings: "tnum" 1; flex-shrink: 0; }
.av-pill.good { background: rgba(31,230,16,0.12); color: var(--accent); }
.av-pill.mid { background: var(--bg-3); color: var(--fg-2); }
.av-pill.bad { background: rgba(255,61,61,0.12); color: var(--red-400); }

.av-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.av-panel { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; }
.ap-bet.cashout { background: var(--amber-400); color: #0A0A0A; animation: pulse 0.9s ease-in-out infinite; }

/* ============== slots ============== */
.slot-stage { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.slot-frame {
  background: linear-gradient(180deg, #0A1F0A, #060D06);
  border: 2px solid var(--accent); border-radius: 12px;
  padding: 18px; max-width: 480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  box-shadow: var(--shadow-glow); position: relative;
}
.slot-reel { background: var(--bg-0); border-radius: 8px; padding: 8px; min-height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slot-cell {
  width: 100%; height: 110px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 64px; color: var(--fg-0);
  background: var(--bg-1); border-radius: 6px; transition: all 200ms var(--ease-out);
}
.slot-cell.hit { background: rgba(31,230,16,0.18); box-shadow: 0 0 18px rgba(31,230,16,0.5); animation: winGlow 800ms ease-in-out 2; }
@keyframes winGlow { 50% { transform: scale(1.05); } }
.sym-7 { color: var(--amber-400) !important; }
.sym-bar { color: var(--blue-400) !important; }
.sym-st { color: var(--amber-300) !important; }
.sym-cl, .sym-sp { color: var(--fg-0) !important; }
.sym-hr, .sym-di { color: var(--red-400) !important; }
.sym-ch { color: var(--green-300) !important; }
.slot-msg { text-align: center; margin-top: 14px; font-family: var(--font-grotesk); font-size: 14px; color: var(--fg-2); }
.slot-controls { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; max-width: 480px; margin: 0 auto; }
.slot-pay { margin-top: 16px; max-width: 480px; margin-left: auto; margin-right: auto; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 10px; padding: 14px; }
.slot-pay summary { font-family: var(--font-grotesk); font-weight: 600; cursor: pointer; color: var(--fg-2); }
.slot-pay table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.slot-pay th, .slot-pay td { padding: 6px 8px; text-align: left; font-size: 12px; }
.slot-pay th { color: var(--fg-3); font-weight: 600; font-family: var(--font-grotesk); text-transform: uppercase; letter-spacing: 0.08em; }
.slot-pay .sym { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--bg-3); border-radius: 6px; margin-right: 6px; font-family: var(--font-display); font-weight: 900; }

/* ============== roulette ============== */
.rul-stage { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.rul-wheel-wrap { display: flex; justify-content: center; }
.rul-wheel {
  width: 240px; height: 240px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg,
    #00703C 0deg 9.73deg, #1A1A1A 9.73deg 19.46deg, #B00000 19.46deg 29.19deg, #1A1A1A 29.19deg 38.92deg,
    #B00000 38.92deg 48.65deg, #1A1A1A 48.65deg 58.38deg, #B00000 58.38deg 68.11deg, #1A1A1A 68.11deg 77.84deg,
    #B00000 77.84deg 87.57deg, #1A1A1A 87.57deg 97.30deg, #B00000 97.30deg 107.03deg, #1A1A1A 107.03deg 116.76deg,
    #B00000 116.76deg 126.49deg, #1A1A1A 126.49deg 136.22deg, #B00000 136.22deg 145.95deg, #1A1A1A 145.95deg 155.68deg,
    #B00000 155.68deg 165.41deg, #1A1A1A 165.41deg 175.14deg, #B00000 175.14deg 184.86deg, #1A1A1A 184.86deg 194.59deg,
    #B00000 194.59deg 204.32deg, #1A1A1A 204.32deg 214.05deg, #B00000 214.05deg 223.78deg, #1A1A1A 223.78deg 233.51deg,
    #B00000 233.51deg 243.24deg, #1A1A1A 243.24deg 252.97deg, #B00000 252.97deg 262.70deg, #1A1A1A 262.70deg 272.43deg,
    #B00000 272.43deg 282.16deg, #1A1A1A 282.16deg 291.89deg, #B00000 291.89deg 301.62deg, #1A1A1A 301.62deg 311.35deg,
    #B00000 311.35deg 321.08deg, #1A1A1A 321.08deg 330.81deg, #B00000 330.81deg 340.54deg, #1A1A1A 340.54deg 350.27deg,
    #B00000 350.27deg 360deg);
  border: 6px solid var(--bg-3); box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.rul-marker { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 14px solid var(--accent); z-index: 2; }
.rul-result {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--bg-2); border: 4px solid var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--fg-0);
  font-feature-settings: "tnum" 1;
}
.rul-result.green { background: #00703C; }
.rul-result.red { background: #B00000; }
.rul-result.black { background: #1A1A1A; }
.rul-hist { display: flex; gap: 4px; flex-wrap: wrap; align-content: flex-start; }
.rul-pill { width: 26px; height: 26px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-grotesk); font-weight: 700; font-size: 11px; color: var(--fg-0); font-feature-settings: "tnum" 1; }
.rul-pill.green { background: #00703C; }
.rul-pill.red { background: #B00000; }
.rul-pill.black { background: #1A1A1A; }

.rul-board { background: #003D1A; border: 2px solid #002A12; border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 56px 1fr; gap: 6px; margin-bottom: 16px; }
.rul-board > .rcell.zero { grid-row: 1; }
.rul-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rul-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 6px; }
.rcell {
  background: var(--bg-2); color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-grotesk); font-weight: 700; font-size: 13px;
  border-radius: 4px; padding: 10px 6px; transition: all 100ms var(--ease-out);
  font-feature-settings: "tnum" 1; min-height: 36px;
}
.rcell:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.rcell.red { background: #B00000; }
.rcell.black { background: #1A1A1A; }
.rcell.zero { background: #00703C; }
.rcell.out { background: #002A12; color: var(--fg-1); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.rcell.out.red { background: #B00000; }
.rcell.out.black { background: #1A1A1A; }

.rul-controls { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; }
.rul-bets { padding: 12px; background: var(--bg-2); border-radius: 8px; min-height: 50px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.rul-chip-tag { background: var(--bg-3); color: var(--fg-1); padding: 4px 10px; border-radius: 999px; font-family: var(--font-grotesk); font-size: 11px; font-feature-settings: "tnum" 1; cursor: pointer; }
.rul-chip-tag:hover { background: var(--bg-4); }
.rul-totals { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 10px; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.rul-totals strong { font-family: var(--font-grotesk); font-weight: 700; font-size: 16px; color: var(--fg-0); font-feature-settings: "tnum" 1; }
.rul-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ============== blackjack ============== */
.bj-table {
  background: radial-gradient(ellipse at center, #00703C, #003D1A);
  border-radius: 16px; padding: 30px; border: 2px solid #002A12;
  display: flex; flex-direction: column; gap: 20px; min-height: 460px;
  margin-bottom: 16px;
}
.bj-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bj-label { font-family: var(--font-grotesk); font-weight: 600; font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; }
.bj-label span { font-family: var(--font-grotesk); font-weight: 700; color: var(--fg-0); margin-left: 6px; }
.bj-cards { display: flex; gap: 8px; min-height: 120px; align-items: center; }
.bj-card {
  width: 78px; height: 110px; border-radius: 8px;
  background: #fff; color: #1A1A1A; padding: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  font-family: var(--font-grotesk); font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  animation: dealCard 280ms var(--ease-out);
}
@keyframes dealCard { from { transform: translateY(-20px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bj-card.red { color: var(--red-600); }
.bj-card.back {
  background: linear-gradient(135deg, var(--accent), #007500);
  color: var(--accent-ink);
  position: relative;
}
.bj-card.back::after { content: 'e'; font-family: var(--font-display); font-size: 36px; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bj-card .r { font-size: 18px; align-self: flex-start; line-height: 1; }
.bj-card .s { font-size: 32px; }
.bj-card .r.b { transform: rotate(180deg); align-self: flex-end; }
.bj-msg { text-align: center; font-family: var(--font-grotesk); font-weight: 700; font-size: 18px; color: var(--fg-0); padding: 8px 16px; background: rgba(0,0,0,0.4); border-radius: 999px; align-self: center; }
.bj-controls { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; }
.bj-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
@media (min-width: 720px) { .bj-actions { grid-template-columns: repeat(4, 1fr); } }

/* ============== tombala ============== */
.tom-stage { background: linear-gradient(180deg, #001F0F, #003D1A); border: 2px solid #002A12; border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 240px; gap: 20px; margin-bottom: 16px; }
.tom-card-wrap { display: flex; align-items: center; justify-content: center; }
.tom-card {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px;
  background: rgba(0,0,0,0.25); padding: 12px; border-radius: 10px;
  width: 100%; max-width: 540px;
}
.tc-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-grotesk); font-weight: 700; font-size: 14px;
  background: var(--bg-2); border-radius: 6px; color: var(--fg-1);
  font-feature-settings: "tnum" 1;
}
.tc-empty { background: transparent; }
.tc-hit { background: var(--accent); color: var(--accent-ink); animation: drawPop 320ms var(--ease-out); }
@keyframes drawPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.tom-side { display: flex; flex-direction: column; gap: 14px; }
.tom-current { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 16px; text-align: center; }
.tom-current .muted { font-family: var(--font-grotesk); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.tom-current strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 64px; color: var(--accent); font-feature-settings: "tnum" 1; line-height: 1; margin-top: 6px; text-shadow: 0 0 24px rgba(31,230,16,0.5); }
.tom-history { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; background: rgba(0,0,0,0.25); border-radius: 8px; max-height: 120px; overflow-y: auto; }
.tom-pill { font-family: var(--font-grotesk); font-weight: 600; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg-3); color: var(--fg-1); font-feature-settings: "tnum" 1; }
.tom-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: rgba(0,0,0,0.25); border-radius: 8px; }
.tom-prizes > div { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.tom-prizes .muted { font-family: var(--font-grotesk); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.tom-prizes strong { font-family: var(--font-grotesk); font-weight: 700; color: var(--accent); font-feature-settings: "tnum" 1; }
.tom-controls { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }

/* ============== dede ============== */
.dd-stage { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.dd-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(180deg, #1F0E1F, #0E0A14); padding: 14px; border-radius: 12px;
  border: 2px solid #FF6BFF40;
}
.dd-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 32px;
  border-radius: 8px; background: var(--bg-2); transition: all 200ms var(--ease-out);
}
.dd-cell.hit { transform: scale(1.1); box-shadow: 0 0 20px rgba(255,107,255,0.6); animation: ddPop 500ms var(--ease-out); }
@keyframes ddPop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1.1); } }
.dd-d { color: #FF6BFF; }
.dd-l { color: var(--amber-400); }
.dd-h { color: var(--red-400); }
.dd-s { color: var(--amber-300); }
.dd-x { color: var(--blue-400); }
.dd-o { color: var(--green-300); }
.dd-m { color: #FFA500; }
.dd-f { color: #FFB6E0; }
.dd-msg { text-align: center; margin-top: 16px; font-family: var(--font-grotesk); font-size: 14px; color: var(--fg-2); }
.dd-sym { display: inline-flex; width: 28px; height: 28px; background: var(--bg-3); border-radius: 6px; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; }

/* ============== responsive ============== */
@media (max-width: 1100px) {
  .betting-grid { grid-template-columns: 1fr; }
  .league-side, .bet-slip { position: static; max-height: none; }
  .league-side { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .league-side .ls-head { width: 100%; padding: 0 4px 4px; }
  .ls-item { width: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 52px; }
  .poll-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: 1fr; }
  .match-cards { grid-template-columns: 1fr; }
  .wallet-strip, .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .av-panels { grid-template-columns: 1fr; }
  .rul-stage { grid-template-columns: 1fr; }
  .tom-stage { grid-template-columns: 1fr; }
  .ml-cols { display: none; }
  .match-row { grid-template-columns: 1fr; gap: 10px; }
  .mr-odds { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  #view { padding: 16px 14px 40px; }
  .topbar-inner { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
  .hero { padding: 50px 16px 40px; margin: -16px -14px 24px; }
  .hero-title { font-size: 36px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .wallet-strip, .stat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 28px 22px; }
  .cta-band h2 { font-size: 26px; }
  .av-mult { font-size: 64px; }
  .rul-board { grid-template-columns: 40px 1fr; }
  .rcell { font-size: 11px; padding: 6px 2px; min-height: 28px; }
  .bj-card { width: 60px; height: 86px; }
  .bj-card .s { font-size: 24px; }
  .tom-controls { grid-template-columns: 1fr; }
  .history-table th:nth-child(3), .history-table td:nth-child(3),
  .history-table th:nth-child(6), .history-table td:nth-child(6) { display: none; }
}

/* lucide stroke override */
.lucide { stroke-width: 1.75; }

/* ============== gap-fillers (audit) ============== */
.hero-left  { min-width: 0; }
.hero-right { min-width: 0; }
.legal-right { display: flex; align-items: center; gap: 12px; }
.ph-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.slot-line {
  position: absolute; left: 18px; right: 18px; top: 50%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateY(-1px); pointer-events: none; opacity: 0.55;
  box-shadow: 0 0 12px rgba(31, 230, 16, 0.45);
}
