/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #120c24;
  --panel: #1b1530;
  --panel-2: #261d45;
  --line: #3a2d66;
  --ink: #f7f2ff;
  --dim: #b9aee0;
  --yellow: #ffd23f;
  --pink: #ff6fb5;
  --cyan: #7fe3ea;
  --green: #7bcb4e;
  --red: #e8453c;
  --accent: var(--yellow);
  --px: 'Press Start 2P', ui-monospace, 'Courier New', monospace;
  --body: 'VT323', ui-monospace, 'Courier New', monospace;
  --sprite: 4;            /* css px per sprite pixel on the map */
  --hud-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 22px; line-height: 1.25;
  -webkit-font-smoothing: none; text-rendering: optimizeSpeed;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--px); font-size: 9px; padding: 3px 5px; margin: 0 2px;
  background: var(--panel-2); border: 2px solid #000; box-shadow: inset 0 -2px 0 rgba(255,255,255,.18);
}
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--yellow); color: #000; padding: 10px 14px; font-family: var(--px); font-size: 11px; }
.skip:focus { top: 8px; }

/* ------------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font-family: var(--px); font-size: 11px; line-height: 1.3; letter-spacing: 0;
  padding: 13px 16px; border: 0; background: var(--btn, var(--yellow)); color: #1b1530;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.28), inset 4px 4px 0 rgba(255,255,255,.4), 0 0 0 4px #000;
  margin: 4px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn.alt { --btn: var(--cyan); }
.btn.pink { --btn: var(--pink); }
.btn.ghost { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 4px #000; }

/* ----------------------------------------------------------------------- HUD */
.hud {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 6px 14px; min-height: var(--hud-h);
  background: linear-gradient(#2a2050, #1b1530);
  border-bottom: 4px solid #000; box-shadow: 0 4px 0 rgba(255,255,255,.07) inset;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-icon canvas { width: 40px; height: 40px; }
.brand h1 { margin: 0; font-family: var(--px); font-size: 14px; letter-spacing: 1px; }
.brand p { margin: 4px 0 0; color: var(--dim); font-size: 20px; }
.travel { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--panel-2); border: 0; padding: 6px 10px 6px 6px;
  font-family: var(--px); font-size: 9px; color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000;
  margin: 3px;
}
.chip canvas { width: 24px; height: 24px; }
.chip:hover, .chip.here { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px #000; background: #2f2557; }
/* wide screens: icon-only chips, the current one shows its name */
.chip { padding: 6px; }
.chip span { display: none; }
.chip.here { padding: 6px 10px 6px 6px; }
.chip.here span { display: inline; }
.tools { display: flex; align-items: center; gap: 10px; }
.progress { font-family: var(--px); font-size: 10px; display: flex; gap: 4px; align-items: center; margin-right: 6px; }
.progress i { width: 12px; height: 12px; background: #000; display: block; box-shadow: inset 0 0 0 2px var(--line); }
.progress i.on { background: var(--yellow); box-shadow: inset 0 0 0 2px #ffefa0, inset -2px -2px 0 rgba(0,0,0,.25); }
.tool {
  cursor: pointer; font-family: var(--px); font-size: 9px; padding: 9px 10px; background: var(--panel-2); border: 0;
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000; margin: 3px;
}
.tool[aria-pressed="true"] { background: var(--yellow); color: #1b1530; }

/* ----------------------------------------------------------------------- map */
.world { background: #1f5fbf; }
.map {
  position: relative; width: 100%; overflow: hidden; background: #1f5fbf;
  height: max(540px, calc(100svh - var(--hud-h)));
  touch-action: pan-y;
}
.map.tall { height: clamp(900px, 235vw, 1400px); }
.terrain, .fx { position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }
.fx { pointer-events: none; }
html[data-time="night"] .terrain { filter: brightness(.5) saturate(1.2) hue-rotate(-12deg) contrast(1.05); }
html[data-time="night"] .map { background: #0c2a58; }
html[data-time="night"] .clouds { opacity: .25; }
.scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.07) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
.clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .85; }
.cloud {
  position: absolute; left: 0; will-change: transform;
  animation: drift var(--dur, 120s) linear infinite; animation-delay: var(--delay, 0s);
}
.cloud canvas { width: calc(var(--w, 14) * 5px); height: auto; filter: drop-shadow(0 16px 0 rgba(0,0,0,.14)); }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(120vw); } }

.map-hint {
  position: absolute; left: 12px; bottom: 10px;
  margin: 0; padding: 7px 12px; background: rgba(18,12,36,.82); border: 3px solid #000;
  font-size: 19px; color: var(--dim); white-space: nowrap; pointer-events: none;
}
.map.tall .map-hint { display: none; }

/* map nodes */
.node {
  position: absolute; transform: translate(-50%, -50%); z-index: 5;
  background: none; border: 0; padding: 6px 8px; cursor: pointer; text-align: center;
  --accent: var(--yellow);
}
.node-art { position: relative; display: block; width: calc(16px * var(--sprite)); height: calc(16px * var(--sprite)); margin: 0 auto; transition: transform .12s steps(3); }
.node-art::before {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -4px; height: 12px;
  background: rgba(10,6,24,.35); border-radius: 50%; z-index: -1;
}
.node-art canvas { width: 100%; height: 100%; }
.node:hover .node-art, .node:focus-visible .node-art, .node.here .node-art { transform: translateY(-4px) scale(1.06); }
.node:focus-visible { outline: none; }
.node:focus-visible .node-label { outline: 4px solid var(--yellow); outline-offset: 2px; }
.node-label {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: -2px;
  background: rgba(18,12,36,.9); border: 3px solid #000; padding: 7px 9px 6px; white-space: nowrap;
  font-family: var(--px); font-size: 10px; color: #fff; box-shadow: inset 0 0 0 2px var(--accent);
  line-height: 1.2;
}
.node-label i { display: block; margin-top: 4px; font: normal 19px/1 var(--body); color: var(--dim); }
.node:hover .node-label, .node.here .node-label { background: #000; }
.node-marker { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 27px; height: 18px; pointer-events: none; }
.node-marker canvas { width: 100%; height: 100%; }
.node-marker .arrow { animation: bob .9s steps(2) infinite; }
.node-marker .star { display: none; }
.node.visited .node-marker .arrow { display: none; }
.node.visited .node-marker .star { display: block; width: 27px; height: 24px; margin-top: -4px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.hero {
  position: absolute; left: 0; top: 0; z-index: 8; width: 48px; height: 48px; pointer-events: none; will-change: transform;
}
.hero::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 8px; background: rgba(10,6,24,.4); border-radius: 50%; }
.hero-flip { display: block; width: 48px; height: 48px; }
.hero-flip canvas { width: 48px; height: 48px; }
.hero.face-left .hero-flip { transform: scaleX(-1); }
.hero.idle .hero-flip { animation: idle 1s steps(2) infinite; }
@keyframes idle { 50% { transform: translateY(-3px); } }
.hero.face-left.idle .hero-flip { animation-name: idle-l; }
@keyframes idle-l { 0%,100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-3px); } }

/* ------------------------------------------------------------- title screen */
.title {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    radial-gradient(circle at 50% 120%, #5b3fb0 0, transparent 55%),
    radial-gradient(#fff 1px, transparent 1.5px) 0 0 / 90px 90px,
    radial-gradient(#b9aee0 1px, transparent 1.5px) 40px 30px / 140px 140px,
    #120c24;
  animation: stars 90s linear infinite;
  transition: opacity .35s, visibility .35s;
}
.title.gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes stars { to { background-position: 0 0, 0 90px, 40px 170px, 0 0; } }
.t-kicker { font-family: var(--px); font-size: 10px; color: var(--cyan); margin: 0 0 22px; letter-spacing: 2px; }
.t-logo {
  font-family: var(--px); font-size: clamp(30px, 8vw, 76px); line-height: 1.15; margin: 0; color: var(--yellow);
  text-shadow: 4px 4px 0 #e8453c, 8px 8px 0 #000;
}
.t-sub { font-family: var(--px); font-size: clamp(9px, 1.6vw, 13px); margin: 26px 0 0; color: var(--ink); }
.t-sprites { display: flex; gap: 18px; justify-content: center; margin: 34px 0 30px; flex-wrap: wrap; }
.t-sprites canvas { width: 64px; height: 64px; animation: hop 1.2s steps(2) infinite; }
.t-sprites canvas:nth-child(2n) { animation-delay: .3s; }
.t-sprites canvas:nth-child(3n) { animation-delay: .6s; }
@keyframes hop { 50% { transform: translateY(-8px); } }
.t-start {
  cursor: pointer; border: 0; background: var(--yellow); color: #1b1530; font-family: var(--px); font-size: 16px; padding: 18px 26px;
  box-shadow: inset -5px -5px 0 rgba(0,0,0,.28), inset 5px 5px 0 rgba(255,255,255,.4), 0 0 0 5px #000;
  animation: blink 1.1s steps(2) infinite;
}
.t-start:hover { animation: none; background: #fff; }
@keyframes blink { 50% { background: #ffe58a; } }
.t-hint { margin: 22px 0 0; color: var(--dim); }

/* ----------------------------------------------------------------- panels */
.panel {
  --accent: var(--yellow);
  width: min(1000px, 94vw); max-width: none; max-height: 90dvh; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible;
  margin: auto;
}
.panel::backdrop, .lightbox::backdrop { background: rgba(8,5,20,.78); }
.panel[open] { animation: pop .18s steps(4); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.frame {
  display: flex; flex-direction: column; max-height: 90dvh; background: var(--panel);
  border: 4px solid #000; box-shadow: inset 0 0 0 4px var(--accent), 0 10px 0 rgba(0,0,0,.4);
}
.panel-head {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px 14px; margin: 4px 4px 0;
  border-bottom: 4px solid #000; background: linear-gradient(color-mix(in srgb, var(--accent) 32%, var(--panel)), var(--panel));
}
.panel-badge canvas { width: 64px; height: 64px; }
.panel-titles { margin-right: auto; min-width: 0; }
.kicker { margin: 0 0 8px; font-family: var(--px); font-size: 9px; color: var(--accent); letter-spacing: 1px; }
.panel-titles h2 { margin: 0; font-family: var(--px); font-size: clamp(15px, 2.6vw, 24px); line-height: 1.25; }
.close {
  cursor: pointer; border: 0; background: var(--red); color: #fff; font-family: var(--px); font-size: 11px; padding: 10px 12px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.3), inset 3px 3px 0 rgba(255,255,255,.3), 0 0 0 3px #000;
  display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.close span { font-size: 8px; }
.panel-body { overflow: auto; padding: 22px 24px 28px; margin: 0 4px 4px; scrollbar-color: var(--accent) var(--panel-2); }
.panel-body > :first-child { margin-top: 0; }
.lead { font-size: 26px; margin: 0 0 14px; color: #fff; }
.panel-body p { margin: 0 0 14px; }
.sub { font-family: var(--px); font-size: 11px; margin: 28px 0 14px; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; margin: 12px -4px 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 4px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; text-align: left; cursor: pointer;
  background: var(--panel-2); color: var(--ink); text-decoration: none; border: 0;
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000;
}
.card:hover, .card:focus-visible { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px #000, 5px 5px 0 3px #000; }
.card h3 { margin: 4px 0 0; font-family: var(--px); font-size: 11px; line-height: 1.4; }
.card .meta { color: var(--dim); margin: 0; }
.card .blurb { margin: 2px 0 0; font-size: 21px; }
.card .cta { margin-top: auto; padding-top: 10px; font-family: var(--px); font-size: 8px; color: var(--accent); }
.icon-tile {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; line-height: 1;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 0 0 3px #000;
}
.icon-tile.kana { font-family: sans-serif; font-weight: 700; }
.badge {
  position: absolute; top: 10px; right: 10px; z-index: 3; font-family: var(--px); font-size: 7px; padding: 5px 6px;
  background: var(--green); color: #102000; box-shadow: 0 0 0 2px #000;
}
.badge.dl { background: var(--yellow); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 26px; }
.portrait { margin: 0; border: 4px solid #000; box-shadow: 0 0 0 4px var(--accent); align-self: start; background: var(--panel-2); }
.portrait img { width: 100%; height: auto; }
.inv { display: grid; gap: 14px; }
.inv h3 { margin: 0 0 8px; font-family: var(--px); font-size: 9px; color: var(--dim); }
.items { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.items li { background: var(--panel-2); padding: 3px 10px 4px; box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px #000; }

/* steam */
.boss { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 26px; align-items: start; }
.boss .lead { margin-top: 0; }
.steam-hero img { width: 100%; height: auto; }
.steam-hero { position: relative; margin: 4px 4px 18px 4px; border: 4px solid #000; box-shadow: 0 0 0 4px var(--accent); background: #2a1f1f; min-height: 120px; }
.steam-hero .ribbon {
  position: absolute; left: 0; bottom: 14px; background: var(--red); color: #fff; font-family: var(--px); font-size: 10px; padding: 9px 12px;
  box-shadow: 0 0 0 3px #000;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 4px; }
.stat { background: var(--panel-2); padding: 12px 8px; text-align: center; box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000; }
.stat b { display: block; font-family: var(--px); font-size: 20px; color: var(--yellow); margin-bottom: 8px; }
.stat span { font-family: var(--px); font-size: 8px; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-family: var(--px); font-size: 8px; padding: 7px 8px; background: #000; color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }

/* fonts: big specimens you can click to zoom */
.grid.fonts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 20px; }
.font-card { padding: 14px 14px 16px; }
.specimen {
  position: relative; display: block; width: 100%; padding: 0; margin: 0 0 6px; cursor: zoom-in;
  background: #0b0818; border: 3px solid #000; box-shadow: 0 0 0 2px var(--line);
}
.specimen img { width: 100%; height: auto; min-height: 140px; }
.specimen:hover, .specimen:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.zoom-tag {
  position: absolute; right: 8px; bottom: 8px; padding: 7px 9px; background: var(--yellow); color: #1b1530;
  font-family: var(--px); font-size: 8px; box-shadow: 0 0 0 3px #000;
}
.specimen:hover .zoom-tag { background: #fff; }

/* games: filters + featured card */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter {
  cursor: pointer; border: 0; padding: 10px 12px; background: var(--panel-2); color: var(--ink); font-family: var(--px); font-size: 9px;
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000; margin: 3px;
}
.filter b { color: var(--accent); margin-left: 4px; }
.filter[aria-pressed="true"] { background: var(--accent); color: #1b1530; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 0 0 3px #000; }
.filter[aria-pressed="true"] b { color: #1b1530; }
.card[hidden] { display: none; }
.card.feature { grid-column: 1 / -1; flex-direction: row; gap: 18px; align-items: stretch; cursor: default; padding: 14px; --accent: var(--red); }
.card.feature:hover { transform: none; box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000; }
.feature-shot {
  position: relative; flex: 0 0 min(340px, 42%); align-self: flex-start; padding: 0; border: 3px solid #000; background: #0b0818;
  box-shadow: 0 0 0 2px var(--red); cursor: zoom-in;
}
.feature-shot { aspect-ratio: 460 / 215; }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; }
.card.feature .feature-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding-right: 70px; }
.badge.steam { background: var(--red); color: #fff; }
.icon-tile.init { font-family: var(--px); font-size: 16px; }

/* app / game cards: screenshots on top, icon + name below */
.card.item { cursor: default; gap: 10px; }
.card.item:hover { transform: none; box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000; }
.shots {
  position: relative; display: flex; gap: 2px; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  background: #0b0818; border: 3px solid #000; box-shadow: 0 0 0 2px var(--line); cursor: zoom-in;
}
.shots img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; object-position: top center; }
.shots:hover, .shots:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.shots:hover .zoom-tag, .feature-shot:hover .zoom-tag, .shot-thumb:hover .zoom-tag { background: #fff; }
.item-head { display: flex; align-items: center; gap: 12px; }
.item-head h3 { margin: 0; }
.item-head .icon-tile { flex: none; width: 48px; height: 48px; font-size: 26px; }
.item-head .icon-tile.init { font-size: 13px; }
.icon-tile.img { background: #0b0818; overflow: hidden; }
.icon-tile.img img { width: 100%; height: 100%; object-fit: cover; }
.card.item .cta, .card .cta {
  align-self: flex-start; margin-top: auto; padding: 9px 10px; font-family: var(--px); font-size: 8px; text-decoration: none;
  color: #1b1530; background: var(--accent); box-shadow: 0 0 0 3px #000;
}
.card.item .cta:hover { background: #fff; }
.hint { color: var(--dim); margin: -6px 0 14px; }

/* Steam screenshot wall */
.thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 4px; }
.shot-thumb { padding: 0; border: 0; background: #0b0818; cursor: zoom-in; box-shadow: 0 0 0 3px #000; }
.shot-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-thumb:hover, .shot-thumb:focus-visible { box-shadow: 0 0 0 3px #000, 0 0 0 7px var(--red); }

/* photography */
.albums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: 4px; }
.album { padding: 0; overflow: hidden; }
.album .cover { aspect-ratio: 4 / 3; background: var(--panel-2) center / cover no-repeat; border-bottom: 3px solid #000; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album .info { padding: 12px 14px 14px; }
.back { margin-bottom: 14px; }
.gallery { columns: 3 190px; column-gap: 12px; padding: 4px; }
.shot {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--panel-2); cursor: zoom-in;
  break-inside: avoid; box-shadow: 0 0 0 3px #000;
}
.shot img { width: 100%; height: auto; min-height: 80px; }
.shot:hover, .shot:focus-visible { box-shadow: 0 0 0 3px #000, 0 0 0 7px var(--accent); }

/* photo viewer */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,5,20,.94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; justify-items: center; }
.lb-fig { margin: 0; text-align: center; min-width: 0; width: 100%; }
.lb-stage { display: flex; max-height: 82dvh; overflow: hidden; justify-content: center; cursor: zoom-in; }
.lb-stage img {
  flex: none; margin: auto; max-width: 100%; max-height: 82dvh; width: auto; height: auto;
  border: 4px solid #000; box-shadow: 0 0 0 4px #fff; background: #000;
}
.lightbox.zoomed .lb-stage { overflow: auto; cursor: grab; justify-content: flex-start; scrollbar-color: var(--yellow) var(--panel-2); }
.lightbox.zoomed .lb-stage:active { cursor: grabbing; }
.lightbox.zoomed .lb-stage img { max-width: none; max-height: none; }
.lightbox figcaption { margin-top: 18px; font-family: var(--px); font-size: 10px; color: var(--dim); }
.lb-zoom { position: absolute; top: 14px; left: 14px; width: auto; height: 48px; padding: 0 14px; font-size: 10px; white-space: nowrap; background: var(--yellow); color: #1b1530; }
.lb-zoom:hover { background: #fff; }
.lb-btn {
  cursor: pointer; border: 0; width: 48px; height: 48px; font-family: var(--px); font-size: 16px; background: var(--panel-2); color: #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px #000;
}
.lb-btn:hover { background: var(--yellow); color: #000; }
.lb-close { position: absolute; top: 14px; right: 14px; background: var(--red); }

/* contact + misc */
.big-mail { font-size: 14px; padding: 18px 20px; max-width: 100%; overflow-wrap: anywhere; }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 400; transform: translate(-50%, 220%); transition: transform .25s steps(5), visibility .25s; visibility: hidden;
  background: var(--yellow); color: #1b1530; font-family: var(--px); font-size: 11px; padding: 14px 18px; max-width: 92vw; text-align: center;
  box-shadow: 0 0 0 4px #000; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 16px; background: #0c0818; border-top: 4px solid #000; color: var(--dim);
}
.nojs { padding: 30px; max-width: 680px; margin: 0 auto; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --hud-h: 112px; }
  .travel { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
  .chip { padding: 6px 10px 6px 6px; }
  .chip span { display: inline; }
}
@media (max-width: 760px) {
  :root { --sprite: 3.4; --hud-h: 0px; }
  body { font-size: 21px; }
  .hud { position: static; gap: 10px; padding: 10px 12px; }
  .travel { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 8px; scrollbar-width: thin; }
  .tools { margin-left: auto; }
  .tool { font-size: 8px; padding: 8px; }
  .node-label { font-size: 9px; padding: 6px 7px 5px; }
  .node-label i { font-size: 18px; }
  .panel { width: 100%; max-width: none; max-height: 94dvh; margin: auto 0 0; }
  .frame { max-height: 94dvh; }
  .panel-head { padding: 14px 12px 10px; gap: 10px; }
  .panel-badge canvas { width: 44px; height: 44px; }
  .panel-body { padding: 16px 14px 24px; }
  .close span { display: none; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .boss { grid-template-columns: 1fr; gap: 6px; }
  .grid, .albums { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-stage, .lb-stage img { max-height: 74dvh; }
  .card.feature { flex-direction: column; }
  .feature-shot { flex: none; width: 100%; align-self: stretch; }
  .card.feature .feature-text { padding-right: 0; }
  .grid.fonts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .big-mail { font-size: 10px; padding: 14px 12px; }
  .grid, .albums { grid-template-columns: 1fr; }
  .brand p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cloud { display: none; }
}
