/* Clear polished glass: the universe remains visible through each surface. */
:root{
  --clear-surface:linear-gradient(116deg,rgba(255,248,255,.065),rgba(233,225,255,.012) 38%,rgba(192,217,255,.018) 72%,rgba(246,228,255,.043));
  --clear-edge:rgba(234,228,255,.25);
  --clear-shadow:inset 0 1px 0 rgba(255,251,255,.48),inset 1px 0 0 rgba(255,242,255,.14),inset -1px -1px 0 rgba(197,221,255,.19),0 5px 15px rgba(1,0,12,.18);
}

.glass,.continue-card,.ai-card,.planet-card,.choice-card,.practice-card,
.stat-card,.shop-card,.settings-card,.club-banner,.route-step,.gift-card,
.message-bubble,.badge-card,.search-field,.streak-hero{
  background:var(--clear-surface);
  border:1px solid var(--clear-edge);
  border-top-color:rgba(255,247,255,.50);
  border-left-color:rgba(246,229,255,.33);
  border-bottom-color:rgba(196,220,255,.21);
  box-shadow:var(--clear-shadow);
  backdrop-filter:blur(1.35px) saturate(1.12);
  -webkit-backdrop-filter:blur(1.35px) saturate(1.12);
}

/* Narrow optical reflections stay at the rim rather than frosting the face. */
.continue-card:after,.ai-card:after,.planet-card:after,.choice-card:after,
.practice-card:after,.shop-card:after,.stat-card:after,.route-step:after,
.settings-card:after,.club-banner:after,.streak-hero:after,.badge-card:after{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,250,255,.72),rgba(255,238,255,.08) 27%,transparent 43%,rgba(205,229,255,.05) 69%,rgba(223,233,255,.44));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
  -webkit-mask-composite:xor;
}

.planet-card:hover,.choice-card:hover,.shop-card:hover{
  background:linear-gradient(116deg,rgba(255,248,255,.085),rgba(233,225,255,.018) 40%,rgba(211,231,255,.035));
  border-color:rgba(244,232,255,.50);
}

.primary-button,.secondary-button,.player-options>button,
.chip,.suggestion-chip,.streak-chip{
  position:relative;
  background:linear-gradient(118deg,rgba(255,247,255,.085),rgba(224,210,255,.012) 48%,rgba(214,234,255,.027));
  border:1px solid rgba(229,219,255,.32);
  border-top-color:rgba(255,247,255,.60);
  border-left-color:rgba(247,233,255,.38);
  border-bottom-color:rgba(189,219,249,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(185,216,255,.11),0 4px 12px rgba(0,0,12,.16);
  backdrop-filter:blur(1.25px) saturate(1.1);
  -webkit-backdrop-filter:blur(1.25px) saturate(1.1);
}
.primary-button{
  color:#fff6ff;
  background:radial-gradient(ellipse at 4% 0%,rgba(243,212,255,.14),transparent 54%),linear-gradient(116deg,rgba(211,171,246,.055),rgba(238,226,255,.009) 55%,rgba(202,225,255,.04));
  border-color:rgba(227,202,255,.47);
  border-top-color:rgba(255,245,255,.7);
}
.chip.active{
  color:#ffe7b9;
  background:linear-gradient(118deg,rgba(255,227,172,.09),rgba(249,220,174,.015) 58%,rgba(238,227,255,.025));
  border-color:rgba(245,214,162,.56);
  border-top-color:rgba(255,239,202,.74);
}
.streak-chip{color:#f7dcaa;border-color:rgba(234,207,166,.38)}
.badge-card.earned,.message-bubble.user{
  background:radial-gradient(ellipse at 0% 0%,rgba(255,229,183,.075),transparent 65%),var(--clear-surface);
  border-color:rgba(230,204,159,.40);
}

/* A clear center and a small curved reflection give the circles lens depth. */
.play-round,.practice-card>button.practice-play,.main-play,
.avatar-button,.back-button,.favorite-button.glass,.modal-close{
  background:radial-gradient(ellipse at 24% 6%,rgba(255,248,255,.23),transparent 36%),radial-gradient(ellipse at 89% 96%,rgba(197,221,255,.12),transparent 42%),linear-gradient(145deg,rgba(237,218,255,.035),rgba(218,197,247,.004) 62%,rgba(224,238,255,.025));
  border:1px solid rgba(242,227,255,.45);
  border-top-color:rgba(255,247,255,.8);
  border-left-color:rgba(255,238,255,.55);
  border-bottom-color:rgba(195,222,255,.37);
  box-shadow:inset 0 1px 1px rgba(255,251,255,.43),inset -1px -1px 1px rgba(205,229,255,.22),0 5px 14px rgba(0,0,12,.20);
  backdrop-filter:blur(1.1px) saturate(1.12);
  -webkit-backdrop-filter:blur(1.1px) saturate(1.12);
}
.main-play{
  background:radial-gradient(ellipse at 25% 8%,rgba(255,249,255,.26),transparent 31%),radial-gradient(ellipse at 85% 96%,rgba(211,230,255,.14),transparent 39%),rgba(222,203,245,.014);
  border-color:rgba(235,221,255,.57);
  border-top-color:rgba(255,249,255,.92);
  box-shadow:inset 0 1.2px 1px rgba(255,250,255,.62),inset -1px -1px 1px rgba(204,228,255,.35),0 7px 20px rgba(0,0,12,.25);
}

.bottom-nav{
  background:linear-gradient(115deg,rgba(255,244,255,.055),rgba(14,8,34,.11) 42%,rgba(203,224,255,.025));
  border:1px solid rgba(233,220,255,.35);
  border-top-color:rgba(255,242,255,.65);
  border-left-color:rgba(245,225,255,.43);
  border-bottom-color:rgba(184,217,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,249,255,.36),inset -1px -1px 0 rgba(198,224,255,.16),0 9px 24px rgba(0,0,12,.28);
  backdrop-filter:blur(3px) saturate(1.15);
  -webkit-backdrop-filter:blur(3px) saturate(1.15);
}
.nav-center img.heart-icon{
  background:radial-gradient(ellipse at 25% 5%,rgba(255,243,255,.23),transparent 33%),radial-gradient(ellipse at 90% 95%,rgba(208,227,255,.12),transparent 40%),rgba(222,194,247,.024);
  border:1px solid rgba(238,213,255,.63);
  border-top-color:rgba(255,245,255,.92);
  border-left-color:rgba(255,232,255,.67);
  box-shadow:inset 0 1px 1px rgba(255,249,255,.55),inset -1px -1px 1px rgba(209,230,255,.27),0 5px 15px rgba(0,0,12,.24);
  backdrop-filter:blur(1.2px) saturate(1.14);
  -webkit-backdrop-filter:blur(1.2px) saturate(1.14);
}
.mini-player{
  background:linear-gradient(116deg,rgba(255,241,255,.065),rgba(12,7,29,.17) 48%,rgba(201,221,255,.035));
  border:1px solid rgba(230,212,255,.38);
  border-top-color:rgba(255,239,255,.62);
  box-shadow:var(--clear-shadow);
  backdrop-filter:blur(4px) saturate(1.1);
  -webkit-backdrop-filter:blur(4px) saturate(1.1);
}

.chat-form textarea,.field input,.field select,.setting-row input[type=time]{
  background:linear-gradient(115deg,rgba(255,244,255,.035),rgba(9,5,24,.09));
  border-color:rgba(230,214,255,.30);
  border-top-color:rgba(255,241,255,.44);
  box-shadow:inset 0 1px 0 rgba(255,248,255,.10);
  backdrop-filter:blur(1.35px);
  -webkit-backdrop-filter:blur(1.35px);
}
.continue-title,.planet-name,.choice-copy h2,.practice-info h3,.nav-label,
.primary-button,.secondary-button,.player-options>button{
  text-shadow:0 1px 5px rgba(3,0,15,.65);
}

/* Browsers without background filtering still retain a transparent surface. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass,.continue-card,.ai-card,.planet-card,.choice-card,.practice-card,.bottom-nav,.mini-player{
    background-color:rgba(12,7,29,.10);
  }
}
