:root {
  --bg: #0a0912;
  --panel: rgba(17, 14, 30, 0.92);
  --panel-solid: #13101f;
  --line: #2e2a4a;
  --line2: #48416e;
  --ink: #eeeaff;
  --muted: #aaa4c7;
  --dim: #7a749d;
  --w: #ffcc33;
  --on-w: #120e1c;

  --f-pixel: 'Pixelify Sans', ui-monospace, monospace;
  --f-label: 'Silkscreen', ui-monospace, monospace;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --hud: 60px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 140px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hud) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }
::selection { background: var(--w); color: var(--on-w); }
:focus-visible { outline: 3px solid var(--w); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--w); color: var(--on-w); padding: 8px 12px; font-weight: 600; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}
#game { position: relative; z-index: 1; }
.wrap { width: min(1040px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Pixel frame ---------- */
.px {
  --bd: var(--line);
  background: var(--panel);
  box-shadow: 0 -4px 0 0 var(--bd), 0 4px 0 0 var(--bd), -4px 0 0 0 var(--bd), 4px 0 0 0 var(--bd);
  margin: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: 400 14px/1 var(--f-label); letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--on-w); background: var(--w);
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.28), inset 4px 4px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.12s steps(2);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--w); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(10, 9, 18, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.hud-row {
  height: var(--hud);
  display: flex; align-items: center; gap: 16px;
  padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-left));
}
@media (min-width: 760px) { .hud-row { padding-inline: 20px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--f-pixel); letter-spacing: 0.04em; white-space: nowrap; }
.brand-mark { width: 16px; height: 25px; image-rendering: pixelated; }
.depth {
  margin: 0; flex: 1; min-width: 0;
  font: 400 12px/1 var(--f-label); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.depth-arrow { color: var(--w); margin-right: 4px; transition: color 0.4s; }
.depth-sep { margin: 0 6px; color: var(--dim); }
#depth-name { color: var(--ink); }
.hud-nav { display: none; gap: 4px; }
.hud-nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); padding: 8px 10px; }
.hud-nav a:hover, .hud-nav a.is-active { color: var(--ink); }
.hud-nav a.is-active { box-shadow: inset 0 -2px 0 var(--w); }
.hud-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0; }
.menu-btn span { width: 20px; height: 3px; background: var(--ink); display: block; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mnav { display: grid; padding: 4px 12px 14px; border-top: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { padding: 13px 8px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border: 0; color: var(--w); }
.hud-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; }
.hud-bar { position: absolute; inset: 0 auto 0 0; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--w); transition: background-color 0.4s; }
.hud-miner { position: absolute; top: -12px; left: 0; width: 18px; height: 24px; image-rendering: pixelated; }

@media (max-width: 559px) {
  .depth-sep, #depth-name { display: none; }
  .brand span { display: none; }
}
@media (max-width: 759px) { .hide-sm { display: none; } }
@media (min-width: 1000px) {
  .hud-nav { display: flex; }
  .menu-btn, .mnav { display: none !important; }
  .hud-miner { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 760px) { .section { padding: 112px 0; } }
.sec-head { margin-bottom: 36px; max-width: 720px; }
.kicker { margin: 0 0 10px; font: 400 13px/1.2 var(--f-label); letter-spacing: 0.06em; color: var(--w); }
.sec-head h2 {
  margin: 0; font: 700 clamp(36px, 7vw, 60px)/1 var(--f-pixel); letter-spacing: 0.01em;
  text-shadow: 4px 4px 0 color-mix(in srgb, var(--w) 28%, transparent);
}
.sec-head .plain { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.boss-dot { color: var(--w); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hud) + 40px) 0 190px; }
.hero-inner { position: relative; }
.title {
  margin: 0; font: 700 clamp(64px, 15vw, 152px)/0.86 var(--f-pixel); letter-spacing: 0.01em; text-transform: uppercase;
  color: #fff3c4;
  text-shadow: 4px 4px 0 #b45f2a, 8px 8px 0 #4a2560;
}
.role { margin: 26px 0 0; font: 700 clamp(22px, 3.4vw, 32px)/1.15 var(--f-pixel); color: var(--w); }
.sub {
  margin: 14px 0 0; max-width: 600px; font-size: 18px; color: #f3f0ff;
  text-shadow: 0 0 3px #05040f, 0 0 8px #05040f, 0 0 16px #05040f, 0 0 24px #05040f;
}

.menu { margin-top: 34px; display: grid; gap: 4px; max-width: 460px; }
.menu-item {
  position: relative; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px 10px 36px; min-height: 48px; text-decoration: none;
  background: rgba(10, 9, 18, 0.55);
}
.menu-item::before {
  /* Pixel-art cursor: a 4×7 stepped triangle used as a mask, so it takes the accent colour. */
  content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 14px; margin-top: -7px;
  background: var(--w); opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.menu-item:hover::before, .menu-item:focus-visible::before { opacity: 1; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 204, 51, 0.12); outline: none; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--w); }
.mi-label { font: 700 22px/1.2 var(--f-pixel); text-transform: uppercase; letter-spacing: 0.03em; }
.mi-plain { font-size: 14px; color: var(--muted); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); margin: 0;
  font: 400 12px/1 var(--f-label); color: var(--muted); letter-spacing: 0.08em; white-space: nowrap;
}
.scroll-hint span { display: inline-block; color: var(--w); animation: bob 1.2s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (max-width: 759px) {
  .hero { padding-bottom: 150px; }
  .scroll-hint { bottom: 92px; }
}
@media (max-height: 760px) and (min-width: 760px) { .scroll-hint { display: none; } }

/* ---------- Highlights ---------- */
.highlights { padding: 40px 0 0; }
.unlocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .unlocks { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .unlocks { grid-template-columns: repeat(4, 1fr); } }
.unlock {
  --bd: color-mix(in srgb, var(--w) 45%, var(--line)); padding: 18px 20px;
  /* Content stays pinned to the top, so equal-height cards line up row for row. */
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 4px 14px; align-items: start;
}
.unlock svg { grid-row: span 2; width: 32px; height: 32px; margin-top: 2px; }
.unlock-tag { font: 400 11px/1.2 var(--f-label); color: var(--w); letter-spacing: 0.05em; }
.unlock-big { font: 600 30px/1 var(--f-mono); letter-spacing: -0.01em; }
.unlock p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Experience ---------- */
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.quest { padding: 22px 22px 18px; }
.quest.is-active { --bd: color-mix(in srgb, var(--w) 60%, var(--line)); }
.quest-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.quest h3 { margin: 0; font: 700 24px/1.2 var(--f-pixel); }
.quest h3 .at { color: var(--w); }
.quest-dates { font: 500 14px/1.4 var(--f-mono); color: var(--muted); }
.status { display: block; margin: 0 0 8px; font: 400 11px/1 var(--f-label); letter-spacing: 0.06em; color: var(--dim); }
.is-active .status { color: #8dff6e; }
.loot { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.loot li { position: relative; padding-left: 22px; color: #d6d1ec; }
.loot li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 6px; height: 6px; background: var(--w); }

/* ---------- Level select ---------- */
.level-select { padding-bottom: 0; }
.level-select + #worlds > .world:first-child { padding-top: 40px; }
.lvl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .lvl-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.lvl-tile {
  --bd: color-mix(in srgb, var(--w) 40%, var(--line));
  display: grid; gap: 4px; height: calc(100% - 8px); padding: 14px 14px 12px; text-decoration: none;
  transition: transform 0.12s steps(2), background-color 0.2s;
}
.lvl-tile:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--w) 12%, var(--panel-solid)); }
.lvl-n { font: 400 12px/1 var(--f-label); color: var(--w); letter-spacing: 0.05em; }
.lvl-name { font: 700 20px/1.1 var(--f-pixel); }
.lvl-plain { font-size: 13px; color: var(--muted); line-height: 1.35; }
.lvl-count { margin-top: 6px; font: 500 12px/1 var(--f-mono); color: var(--dim); }

/* ---------- Worlds ---------- */
.world { padding: 80px 0; }
@media (min-width: 760px) { .world { padding: 120px 0; } }
.world .sec-head h2 { font-size: clamp(34px, 6vw, 52px); }
.depth-tag { font: 500 13px/1 var(--f-mono); color: var(--dim); margin-left: 10px; }
.bosses { display: grid; gap: 36px; }
.boss {
  --bd: color-mix(in srgb, var(--w) 50%, var(--line));
  display: grid; overflow: hidden;
}
.boss-body { padding: 22px; display: grid; gap: 0 40px; }
@media (min-width: 860px) {
  .boss-body { padding: 28px 32px 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto auto 1fr; }
  .boss-body > :not(.loot) { grid-column: 1; }
  .boss-body > .loot { grid-column: 2; grid-row: 1 / span 5; margin-top: 4px; align-self: start; }
  .boss-body > .links { align-self: end; }
}
.boss-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font: 400 12px/1 var(--f-label); letter-spacing: 0.05em; }
.badge { background: var(--w); color: var(--on-w); padding: 4px 6px 3px; }
.lvl-id { color: var(--muted); }
.boss h3 { margin: 0; font: 700 clamp(28px, 4vw, 36px)/1.05 var(--f-pixel); }
.pitch { margin: 10px 0 0; font-size: 17px; color: #e2ddf7; }
.boss .loot { font-size: 15px; margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font: 500 12px/1 var(--f-mono); padding: 6px 8px; color: var(--muted); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line2); }
.links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 18px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; font: 400 13px/1 var(--f-label); color: var(--w); text-decoration: none; letter-spacing: 0.03em; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.shot { position: relative; margin: 0; aspect-ratio: 16 / 10; background: #07060c; overflow: hidden; border-bottom: 2px solid var(--bd); }
.shot:not(:has(img, video)) { aspect-ratio: 16 / 7; }
@media (min-width: 860px) { .shot:not(:has(img, video)) { aspect-ratio: 16 / 4.5; } }
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot-ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 4px),
    repeating-conic-gradient(color-mix(in srgb, var(--w) 14%, transparent) 0 25%, transparent 0 50%) 0 0 / 8px 8px,
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--w) 22%, #07060c), #07060c 70%);
}
.shot-ph b { font: 700 clamp(30px, 5vw, 44px)/1 var(--f-pixel); color: var(--w); text-shadow: 3px 3px 0 #000; }
.shot-ph span { font: 400 11px/1 var(--f-label); color: var(--muted); letter-spacing: 0.08em; }

.minis { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mini { padding: 18px 18px 6px; display: flex; flex-direction: column; height: calc(100% - 8px); }
.mini h3 { margin: 0; font: 700 22px/1.15 var(--f-pixel); }
.mini .lvl-id { font: 400 11px/1 var(--f-label); display: block; margin-bottom: 6px; }
.mini p { margin: 8px 0 0; font-size: 15px; color: #d6d1ec; }
.mini .tags { margin-top: 12px; }
.mini .links { padding-top: 8px; }

/* ---------- Profile ---------- */
.sheet { display: grid; gap: 28px; }
@media (min-width: 860px) { .sheet { grid-template-columns: 300px 1fr; align-items: start; } }
.card { padding: 22px; }
.avatar-card { text-align: center; }
.avatar { width: 108px; height: 171px; margin: 4px auto 14px; image-rendering: pixelated; }
.avatar-card h3 { margin: 0; font: 700 26px/1.1 var(--f-pixel); }
.stats { margin: 16px 0 0; display: grid; gap: 8px; text-align: left; }
.stats div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line2); font-size: 14px; }
.stats div:last-child { border: 0; }
.stats dt { font: 400 11px/1.8 var(--f-label); color: var(--w); letter-spacing: 0.05em; }
.stats dd { margin: 0; text-align: right; }
.sheet-main { display: grid; gap: 24px; }
.sheet-main > p { margin: 0; font-size: 18px; color: #e2ddf7; }
.slot-group h4 { margin: 0 0 10px; font: 400 13px/1.2 var(--f-label); letter-spacing: 0.05em; color: var(--w); }
.slot-group h4 span { color: var(--dim); }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slots li { padding: 8px 12px; font-size: 14px; background: var(--panel-solid); box-shadow: inset 0 0 0 2px var(--line2); }
.slots.primary li { font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--w) 60%, var(--line)); }
.two { display: grid; gap: 24px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.entries li { display: grid; gap: 2px; }
.entries b { font-weight: 600; }
.entries span { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 72px; }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 860px) {
  /* Both columns share the row height; the link buttons grow evenly to match the form. */
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .contact-grid .form { margin-block: 4px; grid-template-rows: auto auto 1fr auto; }
  .contact-grid .form label:has(textarea) { grid-template-rows: auto 1fr; }
  .contact-grid .form textarea { height: 100%; min-height: 120px; }
  .direct { grid-auto-rows: 1fr; padding-block: 0; }
  .direct li > a, .direct li > button { height: 100%; }
}
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.direct a, .direct button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 16px; text-decoration: none; text-align: left;
  font: inherit; color: inherit; background: var(--panel); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line2);
}
.direct a:hover, .direct button:hover { box-shadow: inset 0 0 0 2px var(--w); }
.direct small { display: block; font: 400 11px/1.4 var(--f-label); color: var(--w); letter-spacing: 0.05em; }
.direct .arrow { color: var(--muted); font-family: var(--f-mono); flex-shrink: 0; }
.direct .val { overflow-wrap: anywhere; }
.form { padding: 22px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font: 400 12px/1.2 var(--f-label); letter-spacing: 0.05em; color: var(--w); }
.form input, .form textarea {
  font: 400 16px/1.5 var(--f-body); color: var(--ink);
  background: #0b0915; border: 0; box-shadow: inset 0 0 0 2px var(--line2);
  padding: 12px 14px; border-radius: 0; resize: vertical; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--w); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.ok { color: #8dff6e; }
.form-status.err { color: #ff7a7a; }

.foot { padding: 28px 0 40px; font-size: 14px; color: var(--dim); position: relative; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 2px solid var(--line); padding-top: 22px; }
.foot p { margin: 0; }

/* ---------- Quick look ---------- */
body.is-quick #scene, body.is-quick #game, body.is-quick .depth, body.is-quick .hud-nav, body.is-quick .hud-progress { display: none !important; }
body.is-quick .hud-row { justify-content: space-between; }
.quick { position: relative; z-index: 1; width: min(880px, 100% - 32px); margin: 0 auto; padding: calc(var(--hud) + 36px) 0 64px; }
.quick h1 { margin: 0; font: 700 clamp(36px, 7vw, 52px)/1 var(--f-pixel); }
.q-role { margin: 8px 0 0; font-size: 19px; font-weight: 500; }
.q-meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--muted); }
.q-meta a { color: var(--ink); text-underline-offset: 3px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.q-summary { margin: 22px 0 0; font-size: 17px; color: #ddd8f2; }
.q-sec { margin-top: 44px; }
.q-sec > h2 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font: 400 14px/1.2 var(--f-label); letter-spacing: 0.06em; color: var(--w); }
.q-job { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-job:last-child { border: 0; }
.q-job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.q-job h3 { margin: 0; font-size: 17px; font-weight: 600; }
.q-job h3 span { color: var(--muted); font-weight: 400; }
.q-dates { font: 500 13px/1.6 var(--f-mono); color: var(--muted); }
.q-job ul { margin: 8px 0 0; padding-left: 20px; color: #d6d1ec; font-size: 15px; }
.q-job li + li { margin-top: 4px; }
.q-world { margin-top: 22px; }
.q-world h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--w); }
.q-world h3 span { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.q-proj { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.q-proj:last-child { border: 0; }
@media (min-width: 700px) { .q-proj { grid-template-columns: 190px 1fr auto; align-items: baseline; } }
.q-proj-name { font-weight: 600; }
.q-proj-name .b { color: var(--w); margin-left: 4px; font-size: 12px; }
.q-proj p { margin: 0; font-size: 15px; color: #d6d1ec; }
.q-proj p small { display: block; margin-top: 2px; font: 500 12px/1.5 var(--f-mono); color: var(--dim); }
.q-proj a { font-size: 14px; color: var(--w); white-space: nowrap; }
.q-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .q-grid { grid-template-columns: 1fr 1fr; } }
.q-grid h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.q-grid p, .q-grid ul { margin: 0; font-size: 15px; color: #d6d1ec; }
.q-grid ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.q-grid li span { color: var(--muted); }

.noscript { position: relative; z-index: 2; max-width: 600px; margin: 120px auto; padding: 0 16px; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  #scene, .hud, #game, .q-actions { display: none !important; }
  #quick { display: block !important; padding-top: 0; }
  body { background: #fff; color: #000; }
  .quick, .quick * { color: #000 !important; }
}

/* ---------- Combo keycaps (secret) ---------- */
.combo {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  display: flex; gap: 6px; pointer-events: none;
  opacity: 0; transition: opacity 0.35s steps(3);
}
.combo.show { opacity: 1; }
.cap {
  min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center;
  font: 400 13px/1 var(--f-label); color: var(--ink); background: var(--panel-solid);
  box-shadow: inset 0 0 0 2px var(--line2), 0 3px 0 #000;
}
.cap.new { color: var(--on-w); background: var(--w); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 3px 0 #000; animation: cap-pop 0.3s steps(4); }
.combo.done .cap { color: #120e1c; background: #ffd34d; animation: cap-pop 0.4s steps(4); }
@keyframes cap-pop {
  0% { transform: translateY(10px) scale(0.5); opacity: 0; }
  60% { transform: translateY(-5px) scale(1.15); opacity: 1; }
  100% { transform: none; }
}
