/* Readable silver glass in both themes. Text contrast is independent of atmosphere. */
:root{--text-primary:#f8fafb;--text-secondary:#c8cfd5;--text-detail:#b7c1ca;--surface-line:#dfe8f24d;--control-surface:#252c35e6;--control-text:#f8fafb}
html[data-theme=light]{--text-primary:#172027;--text-secondary:#394750;--text-detail:#465660;--surface-line:#34465455;--control-surface:#f5f8faeb;--control-text:#172027;--ink:#172027;--muted:#394750}
body{color:var(--text-primary)}
:is(.portal-main,.after-scene,.continuous-sections,.collection-world,.coach-shell,.recorded-menu,.entry-gate){color:var(--text-primary)!important}
:is(.portal-main,.after-scene,.continuous-sections,.collection-world,.coach-shell,.recorded-menu) :is(p,label,small,.eyebrow,.muted,.text-btn,.collection-save,.collection-position button,.collection-controls>small){color:var(--text-secondary)!important}
:is(.portal-main,.after-scene,.continuous-sections,.collection-world,.coach-shell) :is(h1,h2,h3,h4,strong){color:var(--text-primary)!important}
:is(.portal-main,.after-scene,.continuous-sections) h2 em{color:var(--text-primary)!important}
:is(.pill,.text-btn,button,input,textarea,select){-webkit-tap-highlight-color:transparent}
.pill,.collection-controls .pill,.entry-choices .pill{background:linear-gradient(130deg,#fff2,transparent),var(--control-surface)!important;color:var(--control-text)!important;border-color:var(--surface-line)!important;box-shadow:inset 0 1px 2px #ffffff38,0 8px 24px #00000012!important;backdrop-filter:blur(24px)}
.pill.light{background:#f0f4f5!important;color:#19232b!important}
html[data-theme=light] .pill.light{background:#202c36!important;color:#f8fafb!important}
.pill:hover,.pill:focus-visible{border-color:var(--text-detail)!important;box-shadow:inset 0 1px 5px #fff5,0 0 24px #d4eaff18!important}
input,textarea,select{font-size:16px;line-height:1.5;color:var(--text-primary)!important;border-color:var(--surface-line)!important}
input::placeholder,textarea::placeholder{color:var(--text-secondary)!important;opacity:1}
input[type=range]{accent-color:var(--text-primary)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--text-detail);outline-offset:4px}
.portal-heading h1,.after-scene>h2,.flow-inner h2{font-size:clamp(34px,5.2vw,76px)!important;line-height:1.07;letter-spacing:-.025em;max-width:18ch;text-wrap:balance;overflow-wrap:normal}
h1,h2,h3,h4{ text-wrap:balance;hyphens:none }
.portal-heading>p{font:400 clamp(14px,1.5vw,18px)/1.65 Garnet, sans-serif!important;max-width:60ch;text-wrap:pretty}
p{line-height:1.65;text-wrap:pretty}.flow-inner p,.flow-resource-list p,.experience-paths p{font-size:clamp(14px,1.2vw,16px)!important;line-height:1.65!important}
.dock-wordmark,.portal-footer>span,.portal-breadcrumb>button:first-child,.entry-bottom>span,.winnergy-word{font-family:Garnet,sans-serif!important;font-style:normal!important;font-weight:400!important;letter-spacing:.025em!important}
.dock-wordmark{font-size:clamp(20px,3vw,30px)!important}.portal-footer>span{font-size:clamp(28px,4vw,44px)!important}
.portal-breadcrumb>button:first-child{font-size:13px}.portal-breadcrumb .orbit-mark,nav .orbit-mark{display:none!important}
nav{padding:7px!important;gap:3px!important;background:#20262eee!important;border-color:#dee8ef44!important;box-shadow:inset 0 1px 1px #fff2,0 8px 32px #0003!important}
nav button{min-height:56px;gap:5px!important;font-size:12px!important;color:#cbd4dc!important;justify-content:center!important}
nav button>span{font-size:20px!important;line-height:1.2}nav button.active{background:#ffffff1c!important;color:#fff!important}
html[data-theme=light] nav{background:#f0f5f7ed!important;border-color:#45566344!important}html[data-theme=light] nav button{color:#394750!important}html[data-theme=light] nav button.active{background:#263b4a16!important;color:#172027!important}
.global-experience-controls button{background:var(--control-surface)!important;color:var(--control-text)!important;border-color:var(--surface-line)!important;width:38px;height:38px}
header #sound{visibility:hidden;pointer-events:none}.global-experience-controls{top:105px!important}.scene-view .global-experience-controls{top:28px!important}.coach-open .global-experience-controls{top:auto!important}
html[data-theme=light] .experience-dock,html[data-theme=light] .mobile-dock{background:linear-gradient(120deg,#ffffffa8,#e4ecf0d9,#ffffff80)!important;border-color:#6a7e8d77!important;box-shadow:inset 0 2px 6px #fff,0 12px 38px #24374429!important}
html[data-theme=light] .experience-dock button,html[data-theme=light] .mobile-dock button{color:#172027!important}html[data-theme=light] .dock-wordmark img{filter:brightness(.15)!important}
.scroll-scene{opacity:1!important}.scroll-chapter h1{font-size:clamp(34px,5.2vw,78px)!important;max-width:16ch;text-wrap:balance;line-height:1.06;color:var(--text-primary)!important}.scroll-chapter h1 em{color:var(--text-primary)!important}.scroll-chapter p,.scroll-chapter .eyebrow,.scroll-guide,.particle-touch-zone{color:var(--text-secondary)!important}.scroll-chapter p{font-size:14px;line-height:1.65}
html[data-theme=light] .scroll-vignette{background:linear-gradient(0deg,#f7f9f9ed,transparent 70%)}
html[data-theme=light] .scroll-guide i{background:linear-gradient(90deg,#334a5b calc(var(--scroll-progress)*100%),#334a5b30 0)}
.spatial-card.selected .spatial-face,.spatial-face{border-color:var(--surface-line)!important;box-shadow:inset 0 1px 7px #ffffff55,0 8px 35px #00000020!important;filter:saturate(.45)}
.spatial-card.selected .spatial-face{border-color:var(--text-detail)!important}.collection-caption p{max-width:48ch;margin-inline:auto}.collection-caption h2{font-size:clamp(26px,4vw,48px)!important;text-wrap:balance}
.sculpture{filter:saturate(.45) contrast(1.12)!important}.living-background i{filter:blur(32px)!important}.after-scene{background:transparent!important}.flow-inner{transition:none!important}
.liquid-touch,.touch-ripple{display:none!important}
.liquid-flash{position:fixed;width:200px;height:200px;margin:-100px 0 0 -100px;pointer-events:none;z-index:250;border-radius:46% 54% 59% 41%;background:radial-gradient(ellipse at 45% 45%,#fff 0%,#f4faffb0 5%,#d9edff45 20%,transparent 65%);mix-blend-mode:screen;filter:blur(5px);animation:liquid-light .85s cubic-bezier(.16,1,.3,1) forwards}
.liquid-flash:after{content:'';position:absolute;inset:25%;border-radius:35% 65% 45% 55%;background:linear-gradient(125deg,transparent,#fff9,transparent);filter:blur(12px);transform:rotate(-30deg)}
html[data-theme=light] .liquid-flash{mix-blend-mode:normal;background:radial-gradient(ellipse,#fff 0%,#fff9 10%,#8daab855 25%,transparent 65%)}
@keyframes liquid-light{0%{opacity:0;transform:scale(.15) rotate(-25deg)}15%{opacity:.75}100%{opacity:0;transform:scale(1.65,1.05) rotate(35deg)}}
@media(max-width:650px){.portal-heading h1,.after-scene>h2,.flow-inner h2{font-size:clamp(32px,8.1vw,43px)!important;max-width:19ch}.scroll-chapter h1{font-size:clamp(31px,8.1vw,42px)!important;max-width:18ch}.scroll-chapter{bottom:19%}.portal-heading>p{font-size:14px!important}.experience-paths h3{font-size:22px}.flow-resource-list h3{font-size:23px}.portal-main{padding-bottom:110px}.global-experience-controls{top:82px!important;right:16px}.scene-view .global-experience-controls{top:25px!important}.flow-section{padding-block:64px}.experience-paths button{gap:16px}.scroll-chapter .eyebrow{font-size:9px!important}.particle-touch-zone span{font-size:8px;opacity:.85}.scroll-guide{font-size:8px}}
@media(prefers-reduced-motion:reduce){.liquid-flash{display:none}.flow-inner{filter:none!important;opacity:1!important;transform:none!important}}
