/* therealjuan.com — hand-made, pixel by pixel. No framework. */

@font-face { font-family: "Jersey 10"; src: url("/fonts/jersey-10-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3ead7;
  --paper-2: #e9dec5;
  --card: #fffaf0;
  --ink: #1d1a2b;
  --ink-2: #4b4560;
  --ink-3: #6e6782;
  --line: #1d1a2b;
  --green: #2fa66f;
  --green-ink: #1c7a4f;
  --red: #e2483b;
  --blue: #3b5bdb;
  --yellow: #f7c948;
  --pink: #ff8fab;
  --water: #7fb7d6;
  --stone: #b9a98a;
  --grid: rgba(29, 26, 43, .06);
  --shadow: rgba(29, 26, 43, .9);
  --px: 4px;

  --f-display: "Jersey 10", "Silkscreen", ui-monospace, monospace;
  --f-label: "Silkscreen", ui-monospace, monospace;
  --f-body: "Pixelify Sans", ui-monospace, "Courier New", monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #15121f;
  --paper-2: #1e1a2c;
  --card: #221d33;
  --ink: #f3ead7;
  --ink-2: #cfc6b4;
  --ink-3: #a59d8d;
  --line: #f3ead7;
  --green: #3fd28c;
  --green-ink: #3fd28c;
  --red: #ff6a5c;
  --blue: #7d93ff;
  --yellow: #ffd866;
  --water: #2f5d7a;
  --stone: #8a7c63;
  --grid: rgba(243, 234, 215, .05);
  --shadow: rgba(0, 0, 0, .85);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15121f;
    --paper-2: #1e1a2c;
    --card: #221d33;
    --ink: #f3ead7;
    --ink-2: #cfc6b4;
    --ink-3: #a59d8d;
    --line: #f3ead7;
    --green: #3fd28c;
    --green-ink: #3fd28c;
    --red: #ff6a5c;
    --blue: #7d93ff;
    --yellow: #ffd866;
    --water: #2f5d7a;
    --stone: #8a7c63;
    --grid: rgba(243, 234, 215, .05);
    --shadow: rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--green-ink); }
::selection { background: var(--yellow); color: #1d1a2b; }

:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: #1d1a2b; padding: 8px 14px; font-family: var(--f-label);
}
.skip:focus { top: 12px; }

.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; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- pixel primitives ---------- */

/* Notched-corner pixel border, the classic 8-bit box. */
.px {
  position: relative;
  background: var(--card);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--line),
    0 var(--px) 0 0 var(--line),
    calc(var(--px) * -1) 0 0 0 var(--line),
    var(--px) 0 0 0 var(--line),
    calc(var(--px) * 2) calc(var(--px) * 3) 0 0 var(--shadow);
}

.label {
  font-family: var(--f-label);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn {
  --bg: var(--yellow);
  --fg: #1d1a2b;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label);
  font-size: .95rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line),
    inset -4px -4px 0 0 rgba(0, 0, 0, .18), inset 4px 4px 0 0 rgba(255, 255, 255, .35),
    6px 8px 0 0 var(--shadow);
  transition: transform .06s steps(1), box-shadow .06s steps(1);
}
.btn:hover { color: var(--fg); transform: translate(-1px, -2px); }
.btn:active { transform: translate(4px, 6px); box-shadow:
    0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line),
    inset 4px 4px 0 0 rgba(0, 0, 0, .18), 0 0 0 0 var(--shadow); }
.btn--ghost { --bg: var(--card); --fg: var(--ink); }
.btn--green { --bg: var(--green); --fg: #0e2a1c; }
.btn .arrow { display: inline-block; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.chip {
  display: inline-block;
  font-family: var(--f-label);
  font-size: .7rem;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
  margin: 0 6px 8px 0;
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-label); font-size: .75rem; text-transform: uppercase;
  padding: 3px 10px; color: #1d1a2b;
}
.status::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.status--live { background: #9be7bf; }
.status--live::before { animation: blink 1s steps(1) infinite; }
.status--soon { background: var(--yellow); }
.status--wip { background: #c9c3ff; }
.status--internal { background: #ffc7b8; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 4px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.logo img { width: 32px; height: 32px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--line); }
.logo b { color: var(--green-ink); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-label); font-size: .8rem; text-transform: uppercase; text-decoration: none;
  padding: 6px 10px;
}
.nav a:hover, .nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.nav a:hover::before, .nav a[aria-current="true"]::before { content: "▶ "; font-size: .6rem; vertical-align: 1px; }
.theme-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink); border: 0;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line);
  margin-left: 8px;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex; font-family: var(--f-label); font-size: .8rem; text-transform: uppercase;
    background: var(--ink); color: var(--paper); border: 0; padding: 8px 12px; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 4px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: .95rem; }
  .theme-btn { margin: 8px 0 0; }
}

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

.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero__kicker { display: inline-flex; gap: 10px; align-items: center; background: var(--ink); color: var(--paper); padding: 4px 12px; }
.hero__kicker .dot { width: 8px; height: 8px; background: var(--green); animation: blink 1.2s steps(1) infinite; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  line-height: .85; margin: 20px 0 16px; letter-spacing: .01em;
}
.hero h1 .l2 { display: block; color: var(--green-ink); }
.hero h1 .shadowed { text-shadow: 4px 4px 0 var(--yellow); }
:root[data-theme="dark"] .hero h1 .shadowed { text-shadow: 4px 4px 0 #5a3fa8; }
.roles { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.roles li { font-family: var(--f-label); font-size: .9rem; text-transform: uppercase; background: var(--card); padding: 4px 10px;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.roles li:nth-child(1) { background: #9be7bf; color: #1d1a2b; }
.roles li:nth-child(2) { background: #c9c3ff; color: #1d1a2b; }
.roles li:nth-child(3) { background: #ffc7b8; color: #1d1a2b; }
.hero__lead { font-size: 1.3rem; max-width: 34ch; margin: 0 0 8px; }
.hero__sub { color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }

.avatar {
  position: relative; justify-self: center; width: min(340px, 80vw);
  padding: 14px 14px 0;
  background: var(--green);
  cursor: pointer;
}
.avatar__stage { position: relative; aspect-ratio: 64 / 84; overflow: hidden; }
.avatar__stage img, .avatar__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar__pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.avatar__photo { object-fit: cover; opacity: 0; }
.avatar.hd .avatar__photo { opacity: 1; }
.avatar.hd .avatar__pixel { opacity: 0; }
.avatar__caption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--card); margin: 0 -14px; padding: 8px 12px; border-top: 4px solid var(--line);
  font-family: var(--f-label); font-size: .72rem; text-transform: uppercase;
}
.avatar__caption kbd { font-family: inherit; background: var(--ink); color: var(--paper); padding: 1px 6px; }
.avatar__bubble {
  position: absolute; top: -18px; left: -36px; z-index: 2;
  background: var(--card); padding: 6px 10px; font-family: var(--f-label); font-size: .75rem; text-transform: uppercase;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line);
  animation: bob 1.6s steps(2) infinite;
}
.avatar__bubble::after { content: ""; position: absolute; right: 18px; bottom: -11px; width: 8px; height: 8px; background: var(--line); box-shadow: 4px -4px 0 0 var(--line); }
@keyframes bob { 50% { transform: translateY(-4px); } }

.hud {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #1d1a2b; color: #f3ead7;
  margin-top: 8px;
}
.hud div { padding: 14px 16px; border-right: 4px solid var(--paper); }
:root[data-theme="dark"] .hud { box-shadow: 0 0 0 4px #f3ead7; }
.hud div:last-child { border-right: 0; }
.hud .label { color: var(--yellow); display: block; font-size: .7rem; }
.hud strong { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; }
:root[data-theme="dark"] .hud { background: #000; }

.skyline { position: relative; margin-top: 40px; }
.bridge { display: block; width: 100%; height: auto; max-height: 220px; }
.b-arch { fill: var(--green); }
.b-hang { fill: var(--ink-3); }
.b-deck { fill: var(--ink); }
.b-tower { fill: var(--stone); }
.b-win { fill: var(--ink); }
.water {
  height: 28px; background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.55) 24px 40px, transparent 40px 64px) 0 6px / 64px 4px no-repeat repeat-x,
    var(--water);
  background-repeat: repeat-x;
  animation: waves 3s steps(8) infinite;
  border-top: 4px solid var(--line);
}
@keyframes waves { to { background-position: 64px 6px, 0 0; } }

.cloud { position: absolute; width: 96px; height: 32px; color: var(--card); opacity: .95; animation: drift 60s linear infinite; }
.cloud--a { top: 30px; left: 50%; }
.cloud--b { top: 120px; left: 8%; width: 64px; animation-duration: 90s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(60vw); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .avatar { order: -1; width: min(190px, 52vw); padding: 10px 10px 0; }
  .avatar__caption { margin: 0 -10px; justify-content: center; white-space: nowrap; font-size: .65rem; }
  .avatar__caption span:first-child { display: none; }
  .hero { padding-top: 32px; }
  .avatar__bubble { left: auto; right: -12px; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .hud div:nth-child(2) { border-right: 0; }
  .hud div:nth-child(-n+2) { border-bottom: 4px solid var(--paper); }
}

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

section { padding: 96px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.sec-head h2 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: .9; margin: 8px 0 0;
}
.sec-head p { max-width: 52ch; margin: 0; color: var(--ink-2); }
.sec-num { display: inline-block; background: var(--ink); color: var(--paper); padding: 2px 10px; }

.band { background: #1d1a2b; color: #f3ead7; }
.band a:hover { color: #9be7bf; }
.band .sec-head p { color: #cfc6b4; }
.band .sec-num { background: var(--yellow); color: #1d1a2b; }
:root[data-theme="dark"] .band { background: #0b0912; }

/* ---------- projects ---------- */

.level { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 120px; }
.level:last-child { margin-bottom: 0; }
.level--flip .level__media { order: 2; }
.level__tag { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.level__no { font-family: var(--f-label); font-size: .8rem; color: var(--ink-3); }
.level h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .9; margin: 0 0 8px; }
.level h3 a { text-decoration: none; }
.level__pitch { font-size: 1.25rem; margin: 0 0 16px; }
.level p { margin: 0 0 14px; }
.level ul.loot { list-style: none; padding: 0; margin: 0 0 20px; }
.level ul.loot li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.level ul.loot li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; background: var(--yellow); box-shadow: 0 0 0 2px var(--line); }
.level__role { font-family: var(--f-label); font-size: .78rem; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.level__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.stat-pop { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.stat-pop div { background: var(--card); padding: 10px 14px; box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.stat-pop strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--green-ink); }
.stat-pop span { font-family: var(--f-label); font-size: .68rem; text-transform: uppercase; }

/* browser window frame */
.win { overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--ink); color: var(--paper); font-family: var(--f-label); font-size: .7rem; }
.win__bar i { width: 10px; height: 10px; background: var(--red); display: inline-block; }
.win__bar i:nth-child(2) { background: var(--yellow); }
.win__bar i:nth-child(3) { background: var(--green); }
.win__bar span { margin-left: 8px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { position: relative; background: var(--paper-2); }
.shot img { width: 100%; }
.shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.win--tall .shot { max-height: 520px; overflow: hidden; }

/* phone frame */
.phones { display: flex; gap: 20px; margin-top: 36px; justify-content: center; }
.phone {
  width: 31%; max-width: 200px; background: #1d1a2b; padding: 10px 6px 14px;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 8px 10px 0 0 var(--shadow);
}
:root[data-theme="dark"] .phone { background: #000; box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line), 8px 10px 0 0 var(--shadow); }
.phone::before { content: ""; display: block; width: 28%; height: 5px; margin: 0 auto 8px; background: #3a3550; }
.phone .shot { aspect-ratio: 9 / 16.5; overflow: hidden; }
.phone .shot img { height: 100%; object-fit: cover; object-position: top; }
.phone:nth-child(2) { transform: translateY(-18px); }
.media-stack { display: grid; gap: 28px; }
.media-row { display: grid; grid-template-columns: 1fr 34%; gap: 24px; align-items: end; }
.media-row .phone { width: 100%; max-width: none; }

@media (max-width: 900px) {
  .level { grid-template-columns: 1fr; gap: 32px; margin-bottom: 88px; }
  .level--flip .level__media { order: 0; }
}

/* side quests */
.quests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.quest { padding: 0 0 22px; display: flex; flex-direction: column; }
.quest .win__bar { margin-bottom: 0; }
.quest__body { padding: 20px 22px 0; flex: 1; display: flex; flex-direction: column; }
.quest h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: .95; margin: 8px 0 8px; }
.quest p { margin: 0 0 12px; }
.quest .level__links { margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) { .quests { grid-template-columns: 1fr; } }

/* vibeteer mock */
.vibe-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; background: repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--paper) 8px 16px); }
.vibe-mock .post { aspect-ratio: 4 / 5; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-label); font-size: .62rem; text-transform: uppercase; color: #1d1a2b;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
.vibe-mock .post:nth-child(1) { background: #ffc7b8; }
.vibe-mock .post:nth-child(2) { background: #c9c3ff; }
.vibe-mock .post:nth-child(3) { background: #9be7bf; }
.vibe-mock .post b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: .9; text-transform: none; }
.vibe-mock .cal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vibe-mock .cal span { height: 18px; background: var(--card); box-shadow: 0 0 0 2px var(--line); font-family: var(--f-label); font-size: .55rem; text-align: center; line-height: 18px; color: var(--ink); }
.vibe-mock .cal span.on { background: var(--yellow); color: #1d1a2b; }

/* ---------- build your app ---------- */

.coin { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.coin h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: .95; margin: 0 0 16px; }
.coin p { margin: 0 0 14px; }
.coin .band-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.coin .band-list li { padding-left: 22px; position: relative; }
.coin .band-list li::before { content: "+"; position: absolute; left: 0; color: var(--yellow); font-family: var(--f-label); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 32px; }
.steps div { border: 3px dashed #6e6782; padding: 12px; }
.steps .label { color: var(--yellow); }
.steps p { margin: 4px 0 0; font-size: 1rem; color: #cfc6b4; }

.gym {
  justify-self: center; width: min(300px, 86vw); background: #000; padding: 12px 8px 18px; color: #1d1a2b;
  box-shadow: 0 -4px 0 0 var(--paper), 0 4px 0 0 var(--paper), -4px 0 0 0 var(--paper), 4px 0 0 0 var(--paper), 10px 12px 0 0 rgba(0,0,0,.5);
}
.gym::before { content: ""; display: block; width: 30%; height: 5px; margin: 0 auto 10px; background: #3a3550; }
.gym__screen { background: #fffaf0; padding: 14px 12px 16px; font-family: var(--f-body); font-size: .95rem; }
.gym__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gym__head b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.gym__head span { font-family: var(--f-label); font-size: .6rem; background: #1d1a2b; color: #f7c948; padding: 2px 6px; }
.gym__hi { font-family: var(--f-label); font-size: .65rem; text-transform: uppercase; color: #4b4560; margin: 0 0 8px; }
.gym__card { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; background: #f3ead7; box-shadow: 0 0 0 2px #1d1a2b; }
.gym__card small { display: block; font-family: var(--f-label); font-size: .6rem; text-transform: uppercase; color: #4b4560; }
.gym__card button { font-family: var(--f-label); font-size: .6rem; text-transform: uppercase; background: #2fa66f; color: #0e2a1c; border: 0; padding: 4px 8px; box-shadow: 0 0 0 2px #1d1a2b; cursor: pointer; }
.gym__card button.booked { background: #1d1a2b; color: #f7c948; }
.gym__card.full button { background: #e9dec5; color: #4b4560; cursor: not-allowed; }
.gym__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.gym__tabs i { height: 22px; background: #e9dec5; box-shadow: 0 0 0 2px #1d1a2b; font-style: normal; font-family: var(--f-label); font-size: .5rem; text-align: center; line-height: 22px; }
.gym__tabs i:first-child { background: #f7c948; }
.gym__streak { margin-top: 10px; font-family: var(--f-label); font-size: .6rem; text-transform: uppercase; display: flex; gap: 3px; align-items: center; }
.gym__streak em { width: 12px; height: 12px; background: #2fa66f; box-shadow: 0 0 0 1px #1d1a2b; }
.gym__streak em.off { background: #e9dec5; }
.gym-note { text-align: center; font-family: var(--f-label); font-size: .65rem; text-transform: uppercase; color: #a59d8d; margin-top: 18px; }

@media (max-width: 900px) {
  .coin { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .coin .band-list { grid-template-columns: 1fr; }
}

/* ---------- arcade ---------- */

.arcade { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: start; }
.cabinet { padding: 18px; background: #1d1a2b; }
:root[data-theme="dark"] .cabinet { background: #000; box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line), 8px 12px 0 0 var(--shadow); }
.cabinet__title { display: flex; justify-content: space-between; align-items: center; color: #f3ead7; font-family: var(--f-label); font-size: .8rem; text-transform: uppercase; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.cabinet__title b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; text-transform: none; color: var(--yellow); line-height: 1; }
.screen { position: relative; background: #9bd4f0; }
.screen canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: manipulation; cursor: pointer; }
.cabinet__help { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: #cfc6b4; font-family: var(--f-label); font-size: .7rem; text-transform: uppercase; }
.cabinet__help kbd { font-family: inherit; background: #f3ead7; color: #1d1a2b; padding: 1px 6px; }
.arcade__side h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: .95; margin: 0 0 10px; }
.arcade__side p { margin: 0 0 14px; }
.scores { list-style: none; margin: 0 0 24px; padding: 14px 16px; font-family: var(--f-label); font-size: .8rem; text-transform: uppercase; }
.scores li { display: flex; justify-content: space-between; border-bottom: 2px dotted var(--ink-3); padding: 4px 0; }
.scores li:last-child { border: 0; }
.zork-card { padding: 18px; margin-top: 28px; }
.zork-card img { margin: 10px 0 14px; box-shadow: 0 0 0 3px var(--line); }
@media (max-width: 900px) { .arcade { grid-template-columns: 1fr; } }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.sheet { padding: 20px; }
.sheet__photo { position: relative; margin-bottom: 16px; box-shadow: 0 0 0 4px var(--line); background: var(--green); }
.sheet__photo img { width: 100%; aspect-ratio: 480 / 634; object-fit: cover; }
.sheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 1rem; }
.sheet dt { font-family: var(--f-label); font-size: .7rem; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.sheet dd { margin: 0; }
.about__text h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; margin: 0 0 12px; }
.about__text p { margin: 0 0 16px; }
.about__text .big { font-size: 1.35rem; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.skill h4 { font-family: var(--f-label); font-weight: 400; font-size: .85rem; text-transform: uppercase; margin: 0 0 8px; display: flex; justify-content: space-between; }
.bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 10px; }
.bar i { height: 14px; background: var(--paper-2); box-shadow: 0 0 0 2px var(--line); }
.bar i.on { background: var(--green); }
.skill--red .bar i.on { background: var(--red); }
.skill--blue .bar i.on { background: var(--blue); }
.skill--yellow .bar i.on { background: var(--yellow); }
.skill p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.loop li { font-family: var(--f-label); font-size: .72rem; text-transform: uppercase; background: var(--card); padding: 6px 10px; box-shadow: 0 0 0 3px var(--line); }
.loop li.arrow { background: none; box-shadow: none; padding: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .sheet { max-width: 420px; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* ---------- quest log (cv) ---------- */

.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(to bottom, #f3ead7 0 8px, transparent 8px 16px); }
.log li { position: relative; padding: 0 0 36px 52px; }
.log li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 22px; height: 22px; background: var(--yellow); box-shadow: 0 0 0 3px #f3ead7; }
.log li.now::before { background: var(--green); animation: blink 1.4s steps(1) infinite; }
.log .when { font-family: var(--f-label); font-size: .75rem; text-transform: uppercase; color: var(--yellow); }
.log h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; margin: 4px 0 4px; }
.log h3 small { font-family: var(--f-body); font-size: 1rem; color: #cfc6b4; }
.log p { margin: 0; color: #e7dfcd; max-width: 64ch; }
.cv-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; }
.cv-side h3 { font-family: var(--f-label); font-weight: 400; font-size: .9rem; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.cv-side ul { list-style: none; padding: 0; margin: 0 0 32px; }
.cv-side li { margin-bottom: 10px; color: #e7dfcd; }
.cv-side li b { color: #f3ead7; font-weight: 400; display: block; }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- contact ---------- */

.continue { text-align: center; padding: 120px 0; }
.continue h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 11vw, 8rem); line-height: .85; margin: 0 0 8px; }
.continue .count { display: inline-block; font-family: var(--f-display); font-size: 4rem; line-height: 1; color: var(--red); min-width: 2ch; }
.continue p { max-width: 50ch; margin: 12px auto 32px; color: var(--ink-2); }
.continue .hero__cta { justify-content: center; }

footer { border-top: 4px solid var(--line); padding: 28px 0 40px; font-family: var(--f-label); font-size: .72rem; text-transform: uppercase; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { text-decoration: none; }

/* ---------- fun bits ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--yellow); color: #1d1a2b; padding: 10px 16px; font-family: var(--f-label); font-size: .85rem; text-transform: uppercase;
  box-shadow: 0 -4px 0 0 #1d1a2b, 0 4px 0 0 #1d1a2b, -4px 0 0 0 #1d1a2b, 4px 0 0 0 #1d1a2b, 6px 8px 0 0 rgba(0,0,0,.6);
}
.coin-rain { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.coin-rain i { position: absolute; top: -20px; width: 12px; height: 12px; background: var(--yellow); box-shadow: 0 0 0 2px #1d1a2b; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s steps(4), transform .4s steps(4); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
