/* whoami.css — /whoami/ (whoami.js): an old-web profile page with a custom dark layout, over the pixel
   city in the rain. Verdana, tables and no site chroma filter ON PURPOSE: it's the one page that dresses
   like 2006. Everything is scoped under .ms / .nc-* / body:has(.ms), so it's inert on every other page
   (linked from both templates because the SPA keeps whichever <head> the visit started on). */
.ms{ --ms-panel:rgba(10,8,26,.84); --ms-line:#4b3c86; --ms-head:#3a2a74; --ms-label:rgba(92,70,170,.32); --ms-ink:#e4e0f5; --ms-dim:#8f88b5;
  --ms-link:#8fd8ff; --ms-orange:#ff9e45; --nc-pink:#ff4f9e; --nc-teal:#6ff0e0; }

/* ---------- scene ---------- */
.nc-scene{ position:fixed; inset:0; z-index:0; pointer-events:none; background:#0b0a1f; }
.nc-scene canvas{ position:absolute; inset:0; width:100%; height:100%; }
.nc-city{ image-rendering:pixelated; }
/* the band's backdrop: in the band's slot, above main (z2), below the band's lines (#bg z4) */
.nc-bandbg{ position:fixed; left:0; width:100%; z-index:3; pointer-events:none; image-rendering:pixelated; }
.nc-scene.flash .nc-city{ animation:nc-flash 1.1s ease-out; }
@keyframes nc-flash{ 0%{filter:none} 4%{filter:brightness(2.4) saturate(.6)} 9%{filter:brightness(1.1)} 15%{filter:brightness(1.9) saturate(.7)} 100%{filter:none} }
body:has(.nc-scene) main{ position:relative; z-index:2; }
body:has(.ms) main{ filter:none; }   /* old-web text is crisp; the site's chroma filter smears 11px verdana */
body:has(.nc-scene) footer{ position:relative; z-index:2; background:rgba(7,6,16,.82); }

/* ---------- the profile: old-web fonts and tables, on purpose ---------- */
.wrap:has(.ms){ max-width:980px; }
.page-content:has(.ms){ max-width:none; filter:none; }
.ms{ display:grid; grid-template-columns:330px minmax(0,1fr); gap:14px; align-items:start; margin-top:3vh;
  font:12px/1.45 Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif; color:var(--ms-ink); }
.ms a{ color:var(--ms-link); font-weight:bold; text-decoration:underline; }
.ms a:hover{ color:#fff; }
.ms-left, .ms-right{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; min-width:0; }   /* long shelves scroll inside, never widen the column */
.ms-box{ position:relative; background:var(--ms-panel); border:1px solid var(--ms-line); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.ms-head{ background:var(--ms-head); color:#fff; font-weight:bold; font-size:12px; padding:3px 7px; border-bottom:1px solid var(--ms-line); }
.ms-head2{ color:var(--ms-orange); font-weight:bold; font-size:13px; padding:7px 9px 4px; border-bottom:1px solid var(--ms-line); background:linear-gradient(180deg, rgba(255,158,69,.10), transparent); }
.ms-body{ padding:9px 10px; }
.ms-dim{ color:var(--ms-dim); }

/* id box */
.nc-sign{ display:inline-flex; gap:1px; margin-bottom:8px; font:700 26px/1 var(--disp); letter-spacing:.14em; text-transform:uppercase; color:#ffe1f0;
  text-shadow:0 0 4px #fff, 0 0 10px var(--nc-pink), 0 0 22px var(--nc-pink), 0 0 40px rgba(255,79,158,.6); }
.nc-sign .nc-dead{ animation:nc-die 7s steps(1) infinite; }
@keyframes nc-die{ 0%,61%,63%,66%,100%{opacity:1} 62%,64%,65%,67%,71%{opacity:.18; text-shadow:none; color:#5a2a44} 72%{opacity:1} }
.ms-idbox{ padding:10px 12px 12px; background:transparent; border:0; backdrop-filter:none; }
.ms-name{ font:bold 22px/1.1 Verdana, Tahoma, sans-serif; color:#fff; margin:0 0 8px; text-shadow:0 1px 0 #000, 0 0 12px rgba(255,79,158,.5); }
.ms-idrow{ display:grid; grid-template-columns:170px 1fr; gap:12px; }
.ms-piccv{ width:170px; height:auto; image-rendering:pixelated; border:1px solid var(--ms-line); background:#05040c; }
.ms-quick{ display:grid; align-content:start; gap:10px; font-size:11px; }
.ms-quote{ font-style:italic; color:#fff; }
.ms-quote:empty, .ms-loc:empty{ display:none; }
.ms-mood{ margin-top:10px; font-size:11px; } .ms-mood span{ color:var(--ms-orange); }
.ms-viewmy{ margin-top:4px; font-size:11px; }

/* clock */
.nc-desk{ display:flex; align-items:center; gap:12px; }
.nc-clock{ display:flex; align-items:baseline; gap:4px; padding:4px 9px; background:#0a0306; border:1px solid #2a0a10; box-shadow:inset 0 0 10px #000; }
.nc-time{ font:400 36px/1 "VT323",monospace; color:#ff3b3b; text-shadow:0 0 8px rgba(255,40,40,.75); letter-spacing:2px; }
.nc-ampm{ font:400 14px/1 "VT323",monospace; color:#a8252a; }
.nc-desk-r{ display:grid; gap:3px; font-size:11px; } .nc-desk-r b{ color:#fff; } .nc-status{ color:var(--ms-orange); font-weight:bold; }

/* contacting box: 2x4 link grid with little icons */
.ms-contact{ display:grid; grid-template-columns:1fr 1fr; gap:7px 10px; font-size:11px; }
.ms-contact a{ display:flex; align-items:center; gap:6px; }
.ic{ flex:0 0 auto; width:16px; height:14px; border:1px solid #6a5ab0; background:#21184a; position:relative; }
.ic::after{ content:""; position:absolute; inset:3px; }
.ic-mail::after{ border-top:2px solid var(--ms-orange); border-bottom:2px solid var(--ms-orange); inset:3px 2px; }
.ic-add::after{ background:linear-gradient(var(--nc-teal),var(--nc-teal)) center/2px 100% no-repeat, linear-gradient(var(--nc-teal),var(--nc-teal)) center/100% 2px no-repeat; }
.ic-im::after{ background:var(--nc-pink); border-radius:50%; inset:3px 4px; }
.ic-group::after{ background:linear-gradient(90deg,var(--ms-link) 0 40%,transparent 40% 60%,var(--ms-link) 60%); }
.ic-fwd::after{ background:var(--ms-orange); clip-path:polygon(0 30%,55% 30%,55% 0,100% 50%,55% 100%,55% 70%,0 70%); }
.ic-fav::after{ background:#ffd14d; clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%); inset:1px 2px; }
.ic-block::after{ border:2px solid #ff3b3b; border-radius:50%; background:linear-gradient(45deg,transparent 44%,#ff3b3b 44% 56%,transparent 56%); inset:1px 3px; }
.ic-rank::after{ background:linear-gradient(0deg,var(--nc-teal) 0 40%,transparent 40%) 0 0/30% 100% no-repeat, linear-gradient(0deg,var(--nc-teal) 0 70%,transparent 70%) 50% 0/30% 100% no-repeat, linear-gradient(0deg,var(--nc-teal) 0 100%,transparent 100%) 100% 0/30% 100% no-repeat; }
.ms-toast{ margin:0 10px 10px; padding:5px 8px; background:#2a1d0a; border:1px dashed var(--ms-orange); color:#ffd9a8; font-size:11px; }

/* details + interests tables */
/* beats the site's .page-content table rules (block display, 14px, cyan th) */
.ms table.ms-table{ display:table; width:100%; margin:0; border-collapse:separate; border-spacing:2px; font-size:11px; }
.ms .ms-table th{ width:34%; text-align:left; vertical-align:top; background:var(--ms-label); color:#c9bcff; font-weight:bold; padding:4px 6px; border:0; }
.ms .ms-table td{ vertical-align:top; padding:4px 6px; background:rgba(0,0,0,.25); border:0; color:var(--ms-ink); }

/* 88x31 buttons */
.ms-buttons{ display:flex; flex-wrap:wrap; gap:4px; }
.b88{ width:88px; height:31px; display:grid; place-items:center; text-align:center; font:9px/1.05 Verdana, sans-serif; color:#fff; border:1px solid; border-color:#fff3 #0008 #0008 #fff3; letter-spacing:.02em; text-transform:none; }
.b88 b{ font-size:10px; }
.b88-pixel{ font-family:"VT323",monospace; font-size:11px; }
a.b88{ text-decoration:none !important; } a.b88:hover{ filter:brightness(1.2); }
.b88-img{ border:0; padding:0; } .b88-img img{ display:block; image-rendering:pixelated; }
.b88{ background:#2a2050; }

.ms-blog{ list-style:none; margin:0; padding:8px 10px; display:grid; gap:5px; font-size:11px; }
.ms-blog .d{ color:var(--ms-dim); margin-left:4px; }
.ms-blurbs h3{ font:bold 13px Verdana, sans-serif; color:var(--ms-orange); margin:6px 0 4px; }
.ms-blurbs h3 + p{ margin-top:0; }
.ms-blurbs p{ margin:0 0 10px; font-size:12px; }

/* caution label */
.nc-label{ position:relative; max-width:360px; margin:14px auto 14px; background:#e9cc48; color:#16130a; rotate:-1.4deg; padding:0 0 10px; box-shadow:0 8px 18px rgba(0,0,0,.5); }
.nc-label::before{ content:""; position:absolute; top:-9px; left:50%; width:80px; height:18px; translate:-50% 0; rotate:3deg; background:rgba(220,220,235,.35); }
.nc-label-head{ padding:6px 12px; font:bold 15px Verdana, sans-serif; letter-spacing:.24em; text-transform:uppercase; border-bottom:3px solid #16130a; }
.nc-label ul{ margin:8px 0 0; padding:0 14px 0 30px; font:11px/1.5 Verdana, sans-serif; }

/* top 8 */
.ms-friendcount{ font-size:12px; margin-bottom:8px; } .ms-friendcount b{ color:var(--ms-orange); }
.ms-top8{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px 8px; }
.ms-friend{ display:grid; justify-items:center; gap:3px; text-align:center; font-size:11px; }
.ms-friend .av{ width:84px; height:84px; display:grid; place-items:center; border:1px solid var(--ms-line); font:400 34px/1 "VT323",monospace; color:#fff; image-rendering:pixelated; text-shadow:2px 2px 0 rgba(0,0,0,.5); }
.ms-friend .av{ position:relative; overflow:hidden; }
.ms-friend .av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }   /* absolute: in the centered grid, height:100% fell back to the image's natural height */
a.ms-friend{ text-decoration:none !important; }
.ms-friend .fn{ color:var(--ms-link); font-weight:bold; text-decoration:underline; }

.ms-hint{ margin-bottom:4px; }
.ms-counter{ text-align:center; font-size:11px; color:var(--ms-dim); padding:4px 0 8px; }
.ms-odo{ display:inline-flex; gap:1px; margin:0 4px; vertical-align:middle; }
.ms-odo i{ font:400 16px/1 "VT323",monospace; font-style:normal; color:#7dff9a; background:#000; border:1px solid #333; padding:1px 3px; }

/* ---------- bookcase ---------- */
.nc-case{ padding:10px 10px 0; background:#120d22; border:1px solid #241b3e; box-shadow:inset 0 0 30px rgba(0,0,0,.7); }
.nc-shelf{ margin-bottom:12px; }
.nc-rowwrap{ position:relative; }
/* page arrows: old-web bevel buttons over the shelf ends, only rendered when there's more that way */
.nc-page{ position:absolute; top:50%; z-index:3; width:22px; height:44px; translate:0 -40%; display:grid; place-items:center; padding:0; cursor:pointer;
  background:linear-gradient(180deg,#5a48a8,#2c2066); border:1px solid; border-color:#a898e8 #160f38 #160f38 #a898e8; box-shadow:0 2px 8px rgba(0,0,0,.6); }
.nc-page:hover{ filter:brightness(1.25); } .nc-page:active{ border-color:#160f38 #a898e8 #a898e8 #160f38; }
.nc-page[hidden]{ display:none; }
.nc-page::after{ content:""; width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; }
.nc-page-prev{ left:2px; } .nc-page-prev::after{ border-right:8px solid #fff; margin-right:2px; }
.nc-page-next{ right:2px; } .nc-page-next::after{ border-left:8px solid #fff; margin-left:2px; }
.nc-row{ display:flex; align-items:flex-end; gap:2px; padding:16px 6px 0; min-height:60px; overflow-x:auto; overflow-y:hidden; background:linear-gradient(180deg,#07050f,#150f28); box-shadow:inset 0 12px 16px rgba(0,0,0,.6); scrollbar-width:none; }
.nc-row::-webkit-scrollbar{ display:none; }   /* the arrows replace the scrollbar; touch/trackpad still scroll */
.nc-ledge{ display:flex; align-items:center; height:18px; background:linear-gradient(180deg,#3a2c5a,#211836); border-top:1px solid #4a3a70; box-shadow:0 4px 8px rgba(0,0,0,.6); padding-left:10px; }
.nc-plaque{ font:bold 9.5px/1 Verdana, sans-serif; letter-spacing:.16em; text-transform:uppercase; color:#2a1d0a; background:linear-gradient(180deg,#d8b46a,#a8823c); padding:2px 7px; }
.sp{ flex:0 0 auto; position:relative; display:flex; align-items:center; justify-content:center; cursor:pointer; outline:none; transition:transform .15s, filter .15s; }
.sp:hover, .sp:focus-visible, .sp.on{ transform:translateY(-10px); filter:brightness(1.3); }
/* config img: the image IS the spine; the drawn spine is skipped */
.sp.img{ background:var(--img) center/cover no-repeat !important; box-shadow:none !important; padding:0; }
.sp.img .t, .sp.img .call, .sp.img::after{ display:none; }
a.sp{ text-decoration:none !important; }
a.sp::before{ content:""; position:absolute; top:3px; right:3px; width:4px; height:4px; border-radius:50%; background:var(--nc-teal); box-shadow:0 0 5px var(--nc-teal); z-index:1; }   /* goes somewhere */
.sp .t{ writing-mode:vertical-rl; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-transform:uppercase; }
.sp.book{ width:var(--w,30px); height:var(--h,160px); background:linear-gradient(90deg, rgba(0,0,0,.3), transparent 25%, transparent 75%, rgba(0,0,0,.35)), var(--c,#3a2a5a);
  color:#f0dfb0; box-shadow:inset 0 9px 0 -6px #f0dfb0aa, inset 0 -38px 0 -35px #f0dfb0aa; align-items:flex-start; padding-top:12px; }
.sp.book .t{ font:600 10px/1 var(--disp); letter-spacing:.08em; max-height:calc(100% - 58px); }
.sp.book .call{ position:absolute; left:2px; right:2px; bottom:6px; display:grid; background:#f4f1e6; color:#222; font:600 6.5px/1.2 var(--mono); text-align:center; padding:2px 0; border-radius:1px; letter-spacing:-.04em; }
.sp.movie{ width:32px; height:178px; background:var(--c,#222); color:var(--fg,#fff); border-radius:2px; box-shadow:inset 0 12px 0 #0c0c0c, inset 0 -12px 0 #0c0c0c, inset 2px 0 0 rgba(255,255,255,.12), inset -2px 0 0 rgba(0,0,0,.4); }
.sp.movie .t{ font:700 14px/1 var(--disp); letter-spacing:.04em; max-height:76%; }
.sp.movie::after{ content:"VHS"; position:absolute; bottom:1px; left:0; right:0; text-align:center; font:700 7px/10px var(--disp); color:#bbb; letter-spacing:.06em; }
.sp.show{ width:24px; height:150px; background:linear-gradient(90deg, rgba(255,255,255,.18), transparent 18%, transparent 80%, rgba(0,0,0,.35)), var(--c,#222); color:var(--fg,#fff); border-radius:1px; }
.sp.show .t{ font:700 11px/1 var(--disp); letter-spacing:.05em; max-height:84%; }
.sp.cart{ width:24px; height:112px; background:#5d5a74; color:#fff; box-shadow:inset 0 8px 0 #77738f, inset 2px 0 0 #7a7694; }
.sp.cart .t{ background:var(--c,#b8322f); padding:4px 1px; font:400 14px/1 "VT323",monospace; letter-spacing:.06em; max-height:66%; }
/* secret link: no dot */
a.sp.secret::before{ display:none; }
/* the gold cart: polished cartridge with a light sweep across it */
.sp.cart.gold{ background:linear-gradient(90deg,#8a6410,#ffd86a 35%,#fff2b8 50%,#e8b030 70%,#8a6410); box-shadow:inset 0 8px 0 #c89a2a, 0 0 10px rgba(255,210,90,.55); overflow:hidden; }
.sp.cart.gold .t{ background:#5a3c08; color:#ffe9a0; text-shadow:0 0 4px rgba(255,220,120,.8); }
.sp.cart.gold::after{ content:""; position:absolute; top:-20%; bottom:-20%; width:10px; left:-14px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent); transform:skewX(-12deg); animation:nc-shine 2.6s ease-in-out infinite; }
@keyframes nc-shine{ 0%,55%{ left:-14px; } 85%,100%{ left:30px; } }
@media (prefers-reduced-motion:reduce){ .sp.cart.gold::after{ animation:none; display:none; } }
/* the hover readout sticks just under the fixed chrome while you scroll through the shelf, so it's on screen
   whenever a spine is (the case is taller than the space under the chrome). it can't leave the shelf box. */
.nc-note{ position:sticky; top:calc(var(--nav-h,56px) + var(--stereo-h,0px) + var(--band-h,100px)); z-index:4;
  background:rgba(10,8,26,.96); box-shadow:0 6px 10px -4px rgba(0,0,0,.7); padding:4px 0 2px; }
body.band-collapsed .nc-note{ top:calc(var(--nav-h,56px) + var(--stereo-h,0px) + var(--band-bar-h,36px)); }
.nc-note{ margin:0 0 8px; font:400 20px/1.2 "VT323",monospace; letter-spacing:.06em; text-transform:uppercase; color:var(--ms-orange); text-shadow:0 0 8px rgba(255,170,80,.5);
  height:calc(2.4em + 6px); overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }   /* fixed 2 lines: the shelf below never shifts mid-hover */

@media (max-width:860px){
  .ms{ grid-template-columns:1fr; }
  .ms-top8{ grid-template-columns:repeat(4,1fr); } .ms-friend .av{ width:64px; height:64px; font-size:26px; }
}
@media (max-width:420px){ .ms-idrow{ grid-template-columns:130px 1fr; } .ms-piccv{ width:130px; height:auto; } .ms-top8{ grid-template-columns:repeat(2,1fr); } }
@media (prefers-reduced-motion:reduce){ .nc-sign .nc-dead{ animation:none; } }
