/* v5.5.7 — unified quiet glass, centered mood CTA and foreground banter. */
:root{
  --lg-accent:#c8b1e6;
  --lg-selected:#43334f;
  --lg-control:#27212e;
  --lg-surface:#19161f;
  --lg-raised:#211b29;
  --lg-chrome:#18141d;
  --lg-stroke:rgba(220,202,236,.15);
  --lg-rim:rgba(240,226,255,.24);
  --lg-reflection:rgba(220,198,244,.055);
  --lg-specular:inset 0 1px 0 rgba(240,225,255,.08);
  --lg-depth:0 5px 17px rgba(0,0,0,.17);
  --lg-float:0 13px 36px rgba(0,0,0,.35);
  --bg:#110f16;--panel:#19161f;--panel-2:#221d29;--chip:#27222e;--chip-active:#40314d;
  --glass:rgba(24,20,30,.88);--glass-line:rgba(220,202,236,.17);
}
html[data-theme="light"]{
  --lg-accent:#755b91;--lg-selected:#e6ddef;--lg-control:#f3edf6;
  --lg-surface:#fcf9fe;--lg-raised:#fff;--lg-chrome:#fbf8fc;
  --lg-stroke:rgba(93,72,109,.14);--lg-rim:rgba(255,255,255,.95);
  --lg-reflection:rgba(255,255,255,.38);--lg-specular:inset 0 1px 0 rgba(255,255,255,.8);
  --lg-depth:0 5px 17px rgba(40,25,60,.07);--lg-float:0 13px 36px rgba(40,25,60,.13);
  --bg:#f8f6fa;--panel:#fcf9fe;--panel-2:#f2edf6;--chip:#f0ebf5;--chip-active:#e8dfee;
  --glass:rgba(252,249,254,.9);--glass-line:rgba(93,72,109,.16);
}
.topbar{background:var(--lg-chrome);border-color:var(--lg-stroke)}
.topinner{gap:12px}
.brand-lockup{display:flex;flex-direction:column;gap:3px;min-width:0;flex:none}
.brand-lockup .logo{display:block}
.brand-tagline{display:block;font-size:10px;font-weight:500;letter-spacing:.015em;line-height:1.2;color:var(--muted);white-space:nowrap}
.vault-message{border-color:var(--lg-stroke)}
.wrap{padding-bottom:calc(var(--mobile-dock-clearance,90px) + 28px)}
.v52-banter{z-index:220!important;bottom:calc(100px + env(safe-area-inset-bottom,0px));right:12px;max-width:calc(100vw - 24px);background:var(--lg-raised);border-color:var(--lg-rim);box-shadow:var(--lg-float)}
.v52-banter.visible{pointer-events:auto}
@media(min-width:701px){.v52-banter{bottom:24px;right:24px}}
@media(max-width:700px){
 .topinner{padding:11px 15px;gap:9px}
 .brand-tagline{font-size:9px}
 .logo{font-size:22px}
 .mobile-dock .dock-link>span:last-child{font-size:9px}
 .v52-banter{bottom:calc(110px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:355px){.brand-tagline{font-size:8px}.topinner{gap:6px}.mobile-dock .dock-link{font-size:9px}}

/* The feedback pill must track the real dock height, including resized text. */
@media(max-width:700px){
 .v531-feedback-island{
   bottom:calc(var(--mobile-dock-clearance, 150px) + 30px);
   max-width:calc(100vw - 24px);
   right:12px;
 }
}

/* The dock is shared by desktop and mobile; modal surfaces own focus while open. */
body:is(.sheet-open,.profile-open,.duel-open,.v52-modal-open) #mobileNav,
body:has(#feedbackDialog:not([hidden])) #mobileNav{visibility:hidden;pointer-events:none}
@media(min-width:701px) and (max-width:1000px){.v531-feedback-island{bottom:calc(var(--mobile-dock-clearance,150px) + 30px)}}
