*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
/* offscreen icon sprite (keep it rendered, not display:none, so <use> resolves) */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
/* ===== retro game cursors =====
   Single source of truth: do NOT add `cursor:` to any other rule — cursor is
   inherited, and a later `cursor:pointer` of equal specificity silently
   restores the OS hand on that element only, which breaks consistency. */
/* default: chunky 8-bit pointer */
html,body{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 3 4 25.5 10.2 19.6 14.2 28.5 18.9 26.3 15 17.7 23.2 17.7Z' fill='%23fff' stroke='%230a1a2e' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3,auto}
/* interactive: PlayStation "cross" confirm button */
.bub,.cat,.it,.close,.xmb-back,a,button,[onclick]{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12.6' fill='%231f6fd0' stroke='%23eaf4ff' stroke-width='2.6'/%3E%3Cpath d='M10.8 10.8 21.2 21.2M21.2 10.8 10.8 21.2' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16,pointer}
body{font-family:"Segoe UI",ui-sans-serif,system-ui,Roboto,Helvetica,Arial,sans-serif;color:#fff;overflow:hidden;
  background:linear-gradient(160deg,#0c2a4d 0%,#0a4c6e 45%,#0e6d7a 100%);position:relative}
/* floating bubbles bg */
body::before,body::after{content:"";position:fixed;border-radius:50%;filter:blur(40px);opacity:.35;z-index:0}
body::before{width:420px;height:420px;background:#2ec5ff;top:-120px;right:-80px;animation:drift 18s ease-in-out infinite}
body::after{width:360px;height:360px;background:#12e1c8;bottom:-140px;left:-60px;animation:drift 22s ease-in-out infinite reverse}
@keyframes drift{50%{transform:translate(30px,40px)}}
.status{position:fixed;top:0;left:0;right:0;height:40px;display:flex;align-items:center;
  padding:0 20px;font-size:15px;font-weight:600;letter-spacing:.03em;z-index:5;text-shadow:0 1px 2px rgba(0,0,0,.4)}
/* clock + battery pin right, like the XMB top bar; `auto` keeps any left-hand
   title in place if one is added back, instead of relying on space-between */
.status .r{display:flex;gap:14px;align-items:center;opacity:.9;margin-left:auto}
.batt{width:30px;height:15px;border:2px solid #fff;border-radius:3px;position:relative;display:inline-block}
.batt::after{content:"";position:absolute;top:2px;left:2px;bottom:2px;width:70%;background:#fff;border-radius:1px}
.batt::before{content:"";position:absolute;right:-4px;top:4px;width:2px;height:6px;background:#fff;border-radius:0 2px 2px 0}
.stage{position:relative;z-index:2;min-height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:space-between;gap:24px;padding:52px 4vw 26px;text-align:center}
/* 1fr / auto / 1fr puts the bubble row dead-center in the viewport regardless of
   how tall the hero or the dock get; the outer rows then park the name at the
   very top and the dock at the very bottom */
.main{flex:1;min-height:0;width:100%;display:grid;grid-template-rows:1fr auto 1fr;
  justify-items:center;align-items:center}
/* wide enough that the greeting stays on one line at the max font size —
   a second line eats the breathing room under the name */
.hero{max-width:1260px;align-self:center}
.dock{align-self:end;margin-top:clamp(24px,5vh,64px)}
.hello{font-size:clamp(42px,7.6vw,82px);font-weight:300;opacity:.95;margin-bottom:10px;line-height:1.05;text-shadow:0 2px 10px rgba(0,0,0,.32)}
.hello b{font-weight:800}
.role{opacity:.8;font-size:clamp(18px,2.7vw,28px);letter-spacing:.08em}
/* wide staggered bubble row (fills the width like a real Vita home).
   column gap shrinks as the spheres grow so all six still fit on one row */
.bubbles{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:34px clamp(22px,3vw,50px);width:100%;max-width:1320px}
.bub{text-align:center;transition:transform .25s;flex:0 0 auto}
.bub:hover{transform:scale(1.08) translateY(-4px)}
/* glossy Vita-style sphere */
.ico{width:clamp(118px,13.5vw,164px);height:clamp(118px,13.5vw,164px);margin:0 auto 14px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;color:#fff;
  box-shadow:0 18px 34px -12px rgba(0,0,0,.75),
             inset 0 0 0 1px rgba(255,255,255,.3),
             inset 0 -16px 28px -14px rgba(0,0,0,.65)}
/* specular highlight on top */
.ico::before{content:"";position:absolute;top:5%;left:13%;width:74%;height:42%;border-radius:50%;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.22) 62%,rgba(255,255,255,0));
  pointer-events:none}
/* bounce light on the bottom rim */
.ico::after{content:"";position:absolute;bottom:5%;left:20%;width:60%;height:28%;border-radius:50%;
  background:radial-gradient(ellipse at 50% 100%,rgba(255,255,255,.38),transparent 72%);pointer-events:none}
.ico svg{position:relative;z-index:1;width:48%;height:48%;fill:currentColor;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.bub span{font-size:18px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.5)}
/* bottom dock */
.dock{display:flex;flex-wrap:wrap;gap:12px 18px;justify-content:center;align-items:center;
  padding:15px 26px;border-radius:32px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(6px)}
.dock a{color:#fff;text-decoration:none;font-size:16px;font-weight:600;opacity:.9;display:flex;align-items:center;gap:8px;
  padding:9px 17px;border-radius:22px;transition:.2s}
.dock a:hover{background:rgba(255,255,255,.16);opacity:1}
.dock .sep{width:1px;height:20px;background:rgba(255,255,255,.25)}
.c1{background:radial-gradient(circle at 32% 26%,#8ecdff,#2f7bea 52%,#0d3a97 100%)}
.c2{background:radial-gradient(circle at 32% 26%,#ffa98a,#e8412f 52%,#8c1206 100%)}
.c3{background:radial-gradient(circle at 32% 26%,#c0adff,#6b3fdc 52%,#2a1480 100%)}
.c4{background:radial-gradient(circle at 32% 26%,#89f5d3,#11b489 52%,#035b45 100%)}
.c5{background:radial-gradient(circle at 32% 26%,#ffeda8,#f2b418 52%,#9a6202 100%);color:#3d2500}
.c6{background:radial-gradient(circle at 32% 26%,#ffaed2,#e0428f 52%,#88104b 100%)}
/* LiveArea overlay */
.la{position:fixed;inset:0;z-index:20;background:rgba(3,18,32,.55);backdrop-filter:blur(4px);
  display:none;align-items:stretch;justify-content:center}
.la.open{display:flex;animation:fade .25s ease}
@keyframes fade{from{opacity:0}}
.panel{position:relative;width:100%;max-width:860px;margin:auto;height:min(88vh,720px);
  border-radius:22px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.7);
  display:flex;flex-direction:column;animation:rise .3s cubic-bezier(.2,.8,.2,1)}
@keyframes rise{from{transform:translateY(30px);opacity:0}}
.phead{padding:26px 30px 18px;background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.02))}
.phead h2{font-size:26px;font-weight:800;margin-bottom:4px}
.phead .sub{opacity:.8;font-size:14px}
.pbody{flex:1;overflow-y:auto;padding:22px 30px 30px;background:rgba(6,26,44,.72)}
.pbody::-webkit-scrollbar{width:8px}.pbody::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:8px}
.gate{padding:16px 30px;background:rgba(0,0,0,.35);display:flex;justify-content:space-between;align-items:center}
.gate small{opacity:.6;font-size:12px}
.close{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#fff;
  padding:9px 20px;border-radius:24px;font-size:13px;font-weight:600;transition:.2s}
.close:hover{background:rgba(255,255,255,.28)}
.close.primary{background:linear-gradient(180deg,#3f8ee8,#1f5fc0);border-color:rgba(190,220,255,.55);
  color:#fff;text-decoration:none;box-shadow:0 6px 16px -6px rgba(30,90,200,.9)}
.close.primary:hover{background:linear-gradient(180deg,#57a0f5,#2a6ed2)}
.gate-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
/* ===== CV preview ===== */
/* taller panel + height-fitted sheet, so the whole page reads at a glance */
#cvLa .panel{height:min(92vh,880px);max-width:900px}
.cvbody{display:flex;justify-content:center;align-items:center;padding:22px 26px;overflow:hidden}
.paper{display:block;position:relative;aspect-ratio:1200/1552;height:100%;width:auto;
  max-height:100%;max-width:100%;border-radius:8px;overflow:hidden;
  background:#fff;box-shadow:0 26px 60px -18px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.25);
  transition:transform .25s,box-shadow .25s}
.paper:hover{transform:translateY(-4px);box-shadow:0 34px 70px -18px rgba(0,0,0,.9),0 0 0 1px rgba(150,200,255,.6)}
.paper img{display:block;width:100%;height:100%}
.paper-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%) translateY(8px);
  background:rgba(8,22,40,.9);border:1px solid rgba(150,185,255,.4);color:#eaf4ff;
  padding:8px 16px;border-radius:22px;font-size:13px;font-weight:600;white-space:nowrap;
  opacity:0;transition:.25s;pointer-events:none}
.paper:hover .paper-hint,.paper:focus-visible .paper-hint{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width:640px){
  .panel{height:100%;max-width:none;border-radius:0}
  .cvbody{padding:16px}
  .gate{flex-direction:column;gap:12px;align-items:stretch;text-align:center}
  .gate-actions{justify-content:center}
  .paper-hint{opacity:1;transform:translateX(-50%)}
}
.entry{border-left:3px solid rgba(255,255,255,.35);padding:2px 0 14px 16px;margin-bottom:16px}
.entry h3{font-size:16px;font-weight:700}
.entry .meta{opacity:.65;font-size:12px;margin:2px 0 8px}
.entry ul{margin-left:16px;font-size:13.5px;line-height:1.6;opacity:.92}
.entry li{margin-bottom:5px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:7px 13px;border-radius:20px;font-size:12.5px}
.grp{font-size:12px;letter-spacing:.15em;text-transform:uppercase;opacity:.6;margin:16px 0 8px}
.lead{font-size:15px;line-height:1.7;opacity:.92}
a{color:#7fe3ff}
/* ===== PS3 XMB (XrossMediaBar) =====
   Same ocean palette as the home screen: the backdrop is the body gradient a
   couple of shades deeper (so text still clears contrast over it), and every
   surface — top bar, hint bar, selected row — is the dock's frosted white
   glass instead of the near-black slate this used to have. */
#xmb{position:fixed;inset:0;z-index:30;display:none;color:#fff;overflow:hidden;
  background:linear-gradient(160deg,#071b30 0%,#06364e 45%,#08505c 100%)}
#xmb::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(1100px 760px at 50% 26%,rgba(46,197,255,.16),transparent 68%),
             radial-gradient(900px 640px at 10% 92%,rgba(18,225,200,.12),transparent 70%)}
#xmb.open{display:block;animation:fade .3s ease}
#xmb.open.compact{display:flex;flex-direction:column}
.xmb-wave{position:absolute;left:0;right:0;top:42%;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(180,242,255,.75),transparent);
  box-shadow:0 0 46px 12px rgba(46,197,255,.18)}
.xmb-glow{position:absolute;left:0;right:0;top:42%;height:300px;transform:translateY(-50%);pointer-events:none;
  background:radial-gradient(52% 90% at 22% 50%,rgba(46,197,255,.16),transparent 70%)}
/* mirrors the home status bar: same height, size, weight and clock+battery pair */
.xmb-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;
  gap:14px;padding:0 20px;height:52px;font-size:15px;font-weight:600;letter-spacing:.03em;
  color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);z-index:5}
.xmb-top .r{display:flex;gap:14px;align-items:center;opacity:.9;margin-left:auto}
.xmb-top .clk{font-variant-numeric:tabular-nums}
.xmb-back{color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:8px 16px;
  font-size:14px;font-weight:600;background:rgba(255,255,255,.08);backdrop-filter:blur(6px);transition:.2s}
.xmb-back:hover{background:rgba(255,255,255,.16)}
/* horizontal category axis */
.xmb-cats{position:absolute;top:42%;left:0;display:flex;align-items:center;gap:46px;
  transition:transform .45s cubic-bezier(.22,.61,.36,1);will-change:transform;z-index:2}
/* --f is the distance falloff app.js sets per icon; a custom property (not an
   inline opacity) so the compact rules below can still override it */
.cat{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none;opacity:var(--f,.45);transition:.35s}
/* the axis reuses the home bubbles' glossy spheres (same c1..c6 gradients),
   sized in em off font-size so the grow/shrink transition still animates */
.cat .ci{font-size:34px;line-height:1;width:1.6em;height:1.6em;border-radius:50%;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;color:#fff;transition:.35s;
  filter:saturate(.65) drop-shadow(0 5px 10px rgba(0,0,0,.5));
  box-shadow:0 14px 26px -10px rgba(0,0,0,.7),
             inset 0 0 0 1px rgba(255,255,255,.3),
             inset 0 -12px 22px -12px rgba(0,0,0,.6)}
.cat .ci::before{content:"";position:absolute;top:5%;left:13%;width:74%;height:42%;border-radius:50%;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.22) 62%,rgba(255,255,255,0));
  pointer-events:none}
.cat .ci::after{content:"";position:absolute;bottom:5%;left:20%;width:60%;height:28%;border-radius:50%;
  background:radial-gradient(ellipse at 50% 100%,rgba(255,255,255,.38),transparent 72%);pointer-events:none}
.cat .ci svg{position:relative;z-index:1;display:block;width:.52em;height:.52em;fill:currentColor;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.4));transition:inherit}
.cat .cl{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;opacity:0;transition:.35s;
  white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.cat.on{opacity:1}
.cat.on .ci{font-size:52px;filter:saturate(1) drop-shadow(0 10px 22px rgba(46,197,255,.5))}
.cat.on .cl{opacity:.95}
/* depth-of-field wash over the half the item column lives in: the category
   spheres past the selected one recede behind it instead of ghosting through */
.xmb-shade{position:absolute;inset:0;left:24%;pointer-events:none;z-index:3;
  background:linear-gradient(90deg,transparent,rgba(6,25,44,.4) 20%,rgba(6,25,44,.55) 100%)}
/* vertical item axis */
.xmb-items{position:absolute;top:0;left:0;transition:transform .4s cubic-bezier(.22,.61,.36,1);will-change:transform;z-index:4}
.it{display:flex;align-items:flex-start;gap:16px;padding:9px 0;opacity:.55;transition:.3s;max-width:min(640px,60vw)}
.it .ii{font-size:26px;flex:none;width:46px;text-align:center;line-height:1.2;filter:saturate(.55);transition:.3s}
.it .itx{min-width:0}
.it .ttl{font-size:16px;font-weight:600;line-height:1.2;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.it .sb{font-size:12px;color:rgba(255,255,255,.7);margin-top:3px}
.it .det{max-height:0;overflow:hidden;opacity:0;transition:max-height .4s ease,opacity .35s ease}
/* selected row = the dock's frosted glass, faded out to the right */
.it.on{opacity:1;background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.04) 65%,transparent),
                            linear-gradient(90deg,rgba(7,27,48,.5),rgba(7,27,48,.2) 70%,transparent);
  border-radius:20px;padding:12px 22px 12px 12px;margin-left:-12px}
.it.on .ii{font-size:42px;filter:saturate(1) drop-shadow(0 6px 16px rgba(46,197,255,.5))}
.it.on .ttl{font-size:23px;font-weight:700}
.it.on .sb{font-size:13px;color:rgba(255,255,255,.82);margin-top:5px}
.it.on .det{max-height:660px;opacity:1;margin-top:12px}
/* detail internals — accents borrowed straight from the home spheres:
   cyan links (#7fe3ff, the page link colour), c4 mint for outcomes, c5 gold
   for results */
.det .d-meta{font-size:12.5px;color:rgba(255,255,255,.68);margin-bottom:9px}
.det ul{margin:0 0 0 18px;font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.9)}
.det ul li{margin-bottom:6px}
.det p{font-size:14px;line-height:1.6;color:rgba(255,255,255,.9);margin-bottom:8px;max-width:56ch}
.det .out{color:#89f5d3;font-size:13px;margin:8px 0;max-width:56ch}
.det .res{color:#ffeda8;font-size:17px;font-weight:700;margin:2px 0 8px}
.det .d-grp{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.55);margin:13px 0 7px}
.det .chips{display:flex;flex-wrap:wrap;gap:7px;max-width:60ch}
.det .chips span{font-size:12.5px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.12);
  border-radius:20px;padding:5px 13px;color:#fff}
.det a.big{color:#7fe3ff;font-size:18px;text-decoration:none;font-weight:600}
.det a.big:hover{text-decoration:underline}
.lvl{display:flex;align-items:center;gap:12px;margin:5px 0}
.lvl .ln{width:170px;font-size:13px;color:rgba(255,255,255,.9)}
.lvl .dots{display:flex;gap:4px}
.lvl .dots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.2)}
.lvl .dots i.f{background:linear-gradient(180deg,#8ecdff,#2f7bea);box-shadow:0 0 8px rgba(46,197,255,.6)}
.xmb-help{position:absolute;bottom:22px;left:0;right:0;z-index:5;
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;
  width:fit-content;max-width:calc(100% - 32px);margin:0 auto;padding:12px 22px;
  border-radius:32px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 34px -14px rgba(0,0,0,.6);backdrop-filter:blur(6px);
  font-size:14px;letter-spacing:.04em;color:rgba(255,255,255,.85)}
.xmb-help .hint{display:flex;align-items:center;gap:7px;white-space:nowrap}
.xmb-help .hsep{width:1px;height:20px;background:rgba(255,255,255,.25)}
.xmb-help b{display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:28px;padding:0 8px;border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.1));
  border:1px solid rgba(255,255,255,.35);box-shadow:0 2px 6px rgba(0,0,0,.35);
  color:#fff;font-size:14px;font-weight:700;line-height:1}
/* compact / mobile fallback */
#xmb.compact .xmb-wave,#xmb.compact .xmb-glow,#xmb.compact .xmb-shade{display:none}
#xmb.compact .xmb-cats{position:static;transform:none!important;top:auto;overflow-x:auto;gap:22px;
  padding:64px 16px 12px;justify-content:flex-start;border-bottom:1px solid rgba(255,255,255,.15)}
#xmb.compact .cat{opacity:.6}#xmb.compact .cat.on{opacity:1}
#xmb.compact .cat .cl{opacity:.85;font-size:10px}
#xmb.compact .cat .ci{font-size:30px}#xmb.compact .cat.on .ci{font-size:40px}
#xmb.compact .xmb-items{position:static;transform:none!important;padding:8px 18px 130px;overflow-y:auto}
/* default OS scrollbars read as bright white slabs over the ocean gradient */
#xmb.compact .xmb-cats::-webkit-scrollbar,#xmb.compact .xmb-items::-webkit-scrollbar{width:7px;height:7px}
#xmb.compact .xmb-cats::-webkit-scrollbar-thumb,#xmb.compact .xmb-items::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.25);border-radius:8px}
#xmb.compact .it{max-width:none}
#xmb.compact .xmb-help{bottom:14px;gap:8px 12px;padding:10px 16px;font-size:13px}
#xmb.compact .xmb-help b{min-width:26px;height:26px;font-size:13px}
