:root {
  --deep: #0f1923;
  --navy: #1a2c38;
  --panel: #213743;
  --panel-2: #2f4553;
  --void: #0a1218;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #b1bad3;
  --dim: #7b8a9a;
  --green: #24ee89;
  --green-hot: #00e701;
  --cyan: #1ea7ff;
  --gold: #e8c15a;
  --gold-2: #f6d67b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --topbar: 36px;
  --header: 56px;
  --tabbar: 64px;
  --radius: 16px;
  --font: "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Noto Sans Thai", system-ui, sans-serif;
}

[lang="zh-CN"] body, html[lang="zh-CN"] { font-family: "Noto Sans SC", var(--font); }
[lang="zh-TW"] body, html[lang="zh-TW"] { font-family: "Noto Sans TC", var(--font); }
[lang="ja"] body, html[lang="ja"] { font-family: "Noto Sans JP", var(--font); }
[lang="ko"] body, html[lang="ko"] { font-family: "Noto Sans KR", var(--font); }
[lang="ar"] body, html[lang="ar"] { font-family: "Noto Sans Arabic", var(--font); }
[lang="th"] body, html[lang="th"] { font-family: "Noto Sans Thai", var(--font); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--deep); color: var(--text); font-family: var(--font); }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.app-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(36, 238, 137, 0.07), transparent 28%),
    radial-gradient(circle at bottom left, rgba(30, 167, 255, 0.08), transparent 30%);
  z-index: 0;
}

#app { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }

/* === Four-second opening loader === */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--deep);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.site-loader::before {
  content: "";
  position: absolute;
  width: min(76vw, 580px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 238, 137, 0.15), transparent 68%);
  animation: siteLoaderGlow 1.6s ease-in-out infinite alternate;
}
.site-loader__content { position: relative; z-index: 1; width: min(82vw, 340px); text-align: center; }
.site-loader__mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: var(--navy); color: var(--green); font-family: Orbitron, sans-serif; font-size: 1.2rem; font-weight: 800; box-shadow: 0 0 0 1px rgba(36, 238, 137, 0.25), 0 0 32px rgba(36, 238, 137, 0.2); }
.site-loader__title { display: block; margin-bottom: 14px; color: var(--green); font-family: Orbitron, sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: 0.2em; }
.site-loader__track { height: 7px; overflow: hidden; border: 1px solid rgba(36, 238, 137, 0.35); border-radius: 999px; background: rgba(255,255,255,0.08); }
.site-loader__bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 14px rgba(36, 238, 137, 0.85); }
.site-loader__percent { display: block; margin-top: 10px; color: var(--muted); font-family: Orbitron, sans-serif; font-size: 0.75rem; }
.site-loader.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.is-loading #app, .is-loading .app-bg { visibility: hidden; }
@keyframes siteLoaderGlow { from { transform: scale(0.85); opacity: 0.45; } to { transform: scale(1.12); opacity: 1; } }

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.boot-mark {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin: 0 auto 14px;
  background: #1a2c38; color: var(--green);
  font-family: Orbitron, sans-serif; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(36, 238, 137, 0.25), 0 0 30px rgba(36, 238, 137, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(10, 18, 24, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
}
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.flag-box {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--navy);
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.topbar-lang b {
  font-size: 12px;
  font-weight: 800;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.lang-switch svg { width: 14px; height: 14px; color: var(--green); }

.header {
  position: sticky;
  top: var(--topbar);
  z-index: 45;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(15, 25, 35, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-btn span, .burger {
  display: block; width: 16px; height: 2px; background: #d5dce6; position: relative;
}
.burger::before, .burger::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #d5dce6;
}
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.brand-lockup {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.logo {
  width: 36px; height: 36px; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(36,238,137,0.35));
}
.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.btn-login {
  height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--panel); font-weight: 700; font-size: 13px;
}
.btn-register, .btn-cta {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--green-hot);
  color: #062012; font-weight: 800; font-size: 13px;
}
.btn-register:hover, .btn-cta:hover { filter: brightness(1.06); }
.btn-ghost {
  height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: #fff; font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,0.04);
}
.user-chip {
  height: 36px; padding: 0 10px; border-radius: 10px;
  background: var(--navy); border: 1px solid var(--line); font-weight: 700; font-size: 12px;
}

.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.55);
}
.sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(248px, 86vw);
  z-index: 70;
  background: #0c151d;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  padding: 14px 12px 12px;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  pointer-events: none;
}
.sidebar.open { transform: translateX(0); pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.brand-text { line-height: 1.05; }
.brand-text b { display: block; font-family: Orbitron, sans-serif; letter-spacing: 0.5px; font-size: 14px; }
.brand-text small { color: var(--green); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.jackpot {
  width: 100%; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(232, 193, 90, 0.28);
  background: linear-gradient(135deg, rgba(232,193,90,0.12), transparent);
  padding: 12px; text-align: left; margin-bottom: 12px;
}
.jackpot .kicker { font-size: 10px; letter-spacing: 1.4px; color: var(--gold); font-weight: 800; }
.jackpot .amount {
  font-family: Rajdhani, Orbitron, sans-serif; font-size: 26px; font-weight: 700; color: var(--gold-2);
  text-shadow: 0 0 18px rgba(232,193,90,0.35);
}
.jackpot .sub { font-size: 11px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px; border-radius: 12px; text-align: left; color: var(--muted);
}
.side-item:hover, .side-item.active { background: rgba(36,238,137,0.08); color: #fff; }
.side-item.active { box-shadow: inset 0 0 0 1px rgba(36,238,137,0.22); }
.side-ico { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.side-ico img { width: 100%; height: 100%; }
.side-item .en { display: block; font-size: 10px; color: var(--dim); font-weight: 500; }
.side-item .zh { display: block; font-size: 13px; font-weight: 700; color: inherit; }
.sidebar-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.support-btn {
  height: 40px; border-radius: 12px; background: rgba(36,238,137,0.1);
  color: var(--green); font-weight: 700; font-size: 13px;
}
.age-badge { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; padding: 6px 4px; }
.age-circle {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--dim);
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(33, 55, 67, 0.35);
  height: 36px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 32s linear infinite; padding: 0 12px;
}
.win-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(15,25,35,0.7); border: 1px solid var(--line);
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.content { padding: 12px 12px 28px; }

.hero {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(105deg, rgba(251, 191, 36, 0.22), #122433 46%, #0f1923);
}
.hero-copy { padding: 18px 16px 44px; position: relative; z-index: 2; max-width: 72%; }
.hero-kicker {
  display: inline-flex; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(36,238,137,0.12); color: var(--green);
  font-size: 10px; font-weight: 800; letter-spacing: 1px; align-items: center;
}
.hero h1 { margin: 10px 0 8px; font-size: 22px; line-height: 1.15; font-weight: 900; }
.hero p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: 0.9; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0f1923 12%, rgba(15,25,35,0.55) 48%, transparent 78%);
}
.hero-dots {
  position: absolute; left: 16px; bottom: 12px; display: flex; gap: 6px; z-index: 3;
}
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.hero-dots button.on { width: 18px; border-radius: 8px; background: var(--green); }
.hero-nav {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 6px; z-index: 3;
}
.hero-nav button {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(15,25,35,0.7); border: 1px solid var(--line-strong);
}

.promo-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 146px;
  border-radius: 16px;
  background: var(--navy);
  border: 1px solid var(--line);
  text-align: left;
  padding: 0;
}
.promo-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.promo-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.55);
  transform-origin: center 40%;
  opacity: 0.52;
  filter: brightness(0.68) saturate(0.8);
  pointer-events: none;
}
.promo-art.zoom img {
  transform: scale(1.9);
  transform-origin: center 42%;
}
.promo-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 25, 35, 0.94) 0%, rgba(15, 25, 35, 0.55) 48%, rgba(15, 25, 35, 0.38) 100%);
  pointer-events: none;
}
.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
}
.promo-copy {
  position: relative;
  z-index: 1;
  padding: 10px 12px 12px;
}
.promo-card h3 { margin: 0; font-size: 14px; }
.promo-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.section { margin-top: 22px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.eyebrow { font-size: 11px; letter-spacing: 1.6px; color: var(--green); font-weight: 800; }
.section-head h2 { margin: 2px 0 0; font-size: 20px; }
.linkish { color: var(--muted); font-size: 12px; font-weight: 700; }

.filters {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px;
  padding-bottom: 2px; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px 0 6px; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; flex-shrink: 0;
}
.filter img, .filter .mini { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; }
.filter.on { background: #062012; color: #d8ffe8; border-color: rgba(36,238,137,0.4); }

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.game-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b141c;
  text-align: left;
}
.game-card .cover, .game-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent 52%, rgba(0,0,0,.12));
}
.game-card .meta { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.game-card .tag {
  display: inline-flex; height: 18px; padding: 0 6px; border-radius: 6px;
  background: rgba(36,238,137,0.18); color: var(--green);
  font-size: 10px; font-weight: 800; margin-bottom: 4px;
}
.game-card h3 { margin: 0; font-size: 13px; }
.game-card .online { margin: 2px 0 0; font-size: 11px; color: #d0d8e2; }

.live-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.live-card {
  position: relative; min-height: 140px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); text-align: left;
}
.live-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.35), rgba(0,0,0,.1));
}
.live-card .meta { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  background: #e10600; font-size: 10px; font-weight: 800; margin-bottom: 6px;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }

.sports-list { display: grid; gap: 8px; }
.sport-row {
  display: grid; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: var(--navy); border: 1px solid var(--line);
}
.sport-row .league { color: var(--dim); font-size: 12px; }
.sport-row .match { font-weight: 800; }
.odds { display: flex; gap: 8px; }
.odd {
  flex: 1; min-width: 0; height: 44px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; line-height: 1.1; font-size: 12px;
}
.odd b { display: block; font-size: 14px; color: var(--green); }

.lotto-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lotto-card {
  position: relative; min-height: 140px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); text-align: left;
}
.lotto-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lotto-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, #0f1923, transparent); }
.lotto-card .meta { position: relative; padding: 16px; }
.lotto-card .when { color: var(--muted); font-size: 12px; }
.lotto-card h3 { margin: 6px 0; font-size: 18px; }
.lotto-card .prize { color: var(--gold-2); font-family: Rajdhani, sans-serif; font-size: 26px; font-weight: 700; }
.lotto-card .go { color: var(--green); font-weight: 700; font-size: 13px; }

.vip-banner {
  margin-top: 22px; position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid rgba(232,193,90,0.2); min-height: 140px;
  background: linear-gradient(120deg, #1a2c38ee, #2a1908cc 50%, #1a2c38ee);
  padding: 20px; text-align: left; width: 100%;
}
.vip-banner h3 { margin: 4px 0 8px; font-size: 20px; }
.vip-banner p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

.footer {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.footer h4 { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.footer button { display: block; color: #d5dce6; font-size: 13px; padding: 4px 0; text-align: left; }
.footer-brand { grid-column: 1 / -1; }
.coins { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.coin {
  height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--line); font-size: 12px; font-weight: 800;
}
.legal { margin-top: 18px; color: var(--dim); font-size: 12px; line-height: 1.6; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(12, 21, 29, 0.95);
  border-top: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; color: var(--muted); font-size: 10px; font-weight: 700;
}
.tab-item img { width: 24px; height: 24px; border-radius: 6px; }
.tab-item.on { color: var(--green); }

.overlay, .gate-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 16px;
}
.modal-backdrop { z-index: 90; padding: 16px; align-items: center; }
.modal {
  width: min(440px, 100%);
  background: #101c27;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
  position: relative;
}
.modal.auth { max-height: min(92vh, 760px); overflow: auto; }
.modal-glow {
  position: absolute; inset: 0 0 auto 0; height: 128px;
  background: radial-gradient(circle at top, rgba(36,238,137,0.22), transparent 70%);
  pointer-events: none;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 8px; position: relative;
}
.modal-head .kicker { color: var(--green); font-size: 11px; letter-spacing: 1.4px; font-weight: 800; }
.modal-head h3 { margin: 4px 0 0; }
.auth-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: Orbitron, sans-serif; font-size: 12px; letter-spacing: 0.4px;
}
.auth-brand small { display: block; color: var(--green); font-size: 9px; letter-spacing: 1.6px; }
.close {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(10,18,24,0.7); color: var(--muted);
}
.modal-body { padding: 8px 20px 20px; position: relative; }
.auth-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.gift-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 14px;
  border: 1px solid rgba(36,238,137,0.28);
  background: rgba(36,238,137,0.08);
  margin-bottom: 12px;
}
.gift-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(36,238,137,0.16); color: var(--green);
  display: grid; place-items: center; font-size: 18px;
}
.gift-banner b { display: block; color: #d8ffe8; font-size: 13px; }
.gift-banner span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.auth-tab {
  height: 40px; border-radius: 12px; font-weight: 800; font-size: 13px;
  background: transparent; color: var(--dim);
}
.auth-tab.on { background: var(--panel); color: #fff; }
.field { margin-bottom: 12px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field-box {
  display: flex; align-items: center; gap: 8px;
  height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--deep); padding: 0 12px;
}
.field-box input {
  width: 100%; background: transparent; border: 0; outline: none; color: #fff;
}
.geo-line { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.lang-search {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--deep); padding: 0 12px; outline: none; margin-bottom: 12px;
}
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 360px; overflow: auto; }
.lang-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02); text-align: left;
}
.lang-item small { display: block; color: var(--dim); font-weight: 500; }
.lang-item.on { border-color: var(--green); background: rgba(36,238,137,0.08); }
.auth-cta {
  width: 100%; height: 46px; border-radius: 12px;
  background: var(--green-hot); color: #062012; font-weight: 800; font-size: 14px;
}
.social-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.social-btn {
  height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); font-size: 11px; font-weight: 700; color: var(--muted);
}
.legal-mini { margin: 12px 0 0; color: var(--dim); font-size: 11px; line-height: 1.5; }
.notice {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(36,238,137,0.08); color: #d8ffe8; font-size: 13px;
}
.error {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,77,77,0.12); color: #ffd0d0; font-size: 13px;
}

.page-panel {
  background: var(--navy); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.page-panel h1 { margin: 0 0 8px; }
.page-panel p { color: var(--muted); }

.chat {
  position: fixed; right: 12px; bottom: 86px; width: min(340px, calc(100vw - 24px));
  height: 420px; background: #15232e; border: 1px solid var(--line-strong);
  border-radius: 18px; z-index: 55; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--shadow);
}
.chat-head { padding: 12px 14px; background: #1a2c38; font-weight: 800; display: flex; justify-content: space-between; }
.chat-log { flex: 1; overflow: auto; padding: 12px; display: grid; gap: 8px; align-content: start; }
.bubble { max-width: 85%; padding: 8px 10px; border-radius: 12px; font-size: 13px; }
.bubble.bot { background: var(--navy); }
.bubble.me { background: rgba(36,238,137,0.16); justify-self: end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--deep); padding: 0 10px; outline: none; }

.gate-card {
  position: relative;
  width: min(460px, 100%);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(36, 238, 137, 0.3);
  background: rgba(12, 23, 32, 0.95);
  padding: 28px 24px 22px;
  box-shadow: 0 0 40px rgba(36, 238, 137, 0.12);
}
.gate-blob {
  pointer-events: none;
  position: absolute; left: -64px; top: -80px;
  width: 192px; height: 192px; border-radius: 50%;
  background: rgba(36, 238, 137, 0.15); filter: blur(48px);
}
.gate-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.gate-orb {
  position: relative;
  width: 112px; height: 112px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.ring {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.ring.a {
  inset: 4px;
  border: 1px dashed rgba(30, 167, 255, 0.4);
  animation: spin-slow 8s linear infinite;
}
.ring.b {
  inset: 12px;
  border: 1px solid rgba(36, 238, 137, 0.5);
  animation: spin-rev 5.5s linear infinite;
}
.orb-core {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 24px rgba(36, 238, 137, 0.28);
  display: grid; place-items: center;
}
.gate-kicker {
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--green);
  font-weight: 800;
}
.gate-title { margin: 8px 0 0; text-align: center; font-size: 20px; font-weight: 900; }
.gate-status { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.gate-progress { margin-top: 22px; width: 100%; }
.gate-progress-head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px;
}
.gate-progress-head span { font-size: 12px; color: var(--muted); }
.gate-pct {
  font-family: Rajdhani, sans-serif;
  font-size: 24px; font-weight: 700; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.gate-bar {
  height: 12px; overflow: hidden; border-radius: 999px;
  background: #0a1218; box-shadow: inset 0 0 0 1px var(--line);
}
.gate-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e701, #24ee89 70%, #7cf0c0);
  box-shadow: 0 0 12px rgba(36, 238, 137, 0.55);
  transition: width 0.08s linear;
}
.gate-feats {
  margin-top: 22px; width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  text-align: center; font-size: 11px; color: var(--muted);
}
.gate-feat {
  border-radius: 12px; background: rgba(10, 18, 24, 0.7); padding: 8px 6px;
}
.gate-feat svg { display: block; margin: 0 auto 4px; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.me-card {
  background: var(--navy); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.me-card h1 { margin: 0 0 6px; font-size: 22px; }
.me-card p { color: var(--muted); }

[dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(105%); border-right: 0; border-left: 1px solid rgba(255,255,255,0.05); }
[dir="rtl"] .sidebar.open { transform: translateX(0); }
[dir="rtl"] .hero-art::after { background: linear-gradient(-90deg, #0f1923 12%, rgba(15,25,35,0.55) 48%, transparent 78%); }

@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid, .live-grid, .lotto-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .hero { min-height: 240px; }
  .content { padding: 16px 16px 32px; max-width: 720px; margin: 0 auto; }
}
