/* The Deep blue lake look. Loaded last, after clean.css. It only changes how four screens look
   (Home, Community with My squad, Neuro, Coach) plus the bottom bar and the orb.
   Remove this file's <link> in index.html to go back to the plain clean look. No layout logic or data lives here. */
:root{--glass:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.56));--glass-edge:rgba(255,255,255,.95);
  --lift:0 1px 0 #fff inset,0 1px 2px rgba(20,50,110,.08),0 10px 24px rgba(30,70,140,.12),0 28px 60px rgba(30,70,140,.1);
  --blue-ic:linear-gradient(180deg,#2F63F0,#1D4FD8)}

/* ---- the scene: a fixed lake behind the page, only on the four lake screens ---- */
.lakebg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s;background:#CFE0FB}
#shell:is([data-v="home"],[data-v="wall"],[data-v="squad"],[data-v="library"],[data-v="coach"]) .lakebg{opacity:1;visibility:visible;transition:opacity .5s}
.lakebg i{position:absolute;display:block}
.lk-sc{inset:-4% -6%;background:url(/media/lake-blue.jpg) center top/cover no-repeat}
.lk-mist{left:-60%;width:220%;height:150px;top:31%;background:radial-gradient(60% 60% at 30% 50%,rgba(255,255,255,.85),transparent 70%),radial-gradient(50% 55% at 72% 55%,rgba(255,255,255,.7),transparent 70%);filter:blur(14px)}
.lk-veil{inset:0;background:linear-gradient(180deg,rgba(255,255,255,0) 26%,rgba(232,241,253,.6) 48%,rgba(236,243,253,.9) 100%)}
/* away from Home the page is for reading, so the lake sits further back */
#shell:is([data-v="wall"],[data-v="squad"],[data-v="library"]) .lk-veil{background:linear-gradient(180deg,rgba(236,243,253,.25) 0%,rgba(236,243,253,.72) 30%,rgba(238,244,253,.94) 100%)}
#shell>header,#shell>main,#shell>footer{position:relative;z-index:1}
#shell>header{z-index:9}
@media (prefers-reduced-motion:no-preference){
  .lk-sc{animation:lk-drift 26s ease-in-out infinite alternate}
  .lk-mist{animation:lk-mist 38s linear infinite alternate}
  .hs-halo{animation:lk-pulse 5.5s ease-in-out infinite}
  .hs-orb{animation:lk-float 7s ease-in-out infinite}
  .hs-spin{animation:lk-spin 9s linear infinite}
}
@keyframes lk-drift{from{transform:scale(1)}to{transform:scale(1.06) translateY(-1%)}}
@keyframes lk-mist{from{transform:translateX(-6%)}to{transform:translateX(9%)}}
@keyframes lk-pulse{0%,100%{transform:scale(.92);opacity:.7}50%{transform:scale(1.08);opacity:1}}
@keyframes lk-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes lk-spin{to{transform:rotate(360deg)}}

/* ---- header: clear over the lake, Help now on glass ---- */
#shell:is([data-v="home"],[data-v="wall"],[data-v="squad"],[data-v="library"],[data-v="coach"])>header{background:transparent;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none}
#shell:is([data-v="wall"],[data-v="squad"],[data-v="library"])>header{background:rgba(232,241,253,.55);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3)}
#shell:is([data-v="home"],[data-v="wall"],[data-v="squad"],[data-v="library"],[data-v="coach"]) .helpnow{background:var(--glass);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 1px 0 #fff inset,0 6px 16px rgba(30,70,140,.14)}

/* ---- the orb, everywhere the Coach orb appears ---- */
#shell .corb{background:url(/media/orb-sm.webp) center/cover no-repeat}
#shell .cb-live .corb,#shell .cb-golive .corb{background-image:url(/media/orb.webp)}

/* ---- Home ---- */
#shell[data-v="home"] .hgreet{margin:2px 0 0}
#shell[data-v="home"] .hgreet b{font-size:20px;font-weight:600}
.hstage{position:relative;height:clamp(190px,27vh,236px);display:flex;justify-content:center;align-items:center}
.hs-halo{position:absolute;width:300px;height:300px;max-width:86vw;border-radius:50%;background:radial-gradient(circle,rgba(110,160,255,.5),transparent 65%)}
.hs-orb{position:relative;display:block;height:84%;aspect-ratio:1}
.hs-orb i{position:absolute;display:block;border-radius:50%}
.hs-img{inset:0;background:url(/media/orb.webp) center/cover no-repeat;box-shadow:0 26px 50px rgba(20,60,160,.34),0 0 60px rgba(110,160,255,.5)}
.hs-spin{inset:5px;background:conic-gradient(from 0deg,rgba(255,255,255,0) 0 62%,rgba(255,255,255,.55) 72%,rgba(255,220,150,.5) 78%,rgba(255,255,255,0) 88%);mix-blend-mode:screen;-webkit-mask:radial-gradient(circle,transparent 46%,#000 47%,#000 70%,transparent 71%);mask:radial-gradient(circle,transparent 46%,#000 47%,#000 70%,transparent 71%);filter:blur(7px)}
.hs-gloss{inset:0;background:radial-gradient(60% 45% at 30% 20%,rgba(255,255,255,.55),transparent 60%)}
.hcount{display:flex;flex-direction:column;align-items:center;width:100%;margin:-4px 0 0;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.hc-num{font:700 clamp(72px,23vw,92px)/.9 var(--f-tight);letter-spacing:-.04em;text-shadow:0 2px 0 rgba(255,255,255,.5)}
.hc-lab{font:600 18px var(--f-ui);margin-top:8px}
.hc-of{font-size:13px;color:var(--muted);margin-top:4px}
.hc-mile{font:600 14px var(--f-ui);color:var(--cobalt);margin-top:7px}
.hc-edit{font-size:12.5px;color:var(--muted);margin-top:6px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(74,91,115,.4)}
.hcount:focus-visible{outline:2px solid var(--cobalt);outline-offset:6px;border-radius:18px}
#shell[data-v="home"] .hjobs{margin:16px 0 18px}
#shell[data-v="home"] .hjob{background:var(--glass);border:1px solid var(--glass-edge);border-radius:22px;padding:10px 14px 10px 13px;gap:14px;-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);box-shadow:var(--lift)}
#shell[data-v="home"] .hjob.done{background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,.4))}
#shell[data-v="home"] .hj-ic,#shell[data-v="home"] .hj-ic.neuro,#shell[data-v="home"] .hj-ic.check,#shell[data-v="home"] .hj-ic.squad{width:46px;height:46px;border-radius:50%;background:var(--blue-ic);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 6px 14px rgba(29,79,216,.32)}
#shell[data-v="home"] .hj-tx b{font:600 17px var(--f-tight)}
#shell[data-v="home"] .hj-tx small{font-size:13.5px}
.hj-go svg{width:22px;height:22px;display:block;color:#6B7A90}
/* the cards further down Home sit on the same glass */
#shell[data-v="home"] #homeBody .hcard,#shell[data-v="home"] #homeBody .resume,#shell[data-v="home"] #homeBody .loudcard{background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.74));border:1px solid var(--glass-edge);border-radius:22px;box-shadow:var(--lift)}

/* ---- Community and My squad ---- */
#shell:is([data-v="wall"],[data-v="squad"]) .cseg{background:var(--glass);border:1px solid var(--glass-edge);border-radius:16px;-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 1px 0 #fff inset,0 6px 16px rgba(30,70,140,.1)}
#shell:is([data-v="wall"],[data-v="squad"]) .cseg a[aria-current="page"]{box-shadow:0 2px 6px rgba(30,70,140,.16)}
#shell .cipost{background:linear-gradient(160deg,#102A63,#0B1F4A);border-radius:22px;min-height:62px;box-shadow:0 14px 30px rgba(11,31,74,.3),0 1px 0 rgba(255,255,255,.25) inset}
#shell[data-v="wall"] .wpost:not(.mile):not(.milelite),#shell[data-v="wall"] .wprompt.done,#shell[data-v="wall"] .cicard{background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.78));border:1px solid var(--glass-edge);border-radius:22px;box-shadow:0 1px 0 #fff inset,0 1px 2px rgba(20,50,110,.06),0 10px 24px rgba(30,70,140,.1)}




/* ---- Neuro ---- */
#shell .libnext{background:linear-gradient(160deg,#102A63,#0B1F4A);border-radius:22px;box-shadow:0 14px 30px rgba(11,31,74,.3),0 1px 0 rgba(255,255,255,.25) inset}
#shell .ln-play{background:linear-gradient(180deg,#3E72FF,#1D4FD8);box-shadow:0 8px 18px rgba(29,79,216,.5)}
#shell[data-v="library"] :is(.search,.lib,.libmore){background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.78));border:1px solid var(--glass-edge);box-shadow:0 1px 0 #fff inset,0 1px 2px rgba(20,50,110,.06),0 10px 24px rgba(30,70,140,.1)}
#shell[data-v="library"] :is(.lib,.libmore){border-radius:22px}
#shell[data-v="library"] .lg-bar{background:rgba(120,150,200,.25)}

/* ---- Coach ---- */
#shell .cb-mic{width:min(240px,62vw);height:min(240px,62vw);background:url(/media/orb.webp) center/cover no-repeat;box-shadow:0 26px 50px rgba(20,60,160,.34),0 0 80px rgba(110,160,255,.55)}
#shell .coach.voice .cb-mic{margin:22px auto 26px}
#shell .coach.voice .cb-ig{font-size:27px}
#shell .coach.voice .cb-start{background:linear-gradient(180deg,#2F63F0,#1D4FD8);box-shadow:0 12px 26px rgba(29,79,216,.35),0 1px 0 rgba(255,255,255,.35) inset}
#shell[data-v="coach"] .cb-tn{background:var(--glass);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:var(--lift)}
@media (prefers-reduced-motion:no-preference){#shell .coach.voice .cb-mic{animation:lk-float 7s ease-in-out infinite}}

/* ---- the bottom bar: one floating sheet of glass on every screen, the orb in the middle ---- */
@media (max-width:720px){
  #shell .tabbar{left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:8px 6px;border-radius:36px;border:1px solid var(--glass-edge);background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.86));
    -webkit-backdrop-filter:blur(28px) saturate(1.4);backdrop-filter:blur(28px) saturate(1.4);box-shadow:0 1px 0 #fff inset,0 10px 24px rgba(30,70,140,.16),0 28px 60px rgba(30,70,140,.14)}
  #shell .tabbar a[aria-current="page"]{color:var(--ink)}
  #shell .tabbar a,#shell .tabbar a[aria-current="page"],#shell .tabbar a span{font-size:10.5px}
  #shell .tabbar a.tab-coach .corb{width:58px;height:58px;margin-top:-26px;background-image:url(/media/orb-sm.webp);box-shadow:0 0 0 5px rgba(255,255,255,.92),0 12px 24px rgba(20,60,160,.35)}
  #shell .tabbar a.tab-coach[aria-current="page"] .corb{box-shadow:0 0 0 5px rgba(255,255,255,.92),0 0 0 7px var(--cobalt),0 12px 24px rgba(20,60,160,.35)}
  #shell main{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
}
