/* ═══════════════════════════════════════════════════════════════
   CRICMATES — Apple Liquid Glass UI (dark mode)
   Frosted glass · deep violet mesh · specular edges · floating pills
   ═══════════════════════════════════════════════════════════════ */

.lg-theme-root,
.lg-theme {
  color-scheme: dark;
}

:root {
  --purple-primary: #7c3aed;
  --purple-deep: #3b0764;
  --purple-bright: #a78bfa;
  --accent: #c084fc;
  --red-primary: var(--purple-primary);
  --red-dark: var(--purple-deep);
  --yellow-cta: rgba(255, 255, 255, 0.88);
  --yellow-dark: #c4b5fd;
  --bg: #06040f;
  --bg2: rgba(12, 8, 28, 0.72);
  --bg3: rgba(8, 6, 20, 0.55);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8f7fc;
  --muted: rgba(255, 255, 255, 0.52);
  --radius: 32px;
  --radius-sm: 22px;
  --radius-pill: 999px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --green: var(--purple-bright);
  --green2: var(--accent);
  --blue: #93c5fd;
  --red: #f472b6;
  --yellow: var(--accent);
  --gold: #e9d5ff;

  /* visionOS-style frosted glass */
  --lg-blur: 56px;
  --lg-blur-sm: 40px;
  --lg-blur-xl: 72px;
  --lg-saturate: 180%;
  --lg-glass: rgba(28, 28, 34, 0.52);
  --lg-glass-strong: rgba(32, 32, 40, 0.68);
  --lg-glass-deep: rgba(18, 18, 24, 0.78);
  --lg-glass-panel: rgba(25, 25, 30, 0.55);
  --lg-edge: rgba(255, 255, 255, 0.16);
  --lg-edge-bright: rgba(255, 255, 255, 0.28);
  --lg-edge-dim: rgba(255, 255, 255, 0.08);
  --lg-specular: rgba(255, 255, 255, 0.22);
  --lg-shadow:
    0 28px 64px rgba(0, 0, 0, 0.58),
    0 12px 28px rgba(0, 0, 0, 0.38);
  --lg-shadow-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  --lg-shadow-float: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ── Ambient mesh background ── */
.lg-theme {
  background: transparent;
  min-height: 100vh;
}

.lg-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 55% at 20% 0%, rgba(60, 40, 90, 0.25), transparent 52%),
    radial-gradient(ellipse 65% 45% at 100% 30%, rgba(40, 30, 70, 0.18), transparent 50%),
    linear-gradient(165deg, #0a0a0e 0%, #121218 45%, #0c0c12 100%);
  pointer-events: none;
}

.lg-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 78%);
}

@keyframes lg-mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -1%) scale(1.02); }
}

.lg-theme .lg-mesh-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: lg-mesh-drift 14s ease-in-out infinite;
}

.lg-theme .lg-mesh-orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(76, 29, 149, 0.28);
}

.lg-theme .lg-mesh-orb-b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: rgba(59, 7, 100, 0.35);
  animation-delay: -5s;
}

/* ── Dashboard: lightweight gradient (no wallpaper — mobile perf) ── */
.lg-theme #screen-dashboard {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(76, 29, 149, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 80%, rgba(88, 28, 72, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0e 0%, #121218 100%);
}

.lg-theme #screen-dashboard .bento-layout {
  position: relative;
  z-index: 1;
}

.lg-theme #screen-dashboard .bento-hero-figure {
  opacity: 0.5;
}

/* ── visionOS glass surfaces ── */
.lg-theme .setup-card,
.lg-theme .auth-form-card,
.lg-theme .toss-card,
.lg-theme .modal-card,
.lg-theme .login-player-card,
.lg-theme .player-card,
.lg-theme .history-card,
.lg-theme .team-card,
.lg-theme .dash-stat-card,
.lg-theme .dash-action-card,
.lg-theme .screen-header,
.lg-theme .scoring-panel,
.lg-theme .result-card,
.lg-theme .tourney-card,
.lg-theme .bento-cell,
.lg-theme .bento-rail,
.lg-theme .bento-search-pill,
.lg-theme .bento-stat-tile,
.lg-theme .splash-chip,
.lg-theme .splash-pitch-track,
.lg-theme .auth-tabs,
.lg-theme .number-input,
.lg-theme .select-field,
.lg-theme .player-input,
.lg-theme .photo-circle,
.lg-theme .setup-back-btn,
.lg-theme .back-btn,
.lg-theme .dash-icon-btn,
.lg-theme .bento-rail-btn,
.lg-theme .bento-action-tile,
.lg-theme .outline-btn,
.lg-theme .history-btn,
.lg-theme .wicket-btn,
.lg-theme .ball-chip,
.lg-theme .score-feed-item,
.lg-theme .pstat-card,
.lg-theme .wide-modal,
.lg-theme .auth-owner-corner-btn,
.lg-theme .run-btn,
.lg-theme .extras-row button,
.lg-theme .score-tab,
.lg-theme .notif-item,
.lg-theme .friend-row,
.lg-theme .history-score-block,
.lg-theme .player-entry-captain,
.lg-theme .swap-strike-btn,
.lg-theme .search-input,
.lg-theme #screen-auth .auth-container {
  position: relative;
}

.lg-theme .setup-card,
.lg-theme .auth-form-card,
.lg-theme .toss-card,
.lg-theme .modal-card,
.lg-theme .login-player-card,
.lg-theme .player-card,
.lg-theme .history-card,
.lg-theme .team-card,
.lg-theme .dash-stat-card,
.lg-theme .dash-action-card,
.lg-theme .screen-header,
.lg-theme .scoring-panel,
.lg-theme .tourney-card,
.lg-theme .bento-cell,
.lg-theme .bento-rail,
.lg-theme .bento-search-pill,
.lg-theme .bento-stat-tile,
.lg-theme .splash-chip,
.lg-theme .splash-pitch-track,
.lg-theme .auth-tabs,
.lg-theme .number-input,
.lg-theme .select-field,
.lg-theme .player-input,
.lg-theme .photo-circle,
.lg-theme .setup-back-btn,
.lg-theme .back-btn,
.lg-theme .dash-icon-btn,
.lg-theme .bento-rail-btn,
.lg-theme .bento-action-tile,
.lg-theme .outline-btn,
.lg-theme .history-btn,
.lg-theme .wicket-btn,
.lg-theme .ball-chip,
.lg-theme .score-feed-item,
.lg-theme .pstat-card,
.lg-theme .wide-modal,
.lg-theme .result-team-card,
.lg-theme .search-card,
.lg-theme .profile-hero,
.lg-theme .summary-strip,
.lg-theme .this-over-section,
.lg-theme .search-input,
.lg-theme .run-btn,
.lg-theme .auth-owner-corner-btn {
  background: var(--lg-glass-panel) !important;
  backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
  isolation: isolate;
}

/* Top specular shine (visionOS rim light) */
.lg-theme .setup-card::after,
.lg-theme .auth-form-card::after,
.lg-theme .modal-card::after,
.lg-theme .bento-cell::after,
.lg-theme .bento-rail::after,
.lg-theme .login-player-card::after,
.lg-theme .toss-card::after,
.lg-theme .bento-hero::after,
.lg-theme .screen-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    transparent 48%
  );
  pointer-events: none;
  z-index: 0;
}

.lg-theme .setup-card > *,
.lg-theme .auth-form-card > *,
.lg-theme .modal-card > *,
.lg-theme .bento-cell > *,
.lg-theme .login-player-card > * {
  position: relative;
  z-index: 1;
}

/* Liquid wobble on hero / large cards */
@keyframes lg-liquid-edge {
  0%, 100% { border-radius: 32px 28px 30px 34px / 30px 34px 28px 32px; }
  33% { border-radius: 30px 34px 32px 28px / 34px 28px 32px 30px; }
  66% { border-radius: 34px 30px 28px 32px / 28px 32px 34px 30px; }
}

.lg-theme .bento-hero,
.lg-theme .bento-cta-wide,
.lg-theme .bento-league-card,
.lg-theme .bento-quick,
.lg-theme .bento-panel {
  background: var(--lg-glass) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
}

/* ── Setup / auth backgrounds ── */
.lg-theme .setup-bg,
.lg-theme #screen-auth .setup-bg {
  background: transparent !important;
}

.lg-theme .splash-stadium-bg {
  filter: brightness(0.35) saturate(1.1) blur(2px);
}

.lg-theme .splash-stadium-shade {
  background:
    linear-gradient(180deg, rgba(26, 10, 62, 0.75), rgba(18, 8, 42, 0.55) 45%, rgba(12, 6, 28, 0.88)),
    radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.2), transparent 50%) !important;
}

.lg-theme .orb1 { background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent); }
.lg-theme .orb2 { background: radial-gradient(circle, rgba(232, 121, 249, 0.35), transparent); }
.lg-theme .orb3 { background: radial-gradient(circle, rgba(196, 181, 253, 0.3), transparent); }

.lg-theme .splash-logo,
.lg-theme .logo-text {
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(167, 139, 250, 0.4));
}

.lg-theme .splash-red-dot {
  background: var(--lg-glass-strong) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow-float);
}

.lg-theme .splash-chip {
  border-radius: var(--radius-pill) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ── Auth: floating glass tabs & lens title ── */
.lg-theme .auth-tabs {
  border-radius: var(--radius-pill) !important;
  padding: 5px !important;
  background: rgba(22, 22, 28, 0.55) !important;
  backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
}

.lg-theme .auth-tab {
  border-radius: var(--radius-pill) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lg-theme .auth-tab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px) saturate(160%);
}

.lg-theme .auth-logo {
  position: relative;
}

.lg-theme .auth-logo .logo-text {
  position: relative;
  display: inline-block;
}

.lg-theme .auth-logo .logo-text::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 180%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  animation: lg-lens-sweep 4s ease-in-out infinite;
}

@keyframes lg-lens-sweep {
  0%, 100% { transform: translate(-60%, -50%); opacity: 0.4; }
  50% { transform: translate(-40%, -50%); opacity: 0.9; }
}

/* ── Primary CTAs: bright glass pills ── */
.lg-theme .start-btn,
.lg-theme .fab-btn,
.lg-theme .share-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid var(--lg-edge-bright) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
  backdrop-filter: blur(28px) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(28px) saturate(var(--lg-saturate));
}

.lg-theme .bento-cta-wide {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.lg-theme .start-btn:hover,
.lg-theme .fab-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--lg-shadow-float), var(--lg-shadow-inset) !important;
}

.lg-theme .outline-btn {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.lg-theme .outline-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--purple-bright) !important;
}

/* ── Inputs: inset glass ── */
.lg-theme .select-field,
.lg-theme .player-input,
.lg-theme .player-select,
.lg-theme .number-input {
  background: rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.lg-theme .number-input input {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.lg-theme .select-field,
.lg-theme .player-input,
.lg-theme .player-select {
  color: #fff !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.lg-theme .select-field:focus,
.lg-theme .player-input:focus {
  border-color: rgba(196, 181, 253, 0.8) !important;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(139, 92, 246, 0.35) !important;
}

.lg-theme .num-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--purple-bright) !important;
}

.lg-theme .num-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* ── Bento dashboard ── */
.lg-theme .bento-screen {
  background: transparent !important;
}

.lg-theme .bento-rail {
  border-radius: 40px !important;
  padding: 16px 10px !important;
  background: var(--lg-glass-strong) !important;
  backdrop-filter: blur(var(--lg-blur-xl)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-xl)) saturate(var(--lg-saturate));
}

.lg-theme .bento-rail-btn {
  border-radius: 18px !important;
  width: 52px;
  height: 52px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lg-theme .bento-rail-btn:hover,
.lg-theme .bento-rail-btn.active {
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  backdrop-filter: blur(20px);
}

.lg-theme .bento-rail-avatar {
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.lg-theme .bento-search-pill {
  border-radius: var(--radius-pill) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.lg-theme .bento-search-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lg-theme .bento-quick {
  background: rgba(255, 255, 255, 0.09) !important;
}

.lg-theme .bento-quick:hover,
.lg-theme .bento-action-tile:hover,
.lg-theme .bento-cell button:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.lg-theme .bento-stat-tile,
.lg-theme .bento-stats .dash-stat-card {
  background: rgba(32, 32, 38, 0.45) !important;
  border-radius: var(--radius-sm) !important;
  backdrop-filter: blur(32px) saturate(var(--lg-saturate));
}

.lg-theme .bento-stat-val {
  color: #fff;
  text-shadow: 0 0 20px rgba(196, 181, 253, 0.5);
}

.lg-theme .bento-hero-featured .live-match-card,
.lg-theme .bento-hero-featured .bento-hero-match {
  background: rgba(22, 22, 28, 0.5) !important;
  backdrop-filter: blur(36px) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(36px) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow-inset) !important;
}

.lg-theme .bento-league-cta {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

/* ── Scoring: glass header & run pads ── */
.lg-theme .scoring-header {
  background: var(--lg-glass-strong) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  border-top: none;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
}

.lg-theme .runs-grid .run-btn {
  background: var(--lg-glass-panel) !important;
  backdrop-filter: blur(32px) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(32px) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow-inset), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.lg-theme .runs-grid .run-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.04);
}

.lg-theme .run-btn.six,
.lg-theme .run-btn.four {
  background: linear-gradient(145deg, rgba(253, 224, 71, 0.35), rgba(232, 121, 249, 0.25)) !important;
}

.lg-theme .wicket-btn {
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.35), rgba(190, 24, 93, 0.25)) !important;
  color: #fff !important;
}

/* ── Modals & overlays ── */
.lg-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.lg-theme .modal-card {
  border-radius: 36px !important;
  background: var(--lg-glass-strong) !important;
  backdrop-filter: blur(var(--lg-blur-xl)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-xl)) saturate(var(--lg-saturate));
}

.lg-theme .screen-header {
  background: var(--lg-glass) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border-bottom: 1px solid var(--lg-edge-dim) !important;
  box-shadow: var(--lg-shadow-inset) !important;
}

.lg-theme .back-btn,
.lg-theme .setup-back-btn {
  border-radius: var(--radius-pill) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.lg-theme .back-btn:hover,
.lg-theme .setup-back-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

/* ── Result / live cards ── */
.lg-theme .live-match-card,
.lg-theme .result-banner {
  background: var(--lg-glass) !important;
  backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
}

.lg-theme .result-trophy {
  filter: drop-shadow(0 0 24px rgba(253, 224, 71, 0.5));
}

.lg-theme .share-toast {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(196, 181, 253, 0.5) !important;
  color: #e9d5ff !important;
  border-radius: var(--radius-pill) !important;
}

.lg-theme .login-player-card:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(196, 181, 253, 0.6) !important;
  transform: translateY(-4px);
}

.lg-theme .lpc-avatar,
.lg-theme .pc-avatar,
.lg-theme .cub-avatar {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(232, 121, 249, 0.6)) !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.lg-theme .badge-a,
.lg-theme .badge-b {
  backdrop-filter: blur(8px);
}

.lg-theme .badge-a {
  background: rgba(196, 181, 253, 0.2) !important;
  color: #e9d5ff !important;
  border-color: rgba(196, 181, 253, 0.45) !important;
}

.lg-theme .badge-b {
  background: rgba(165, 180, 252, 0.2) !important;
  color: #c7d2fe !important;
  border-color: rgba(165, 180, 252, 0.45) !important;
}

.lg-theme .vs-divider span {
  color: #e9d5ff;
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.6);
}

.lg-theme .section-title {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.lg-theme .pstat-highlight {
  background: rgba(139, 92, 246, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lg-theme .cm-animated-app .start-btn,
.lg-theme .cm-animated-app .dash-cta-bar,
.lg-theme .cm-animated-app .fab-btn {
  animation: none;
}

.lg-theme .result-bg,
.lg-theme .toss-overlay {
  background: transparent !important;
}

.lg-theme .splash-pitch-track {
  background: rgba(32, 32, 38, 0.45) !important;
  backdrop-filter: blur(40px) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-edge-bright) !important;
  box-shadow: var(--lg-shadow), var(--lg-shadow-inset) !important;
}

.lg-theme .splash-pitch-fill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(200, 200, 210, 0.35)) !important;
}

/* Floating depth on hover */
.lg-theme .bento-cell:hover,
.lg-theme .login-player-card:hover,
.lg-theme .search-card:hover,
.lg-theme .history-card:hover {
  border-color: var(--lg-edge-bright) !important;
  box-shadow: var(--lg-shadow-float), var(--lg-shadow-inset) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg-theme .bento-cell,
  .lg-theme .auth-form-card,
  .lg-theme .modal-card {
    background: rgba(32, 32, 40, 0.92) !important;
  }
}

.lg-theme .splash-side-nav li.active {
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 20px rgba(196, 181, 253, 0.6);
}

.lg-theme .splash-side-nav li {
  color: var(--muted);
}

/* Mobile: lighter glass + nav aligned with bento-dashboard.css */
@media (max-width: 720px) {
  .lg-theme .lg-mesh-orb {
    display: none;
  }

  .lg-theme .bento-cell,
  .lg-theme .bento-rail,
  .lg-theme .auth-form-card,
  .lg-theme .modal-card {
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }

  .lg-theme .bento-rail {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .lg-theme .bento-rail-secondary {
    display: none !important;
  }

  .lg-theme .bento-rail-avatar {
    display: flex !important;
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-theme .bento-hero,
  .lg-theme .auth-logo .logo-text::after {
    animation: none !important;
  }
}

html[data-theme="light"] .lg-theme-root,
html[data-theme="light"] .lg-theme,
body.theme-light.lg-theme {
  color-scheme: light;
  --bg: #eef1f8;
  --bg2: rgba(255, 255, 255, 0.88);
  --bg3: rgba(243, 245, 250, 0.92);
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.58);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .lg-mesh-orb,
body.theme-light .lg-mesh-orb {
  opacity: 0.28;
}
