
/* ============ Start — live-tile dashboard ============ */
#start{max-width:none;width:auto;margin:0;padding:6px 8px 48px;position:relative;min-height:82vh}
/* Theme ambient layer sits behind the grid; default (metro) is transparent so
   the site page bg shows through. Themes set --hub-page-bg. */
#start::before{content:"";position:absolute;inset:-40px 0 0;z-index:0;background:var(--hub-page-bg,transparent);background-size:cover;pointer-events:none;transition:opacity .5s;opacity:1}
#start>.hub-hero,#start>.hub-grid,#start>.hub-empty{position:relative;z-index:1}
.hub-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:10px 4px 20px;flex-wrap:wrap}
.hub-greet{font-size:15px;color:#8f969c;letter-spacing:.01em;display:flex;align-items:center;gap:8px}
.hub-greet-ic{display:inline-flex;flex:none}
.hub-greet-ic svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
.hub-gt{font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:200;font-size:clamp(34px,5.4vw,58px);line-height:1.02;margin:0;color:#fff;letter-spacing:-.02em;overflow-wrap:anywhere}
body.theme-light .hub-gt{color:#151515}
.hub-sub{font-size:13px;color:#8f969c;margin-top:9px;min-height:18px;opacity:1;transition:opacity .45s ease}
.hub-sub.fade{opacity:0}
.hub-hero-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-left:auto}
.hub-date{color:#6f767c;font-size:13px;white-space:nowrap}
.hub-actions{display:flex;gap:8px}
.hub-abtn{background:transparent;border:1px solid #333;color:#aaa;border-radius:0;padding:7px 15px;font-size:12.5px;cursor:pointer;letter-spacing:.02em;transition:border-color .15s,color .15s,background .15s}
.hub-abtn:hover{border-color:#107c10;color:#fff}
.hub-abtn.on{background:#107c10;border-color:#107c10;color:#fff}
body.theme-light .hub-abtn{border-color:#c5c5c5;color:#555}
/* ---- grid ---- */
/* auto-fill lets the browser reflow columns live on any width change (window
   resize AND the nav-bar collapse/expand that widens #main-content) with no JS
   measurement — so it always fills and never overflows. --hub-u shrinks only on
   very narrow screens so at least 4 columns (the widest tile span) always fit. */
.hub-grid{display:grid;--hub-u:min(92px,calc((100vw - 32px)/4));grid-template-columns:repeat(auto-fill,var(--hub-u));grid-auto-rows:var(--hub-u);gap:7px;grid-auto-flow:dense;justify-content:center;padding-bottom:10px}
.hub-tile{position:relative;border-radius:0;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;transition:transform .13s ease,opacity .2s;touch-action:manipulation;outline:none}
.hub-tile:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hs-s1{grid-column:span 1;grid-row:span 1}
.hs-s2{grid-column:span 2;grid-row:span 2}
.hs-w2{grid-column:span 4;grid-row:span 2}
.hs-t2{grid-column:span 2;grid-row:span 4}
.hs-l4{grid-column:span 4;grid-row:span 4}
.hub-inner{position:absolute;inset:0;overflow:hidden;background:var(--tile-bg,#107c10);color:#fff}
.hub-art{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05)}
.hub-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.14) 30%,rgba(0,0,0,.68))}
.hub-flip{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.45,.05,.2,1)}
.hub-tile.flipped .hub-flip{transform:rotateX(-180deg)}
.hub-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;padding:10px 12px;overflow:hidden}
.hub-face.back{transform:rotateX(180deg)}
.hub-face .hub-bfill{position:absolute;inset:0;background-size:cover;background-position:center}
.hub-face .hub-bscrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.7))}
.hub-face .hub-btx{position:relative;z-index:2}
.hub-label{position:absolute;left:11px;bottom:7px;right:30px;font-size:11px;font-weight:400;letter-spacing:.02em;color:rgba(255,255,255,.94);z-index:4;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.hs-s1 .hub-label{left:8px;bottom:5px;right:8px;font-size:10px}
.hub-badge{position:absolute;right:9px;bottom:7px;z-index:4;font-size:11px;font-weight:600;color:rgba(255,255,255,.95);pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.hub-big{font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:200;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.hs-s1 .hub-big{font-size:23px;margin-top:2px}
.hs-s2 .hub-big{font-size:41px;margin-top:6px}
.hs-w2 .hub-big{font-size:46px;margin-top:6px}
.hs-t2 .hub-big{font-size:41px;margin-top:6px}
.hs-l4 .hub-big{font-size:64px;margin-top:8px}
.hub-mid{font-size:12.5px;color:rgba(255,255,255,.86);margin-top:6px}
.hub-tiny{font-size:11px;color:rgba(255,255,255,.72);margin-top:3px}
.hub-bar{height:3px;background:rgba(255,255,255,.25);margin-top:10px;width:100%}
.hub-bar i{display:block;height:100%;background:#fff;transition:width .6s ease}
/* leaderboard rows */
.hub-lbrow{display:flex;align-items:center;gap:7px;padding:3px 0;min-height:24px}
.hub-lbrow img{width:20px;height:20px;border-radius:50%;flex:none;background:#000}
.hub-lbpos{width:20px;flex:none;font-size:11.5px;font-weight:700;color:rgba(255,255,255,.8);text-align:right}
.hub-lbgt{flex:1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-lbval{font-size:11px;color:rgba(255,255,255,.75);white-space:nowrap}
.hub-lbrow.me{background:rgba(255,255,255,.16);margin:0 -6px;padding:3px 6px}
/* recent-games mini grid */
.hub-rgrid{display:grid;gap:5px;margin-top:4px;flex:1;min-height:0;align-content:start}
.hub-rgrid a{display:block;position:relative;padding-top:100%;background:#0007;overflow:hidden}
.hub-rgrid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* installed game → launchable cover: green ring + play badge */
.hub-rgrid a.hub-rl{cursor:pointer;box-shadow:inset 0 0 0 2px rgba(140,224,72,.85)}
.hub-rlp{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;background:rgba(0,0,0,.32);opacity:0;transition:opacity .15s;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.hub-rl:hover .hub-rlp{opacity:1}
/* feed rows */
.hub-frow{display:flex;gap:8px;align-items:flex-start;padding:5px 0;font-size:11.5px;line-height:1.35}
.hub-frow img{width:24px;height:24px;border-radius:50%;flex:none;background:#000}
.hub-frow .ft{flex:1;overflow:hidden;color:rgba(255,255,255,.92)}
.hub-frow .ft a{color:#fff;font-weight:600;text-decoration:none;pointer-events:none}
.hub-frow .fa{color:rgba(255,255,255,.55);font-size:10px;margin-top:1px}
/* nav tile */
.hub-nav-ic{flex:1;display:flex;align-items:center;justify-content:center}
.hub-nav-ic svg{width:34%;height:34%;max-width:44px;max-height:44px;stroke:#fff;fill:none;stroke-width:1.6}
.hs-s1 .hub-nav-ic svg{width:46%;height:46%}
/* 360 avatar tile: the figure stands on the tile floor. contain (not cover)
   because the render is a full body on transparency and cover decapitates it;
   pixelated because the source is only 150x300 and every tile size upscales. */
.hub-av360{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:8px 8px 20px}
.hub-av360 img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
 image-rendering:pixelated;filter:drop-shadow(0 8px 18px rgba(0,0,0,.5))}
/* graph */
.hub-chart{flex:1;min-height:0;margin-top:4px}
.hub-chart svg{display:block;width:100%;height:100%}
/* ghost (+) tile */
.hub-ghost{border:1px dashed #3a3a3a;color:#555;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:200;transition:border-color .15s,color .15s}
.hub-ghost:hover{border-color:#107c10;color:#9cf048}
/* lock face (subscriber-gated data) */
.hub-lock{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;color:rgba(255,255,255,.85)}
/* ---- edit mode ---- */
.hub-chrome{display:none;position:absolute;inset:0;z-index:6;pointer-events:none}
.hub-grid.editing .hub-tile.sel .hub-chrome{display:block}
.hub-cbtn{position:absolute;width:27px;height:27px;border-radius:50%;background:#fff;color:#111;border:2px solid #111;font-size:12px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 6px rgba(0,0,0,.55);pointer-events:auto;padding:0}
.hub-cbtn:hover{background:#e8ffe8}
.hub-cbtn.hc-x{top:-9px;right:-9px}
.hub-cbtn.hc-sz{bottom:-9px;right:-9px}
.hub-cbtn.hc-bg{bottom:-9px;left:-9px}
.hub-cbtn.hc-nm{top:-9px;left:-9px}
@keyframes hubWob{0%,100%{transform:rotate(-.55deg)}50%{transform:rotate(.55deg)}}
.hub-grid.editing .hub-tile:not(.sel):not(.dragging){animation:hubWob 2.4s ease-in-out infinite}
.hub-grid.editing .hub-tile:nth-child(2n){animation-delay:-1.2s}
.hub-grid.editing .hub-tile:nth-child(3n){animation-duration:2.8s}
.hub-grid.editing .hub-tile{cursor:grab}
.hub-grid.editing .hub-tile.sel{transform:scale(1.035);z-index:7}
.hub-tile.dragging{opacity:.25;animation:none!important}
.hub-drag-ghost{position:fixed;z-index:100080;pointer-events:none;transform:scale(1.05);opacity:.92;box-shadow:0 18px 50px rgba(0,0,0,.6)}
/* ---- entrance ---- */
@keyframes hubIn{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
.hub-grid.entering .hub-tile{animation:hubIn .5s cubic-bezier(.2,.8,.3,1) both}
/* ---- empty state ---- */
.hub-empty{text-align:center;padding:60px 16px;color:#777}
.hub-empty h3{font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:200;font-size:28px;color:#aaa;margin:0 0 8px}
/* ---- gallery ---- */
.hub-gal-ov{position:fixed;inset:0;background:rgba(5,6,7,.9);backdrop-filter:blur(10px);z-index:100060;display:flex;align-items:stretch;justify-content:center}
.hub-gal{width:min(860px,96vw);margin:4vh auto;background:transparent;display:flex;flex-direction:column;max-height:92vh}
.hub-gal-head{display:flex;align-items:baseline;justify-content:space-between;padding:6px 4px 2px}
.hub-gal-head b{font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:200;font-size:34px;color:#fff;letter-spacing:-.01em}
.hub-gal-head button{background:none;border:1px solid #444;color:#aaa;border-radius:0;width:34px;height:34px;font-size:15px;cursor:pointer}
.hub-gal-cats{display:flex;gap:18px;padding:10px 4px 12px;overflow-x:auto;scrollbar-width:none}
.hub-gal-cats::-webkit-scrollbar{display:none}
.hub-gcat{background:none;border:0;padding:0;font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:300;font-size:21px;color:#5d646a;cursor:pointer;white-space:nowrap;letter-spacing:-.01em}
.hub-gcat.on{color:#fff}
.hub-gal-body{flex:1;overflow-y:auto;padding:2px 4px 8px;min-height:200px}
.hub-gitem{display:flex;align-items:center;gap:12px;padding:9px 10px;margin-bottom:4px;background:#141517;border:1px solid #232427;cursor:default}
.hub-gitem:hover{border-color:#333}
.hub-gsw{width:34px;height:34px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff}
.hub-gsw svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8}
.hub-gsw img{width:34px;height:34px;object-fit:cover}
.hub-gtx{flex:1;min-width:0}
.hub-gtx b{display:block;font-size:13.5px;font-weight:600;color:#e8e8e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-gtx span{display:block;font-size:11px;color:#7d848a;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-gpin{flex:none;background:transparent;border:1px solid #2f6b2f;color:#9cf048;border-radius:0;padding:6px 14px;font-size:12px;cursor:pointer}
.hub-gpin:hover{background:#107c10;border-color:#107c10;color:#fff}
.hub-gpin[disabled]{opacity:.4;cursor:default}
.hub-gal-foot{padding:10px 4px;display:flex;justify-content:flex-end;gap:8px}
.hub-gal-foot button{background:none;border:1px solid #3a2a2a;color:#c98;border-radius:0;padding:6px 12px;font-size:11.5px;cursor:pointer}
/* ---- paint popover ---- */
#hub-paint{position:fixed;z-index:100070;background:#151619;border:1px solid #2c2d31;width:262px;padding:12px;display:none;box-shadow:0 14px 40px rgba(0,0,0,.6)}
#hub-paint h5{margin:0 0 7px;font-size:10.5px;font-weight:600;color:#8a9096;text-transform:lowercase;letter-spacing:.04em}
.hub-swrow{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;margin-bottom:10px}
.hub-sw{aspect-ratio:1;border:1px solid rgba(255,255,255,.12);cursor:pointer;padding:0}
.hub-sw.on{outline:2px solid #fff;outline-offset:1px}
#hub-paint input[type=text]{width:100%;background:#0d0e10;border:1px solid #2c2d31;color:#ddd;padding:7px 9px;font-size:12px;border-radius:0}
.hub-cvres{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px;max-height:150px;overflow-y:auto}
.hub-cvres button{padding:0;border:1px solid #2c2d31;background:#000;cursor:pointer;aspect-ratio:1;overflow:hidden}
.hub-cvres img{width:100%;height:100%;object-fit:cover;display:block}
.hub-cvres button:hover{border-color:#9cf048}
/* ---- gamertag banner editor (shares profileCustom.gt* with the profile page) ---- */
.hub-hello{position:relative}
.hub-gtrow{display:flex;align-items:center;gap:14px}
.hub-gtpic{width:clamp(46px,7.2vw,74px);height:clamp(46px,7.2vw,74px);border-radius:14px;object-fit:cover;flex:none;background:#0c0d0f;border:1px solid rgba(255,255,255,.1);box-shadow:0 2px 12px rgba(0,0,0,.45)}
#start.hub-th-noir .hub-gtpic{border-radius:50%}
.hub-gt-edit{flex:none;vertical-align:middle;background:transparent;border:1px solid #333;color:#8a9096;border-radius:0;width:28px;height:28px;font-size:13px;cursor:pointer;display:none;align-items:center;justify-content:center;padding:0}
#start.hub-can-banner .hub-hello:hover .hub-gt-edit,#start.hub-can-banner .hub-grid.editing .hub-gt-edit,body.hub-editing #start.hub-can-banner .hub-gt-edit{display:inline-flex}
.hub-gt-edit:hover{border-color:#9cf048;color:#9cf048}
#hub-banner{position:fixed;z-index:100072;background:#151619;border:1px solid #2c2d31;width:284px;padding:14px;display:none;box-shadow:0 14px 40px rgba(0,0,0,.6)}
#hub-banner h5{margin:0 0 6px;font-size:10.5px;font-weight:600;color:#8a9096;text-transform:lowercase;letter-spacing:.04em}
.hb-row{margin-bottom:12px}
#hub-banner select{width:100%;background:#0d0e10;border:1px solid #2c2d31;color:#ddd;padding:7px 9px;font-size:12px;border-radius:0}
#hub-banner input[type=range]{width:100%;accent-color:#107c10}
.hb-color-row{display:flex;align-items:center;gap:9px;font-size:12px;color:#bbb}
.hb-color-row input[type=color]{width:36px;height:26px;border:1px solid #2c2d31;background:#0d0e10;padding:0;cursor:pointer}
.hb-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
.hb-actions button{border:1px solid #2f6b2f;background:transparent;color:#9cf048;border-radius:0;padding:6px 15px;font-size:12px;cursor:pointer}
.hb-actions button.hb-reset{border-color:#3a3a3a;color:#8a9096}
.hb-actions button:hover{background:#107c10;border-color:#107c10;color:#fff}
/* ---- toast (global — first real _xctToast implementation) ---- */
#xct-toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,14px);background:#16321c;border:1px solid #2f6b2f;color:#eafff0;padding:11px 18px;border-radius:0;z-index:100090;box-shadow:0 8px 24px rgba(0,0,0,.5);font-size:13px;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s}
#xct-toast.on{opacity:1;transform:translate(-50%,0)}
/* ============ Start themes (Core-unlockable reskins) ============ */
/* A theme sets the ambient page background (--hub-page-bg), the greeting ink,
   and an optional tile surface treatment. Tile colours stay user-controlled;
   the ambient + treatment give each theme its identity. Palettes for auto
   tiles live in JS (_HUB_THEMES). metro = default/free = no overrides. */
/* Blades v3 (2026-08-05) — full self-contained recreation of the 2.0.6717
   five-blade dashboard: marketplace / xbox live / games / media / system.
   Sheets = one SVG (S-curved blade sheets; their path d + panel rects morph
   via CSS transitions on switch). The open blade = per-blade colourway rect
   + an HTML overlay (#hbl-content) carrying the ORIGINAL panels, buttons and
   labels lifted from the carved XUR scenes (Live/Games/Media/System exact;
   Marketplace canon — that blade was server-driven epix). Self-contained:
   nothing routes away from /start; ArrowLeft/Right switches blades,
   ArrowUp/Down moves focus, click works too. Metro hero/grid are hidden
   under this theme; the Y legend button opens the theme picker. Switch =
   350ms and open = 450ms per the XUR sound timeline. Everything sizes off
   --pw (panel width) so it stays true at 4K. */
/* Served-only, unique family. NO local() — the MS Store Convection package
   registers six faces all named "Convection" (Regular/Bold/Condensed/Medium/
   Italic/ExtraBold), so local('Convection') could resolve to the wrong cut and
   render as the wrong font. Forcing our exact Conv.ttf (the regular weight)
   under a private family name makes every machine render identically. */
@font-face{font-family:'XCTConvection';src:url('/blades/convection.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
#start.hub-th-blades{--hub-page-bg:radial-gradient(120% 100% at 50% 40%,#141613,#000 82%);min-height:96vh;padding:0}
#start.hub-th-blades .hub-hero,#start.hub-th-blades .hub-grid,#start.hub-th-blades .hub-empty{display:none}
#hub-bl-chrome{position:absolute;inset:-40px 0 0;z-index:1;pointer-events:none}
#hbl-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
#hbl-svg path{stroke:rgba(56,60,54,.30);stroke-width:1;transition:d .35s cubic-bezier(.33,0,.2,1)}
#hbl-svg rect{transition:x .35s cubic-bezier(.33,0,.2,1),width .35s cubic-bezier(.33,0,.2,1)}
/* drifting light sheen across the panel (the dash's white_shine_panel) */
#hbl-sheen{transform-box:fill-box;will-change:transform;animation:hblSheen 14s ease-in-out infinite}
/* the warm luminous cloud + emanating pulse (screen-blended so the sampled
   golds ADD light over the panel gradient like the dash's bloom, instead of
   a near-invisible alpha wash) */
#hbl-bloom{mix-blend-mode:screen;transform-box:fill-box;transform-origin:center;will-change:transform,opacity;animation:hblBloom 9s ease-in-out infinite}
@keyframes hblBloom{0%,100%{opacity:.72;transform:scale(1)}50%{opacity:1;transform:scale(1.07)}}
#hbl-pulse{mix-blend-mode:screen;transform-box:fill-box;transform-origin:center;will-change:transform,opacity;animation:hblPulse 5.5s ease-out infinite}
@keyframes hblPulse{0%{transform:scale(.22);opacity:0}18%{opacity:.95}100%{transform:scale(1.6);opacity:0}}
@keyframes hblSheen{0%{transform:translateX(0);opacity:0}12%{opacity:1}88%{opacity:1}100%{transform:translateX(var(--shx,300px));opacity:0}}
/* subtle ambient breathing on the page glow behind the blades */
#start.hub-th-blades::before{animation:hblAmbient 26s ease-in-out infinite}
@keyframes hblAmbient{0%,100%{filter:brightness(1)}50%{filter:brightness(1.08)}}
#hbl-svg .hbl-sL{filter:drop-shadow(10px 2px 12px rgba(0,0,0,.52))}
#hbl-svg .hbl-sR{filter:drop-shadow(-10px 2px 12px rgba(0,0,0,.52))}
#hbl-svg .hbl-pback{filter:drop-shadow(0 10px 30px rgba(0,0,0,.5));stroke:rgba(40,30,10,.35)}
#hbl-svg path.hov{filter:brightness(1.05)}
/* click/hover targets + vertical labels over the sheet paths */
.hbl-hit{position:absolute;top:0;bottom:8px;pointer-events:auto;cursor:pointer;z-index:2;transition:left .35s cubic-bezier(.33,0,.2,1)}
.hbl-hit:focus-visible{outline:2px solid #fff;outline-offset:-3px}
#hub-bl-chrome .hbl-hit b{writing-mode:vertical-rl;display:block;margin:0 auto;padding-top:clamp(110px,20vh,300px);font-family:'XCTConvection','Segoe UI',Inter,sans-serif!important;font-weight:400;font-size:clamp(18px,3.25vh,31px);letter-spacing:.025em;color:#4a4d46;text-shadow:0 1px 0 rgba(255,255,255,.6);text-transform:lowercase;white-space:nowrap}
/* panel content overlay — the recreated blade UI; sizes off --pw.
   The #hbl-content * rule is deliberate: the site's global element rules
   (mono look) beat INHERITED family, so every descendant gets Convection
   explicitly at id specificity. */
#hbl-content{position:absolute;pointer-events:auto;z-index:1;color:var(--bink,#3F2A08);transition:left .35s cubic-bezier(.33,0,.2,1),width .35s cubic-bezier(.33,0,.2,1)}
#hbl-content,#hbl-content *{font-family:'XCTConvection','Segoe UI',Inter,sans-serif!important}
#hbl-content.hbl-sw .hbl-pc{opacity:0;transform:translateX(-1.5%)}
.hbl-pc{position:absolute;inset:0;transition:opacity .16s ease,transform .16s ease;animation:hblPcIn .22s ease}
@keyframes hblPcIn{from{opacity:0;transform:translateX(1.5%)}to{opacity:1;transform:none}}
.hbl-title{position:absolute;left:8.5%;top:7%;font-weight:400;font-size:calc(var(--pw)*0.038);color:var(--btitle,#fff);text-shadow:0 2px 3px rgba(0,0,0,.34);letter-spacing:0}
.hbl-left{position:absolute;left:8.5%;top:13%;width:43%;bottom:27%;overflow-y:auto;scrollbar-width:none}
.hbl-left::-webkit-scrollbar{display:none}
.hbl-meta{position:absolute;left:52%;right:5%;top:18.5%;bottom:26%;overflow:hidden}
.hbl-card{background:linear-gradient(180deg,rgba(255,255,255,.74) 0,rgba(255,255,255,.58) 42%,rgba(255,250,238,.40) 100%);border:2px solid rgba(46,28,2,.5);border-radius:calc(var(--pw)*0.010);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 2px rgba(255,255,255,.6),inset 0 -14px 22px -16px rgba(120,80,10,.28),0 3px 7px rgba(0,0,0,.22);padding:calc(var(--pw)*0.014);margin-bottom:calc(var(--pw)*0.012);min-height:calc(var(--pw)*0.145);box-sizing:border-box}
.hbl-card .hbl-ch{font-weight:600;font-size:calc(var(--pw)*0.025);margin-bottom:calc(var(--pw)*0.012)}
.hbl-crow{display:flex;align-items:center;gap:calc(var(--pw)*0.016)}
.hbl-crow span{font-weight:600;font-size:calc(var(--pw)*0.024)}
/* default gamerpic — our own generated organic green weave (layered conic +
   radial gradients), evoking the maze-y placeholder without copying it */
.hbl-gpic{width:calc(var(--pw)*0.085);height:calc(var(--pw)*0.085);flex:none;border:2px solid rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.3),inset 0 0 0 1px rgba(0,50,0,.3);background-color:#249016;background-image:repeating-conic-gradient(from 20deg at 34% 40%,#3EB524 0deg 26deg,#1C7810 26deg 52deg),repeating-radial-gradient(circle at 66% 62%,#4CC72E 0,#1C7810 7%,#3EB524 13%,#1C7810 20%),radial-gradient(circle at 40% 35%,rgba(255,255,255,.35),transparent 45%);background-blend-mode:overlay,multiply,screen}
.hbl-gname{font-weight:400;font-size:calc(var(--pw)*0.027)}
.hbl-gsub{font-weight:400;font-size:calc(var(--pw)*0.019);opacity:.75}
.hbl-item{display:flex;align-items:center;gap:calc(var(--pw)*0.016);min-height:calc(var(--pw)*0.080);padding:calc(var(--pw)*0.008) calc(var(--pw)*0.010);border-top:2px solid rgba(70,43,4,.36);font-weight:400;font-size:calc(var(--pw)*0.033);line-height:1.02;cursor:pointer;box-sizing:border-box}
.hbl-item:first-child{border-top-color:rgba(40,25,0,0)}
.hbl-item.fc{background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.34));border:2px solid rgba(40,25,0,.45);border-radius:calc(var(--pw)*0.007);box-shadow:inset 0 0 0 2px rgba(255,255,255,.5),0 2px 8px rgba(0,0,0,.18)}
.hbl-item.fc+.hbl-item{border-top-color:rgba(40,25,0,0)}
.hbl-ic{width:calc(var(--pw)*0.052);height:calc(var(--pw)*0.052);flex:none;display:inline-flex}
.hbl-ic svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hbl-ad{margin-top:calc(var(--pw)*0.016);border-radius:calc(var(--pw)*0.008);background:radial-gradient(120% 90% at 18% 50%,#3a4a2c 0,#2b2b2b 30%,#161616 82%);border:2px solid rgba(255,255,255,.45);padding:calc(var(--pw)*0.015) calc(var(--pw)*0.012);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.35);position:relative;overflow:hidden}
/* glowing concentric rings on the left, our own CSS — repeating ring gradient
   plus a soft green bloom behind it */
.hbl-ad::before{content:'';position:absolute;left:calc(var(--pw)*-0.055);top:50%;transform:translateY(-50%);width:calc(var(--pw)*0.20);height:calc(var(--pw)*0.20);border-radius:50%;background:repeating-radial-gradient(circle at 62% 50%,rgba(141,198,63,.85) 0,rgba(141,198,63,.85) calc(var(--pw)*0.004),rgba(141,198,63,0) calc(var(--pw)*0.005),rgba(141,198,63,0) calc(var(--pw)*0.017));filter:drop-shadow(0 0 6px rgba(141,198,63,.55))}
.hbl-ad::after{content:'';position:absolute;left:calc(var(--pw)*0.01);top:50%;transform:translateY(-50%);width:calc(var(--pw)*0.14);height:calc(var(--pw)*0.14);border-radius:50%;background:radial-gradient(circle,rgba(141,198,63,.28),rgba(141,198,63,0) 62%)}
.hbl-adimg{position:relative;height:calc(var(--pw)*0.075);width:auto;filter:drop-shadow(0 0 10px rgba(0,0,0,.45))}
/* small profile weave used as a list icon (e.g. Sign In on the Marketplace blade) */
.hbl-gpic-sm{width:calc(var(--pw)*0.052);height:calc(var(--pw)*0.052);border-width:1px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
/* real gamerpic inside the signed-in card — same footprint as the weave */
.hbl-gpicimg{width:calc(var(--pw)*0.085);height:calc(var(--pw)*0.085);flex:none;object-fit:cover;border:2px solid rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.3),inset 0 0 0 1px rgba(0,50,0,.3);background:#249016}
/* original blade item icons (extracted dash art) */
.hbl-icimg{width:calc(var(--pw)*0.052);height:calc(var(--pw)*0.052);flex:none;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.hbl-mlimg360{display:block;margin:0 auto;width:52%;max-width:380px;height:auto;filter:drop-shadow(0 2px 8px rgba(0,0,0,.18))}
/* Marketplace right-panel Xbox LIVE banner — framed glass sitting next to the
   descriptive paragraph, rings on the left, logo at the lower-right. */
.hbl-mban{float:right;width:46%;margin:0 0 2% 4%;aspect-ratio:1/0.78;border-radius:calc(var(--pw)*0.008);background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.42));border:2px solid rgba(255,255,255,.55);box-shadow:0 3px 10px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.hbl-mban::before{content:'';position:absolute;left:calc(var(--pw)*-0.055);top:50%;transform:translateY(-50%);width:calc(var(--pw)*0.20);height:calc(var(--pw)*0.20);border-radius:50%;background:repeating-radial-gradient(circle at 62% 50%,rgba(141,198,63,.85) 0,rgba(141,198,63,.85) calc(var(--pw)*0.004),rgba(141,198,63,0) calc(var(--pw)*0.005),rgba(141,198,63,0) calc(var(--pw)*0.017));filter:drop-shadow(0 0 6px rgba(141,198,63,.55))}
.hbl-mban::after{content:'';position:absolute;left:calc(var(--pw)*0.01);top:50%;transform:translateY(-50%);width:calc(var(--pw)*0.14);height:calc(var(--pw)*0.14);border-radius:50%;background:radial-gradient(circle,rgba(141,198,63,.28),rgba(141,198,63,0) 62%)}
.hbl-mban .hbl-adimg{position:relative;height:calc(var(--pw)*0.075);width:auto;filter:drop-shadow(0 0 10px rgba(0,0,0,.45))}
/* When the right meta has a floated banner, keep the body text in the left
   column rather than wrapping underneath it. */
.hbl-meta-ban .hbl-mbody{max-width:50%;float:left;clear:left;margin-right:4%}
.hbl-mlogo{text-align:center;font-weight:800;line-height:1.04;letter-spacing:.06em;text-transform:uppercase;margin:calc(var(--pw)*0.008) 0 calc(var(--pw)*0.02)}
.hbl-mlimg{display:block;margin:0 auto;width:48%;max-width:460px;height:auto;filter:drop-shadow(0 2px 8px rgba(0,0,0,.15))}
.hbl-mlone{display:block;font-size:calc(var(--pw)*0.040);color:transparent;-webkit-text-stroke:calc(var(--pw)*0.0018) var(--bink);opacity:.8}
/* two-tone wordmark as our own type: green word + grey numerals */
.hbl-ml360{display:flex;align-items:baseline;justify-content:center;gap:calc(var(--pw)*0.012);letter-spacing:.01em}
.hbl-ml360x{font-weight:800;font-size:calc(var(--pw)*0.052);color:#92C83D;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.hbl-ml360n{font-weight:600;font-size:calc(var(--pw)*0.052);color:#B9BEB6;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.hbl-mhead{font-weight:400;font-size:calc(var(--pw)*0.033);margin-bottom:calc(var(--pw)*0.012)}
.hbl-mbody{font-weight:400;font-size:calc(var(--pw)*0.034);line-height:1.24;max-width:30ch;white-space:pre-line}
.hbl-tray2{position:absolute;left:8.5%;right:6%;top:73%;height:calc(var(--pw)*0.054);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.25));border:2px solid rgba(40,25,0,.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.6);display:flex;align-items:center;gap:calc(var(--pw)*0.014);padding:0 calc(var(--pw)*0.006);font-weight:400;font-size:calc(var(--pw)*0.029);cursor:pointer;box-sizing:border-box}
.hbl-tray2 .hbl-ic{width:calc(var(--pw)*0.038);height:calc(var(--pw)*0.038);border-radius:50%;background:rgba(255,255,255,.5);border:1.5px solid rgba(40,25,0,.35);align-items:center;justify-content:center;padding:calc(var(--pw)*0.007)}
.hbl-leg{position:absolute;left:1.6%;right:1.6%;top:82%;bottom:1.4%;border-radius:calc(var(--pw)*0.01);background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.22));box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.hbl-lbn{position:absolute;width:calc(var(--pw)*0.028);height:calc(var(--pw)*0.028);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:calc(var(--pw)*0.015);text-shadow:0 1px 1px rgba(0,0,0,.4);box-shadow:inset 0 2px 3px rgba(255,255,255,.4),inset 0 -3px 5px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.35);cursor:pointer;border:0;padding:0}
.hbl-ly{left:4.8%;top:9%;background:radial-gradient(circle at 35% 30%,#F2DC6A,#D7B31A 70%,#A98B0E)}
.hbl-lx{left:4.8%;bottom:10%;background:radial-gradient(circle at 35% 30%,#7FA8E8,#2A6FD6 70%,#1C4E9E)}
.hbl-lb{right:4.8%;top:9%;background:radial-gradient(circle at 35% 30%,#F09A8A,#C62F1C 70%,#9C2413)}
.hbl-la{right:4.8%;bottom:10%;background:radial-gradient(circle at 35% 30%,#B9E070,#61A416 70%,#4C8410)}
.hbl-lsel{position:absolute;right:10.2%;bottom:15%;font-size:calc(var(--pw)*0.019);font-weight:600;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
/* controller/player indicator, bottom-left of the legend (our own SVG) */
.hbl-pad{position:absolute;left:2.6%;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:calc(var(--pw)*0.006)}
.hbl-pad svg{width:calc(var(--pw)*0.040);height:calc(var(--pw)*0.040);fill:none;stroke:rgba(255,255,255,.9);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hbl-pad b{font-weight:700;font-size:calc(var(--pw)*0.017);color:rgba(255,255,255,.9);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hbl-mute{position:absolute;left:50%;transform:translateX(-50%);bottom:18%;pointer-events:auto;background:rgba(0,0,0,.15);border:1px solid rgba(255,255,255,.4);color:#fff;width:calc(var(--pw)*0.022);height:calc(var(--pw)*0.022);border-radius:0;font-size:calc(var(--pw)*0.013);cursor:pointer;line-height:1;padding:0}
.hbl-mute.off{opacity:.45;text-decoration:line-through}
/* entry: the 27-frame blade open */
#start.hub-th-blades.hbl-enter #hbl-gpanel{transform-box:fill-box;transform-origin:left center;animation:hblOpen .45s cubic-bezier(.33,0,.2,1)}
#start.hub-th-blades.hbl-enter #hbl-content{transform-origin:left center;animation:hblOpen .45s cubic-bezier(.33,0,.2,1)}
#start.hub-th-blades.hbl-enter #hbl-svg .hbl-slv,#start.hub-th-blades.hbl-enter .hbl-hit{animation:hblSlv .45s ease}
@keyframes hblOpen{from{transform:scaleX(.05);opacity:.55}to{transform:scaleX(1);opacity:1}}
@keyframes hblSlv{from{opacity:0}60%{opacity:0}to{opacity:1}}
/* narrow: _hblLayout adds .hbl-narrow — panel-only, no sheets */
#hub-bl-chrome.hbl-narrow .hbl-slv,#hub-bl-chrome.hbl-narrow .hbl-hit{display:none}
@media (prefers-reduced-motion:reduce){
#hbl-svg path,#hbl-svg rect,#hbl-content,.hbl-hit,.hbl-pc{transition:none;animation:none}
#start.hub-th-blades.hbl-enter #hbl-gpanel,#start.hub-th-blades.hbl-enter #hbl-content,#start.hub-th-blades.hbl-enter #hbl-svg .hbl-slv,#start.hub-th-blades.hbl-enter .hbl-hit{animation:none}
}
/* Noir — OLED pure black, hairline-bordered tiles, big thin white numerals. */
#start.hub-th-noir{--hub-page-bg:#000}
#start.hub-th-noir .hub-gt{color:#fafafa;font-weight:100}
#start.hub-th-noir .hub-inner{box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)}
#start.hub-th-noir .hub-inner{filter:saturate(.55) brightness(.82)}
/* Synthwave — neon vapor over deep violet, glowing greeting. */
#start.hub-th-synthwave{--hub-page-bg:linear-gradient(180deg,#1b0b34 0%,#360a4d 46%,#10061f 100%)}
#start.hub-th-synthwave .hub-gt{color:#ff74d0;text-shadow:0 0 22px rgba(255,64,180,.55)}
#start.hub-th-synthwave .hub-inner{box-shadow:0 0 0 1px rgba(255,110,199,.18),0 6px 26px -10px rgba(180,38,255,.5)}
/* Aurora — cool animated gradient behind deep navy. */
#start.hub-th-aurora{--hub-page-bg:linear-gradient(125deg,#04101f 0%,#062033 25%,#0a2f3a 50%,#0a1b3a 75%,#04101f 100%);background-size:200% 200%}
#start.hub-th-aurora::before{background-size:220% 220%;animation:hubAurora 22s ease infinite}
#start.hub-th-aurora .hub-gt{color:#e4f7ff}
#start.hub-th-aurora .hub-inner{box-shadow:inset 0 0 0 1px rgba(120,220,255,.12)}
@keyframes hubAurora{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
/* Nebula — cosmic depth, jewel tones, gradient greeting. */
#start.hub-th-nebula{--hub-page-bg:radial-gradient(90% 70% at 28% 12%,#33205e 0%,#160a34 40%,#070316 78%,#030109 100%)}
#start.hub-th-nebula .hub-gt{background:linear-gradient(90deg,#b98bff,#63c6ff 55%,#ff7ac0);-webkit-background-clip:text;background-clip:text;color:transparent}
#start.hub-th-nebula .hub-inner{box-shadow:0 0 0 1px rgba(157,78,221,.2),0 8px 30px -12px rgba(123,92,255,.5)}
/* Theme picker drawer */
.hub-th-ov{position:fixed;inset:0;background:rgba(5,6,7,.9);backdrop-filter:blur(10px);z-index:100062;display:flex;align-items:stretch;justify-content:center}
.hub-th-panel{width:min(880px,96vw);margin:4vh auto;display:flex;flex-direction:column;max-height:92vh}
.hub-th-head{display:flex;align-items:baseline;justify-content:space-between;padding:6px 4px 12px}
.hub-th-head b{font-family:'Segoe UI Light','Segoe UI',Inter,sans-serif;font-weight:200;font-size:34px;color:#fff}
.hub-th-head .hub-th-bal{font-size:13px;color:#9cf048}
.hub-th-head button{background:none;border:1px solid #444;color:#aaa;width:34px;height:34px;font-size:15px;cursor:pointer}
.hub-th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;overflow-y:auto;padding:4px}
.hub-th-card{border:1px solid #26272b;background:#0d0e10;overflow:hidden;display:flex;flex-direction:column}
.hub-th-card.on{border-color:#9cf048}
.hub-th-prev{height:104px;position:relative;overflow:hidden;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:4px;padding:12px}
.hub-th-prev i{display:block;border-radius:0}
.hub-th-meta{padding:10px 12px;display:flex;align-items:center;gap:8px}
.hub-th-meta b{font-size:14px;color:#eee;flex:1}
.hub-th-price{font-size:12px;color:#9cf048;white-space:nowrap}
.hub-th-btn{background:transparent;border:1px solid #2f6b2f;color:#9cf048;padding:5px 12px;font-size:12px;cursor:pointer}
.hub-th-btn:hover{background:#107c10;border-color:#107c10;color:#fff}
.hub-th-btn[disabled]{opacity:.45;cursor:default}
.hub-th-btn.owned{border-color:#3a3a3a;color:#8a9096}
/* ---- responsive ---- */
@media (max-width:768px){
#start{padding:2px 2px 40px;min-height:70vh}
.hub-hero{margin:6px 2px 14px}
.hub-hero-right{align-items:flex-start}
.hub-date{display:none}
.hub-gal{margin:2vh auto}
.hub-gal-head b{font-size:26px}
}
/* ---- reduced motion ---- */
@media (prefers-reduced-motion:reduce){
.hub-flip{transition:none}
.hub-grid.editing .hub-tile{animation:none}
.hub-grid.entering .hub-tile{animation:none}
.hub-tile{transition:none}
}
