/* ============================================================
   TYPIST.OS — a hand-built pixel workstation
   night console + day zine · no frameworks
   ============================================================ */

@font-face {
  font-family: "Fusion Pixel";
  src: url("fonts/fusion-pixel-12px.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg:        #0b0a11;
  --bg-soft:   #100d18;
  --panel:     #16131f;
  --panel-2:   #1d1929;
  --ink:       #f2ead8;
  --ink-dim:   #bdb2c9;
  --muted:     #9388a4;
  --line:      #352d45;
  --line-2:    #5b4c72;
  --accent:    #ffb454;
  --accent-ink:#1a1104;
  --mint:      #7fe3c4;
  --rose:      #ff7d9c;
  --shadow:    #050409;
  --grid:      rgba(242, 234, 216, 0.032);
  --scan:      0.22;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg:        #efe4cc;
  --bg-soft:   #e9ddc2;
  --panel:     #fbf3df;
  --panel-2:   #f4e8cd;
  --ink:       #211a15;
  --ink-dim:   #4d4138;
  --muted:     #6d5f50;
  --line:      #cdbd9d;
  --line-2:    #9c896b;
  --accent:    #b03c1f;
  --accent-ink:#fff7e7;
  --mint:      #16795f;
  --rose:      #aa3054;
  --shadow:    #b9a685;
  --grid:      rgba(33, 26, 21, 0.045);
  --scan:      0.06;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fusion Pixel", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

html[data-theme="light"] body { text-rendering: optimizeLegibility; }

/* pixel grid + soft vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 25%, transparent 100%);
}

/* CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: var(--scan);
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0 1px,
    transparent 1px 4px
  );
}

main,
.footer,
.topbar { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.muted { color: var(--muted); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mint) 22%, transparent);
  animation: pulse 2.4s steps(1, end) infinite;
}

@keyframes pulse {
  0%, 70%, 100% { opacity: 1; }
  71%, 90% { opacity: 0.25; }
}

.caret {
  display: inline-block;
  width: 7px;
  height: 12px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  0%, 49%, 100% { opacity: 1; }
  50%, 99% { opacity: 0; }
}

/* ---------- pixel window chrome ---------- */

.window {
  position: relative;
  border: 2px solid var(--line-2);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--shadow);
}

.window::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 5;
  pointer-events: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 6px 6px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 5px 10px;
  border-bottom: 2px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
}

.win-icon {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--accent);
  box-shadow: inset -2px -2px 0 var(--accent-ink);
}

.win-dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.win-dots i {
  width: 7px;
  height: 7px;
  display: block;
  background: var(--line-2);
  border: 1px solid var(--line);
}
.win-dots i:nth-child(1) { background: var(--rose); }
.win-dots i:nth-child(2) { background: var(--accent); }
.win-dots i:nth-child(3) { background: var(--mint); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--accent); }

.brand-mark {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--shadow);
}

.brand-ver {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav a {
  padding: 5px 9px;
  border: 2px solid transparent;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--panel-2);
  border-color: var(--line-2);
}

.sys {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex: none;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  cursor: pointer;
}

.toggle:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.toggle-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.clock {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  min-width: 7.2em;
  text-align: right;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 2px solid var(--line-2);
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 90ms steps(2, end), box-shadow 90ms steps(2, end), border-color 90ms steps(2, end);
}

.btn:hover {
  border-color: var(--accent);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  border-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(44px, 6.5vw, 86px) clamp(36px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--shadow);
}

.eyebrow::after {
  content: "";
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.wordmark {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(60px, 10.8vw, 120px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--accent);
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.38em;
  height: 0.1em;
  margin-left: 0.06em;
  vertical-align: 0.06em;
  background: var(--accent);
  animation: blink 1.15s steps(1, end) infinite;
}

.lead {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.sub {
  max-width: 38ch;
  margin: 14px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li + li::before { content: "·"; color: var(--line-2); margin-right: 10px; }

.hero-win { align-self: center; }

.scene {
  position: relative;
  line-height: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: #0d0a14;
}

.scene svg { display: block; width: 100%; height: auto; }

.scene-tag {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 5px;
  background: rgba(11, 10, 17, 0.72);
  color: #bdb2c9;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  pointer-events: none;
}

.star { animation: twinkle 4.4s steps(1, end) infinite; }
.star.s1 { animation-delay: -0.6s; }
.star.s2 { animation-delay: -1.7s; }
.star.s3 { animation-delay: -2.9s; }
.star.s4 { animation-delay: -3.8s; }

@keyframes twinkle {
  0%, 44%, 56%, 100% { opacity: 1; }
  45%, 55% { opacity: 0.15; }
  78%, 88% { opacity: 0.35; }
}

.eye { animation: blink 5.6s steps(1, end) infinite; }

.crt-glow { animation: crt 6s steps(1, end) infinite; }
@keyframes crt {
  0%, 100% { opacity: 0.05; }
  42%, 48% { opacity: 0.09; }
  70%, 76% { opacity: 0.035; }
}

.cursor-px { animation: blink 1.3s steps(1, end) infinite; }

.lamp-glow { animation: lamp 7s steps(1, end) infinite; }
@keyframes lamp {
  0%, 100% { opacity: 0.07; }
  55%, 62% { opacity: 0.1; }
}

.steam rect { animation: steam 3.6s steps(1, end) infinite; }
.steam rect:last-child { animation-delay: -1.9s; }
@keyframes steam {
  0%, 30% { opacity: 0.05; }
  31%, 65% { opacity: 0.4; }
  66%, 100% { opacity: 0.15; }
}

/* ---------- terminal ---------- */

.term {
  padding: 12px 15px 11px;
  background: #0a0811;
  color: #d8d0c0;
  font-size: 12px;
  line-height: 1.8;
}

.term-out {
  max-height: 158px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4b3f62 #0a0811;
}

.term-out::-webkit-scrollbar { width: 6px; }
.term-out::-webkit-scrollbar-track { background: #0a0811; }
.term-out::-webkit-scrollbar-thumb { background: #4b3f62; }

.line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.line.dim { color: #9d92b0; }
.line.ok { color: #7fe3c4; }
.line.err { color: #ff7d9c; }
.line.warn { color: #ffb454; }
.line.user { color: #f2ead8; }

.boot-line { animation: wipe 360ms steps(18, end) both; }
.boot-line:nth-child(1) { animation-delay: 120ms; }
.boot-line:nth-child(2) { animation-delay: 360ms; }
.boot-line:nth-child(3) { animation-delay: 620ms; }
.boot-line:nth-child(4) { animation-delay: 860ms; }

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.term-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #322a44;
}

.term-form:focus-within {
  border-top-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.prompt {
  flex: none;
  color: var(--accent);
  font-size: 13px;
}

.term-form input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #f2ead8;
  font: inherit;
  font-size: 12.5px;
  caret-color: var(--accent);
  outline: none;
}

.term-form input::placeholder { color: #8d809f; }
.term-form input:focus-visible { outline: none; }

.term-tip {
  margin: 7px 0 0;
  color: #968aa9;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.term-tip b {
  color: var(--accent);
  font-weight: 400;
}

html:not(.js) .term-form,
html:not(.js) .term-tip { display: none; }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 2px solid var(--line);
  background: var(--panel);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 8px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 6px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(44px, 6vw, 76px); }

.win-body { padding: clamp(20px, 3.2vw, 34px); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker span { color: var(--accent); }

h2 {
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--ink);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.section-lead {
  max-width: 54ch;
  margin: 0 0 26px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.8;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: clamp(26px, 4.5vw, 60px);
  align-items: start;
}

.about-copy p {
  max-width: 60ch;
  margin: 0 0 16px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.9;
}

.about-copy p:last-child { margin-bottom: 0; }

.pull {
  max-width: none !important;
  margin-top: 24px !important;
  padding-left: 14px;
  border-left: 6px solid var(--accent);
  color: var(--ink) !important;
  font-size: 17px !important;
}

.spec {
  margin: 0;
  padding: 5px 14px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  font-size: 11px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.spec-row:last-child { border-bottom: 0; }

.spec dt {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.spec dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

/* works */

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work {
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 110ms steps(2, end), box-shadow 110ms steps(2, end), border-color 110ms steps(2, end);
}

.work:hover {
  transform: translate(-2px, -2px);
  border-color: var(--line-2);
  box-shadow: 6px 6px 0 var(--shadow);
}

.work-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status { color: var(--muted); }
.status.live { color: var(--mint); }

.work h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.work h3 span { color: var(--accent); }

.work p {
  flex: 1;
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 1px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.footer {
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 34px 40px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-brand .brand-mark { width: 8px; height: 8px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot-nav a {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.foot-nav a:hover { color: var(--accent); }

.foot-line {
  height: 2px;
  margin: 22px 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--accent); }

.beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.beian a {
  color: var(--muted);
  text-decoration: none;
}

.beian a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beian .mps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.beian .mps img {
  width: 14px;
  height: 14px;
  flex: none;
}


/* ---------- toast + cheat ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 950;
  max-width: calc(100% - 32px);
  padding: 9px 15px;
  border: 2px solid var(--accent);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--shadow);
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateX(-50%);
  animation: pop 160ms steps(3, end) both;
}

.toast[hidden] { display: none; }

@keyframes pop {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cheat {
  width: min(420px, calc(100vw - 36px));
  padding: 0;
  border: 2px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
}

.cheat::backdrop {
  background: rgba(5, 4, 9, 0.76);
  backdrop-filter: blur(2px);
}

.cheat-body {
  padding: 24px 22px 22px;
  text-align: center;
}

.cheat-code {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.cheat-big {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1.2;
  text-shadow: 3px 3px 0 var(--accent);
}

.cheat-body p {
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1.8;
}

.cheat-body form { margin-top: 18px; }

.confetti {
  position: fixed;
  inset: 0;
  z-index: 940;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms linear;
}

.confetti.on { opacity: 1; }

/* ---------- pixel cursors (fine pointers only) ---------- */

@media (pointer: fine) {
  body {
    cursor: url("cursor-arrow.svg") 2 2, auto;
  }

  a,
  button,
  .btn,
  .toggle,
  kbd {
    cursor: url("cursor-hand.svg") 6 1, pointer;
  }

  input,
  textarea {
    cursor: text;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-win { width: 100%; max-width: 680px; margin-inline: auto; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-side { max-width: 460px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 5px;
  }

  .brand { padding-block: 3px; }
  .brand-ver { display: none; }

  .sys { gap: 5px; }
  .clock { display: none; }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 2px;
    padding-block: 3px;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a {
    padding: 6px 9px;
    font-size: 10px;
  }

  .term-form input { font-size: 16px; }

  .hero { padding-top: 34px; }
  .wordmark { text-shadow: 4px 4px 0 var(--accent); }

  .window { box-shadow: 5px 5px 0 var(--shadow); }
  .win-body { padding: 18px 16px; }

  .works { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .toggle { padding: 4px 6px; font-size: 9px; letter-spacing: 0.04em; }
  .brand { font-size: 11.5px; }

  .wordmark { font-size: clamp(54px, 18vw, 84px); }
  .lead { margin-top: 20px; }
  .sub { font-size: 13px; }
  .hero-meta { gap: 7px 12px; }
  .hero-meta li + li::before { margin-right: 6px; }

  .term { font-size: 11.5px; }
  .term-tip { font-size: 8px; }

  .actions .btn { flex: 1 1 auto; padding-inline: 12px; }

  .foot-top { align-items: flex-start; flex-direction: column; }
  .foot-bottom { gap: 6px; }
  .beian { font-size: 10px; gap: 5px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track { animation: none; }
  .boot-line { animation: none; clip-path: none; }
}
