/* Prototype 04: Afterglow */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--font-ui); color: var(--text); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }

/* ---------- fixed 16:9 stage on the light field ---------- */
.viewport { position: fixed; inset: 0; overflow: hidden; background: #000; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  overflow: hidden; background: var(--void); font-variant-numeric: tabular-nums; user-select: none;
}
.light { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.stage.no-gl .light { display: none; }
.stage.no-gl { background: radial-gradient(ellipse 60% 60% at 70% 45%, rgb(var(--ember-rgb) / 0.14), transparent 60%), radial-gradient(ellipse 80% 80% at 60% 50%, var(--deep-2), var(--void) 70%); }
.screen { position: absolute; inset: 0; visibility: hidden; }
.screen.is-on { visibility: visible; }
.overlay { z-index: 5; }
/* pause pushes the inventory back: smaller, darker, out of focus */
.inventory { transform-origin: 60% 50%; transition: transform 460ms var(--ease-drawer), filter 460ms var(--ease-drawer); }
.stage.is-dimmed .inventory { transform: scale(0.965); filter: blur(10px) brightness(0.42) saturate(0.6); }

/* ---------- shared atoms ---------- */
.label { font-weight: 600; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.label em { margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.count { display: flex; flex-direction: column; gap: 4px; }
.count b { font-family: var(--font-mono); font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.count span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.count b.elite { color: var(--r-elite); }
.count b.classified { color: var(--r-classified); }

.mark { position: relative; display: block; width: 30px; height: 30px; }
.mark i { position: absolute; display: block; }
.mark i:first-child { left: 0; top: 0; width: 22px; height: 22px; border: 2px solid var(--ion); }
.mark i:last-child { right: 0; bottom: 0; width: 9px; height: 9px; background: var(--ember); }

/* text-only menu; one shared highlight glides behind the focused row */
.menu { position: relative; display: grid; gap: 6px; }
.glide { position: absolute; left: 0; top: 0; z-index: 0; height: 62px; border-radius: var(--r-sm); pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgb(var(--ion-rgb) / 0.24), rgb(var(--ion-rgb) / 0.05) 72%, transparent);
  box-shadow: inset 2px 0 0 var(--ion), 0 0 48px -12px var(--ion-40); transition: opacity 200ms var(--ease-out), background-color 200ms; }
.glide.is-locked { background: linear-gradient(90deg, rgb(255 255 255 / 0.08), transparent 72%); box-shadow: inset 2px 0 0 var(--muted); }
.item { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; width: 100%; height: 62px; padding: 0 22px; text-align: left; outline: none;
  opacity: 0.56; translate: 0 0; transition: opacity var(--dur-focus) var(--ease-out), translate 240ms var(--ease-out); }
.i-idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); transition: color var(--dur-focus) var(--ease-out); }
.i-label { font-weight: 500; font-size: 25px; letter-spacing: 0.16em; text-transform: uppercase; }
.i-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.item.is-focus { opacity: 1; translate: 10px 0; }
.item.is-focus .i-idx { color: var(--ion); }
.item.is-locked .i-label { color: var(--muted); }
.item.is-locked.is-focus .i-idx { color: var(--muted); }
.item:active { translate: 7px 0; }

/* the character showcase: rim light both sides, floor ring, reflection */
.showcase { position: absolute; }
.showcase .cas { position: absolute; left: 0; top: 0; filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.45)) drop-shadow(-8px 0 22px rgb(var(--ion-rgb) / 0.32)) drop-shadow(10px 0 26px rgb(var(--ember-rgb) / 0.2)); }
.showcase .refl { position: absolute; left: 0; transform: scaleY(-1); opacity: 0.2; filter: blur(2px);
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 26%); mask: linear-gradient(to top, #000 0%, transparent 26%); }
.showcase .ring { position: absolute; border-radius: 50%; background: radial-gradient(ellipse, rgb(var(--ion-rgb) / 0.32), rgb(var(--ion-rgb) / 0.06) 45%, transparent 68%); }
.showcase .ring::before { content: ""; position: absolute; inset: 22% 14%; border-radius: 50%; border: 1px solid rgb(var(--ion-rgb) / 0.45); box-shadow: 0 0 24px rgb(var(--ion-rgb) / 0.35); }
.showcase .ring::after { content: ""; position: absolute; inset: 36% 30%; border-radius: 50%; border: 1px solid rgb(var(--ember-rgb) / 0.4); }

/* ---------- TITLE ---------- */
.brand { position: absolute; left: 120px; top: 116px; }
.brand-word { margin-top: 22px; font-family: var(--font-display); font-weight: 400; font-size: 104px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--text); text-shadow: 0 0 42px rgb(var(--ion-rgb) / 0.28), 0 1px 0 rgb(255 255 255 / 0.4); }
.brand-sub { display: flex; align-items: center; gap: 18px; margin-top: 20px; font-family: var(--font-mono); font-weight: 500; font-size: 16px; letter-spacing: 0.62em; text-transform: uppercase; color: var(--ion); }
.brand-sub::before { content: ""; width: 56px; height: 1px; background: var(--ion); }
.t-menu { position: absolute; left: 124px; top: 470px; width: 540px; }
.t-show { left: 1170px; top: 168px; width: 405px; height: 729px; }
.t-show .cas, .t-show .refl { width: 405px; height: 729px; }
.t-show .refl { top: 729px; }
.t-show .ring { left: -120px; top: 668px; width: 645px; height: 120px; }
.t-data { position: absolute; left: 1650px; top: 300px; width: 200px; }
.t-data div { padding: 16px 0; border-top: 1px solid var(--line); }
.t-data div:last-child { border-bottom: 1px solid var(--line); }
.t-data dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.t-data dd { margin-top: 6px; font-family: var(--font-mono); font-weight: 500; font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.t-data dd.elite { color: var(--r-elite); }
.t-tag { position: absolute; right: 80px; top: 64px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.t-foot { position: absolute; left: 124px; bottom: 60px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.t-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.lb { position: absolute; left: 0; right: 0; z-index: 30; height: 130px; background: #000; pointer-events: none; visibility: hidden; }
.lb.top { top: 0; }
.lb.bot { bottom: 0; }

/* ---------- INVENTORY ---------- */
.i-head { position: absolute; left: 60px; right: 60px; top: 36px; height: 92px; }
.i-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.i-crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.i-crumb i { font-style: normal; margin: 0 8px; color: var(--ember); }
.i-title { margin-top: 12px; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.tabs { position: absolute; left: 50%; top: 30px; translate: -50% 0; display: flex; gap: 40px; }
.tab { position: relative; padding: 10px 0 14px; font-weight: 500; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); outline: none; transition: color var(--dur-focus) var(--ease-out); }
.tab.is-active, .tab:focus-visible { color: var(--text); }
.tab-line { position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; background: var(--ion); box-shadow: 0 0 12px var(--ion); transform-origin: left; pointer-events: none; }
.counters { position: absolute; right: 0; top: 4px; display: flex; gap: 46px; }

.callout { --b: var(--ember); position: absolute; left: 50%; top: 140px; z-index: 4; translate: -50% 0; display: flex; align-items: center; gap: 16px; padding: 11px 24px 11px 20px;
  background: var(--glass); border: 1px solid var(--line); border-left: 2px solid var(--b); border-radius: var(--r-sm); box-shadow: var(--edge-hi), var(--sh-1); white-space: nowrap; }
.callout-src { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; color: var(--b); }
.callout-msg { font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.callout.is-ok { --b: var(--ion); }
.callout.is-warn { --b: var(--r-elite); }

.zone-l { position: absolute; left: 40px; top: 190px; width: 760px; height: 860px; }
.i-show { left: 188px; top: 50px; width: 405px; height: 729px; }
.i-show .cas, .i-show .refl { width: 405px; height: 729px; }
.i-show .refl { top: 729px; }
.i-show .ring { left: -110px; top: 668px; width: 625px; height: 110px; }
.links { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.links .wire { fill: none; stroke: rgb(255 255 255 / 0.16); stroke-width: 1; transition: stroke 300ms var(--ease-out); }
.links .wire.on { stroke: rgb(var(--ion-rgb) / 0.55); }
.links .pulse { fill: none; stroke: var(--ion); stroke-width: 2; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px var(--ion)); }
.links .node { fill: var(--void); stroke: rgb(255 255 255 / 0.3); stroke-width: 1; }
.links .node.on { fill: var(--ion); stroke: var(--ion); }

.sock { position: absolute; z-index: 2; width: 104px; height: 104px; border-radius: var(--r-md); outline: none; background: var(--glass); border: 1px solid var(--line);
  box-shadow: var(--edge-hi), var(--sh-1); transition: border-color var(--dur-focus) var(--ease-out); }
.sock::after { content: ""; position: absolute; inset: -1px; border-radius: var(--r-md); border: 1px solid var(--rc, transparent); opacity: 0.75; pointer-events: none; }
.sock-art { position: absolute; inset: 7px; border-radius: var(--r-sm); overflow: hidden; }
.sock-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease-out); }
.sock .s-label { position: absolute; left: 50%; top: 114px; width: 180px; translate: -50% 0; text-align: center; pointer-events: none; }
.s-name { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sock.passive .s-meta { color: var(--ion); }
.sock.is-empty { border-style: dashed; border-color: var(--line-2); background: rgb(255 255 255 / 0.02); }
.sock.is-empty .sock-art { display: grid; place-items: center; }
.sock.is-empty .sock-art::before, .sock.is-empty .sock-art::after { content: ""; position: absolute; background: var(--muted); }
.sock.is-empty .sock-art::before { width: 18px; height: 1px; }
.sock.is-empty .sock-art::after { width: 1px; height: 18px; }
.sock.is-current .sock-art img, .sock:focus-visible .sock-art img { transform: scale(1.06); }
.sock.is-target { border-color: var(--ion); border-style: solid; }
.sock.is-target::before { content: ""; position: absolute; inset: -6px; border-radius: var(--r-lg); border: 1px solid var(--ion); animation: call 1.2s var(--ease-out) infinite; pointer-events: none; }
@keyframes call { from { opacity: 0.9; transform: scale(0.96); } to { opacity: 0; transform: scale(1.12); } }
.weapons { position: absolute; left: 20px; bottom: 26px; z-index: 2; display: flex; gap: 12px; }
.weapon { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px 0 10px; border-radius: var(--r-sm); outline: none; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--edge-hi); text-align: left; }
.weapon img { width: 36px; height: 36px; object-fit: contain; }
.weapon .w-empty { width: 30px; height: 30px; margin-left: 3px; border: 1px dashed var(--line-2); border-radius: var(--r-xs); }
.weapon em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.weapon span:last-child { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

.zone-c { position: absolute; left: 840px; top: 190px; width: 540px; height: 860px; }
.zc-head { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.seg { position: relative; display: flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); }
.seg-glide { position: absolute; left: 0; top: 3px; bottom: 3px; width: 10px; border-radius: 999px; background: var(--ion); box-shadow: 0 0 18px -4px var(--ion); pointer-events: none; }
.seg-btn { position: relative; z-index: 1; padding: 7px 16px; border-radius: 999px; font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); outline: none; transition: color var(--dur-focus) var(--ease-out); }
.seg-btn.is-active { color: var(--ink); }
.seg-btn:focus-visible:not(.is-active) { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(5, 96px); grid-auto-rows: 96px; gap: 12px; margin-top: 26px; }
.tile { position: relative; border-radius: var(--r-md); outline: none; overflow: hidden; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--edge-hi);
  transition: border-color var(--dur-focus) var(--ease-out); }
.tile img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: var(--r-sm); object-fit: cover; transition: transform 240ms var(--ease-out); }
.tile::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: var(--r-xs); background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.tile .cd { position: absolute; left: 9px; top: 9px; padding: 1px 5px; border-radius: var(--r-xs); background: rgb(0 0 0 / 0.62); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; pointer-events: none; }
.tile .new { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); pointer-events: none; }
.tile.is-current, .tile:focus-visible { border-color: var(--line-2); }
.tile.is-current img, .tile:focus-visible img { transform: scale(1.07); }
.tile.is-selected { border-color: var(--ion); }
.tile.is-selected::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(var(--ion-rgb) / 0.16); pointer-events: none; }
.tile.is-dragging { opacity: 0.35; }
.tile-empty { border-radius: var(--r-md); border: 1px dashed rgb(255 255 255 / 0.08); }
.grid.is-drop .tile-empty { border-color: var(--ion); background: var(--ion-20); }
.legend { display: flex; gap: 22px; margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); vertical-align: 1px; }

.linked { margin-top: 46px; }
.linked ul { margin-top: 14px; border-top: 1px solid var(--line); }
.linked li { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 14px; height: 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.linked .slot-dot { width: 8px; height: 8px; border-radius: var(--r-xs); border: 1px solid var(--muted); }
.linked .slot-dot.on { background: var(--rc); border-color: var(--rc); box-shadow: 0 0 8px var(--rc); }
.linked .ln-name { font-weight: 500; letter-spacing: 0.04em; }
.linked .ln-name.empty { color: var(--muted); }
.linked .ln-type, .linked .ln-cd { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.linked .ln-cd { min-width: 44px; text-align: right; color: var(--text); }
.detail { position: absolute; left: 1420px; top: 190px; width: 440px; height: 850px; overflow: hidden; border-radius: var(--r-lg); background: rgb(var(--deep-rgb) / 0.78); border: 1px solid var(--line);
  box-shadow: var(--edge-hi), var(--sh-2); }
.d-in { --rc: var(--muted); height: 100%; display: flex; flex-direction: column; }
.d-art { position: relative; height: 310px; flex: none; overflow: hidden; background: #000; }
.d-art img { width: 100%; height: 100%; object-fit: cover; }
.d-art.gear img { object-fit: contain; padding: 40px; }
.d-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(var(--deep-rgb) / 0.95)), linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent 60%); }
.d-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.d-rar { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rc); }
.d-rar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.d-name { margin-top: 12px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; text-transform: uppercase; }
.d-type { margin-top: 8px; font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-stat { padding: 16px 0 16px; }
.d-stat + .d-stat { padding-left: 18px; border-left: 1px solid var(--line); }
.d-stat b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.d-stat span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.d-desc { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--desc); text-wrap: pretty; }
.d-status { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.d-status.on { color: var(--ion); }
.d-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: var(--muted); }
.d-empty b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.d-empty span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.d-empty::before { content: ""; width: 72px; height: 72px; border-radius: 50%; border: 1px dashed var(--line-2); box-shadow: inset 0 0 30px var(--ion-20); }

/* the focus reticle: four corners, each springs to the focused tile on its own */
.reticle i { position: absolute; left: 0; top: 0; z-index: 6; width: 14px; height: 14px; pointer-events: none; opacity: 0; border-color: var(--ion); border-style: solid; border-width: 0;
  filter: drop-shadow(0 0 6px var(--ion)); transition: opacity 200ms var(--ease-out); }
.reticle i:nth-child(1) { border-top-width: 2px; border-left-width: 2px; }
.reticle i:nth-child(2) { border-top-width: 2px; border-right-width: 2px; }
.reticle i:nth-child(3) { border-bottom-width: 2px; border-left-width: 2px; }
.reticle i:nth-child(4) { border-bottom-width: 2px; border-right-width: 2px; }
.reticle.is-on i { opacity: 1; }

/* ---------- PAUSE ---------- */
.sidebar { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 640px; padding: 118px 90px 70px 100px;
  background: linear-gradient(90deg, rgb(var(--void-rgb) / 0.97), rgb(var(--deep-rgb) / 0.88)); border-right: 1px solid var(--line-2); box-shadow: var(--sh-side); }
.sb-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ember); }
.sb-title { margin-top: 16px; font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.sb-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.p-menu { margin-top: 56px; width: 450px; }
.sb-build { position: absolute; left: 100px; right: 90px; bottom: 70px; padding-top: 24px; border-top: 1px solid var(--line); }
.sb-tiles { display: grid; grid-template-columns: repeat(6, 62px); gap: 12px; margin-top: 16px; }
.sb-tile { position: relative; width: 62px; height: 62px; border-radius: var(--r-sm); overflow: hidden; background: var(--glass); border: 1px solid var(--line); }
.sb-tile img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: var(--r-xs); object-fit: cover; }
.sb-tile::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: var(--r-xs); background: var(--rc, transparent); }
.sb-tile.is-empty { border-style: dashed; border-color: var(--line-2); background: transparent; }
.sb-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.sb-counts .count b { font-size: 28px; }
.p-stage { position: absolute; left: 640px; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgb(var(--void-rgb) / 0.4), transparent 40%); }
.p-ghost { position: absolute; left: 40px; top: 360px; font-family: var(--font-display); font-weight: 400; font-size: 220px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.07); white-space: nowrap; }
.p-show { left: 520px; top: 190px; width: 313px; height: 710px; }
.p-show .cas, .p-show .refl { width: 313px; height: 710px; }
.p-show .refl { top: 710px; }
.p-show .ring { left: -150px; top: 650px; width: 613px; height: 110px; }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; top: 48px; z-index: 25; display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-radius: var(--r-sm); pointer-events: none;
  background: var(--glass-heavy); border: 1px solid var(--line); border-left: 2px solid var(--ember);
  opacity: 0; transform: translate(-50%, -10px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .callout-src { color: var(--ember); }
.toast-msg { font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- reviewer bar ---------- */
.devbar { position: fixed; left: 0; top: 50%; z-index: 100; display: flex; align-items: center; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.devbar-tab { writing-mode: vertical-rl; padding: 12px 6px; background: rgb(var(--deep-rgb) / 0.9); border: 1px solid var(--line); border-left: 0; color: var(--ion); }
.devbar-body { display: none; align-items: center; gap: 2px; padding: 4px; background: rgb(var(--deep-rgb) / 0.95); border: 1px solid var(--line); border-left: 0; }
.devbar:hover .devbar-tab, .devbar:focus-within .devbar-tab { display: none; }
.devbar:hover .devbar-body, .devbar:focus-within .devbar-body { display: flex; }
.devbar a, .devbar button { padding: 8px 10px; color: var(--muted); text-decoration: none; }
.devbar a:hover, .devbar button:hover, .devbar button.is-on { color: var(--ion); }
.devbar-name { padding: 8px 10px; color: var(--text); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.devbar-motion { color: var(--ember) !important; }
.devbar-themes { display: flex; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.devbar-themes button.is-on { color: var(--ion); }

/* ---------- reduced motion ---------- */
.reduce-motion .sock.is-target::before { animation: none; }
.reduce-motion .inventory { transition-duration: 1ms; }
.reduce-motion .item { transition-duration: 1ms; }
