/* ===================================================================================================
   Aperture: a viewfinder on true black. On the lens black is clear glass, so almost nothing is drawn:
   no cards, no fills, no glow. Focus is shown the way a camera shows it: corner brackets lock on, the
   label widens into focus (Saira's width axis), and a spectrum line (light through a prism) sweeps under
   it. Screens open with an iris. Color appears only where it means something.
   =================================================================================================== */
@font-face{font-family:"Saira WL";src:url(/fonts/saira.woff2) format("woff2");font-weight:100 900;font-stretch:50% 125%;font-display:swap}
body.aperture{--ink:#ffffff;--dim:rgba(255,255,255,.78);--hair:rgba(255,255,255,.34);--acc:#f4f7fa;--ok:#7cf0c8;--edge:transparent;
  --spec:linear-gradient(90deg,#6ee7f9,#a78bfa 55%,#fbbf77);--line:linear-gradient(var(--ink),var(--ink));
  --a-youtube:#f4f7fa;--a-social:#f4f7fa;--a-home:#f4f7fa;--a-traffic:#f4f7fa;--a-games:#f4f7fa;--a-workout:#f4f7fa;--a-today:#f4f7fa;
  background:#000;font-family:"Saira WL",system-ui,sans-serif;font-stretch:100%;letter-spacing:.006em}
html:has(body.aperture){background:#000}
/* surfaces: hairline rows instead of cards */
body.aperture .gl{background-color:transparent;border:0;border-bottom:1px solid var(--hair);border-radius:2px;box-shadow:none;backdrop-filter:none}
body.aperture .map,body.aperture .gl.map{border:1px solid var(--hair);border-radius:4px}
/* focus lock: eight corner strokes and one spectrum line, all as background layers (cheap to animate) */
body.aperture .nv{opacity:.88;transform:none;box-shadow:none;
  background-image:var(--line),var(--line),var(--line),var(--line),var(--line),var(--line),var(--line),var(--line),var(--spec);
  background-repeat:no-repeat;--b:2px;
  background-position:left top,left top,right top,right top,left bottom,left bottom,right bottom,right bottom,center bottom;
  background-size:0 var(--b),var(--b) 0,0 var(--b),var(--b) 0,0 var(--b),var(--b) 0,0 var(--b),var(--b) 0,0 var(--b);
  transition:opacity .15s ease}
body.aperture .nv.focused{opacity:1;transform:none;box-shadow:none;filter:none;background-color:transparent;border-color:transparent;
  background-size:16px var(--b),var(--b) 16px,16px var(--b),var(--b) 16px,16px var(--b),var(--b) 16px,16px var(--b),var(--b) 16px,100% var(--b)}
/* type: wide, light headings; plain-language labels, no all-caps */
body.aperture .h{font-weight:400;font-stretch:112%;font-size:31px;letter-spacing:.01em}
body.aperture .h::before,body.aperture .eyebrow{text-transform:none;letter-spacing:.02em;font-weight:400;font-size:14px;font-stretch:100%;color:var(--dim)}
body.aperture .lbl{font-weight:600}
body.aperture .s{font-weight:500}
body.aperture .s,body.aperture .aside{color:var(--dim)}
body.aperture .ico{background:transparent;border:1px solid var(--hair);border-radius:50%;color:var(--ink);box-shadow:none}
/* the iris: screens open like a camera aperture (navigation only; live updates don't replay it) */

body.aperture #welcome{--a-today:#f4f7fa;--a-youtube:#a78bfa;--a-games:#6ee7f9;background:#000}
/* launcher: sentence-case labels and no decorative glows on true black */
body.aperture .k,body.aperture .lab,body.aperture #castbar .cb-lb{text-transform:none;letter-spacing:.02em;font-weight:500;font-size:14px;color:var(--dim)}
body.aperture .hero-art{background:none}
body.aperture .k .dot,body.aperture .lab .dot{display:none}

/* components: reticle tags instead of filled pills; colored chips keep their meaning */
body.aperture .val,body.aperture .tag,body.aperture .tab,body.aperture .pill{background-color:transparent;border:1px solid var(--hair);border-radius:2px;color:var(--dim);font-weight:500;font-stretch:105%;box-shadow:none}
body.aperture .chip{background-color:transparent;border-radius:2px;box-shadow:none}
body.aperture .badge{background:#000;border-radius:2px}
body.aperture .btn{background-color:transparent;border:1px solid var(--hair);border-radius:2px;box-shadow:none;color:var(--ink);font-stretch:108%}
body.aperture .nv.focused .val,body.aperture .nv.focused .tag{color:var(--ink);border-color:rgba(244,247,250,.42)}
body.aperture .prog{height:3px;border-radius:0;background:var(--hair)}
body.aperture .prog > *{background:var(--spec)!important;border-radius:0}
/* the Aperture greeting: six iris blades rotate open, the wordmark widens into focus, a spectrum line draws beneath */
#welcome .wiris{display:none}
body.aperture #welcome .wglow,body.aperture #welcome .wring{display:none}
body.aperture #welcome .wiris{display:block;position:absolute;width:340px;height:340px;z-index:2;pointer-events:none}
body.aperture #welcome .wiris path{fill:#000;stroke:rgba(255,255,255,.75);stroke-width:1.2}
body.aperture #welcome .wiris{will-change:transform,opacity;animation:wturn 1.05s cubic-bezier(.65,0,.2,1) .15s both}
@keyframes wturn{0%{transform:none;opacity:1}100%{transform:rotate(60deg) scale(2.1);opacity:0}}
body.aperture #welcome .wmark{font-family:"Saira WL",system-ui,sans-serif;font-weight:400;font-stretch:112%;position:relative;will-change:transform,opacity;animation:wfocus .9s cubic-bezier(.2,.8,.2,1) .45s both}
body.aperture #welcome .wmark b,body.aperture #welcome .wmark i{animation:none;opacity:1;filter:none;transform:none}
body.aperture #welcome .wmark b{font-weight:600}
body.aperture #welcome .wmark .wsweep{display:none}
@keyframes wfocus{from{opacity:0;transform:scale(.86,.86)}to{opacity:1;transform:none}}
body.aperture #welcome .wmark::after{content:"";position:absolute;left:14%;bottom:-10px;height:2px;width:72%;background:var(--spec);transform:scaleX(0);will-change:transform;animation:wline .7s cubic-bezier(.2,.8,.2,1) 1.2s both}
@keyframes wline{to{transform:scaleX(1)}}
body.aperture #welcome .wline,body.aperture #welcome .wsub{font-family:"Saira WL",system-ui,sans-serif;font-stretch:108%;filter:none}
body.aperture.rm #welcome .wiris{display:none}

/* the iris, compositor-only: the screen fades and scales in while a hexagon (the blades' shape) expands and fades over it */
body.aperture .scr.enter{animation:irisin .32s cubic-bezier(.2,.8,.2,1) both}
@keyframes irisin{from{opacity:0;transform:scale(.965)}to{opacity:1;transform:none}}
body.aperture .scr.enter::after{content:"";position:absolute;left:50%;top:46%;width:600px;height:600px;margin:-300px 0 0 -300px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon points='150,100 125,143.3 75,143.3 50,100 75,56.7 125,56.7' fill='none' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;will-change:transform,opacity;animation:irishex .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes irishex{from{opacity:.9;transform:scale(.25) rotate(30deg)}to{opacity:0;transform:scale(1.6) rotate(0deg)}}
body.aperture #welcome .wline,body.aperture #welcome .wsub{animation-name:wriseap;will-change:transform,opacity}
@keyframes wriseap{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}   /* no blur: blur is the costliest thing to animate */

/* focused buttons keep (and brighten) their outline; brackets sit on top */
body.aperture .btn.nv.focused{border-color:rgba(255,255,255,.62)}
/* player names in game lobbies: reticle tags, not filled pills */
body.aperture .who span{background-color:transparent;border:1px solid var(--hair);border-radius:2px;font-stretch:105%}
