/* Liquid Glass — progressive enhancement for Dicestack88 Darklands.
   Uses layered lighting, edge reflections, displacement refraction and pointer-responsive highlights. */
:root {
  --lg-tint: rgba(235, 246, 255, .075);
  --lg-tint-strong: rgba(235, 246, 255, .13);
  --lg-edge: rgba(255, 255, 255, .28);
  --lg-edge-soft: rgba(255, 255, 255, .11);
  --lg-shadow: 0 18px 55px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.2);
  --lg-blur: 24px;
}
html { color-scheme: dark; }

/* The filter is injected by liquid-glass.js. Keep effects on the glass surface,
   not on the text, so labels stay sharp and accessible. */
.lg-surface, .navbar, .glass-card, .card, .experience-panel, .feature-card,
.theme-toggle, .btn, .panel, .yt-card, .split-card, .player-box, .cta-inner,
.stat, .hero-badge, .tag, .status {
  position: relative;
  isolation: isolate;
  background-color: var(--lg-tint);
  border: 1px solid var(--lg-edge-soft);
  box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
}
.navbar, body > nav {
  border-color: var(--lg-edge);
  background: linear-gradient(120deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 48%, rgba(255,255,255,.085));
  box-shadow: 0 10px 40px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(255,255,255,.06);
}
.navbar::before, .glass-card::before, .card::before, .experience-panel::before,
.feature-card::before, .theme-toggle::before, .btn::before, .panel::before,
.yt-card::before, .split-card::before, .player-box::before, .cta-inner::before,
.stat::before, .hero-badge::before, .tag::before, .status::before, .lg-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(140% 90% at var(--lg-x, 18%) var(--lg-y, 0%), rgba(255,255,255,.26), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 26%, transparent 68%, rgba(255,255,255,.075));
  opacity: .85;
}
.navbar::after, .glass-card::after, .card::after, .experience-panel::after,
.feature-card::after, .theme-toggle::after, .btn::after, .panel::after,
.yt-card::after, .split-card::after, .player-box::after, .cta-inner::after,
.stat::after, .hero-badge::after, .tag::after, .status::after, .lg-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.08) 23%, transparent 48%, rgba(135,220,255,.16) 70%, rgba(255,255,255,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
}
.glass-card, .card, .feature-card, .panel, .yt-card, .split-card, .player-box, .stat {
  overflow: hidden;
  border-radius: 24px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
.glass-card:hover, .card:hover, .feature-card:hover, .panel:hover, .yt-card:hover,
.split-card:hover, .player-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 24px 65px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.28);
}
.theme-toggle, .btn, .hero-badge, .tag, .status {
  border-radius: 999px;
}
.theme-toggle, .btn {
  overflow: hidden;
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
}
button, a, .glass-card, .card, .yt-card { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(130,220,255,.95);
  outline-offset: 4px;
}
.animated-bg { filter: saturate(1.18); }
.gradient-orb { opacity: .36; }
.hero-title, .hero h1 { text-wrap: balance; }
.footer { border-color: var(--lg-edge-soft); }
/* Apple-like floating dock treatment on the standalone creator page. */
body > nav {
  border-radius: 0 0 26px 26px;
}
.yt-card .thumb, .player-box img { border-radius: 18px; }
@supports (backdrop-filter: blur(1px)) {
  .navbar, .glass-card, .card, .experience-panel, .feature-card, .theme-toggle,
  .btn, .panel, .yt-card, .split-card, .player-box, .cta-inner, .stat, .hero-badge, .tag, .status {
    backdrop-filter: blur(var(--lg-blur)) saturate(1.7);
  }
}
@media (max-width: 700px) {
  :root { --lg-blur: 18px; }
  .navbar { padding-left: 18px !important; padding-right: 18px !important; }
  .glass-card, .card, .feature-card, .panel, .yt-card, .split-card, .player-box { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Gentle displacement bends the reflected highlight itself, suggesting optical thickness. */
.lg-svg-filter-supported .lg-surface::before { filter: url(#liquidGlassRefraction); }


/* === Pass 2: make the material visibly translucent ===
   Explicitly override legacy card fills (including .card1–.card4), which otherwise
   paint opaque gradients over the glass material. */
:root {
  --lg-tint: rgba(210, 232, 255, .035);
  --lg-tint-strong: rgba(210, 232, 255, .075);
  --lg-edge: rgba(255, 255, 255, .42);
  --lg-edge-soft: rgba(255, 255, 255, .16);
  --lg-blur: 13px;
}
.navbar, .navbar .theme-toggle, .glass-card, .card, .card1, .card2, .card3, .card4,
.experience-panel, .feature-card, .panel, .youtube-embed-panel, .video-error,
.video-card, .filter-btn, .yt-card, .split-card, .player-box, .cta-inner,
.stat, .hero-badge, .tag, .status, .btn, .theme-toggle, .lg-surface {
  background: var(--lg-tint) !important;
  background-image: none;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.85) contrast(1.04);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.85) contrast(1.04);
  border-color: var(--lg-edge-soft);
}
.navbar, body > nav {
  background: rgba(190, 220, 255, .055) !important;
  border: 1px solid var(--lg-edge) !important;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 14px 44px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.36), inset 0 -1px 0 rgba(255,255,255,.08);
}
.card::before, .navbar::before, .glass-card::before, .lg-surface::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(125% 110% at var(--lg-x, 20%) var(--lg-y, 0%), rgba(255,255,255,.20), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 30%, transparent 72%, rgba(160,220,255,.055));
}
.card::after, .navbar::after, .glass-card::after, .lg-surface::after { z-index: 0; }
.card > *, .navbar > *, .glass-card > *, .lg-surface > * { position: relative; z-index: 1; }
.theme-toggle, .btn, .filter-btn, .hero-badge, .tag, .status { border-radius: 999px; }
.card1, .card2, .card3, .card4 {
  background: rgba(225,240,255,.035) !important;
}


/* === Pass 3: stronger material definition and true-backdrop-filter attempt === */
:root {
  --lg-tint: rgba(218, 235, 255, .025);
  --lg-tint-strong: rgba(218, 235, 255, .055);
  --lg-blur: 11px;
}
.lg-surface {
  background-color: var(--lg-tint) !important;
  background-image: none;
  border: 1px solid var(--lg-edge-soft);
  box-shadow: 0 16px 48px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.9) contrast(1.035);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.9) contrast(1.035);
}
.lg-surface::before {
  z-index: 0;
  opacity: .95;
  background:
    radial-gradient(130% 120% at var(--lg-x, 18%) var(--lg-y, 0%), rgba(255,255,255,.19), transparent 42%),
    linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.025) 20%, transparent 48%, rgba(140,205,255,.045) 76%, rgba(255,255,255,.07) 100%);
}
.lg-surface::after { z-index: 0; opacity: .88; }
.lg-surface > * { position: relative; z-index: 1; }
.lg-surface :is(img, video, iframe) { position: relative; z-index: 1; }
.lg-surface:is(.card1,.card2,.card3,.card4) { background: rgba(218,235,255,.025) !important; }
.lg-surface:is(.navbar, .theme-toggle, .btn, .filter-btn, .hero-badge, .tag, .status) {
  border-radius: 999px;
}
.lg-surface:is(.navbar, body > nav) {
  border-radius: 0 0 28px 28px;
  background: rgba(190,220,255,.035) !important;
}
.lg-surface:is(.card, .glass-card, .panel, .youtube-embed-panel, .video-error,
.video-card, .yt-card, .split-card, .player-box, .cta-inner, .experience-panel,
.feature-card, .social-card, .resource-card) { overflow: hidden; }
.lg-surface:hover {
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 22px 60px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.32);
}
/* Experimental actual backdrop displacement. This is enabled only when the browser
   reports SVG url() support in backdrop-filter; otherwise blur/saturation is retained. */
.lg-refraction-supported .lg-surface {
  -webkit-backdrop-filter: url(#liquidGlassRefraction) blur(11px) saturate(1.9);
  backdrop-filter: url(#liquidGlassRefraction) blur(11px) saturate(1.9);
}
@media (max-width: 700px) {
  :root { --lg-blur: 9px; }
  .lg-surface:is(.navbar, body > nav) { border-radius: 0 0 20px 20px; }
}


/* === Pass 4: consistent Liquid Glass surfaces across every page ===
   Static studio lighting replaces the distracting cursor-following white spot.
   Real optical displacement is intentionally not claimed: CSS backdrop-filter
   does not reliably refract the pixels behind an element across browsers. */
:root {
  --lg-tint: rgba(190, 215, 245, .045);
  --lg-edge: rgba(235, 245, 255, .27);
  --lg-edge-soft: rgba(220, 235, 255, .16);
  --lg-blur: 18px;
}
.lg-surface {
  position: relative;
  isolation: isolate;
  background: var(--lg-tint) !important;
  background-image: none !important;
  border: 1px solid var(--lg-edge-soft) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.035) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.lg-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.035) 16%, transparent 43%, transparent 72%, rgba(155,205,255,.045) 100%);
  opacity: .85;
}
.lg-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.08) 24%, transparent 52%, rgba(175,215,255,.12) 76%, rgba(255,255,255,.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .72;
}
.lg-surface > * { position: relative; z-index: 1; }
.lg-surface:is(.navbar, body > nav) {
  background: rgba(190,215,245,.055) !important;
  border-color: var(--lg-edge) !important;
}
.lg-surface:is(.card, .glass-card, .client-card, .wide-card, .about-section, .video-card,
.youtube-embed-panel, .video-error, .experience-panel, .feature-card, .panel, .yt-card,
.split-card, .player-box, .cta-inner, .resource-card, .social-card) {
  border-radius: 22px;
  overflow: hidden;
}
.lg-surface:is(.client-card, .wide-card) {
  padding: 24px 28px;
  color: var(--text);
  background-color: rgba(205,225,250,.045) !important;
}
.lg-surface.client-card:is(.eb) { background-color: rgba(0,180,216,.075) !important; }
.lg-surface.client-card:is(.modern) { background-color: rgba(145,90,220,.075) !important; }
.lg-surface.client-card:is(.tuff) { background-color: rgba(247,37,133,.065) !important; }
.lg-surface.client-card:is(.resent) { background-color: rgba(42,157,143,.075) !important; }
.lg-surface.client-card:is(.launcher) { background-color: rgba(252,163,17,.075) !important; }
.lg-surface.wide-card:is(.youtube) { background-color: rgba(255,40,40,.055) !important; }
.lg-surface.wide-card:is(.discord) { background-color: rgba(88,101,242,.065) !important; }
.lg-surface.wide-card:is(.reddit) { background-color: rgba(255,69,0,.055) !important; }
.lg-surface.wide-card:is(.instagram) { background-color: rgba(225,48,108,.055) !important; }
.lg-surface.wide-card:is(.twitter) { background-color: rgba(29,161,242,.055) !important; }
.lg-surface:is(.theme-toggle, .btn, .filter-btn, .hero-badge, .tag, .status, .channel-link) {
  border-radius: 999px;
}
.lg-surface:is(.btn, .filter-btn, .theme-toggle, .client-card, .wide-card, .card, .channel-link) {
  cursor: pointer;
}
.lg-surface:is(a, button):hover {
  border-color: rgba(240,248,255,.42) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.28) !important;
  filter: none;
}
.lg-surface:is(.client-card, .wide-card):hover { transform: translateY(-2px); }
.lg-surface:is(a, button):active { transform: scale(.99); }
.lg-surface :is(img, video, iframe) { position: relative; z-index: 1; }
@media (max-width: 700px) {
  :root { --lg-blur: 13px; }
  .lg-surface:is(.client-card, .wide-card) { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-surface { transition: none !important; }
}

/* Small metric tiles and the standalone creator footer use the same material. */
.lg-surface:is(footer, .footer, .hero-stats > div) {
  background: var(--lg-tint) !important;
  background-image: none !important;
  border: 1px solid var(--lg-edge-soft);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.65);
}


/* === Pass 5: SVG backdrop refraction + brighter backdrop + reliable light mode === */
:root {
  --lg-tint: rgba(205, 225, 250, .055);
  --lg-tint-strong: rgba(205, 225, 250, .095);
  --lg-edge: rgba(240, 248, 255, .38);
  --lg-edge-soft: rgba(225, 239, 255, .19);
  --lg-blur: 13px;
}
html { color-scheme: dark; }
body {
  background-color: var(--bg);
}
.animated-bg {
  background:
    radial-gradient(ellipse at 14% 12%, rgba(0, 255, 191, .075), transparent 40%),
    radial-gradient(ellipse at 88% 46%, rgba(0, 153, 255, .085), transparent 42%),
    var(--bg) !important;
}
.gradient-orb { opacity: .42; }
/* SVG lens filter is applied to the pixels behind each glass element on Chromium.
   Other engines keep the high-quality blur/tint fallback instead. */
.lg-refraction-supported .lg-surface {
  -webkit-backdrop-filter: url(#liquidGlassRefraction) blur(var(--lg-blur)) saturate(1.8);
  backdrop-filter: url(#liquidGlassRefraction) blur(var(--lg-blur)) saturate(1.8);
}
@media (max-width: 700px) {
  :root { --lg-blur: 11px; }
}

/* Pass 6: softer edges, stronger refraction, fresh accessible button palette */
:root {
  --lg-edge: rgba(225,239,255,.19);
  --lg-edge-soft: rgba(205,225,250,.095);
  --lg-tint: rgba(180,210,245,.055);
  --lg-blur: 12px;
  --lg-accent: #57e6d0;
  --lg-accent-2: #82b7ff;
  --lg-ink-on-accent: #071b27;
  --lg-button-glass: rgba(28,43,62,.78);
  --lg-button-border: rgba(177,205,238,.18);
}
.lg-surface {
  border-color: var(--lg-edge-soft) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.025) !important;
}
.lg-surface::after {
  background: linear-gradient(135deg,rgba(255,255,255,.24),rgba(255,255,255,.035) 27%,transparent 53%,rgba(135,195,255,.08) 78%,rgba(255,255,255,.10)) !important;
  opacity: .42 !important;
}
.lg-surface::before {
  background: linear-gradient(150deg,rgba(255,255,255,.095),rgba(255,255,255,.018) 27%,transparent 58%,rgba(80,175,230,.04)) !important;
  opacity: .82 !important;
}
.lg-surface:hover {
  border-color: rgba(200,225,255,.26) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.16) !important;
}
/* Teal-to-blue primary actions and calm slate secondary controls. */
.btn-primary,.channel-link,.filter-btn.active,.filter-btn[aria-pressed="true"] {
  color: var(--lg-ink-on-accent) !important;
  background: linear-gradient(118deg,var(--lg-accent),var(--lg-accent-2)) !important;
  border: 1px solid rgba(195,250,246,.32) !important;
  box-shadow: 0 7px 20px rgba(58,190,195,.15),inset 0 1px 0 rgba(255,255,255,.24) !important;
  text-shadow: none !important;
}
.btn-primary:hover,.channel-link:hover,.filter-btn.active:hover,.filter-btn[aria-pressed="true"]:hover {
  filter: brightness(1.055) !important;
  box-shadow: 0 10px 24px rgba(58,190,195,.22),inset 0 1px 0 rgba(255,255,255,.28) !important;
}
.btn-secondary,.filter-btn,.theme-toggle,.btn:not(.btn-primary) {
  color: #e7f0fb !important;
  background: var(--lg-button-glass) !important;
  border: 1px solid var(--lg-button-border) !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.09) !important;
}
.btn-secondary:hover,.filter-btn:hover,.theme-toggle:hover,.btn:not(.btn-primary):hover {
  background: rgba(55,77,103,.86) !important;
  border-color: rgba(130,183,255,.35) !important;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--lg-accent-2) !important;
  outline-offset: 3px;
}
body:not(.light-mode) { color: #edf3fb; }
body:not(.light-mode) :is(p,li,label,.text-muted,.video-date,.hero-subtitle,.client-card p,.wide-card p,.about-section p,.feature-card p,.card p,.page > p,.no-results) { color: #c4d0e0; }
body:not(.light-mode) :is(h1,h2,h3,h4,h5,h6,.logo,.video-title h3,.client-card h2,.wide-card h3) { color: #f2f6fc; }
body:not(.light-mode) :is(.page h1,.about-section h2,.video-error h2,.card-link,.inline-link) { color: #73e8d7; }
html.lg-refraction-supported .lg-lens-active {
  -webkit-backdrop-filter: url(#liquidGlassRefraction) blur(var(--lg-blur)) saturate(1.72);
  backdrop-filter: url(#liquidGlassRefraction) blur(var(--lg-blur)) saturate(1.72);
}
@media(max-width:700px) {
  :root { --lg-blur: 10px; }
}


/* Wallpaper-ready liquid-glass backdrop.
   Upload the preferred second wallpaper to /files/liquid-glass-wallpaper.png.
   The gradients remain as a graceful fallback if the image is not uploaded yet. */
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(145deg,rgba(4,12,32,.18),rgba(7,12,36,.10)),
    url("files/liquid-glass-wallpaper.png"),
    radial-gradient(ellipse at 18% 18%,rgba(39,245,208,.56) 0%,transparent 31%),
    radial-gradient(ellipse at 78% 22%,rgba(83,112,255,.58) 0%,transparent 34%),
    radial-gradient(ellipse at 66% 78%,rgba(178,67,255,.43) 0%,transparent 35%),
    radial-gradient(ellipse at 18% 86%,rgba(255,107,164,.28) 0%,transparent 31%),
    linear-gradient(145deg,#071323 0%,#101b3a 48%,#101025 100%);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  transform:translateZ(0);
}
.animated-bg { background:transparent !important; opacity:.92; }
.gradient-orb { opacity:.22; filter:blur(92px); }
.orb-1 { background:linear-gradient(135deg,#37f5d0,#35a8ff); }
.orb-2 { background:linear-gradient(135deg,#657bff,#a66bff); }
.orb-3 { background:linear-gradient(135deg,#ff7ba8,#56d9ff); }
@media (max-width:700px) {
}
/* Remove opaque legacy card gradients so the backdrop can actually bend through glass. */
:is(.glass-card,.card,.experience-panel,.feature-card,.client-card,.wide-card,.social-card,
.resource-card,.yt-card,.video-card,.panel,.about-section,.youtube-embed-panel,
.player-box,.stat,.cta-inner,.footer) {
  background-image:none !important;
  background-color:rgba(17,31,52,.22) !important;
}
/* Thin optical rim, not a bright white outline. */
.lg-surface {
  border-color:rgba(220,238,255,.12) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(255,255,255,.035) !important;
}
.lg-surface::before {
  background:linear-gradient(150deg,rgba(255,255,255,.14),rgba(255,255,255,.025) 25%,transparent 58%,rgba(105,195,255,.055)) !important;
  opacity:.68 !important;
}
.lg-surface::after {
  background:linear-gradient(135deg,rgba(255,255,255,.36),rgba(255,255,255,.045) 18%,transparent 48%,rgba(111,205,255,.12) 76%,rgba(255,255,255,.10)) !important;
  opacity:.48 !important;
}

/* === Controlled single-pass refraction ===
   Real displacement is limited to two high-level surfaces. All other glass stays
   on a cheap translucent fallback so the effect doesn't multiply across every card. */
.lg-surface:not(.lg-lens-active) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
html.lg-refraction-supported .lg-lens-active {
  -webkit-backdrop-filter: url(#liquidGlassRefraction) blur(7px) saturate(1.35) !important;
  backdrop-filter: url(#liquidGlassRefraction) blur(7px) saturate(1.35) !important;
  background-color: rgba(180, 210, 245, .045) !important;
}
@media (max-width: 700px) {
  html.lg-refraction-supported .lg-lens-active {
    -webkit-backdrop-filter: url(#liquidGlassRefraction) blur(5px) saturate(1.2) !important;
    backdrop-filter: url(#liquidGlassRefraction) blur(5px) saturate(1.2) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-lens-active { transition: none !important; }
}

/* Re-enable gentle backdrop blur on card-like surfaces even when not lg-lens-active */
.lg-surface:not(.lg-lens-active):is(.card, .glass-card, .client-card, .wide-card, .feature-card, .video-card, .yt-card, .resource-card, .social-card, .panel, .player-box, .split-card) {
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.6) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(1.6) !important;
}



/* Frosted mode: give the shared navbar a more substantial, softly etched-glass finish.
   Scoped to the Frosted Glass preference so Liquid Glass mode remains unchanged. */
html.lg-frosted-mode :is(.navbar, body > nav) {
  background:
    linear-gradient(125deg, rgba(225, 240, 255, .12), rgba(175, 205, 240, .055) 48%, rgba(225, 240, 255, .10)),
    rgba(18, 34, 58, .22) !important;
  border: 1px solid rgba(225, 240, 255, .22) !important;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(180, 215, 255, .08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.55) contrast(1.04) !important;
  backdrop-filter: blur(22px) saturate(1.55) contrast(1.04) !important;
}
html.lg-frosted-mode :is(.navbar, body > nav)::before {
  background:
    linear-gradient(150deg, rgba(255,255,255,.19), rgba(255,255,255,.055) 28%, transparent 62%, rgba(125,190,255,.075)) !important;
  opacity: .9 !important;
}
html.lg-frosted-mode :is(.navbar, body > nav)::after {
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.07) 24%, transparent 54%, rgba(135,200,255,.16) 78%, rgba(255,255,255,.16)) !important;
  opacity: .58 !important;
}
@media (max-width: 700px) {
  html.lg-frosted-mode :is(.navbar, body > nav) {
    -webkit-backdrop-filter: blur(17px) saturate(1.45) !important;
    backdrop-filter: blur(17px) saturate(1.45) !important;
  }
}


/* Frosted Glass is the default, performance-friendly material. */
html[data-glass-mode="frosted"] .lg-surface {
  background: rgba(18,28,42,.76) !important;
  border-color: rgba(190,215,242,.13) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.075) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.2) !important;
  backdrop-filter: blur(9px) saturate(1.2) !important;
}
html[data-glass-mode="frosted"] .lg-surface::before { opacity: .28 !important; }
html[data-glass-mode="frosted"] .lg-surface::after { opacity: .16 !important; }
html[data-glass-mode="frosted"] .lg-surface:hover {
  border-color: rgba(190,215,242,.22) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.09) !important;
}
html[data-glass-mode="liquid"] .lg-surface {
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.8) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(1.8) !important;
}
.dicestack-glass-picker {
  position:fixed;right:18px;bottom:18px;z-index:99999;color:#edf3fb;
  font:500 13px/1.4 Inter,system-ui,sans-serif;
}
.dicestack-glass-picker>summary {
  list-style:none;cursor:pointer;padding:11px 15px;border-radius:999px;
  border:1px solid rgba(205,225,250,.2);background:rgba(13,21,33,.82);
  box-shadow:0 8px 26px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
.dicestack-glass-picker>summary::-webkit-details-marker{display:none}
.dicestack-glass-panel {
  position:absolute;right:0;bottom:calc(100% + 10px);width:min(290px,calc(100vw - 36px));
  padding:15px;border-radius:17px;border:1px solid rgba(205,225,250,.2);
  background:rgba(10,17,28,.94);box-shadow:0 18px 48px rgba(0,0,0,.38);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
}
.dicestack-glass-panel>strong{display:block;font-size:14px}
.dicestack-glass-panel>p{margin:4px 0 12px;color:#aab8c9;font-size:12px}
.dicestack-glass-panel button {
  display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:10px 11px;
  margin-top:7px;color:#edf3fb;border-radius:11px;border:1px solid rgba(205,225,250,.12);
  background:rgba(255,255,255,.045);cursor:pointer;
}
.dicestack-glass-panel button[aria-pressed="true"]{border-color:rgba(130,183,255,.48);background:rgba(100,150,210,.15)}
.dicestack-glass-panel button small{color:#aab8c9;font-size:11px}
@media(max-width:600px){.dicestack-glass-picker{right:12px;bottom:12px}}
@media(prefers-reduced-transparency:reduce){
  html[data-glass-mode="liquid"] .lg-surface,html[data-glass-mode="frosted"] .lg-surface,
  .dicestack-glass-picker>summary,.dicestack-glass-panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

html[data-glass-mode="frosted"] .lg-surface::before { display:block !important; }
html[data-glass-mode="liquid"] .lg-surface {
  background:rgba(190,215,245,.055)!important;
  border-color:rgba(225,239,255,.22)!important;
  box-shadow:0 15px 42px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(255,255,255,.05)!important;
}
html[data-glass-mode="liquid"] .lg-surface::before {
  display:block!important;opacity:.95!important;
  background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.035) 25%,transparent 58%,rgba(135,205,255,.09))!important;
}
html[data-glass-mode="liquid"] .lg-surface::after { opacity:.72!important; }
