/* ============================================================================
   BuxFlip - Liquid Glass Theme (liquidGL Powered)
   Real optical refraction, chromatic aberration & specular highlights
   via naughtyduk/liquidGL (WebGPU / WebGL2)
   ============================================================================ */

html[data-theme="liquid"],
body[data-theme="liquid"] {
  --bg: #070512;
  --bg-deep: #030208;
  --surface: rgba(14, 10, 30, 0.28);
  --surface-2: rgba(22, 14, 44, 0.38);
  --surface-3: rgba(32, 20, 62, 0.48);
  --line: rgba(255, 255, 255, 0.16);
  --line-hi: rgba(255, 255, 255, 0.32);

  --vio: #B28DFF;
  --vio-2: #E0409A;
  --cy: #56E1FF;
  --gold: #FFCA45;
  --grn: #4ADEA0;
  --red: #FF5E7E;

  --rad: 26px;
  --rad-sm: 14px;
  --rad-lg: 32px;

  --shadow-card: 0 16px 45px rgba(0, 0, 0, 0.7);
  --glow-vio: 0 0 32px rgba(178, 141, 255, 0.4);
  --glow-cy: 0 0 32px rgba(86, 225, 255, 0.35);

  /* Exact physical optical refraction background verified in liquid_glass_lab.html */
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(224, 64, 154, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 85%, rgba(124, 58, 237, 0.32), transparent 60%),
    repeating-conic-gradient(from 0deg at 50% 50%, #120E22 0deg 14deg, #0C091A 14deg 28deg) !important;
  background-attachment: fixed !important;
  color: #EFEFF5 !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   TRUE LIQUID GLASS LENSES (liquidGL WebGPU/WebGL targets)
   When liquidGL mounts on .liquidGL elements, the element itself must have
   transparent background so the live optical refraction shader canvas shines through.
   CRITICAL: Do NOT transition transform or translate via CSS — liquidGL handles
   smooth 60fps tilt physically on mousemove!
   ──────────────────────────────────────────────────────────────────────────── */
body[data-theme="liquid"] .liquidGL {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative !important;
  isolation: isolate !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* Ensure all textual/interactive children sit above the refraction canvas */
body[data-theme="liquid"] .liquidGL > * {
  position: relative;
  z-index: 2;
}

/* ─── CRITICAL: protect .tile .art (game artwork) from being collapsed ───
   .liquidGL > * sets position:relative which would override .art's
   position:absolute;inset:0 and collapse it to 0 height.
   This rule re-asserts absolute positioning specifically for artwork. */
body[data-theme="liquid"] .tile .art {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  opacity: 0.72 !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ::after scrim must also stay absolute */
body[data-theme="liquid"] .tile.has-art::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(4,3,14,.35) 0%, rgba(4,3,14,.80) 55%, rgba(4,3,14,.97) 100%) !important;
}

/* Icon and text children float above artwork */
body[data-theme="liquid"] .tile .ico-img,
body[data-theme="liquid"] .tile h3,
body[data-theme="liquid"] .tile .sub,
body[data-theme="liquid"] .tile .go,
body[data-theme="liquid"] .tile .badge {
  position: relative !important;
  z-index: 3 !important;
}


/* Specular top highlight line on glass cards */
body[data-theme="liquid"] .card::before,
body[data-theme="liquid"] .tbl::before,
body[data-theme="liquid"] .tile::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
  z-index: 3;
}

/* Fallback for cards before shader finishes uploading snapshot */
body[data-theme="liquid"] .card:not(.liquidGL),
body[data-theme="liquid"] .tbl:not(.liquidGL),
body[data-theme="liquid"] .tile:not(.liquidGL),
body[data-theme="liquid"] .modal-card:not(.liquidGL) {
  background: rgba(14, 10, 30, 0.38) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--rad) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Frosted Refractive Header */
body[data-theme="liquid"] header.nav,
body[data-theme="liquid"] .hdr {
  background: rgba(7, 5, 18, 0.55) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Liquid Glass Buttons */
body[data-theme="liquid"] .btn {
  background: linear-gradient(135deg, rgba(178, 141, 255, 0.85), rgba(224, 64, 154, 0.85)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 26px rgba(178, 141, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s ease !important;
}

body[data-theme="liquid"] .btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 14px 36px rgba(178, 141, 255, 0.55), 0 0 24px rgba(224, 64, 154, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body[data-theme="liquid"] .btn.gh,
body[data-theme="liquid"] .btn.ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Liquid KPIs, Chips and Pills */
body[data-theme="liquid"] .kpi,
body[data-theme="liquid"] .pill,
body[data-theme="liquid"] .chip {
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-radius: 16px !important;
}

/* Liquid Inputs */
body[data-theme="liquid"] input,
body[data-theme="liquid"] select,
body[data-theme="liquid"] textarea {
  background: rgba(10, 7, 24, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  color: #fff !important;
}

body[data-theme="liquid"] input:focus {
  border-color: rgba(178, 141, 255, 0.65) !important;
  box-shadow: 0 0 20px rgba(178, 141, 255, 0.35) !important;
  outline: none !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   GAME-SPECIFIC LIQUID GLASS RENDERING
   Transforms games (Coinflip, Limbo, Mines, Towers, Blackjack, Upgrader)
   into refractive physical crystal lenses
   ──────────────────────────────────────────────────────────────────────────── */

/* Coinflip: Prismatic Liquid Crystal Medallion */
body[data-theme="liquid"] .cf-stage {
  filter: drop-shadow(0 16px 36px rgba(178, 141, 255, 0.4));
}

body[data-theme="liquid"] .cf-stage::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 141, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body[data-theme="liquid"] .cf-heads {
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.95) 0%, rgba(86,225,255,.6) 40%, rgba(124,58,237,.7) 80%, rgba(12,9,28,.9) 100%) !important;
  border: 2.5px solid rgba(86,225,255,.85) !important;
  box-shadow: 0 16px 40px rgba(86,225,255,.35), inset 0 2px 8px rgba(255,255,255,.8), inset 0 -4px 12px rgba(124,58,237,.6) !important;
  color: #070512 !important;
  text-shadow: 0 1px 2px rgba(255,255,255,.6) !important;
}

body[data-theme="liquid"] .cf-tails {
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.95) 0%, rgba(244,114,182,.6) 40%, rgba(224,64,154,.7) 80%, rgba(12,9,28,.9) 100%) !important;
  border: 2.5px solid rgba(224,64,154,.85) !important;
  box-shadow: 0 16px 40px rgba(224,64,154,.35), inset 0 2px 8px rgba(255,255,255,.8), inset 0 -4px 12px rgba(224,64,154,.6) !important;
  color: #070512 !important;
  text-shadow: 0 1px 2px rgba(255,255,255,.6) !important;
}

/* Limbo: Frosted Crystal Display with Cyan Dispersion */
body[data-theme="liquid"] .lb-stage {
  background: rgba(14, 10, 32, 0.45) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(86, 225, 255, 0.45) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.7), 0 0 32px rgba(86, 225, 255, 0.25), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

body[data-theme="liquid"] .lb-stage .mult {
  color: #56E1FF !important;
  text-shadow: 0 0 28px rgba(86, 225, 255, 0.65), 0 0 50px rgba(178, 141, 255, 0.4) !important;
}

body[data-theme="liquid"] .lb-stage .bar {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

body[data-theme="liquid"] .lb-stage .bar i {
  background: linear-gradient(90deg, #56E1FF, #B28DFF) !important;
  box-shadow: 0 0 16px rgba(86, 225, 255, 0.6) !important;
}

/* Towers & Mines: Frosted Refractive Glass Tiles */
body[data-theme="liquid"] .tw-t,
body[data-theme="liquid"] .mn-t {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.4) !important;
  border-radius: 12px !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body[data-theme="liquid"] .tw-row.active .tw-t:hover,
body[data-theme="liquid"] .mn-t:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(178, 141, 255, 0.6) !important;
  box-shadow: 0 0 20px rgba(178, 141, 255, 0.4), inset 0 1px 1px #FFF !important;
}

body[data-theme="liquid"] .tw-t.safe,
body[data-theme="liquid"] .mn-t.safe {
  background: radial-gradient(circle at 50% 30%, rgba(74,222,160,.45), rgba(74,222,160,.12)) !important;
  border-color: rgba(74,222,160,.8) !important;
  box-shadow: 0 0 24px rgba(74,222,160,.5), inset 0 1px 2px rgba(255,255,255,.6) !important;
  color: #4ADEA0 !important;
}

body[data-theme="liquid"] .tw-t.trap,
body[data-theme="liquid"] .mn-t.trap {
  background: radial-gradient(circle at 50% 30%, rgba(240,97,109,.5), rgba(240,97,109,.12)) !important;
  border-color: rgba(240,97,109,.85) !important;
  box-shadow: 0 0 24px rgba(240,97,109,.5), inset 0 1px 2px rgba(255,255,255,.6) !important;
  color: #FF5E7E !important;
}

/* Blackjack: Frosted Acrylic Cards */
body[data-theme="liquid"] .cardp {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(230,235,245,0.85)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5), inset 0 1px 0 #FFF !important;
  border-radius: 12px !important;
}

body[data-theme="liquid"] .cardp.back {
  background: linear-gradient(135deg, rgba(124,58,237,.85), rgba(224,64,154,.85)) !important;
  border: 1.5px solid rgba(255,255,255,.45) !important;
  box-shadow: 0 12px 28px rgba(124,58,237,.4), inset 0 1px 0 rgba(255,255,255,.6) !important;
}

/* Upgrader & Wheel: Frosted Crystal Gauge & Radar Hub */
body[data-theme="liquid"] .ug-dial-wrap,
body[data-theme="liquid"] .wheel-wrap {
  filter: drop-shadow(0 16px 36px rgba(178, 141, 255, 0.35));
}

body[data-theme="liquid"] .ug-needle-hub {
  background: rgba(14, 10, 32, 0.85) !important;
  border-color: #56E1FF !important;
  box-shadow: 0 0 20px rgba(86, 225, 255, 0.8) !important;
}

/* Rails & Navigation */
body[data-theme="liquid"] .bfx-left-rail,
body[data-theme="liquid"] .g-rail,
body[data-theme="liquid"] .mobile-menu-drawer {
  background: rgba(10, 7, 24, 0.65) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.2) !important;
}


/* ============================================================================
   ACCOUNT PAGE & SECONDARY PAGES — Liquid Glass full coverage
   kpis, kpi, .row, .notice, .ptab, .card, .hero, .big, .skel, .two,
   .foot, .btn, input, select, about/announcements/fairness classes
   ============================================================================ */

/* ── KPI Grid ── */
body[data-theme="liquid"] .kpis {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

body[data-theme="liquid"] .kpi {
  background: rgba(14, 10, 30, 0.42) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,0.09) !important;
  transition: background .2s ease !important;
}

body[data-theme="liquid"] .kpi:hover {
  background: rgba(178, 141, 255, 0.10) !important;
}

body[data-theme="liquid"] .kpi .k {
  color: rgba(255,255,255,0.45) !important;
  letter-spacing: .14em !important;
}

body[data-theme="liquid"] .kpi .v {
  color: #EFEFF5 !important;
  text-shadow: 0 0 18px rgba(178, 141, 255, 0.25) !important;
}

body[data-theme="liquid"] .kpi.hot .v {
  color: #FFD580 !important;
  text-shadow: 0 0 22px rgba(255, 160, 51, 0.55) !important;
}

/* ── Rows (label / value pairs inside cards) ── */
body[data-theme="liquid"] .row {
  border-bottom-color: rgba(255,255,255,0.09) !important;
}

body[data-theme="liquid"] .row .l {
  color: rgba(200,205,225,0.7) !important;
}

body[data-theme="liquid"] .row .r {
  color: #EFEFF5 !important;
  font-family: 'Cascadia Mono', Consolas, monospace !important;
}

/* ── Notice / dashed info boxes ── */
body[data-theme="liquid"] .notice {
  background: rgba(178, 141, 255, 0.06) !important;
  border: 1px dashed rgba(178, 141, 255, 0.35) !important;
  border-radius: 16px !important;
  color: rgba(220, 220, 240, 0.75) !important;
  backdrop-filter: blur(10px) !important;
}

/* ── Hero section text (account page top) ── */
body[data-theme="liquid"] .hero .big {
  color: #EFEFF5 !important;
  text-shadow: 0 0 40px rgba(178,141,255,0.3) !important;
}

body[data-theme="liquid"] .hero .big small {
  color: rgba(178, 141, 255, 0.65) !important;
}

body[data-theme="liquid"] .kicker {
  color: #B28DFF !important;
  text-shadow: 0 0 14px rgba(178,141,255,0.4) !important;
}

/* ── Skeleton loading bars ── */
body[data-theme="liquid"] .skel {
  background: linear-gradient(90deg,
    rgba(20,14,40,0.6) 25%,
    rgba(50,30,90,0.5) 37%,
    rgba(20,14,40,0.6) 63%
  ) !important;
  background-size: 400% 100% !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  animation: shim 1.6s linear infinite !important;
}

/* ── Data table for recent rounds ── */
body[data-theme="liquid"] .ptab th {
  color: rgba(178, 141, 255, 0.65) !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
}

body[data-theme="liquid"] .ptab td {
  border-bottom-color: rgba(255,255,255,0.06) !important;
  color: #EFEFF5 !important;
}

body[data-theme="liquid"] .ptab tbody tr:hover td {
  background: rgba(178,141,255,0.06) !important;
}

body[data-theme="liquid"] .ptab td.g {
  color: #56E1FF !important;
}

/* ── Win / Loss colours ── */
body[data-theme="liquid"] .win { color: #4ADEA0 !important; }
body[data-theme="liquid"] .loss { color: #FF5E7E !important; }

/* ── Chip/badge labels ── */
body[data-theme="liquid"] .chip {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #EFEFF5 !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
}

/* ── Theme selector cards on account page ── */
body[data-theme="liquid"] [data-set-theme] {
  background: rgba(255,255,255,0.04) !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  border-radius: 20px !important;
  transition: border-color .2s, background .2s !important;
}

body[data-theme="liquid"] [data-set-theme]:hover {
  background: rgba(178,141,255,0.10) !important;
  border-color: rgba(178,141,255,0.5) !important;
}

/* ── Footer ── */
body[data-theme="liquid"] .foot {
  border-top-color: rgba(255,255,255,0.09) !important;
  color: rgba(180,185,210,0.5) !important;
}

body[data-theme="liquid"] .foot a:hover { color: #B28DFF !important; }

/* ── About / Announcements / Fairness page prose elements ── */
body[data-theme="liquid"] .prose p,
body[data-theme="liquid"] .about-body p,
body[data-theme="liquid"] article p,
body[data-theme="liquid"] .page-body p {
  color: rgba(220,222,240,0.82) !important;
  line-height: 1.65 !important;
}

body[data-theme="liquid"] .prose h2,
body[data-theme="liquid"] .prose h3,
body[data-theme="liquid"] article h2,
body[data-theme="liquid"] article h3 {
  color: #EFEFF5 !important;
  text-shadow: 0 0 20px rgba(178,141,255,0.2) !important;
}

body[data-theme="liquid"] .prose a,
body[data-theme="liquid"] article a {
  color: #56E1FF !important;
}

/* ── Announcement / fairness cards/blocks ── */
body[data-theme="liquid"] .ann-card,
body[data-theme="liquid"] .fair-block,
body[data-theme="liquid"] .faq-item {
  background: rgba(14,10,30,0.42) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

/* Inline progress bars (daily, XP) */
body[data-theme="liquid"] #acct-level-pbar,
body[data-theme="liquid"] #daily-pbar-fill {
  background: linear-gradient(90deg, #B28DFF, #56E1FF) !important;
  box-shadow: 0 0 16px rgba(178,141,255,0.5) !important;
  border-radius: 999px !important;
}

/* ── PORTFOLIO / WALLET MODAL (Liquid Glass) ── */
body[data-theme="liquid"] .bw-modal {
  background: rgba(12, 8, 28, 0.72) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 26px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85), 0 0 50px rgba(178, 141, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

body[data-theme="liquid"] .bw-head {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="liquid"] .bw-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="liquid"] .bw-tab {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: all .2s ease !important;
}

body[data-theme="liquid"] .bw-tab:hover {
  color: #56E1FF !important;
}

body[data-theme="liquid"] .bw-tab[aria-selected="true"] {
  color: #56E1FF !important;
  border-bottom-color: #56E1FF !important;
  text-shadow: 0 0 16px rgba(86, 225, 255, 0.6) !important;
}

body[data-theme="liquid"] .bw-card,
body[data-theme="liquid"] .bw-box {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body[data-theme="liquid"] .bw-card:hover {
  background: rgba(86, 225, 255, 0.08) !important;
  border-color: #56E1FF !important;
  box-shadow: 0 8px 30px rgba(86, 225, 255, 0.25) !important;
}

body[data-theme="liquid"] .bw-shine-box {
  background: linear-gradient(135deg, rgba(178, 141, 255, 0.15), rgba(224, 64, 154, 0.12)) !important;
  border: 1px solid rgba(178, 141, 255, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 0 24px rgba(178, 141, 255, 0.2) !important;
}

body[data-theme="liquid"] .bw-btn.primary {
  background: linear-gradient(135deg, #B28DFF, #E0409A) !important;
  box-shadow: 0 6px 24px rgba(178, 141, 255, 0.4) !important;
  color: #070512 !important;
  border-radius: 999px !important;
}

body[data-theme="liquid"] .bw-btn.ghost {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body[data-theme="liquid"] .bw-f input,
body[data-theme="liquid"] .bw-f select {
  background: rgba(10, 7, 24, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  color: #FFF !important;
}

body[data-theme="liquid"] .bw-f input:focus,
body[data-theme="liquid"] .bw-f select:focus {
  border-color: #56E1FF !important;
  box-shadow: 0 0 16px rgba(86, 225, 255, 0.35) !important;
}

body[data-theme="liquid"] .bw-prog-bar {
  background: linear-gradient(90deg, #56E1FF, #B28DFF) !important;
  box-shadow: 0 0 12px rgba(86, 225, 255, 0.6) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   MOBILE PERFORMANCE OPTIMIZATION (60/120 FPS Featherlight Glass)
   Eliminates fixed background repaint lag and excessive blur passes on phones.
   ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  html[data-theme="liquid"],
  body[data-theme="liquid"] {
    background-attachment: scroll !important;
  }

  body[data-theme="liquid"] .card,
  body[data-theme="liquid"] .tbl,
  body[data-theme="liquid"] .tile,
  body[data-theme="liquid"] .modal-card,
  body[data-theme="liquid"] .lb-stage,
  body[data-theme="liquid"] .panel {
    background: rgba(16, 11, 36, 0.78) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    transform: none !important;
  }

  body[data-theme="liquid"] header.nav,
  body[data-theme="liquid"] .hdr {
    background: rgba(8, 5, 20, 0.90) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
  }
}
