:root {
  color-scheme: dark;
  --bg: #0a1710;
  --bg-deep: #061009;
  --bg-soft: #10251a;
  --panel: #132a1d;
  --panel-hi: #1a3826;
  --ink: #050d07;
  --line: #2f5d3c;
  --text: #e8f3df;
  --muted: #aec8ac;
  --grass: #64c94e;
  --grass-dark: #378d36;
  --dirt: #8a5a30;
  --dirt-dark: #603b20;
  --wood: #a97440;
  --stone: #75827a;
  --gold: #f3c65d;
  --sky-top: #173746;
  --sky-bottom: #35604f;
  --sun: #f5d979;
  --cloud: rgba(220, 244, 229, .72);
  --mountain-back: #2a4b49;
  --mountain-front: #244035;
  --leaf: #2f7f3c;
  --leaf-hi: #49a24c;
  --shadow: rgba(0, 0, 0, .38);
  --header-bg: rgba(10, 23, 16, .92);
  --radius: 10px;
  --radius-lg: 16px;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 4px 4px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

button,
.btn,
.skip-link,
.toast-close,
.nav-toggle,

.featured-repo a,
.link-slot,
.contact-link {
  border-radius: var(--radius);
}

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

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

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 16px;
  background: var(--grass);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 9px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity .45s ease, visibility .45s ease;
}
.js .loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-box { width: min(360px, calc(100% - 48px)); text-align: center; }
.loader-block {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 26px;
  background:
    linear-gradient(var(--grass-dark) 0 10px, transparent 10px),
    repeating-linear-gradient(90deg, var(--grass) 0 10px, var(--grass-dark) 10px 20px);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  animation: loader-hop 1s steps(2, end) infinite alternate;
}
.loader-title { font-family: var(--font-pixel); font-size: 17px; line-height: 1.5; margin: 0 0 12px; color: var(--grass); }
.loader-sub { font-size: 12px; letter-spacing: .18em; color: var(--muted); margin: 0 0 20px; }
.dots::after { content: "..."; animation: dots 1.2s steps(4, end) infinite; }
.loader-track { height: 18px; border: 3px solid var(--ink); background: var(--panel); padding: 2px; }
.loader-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--grass-dark), var(--grass)); transition: width .18s linear; }
.loader-percent { font-family: var(--font-pixel); font-size: 10px; margin: 14px 0 0; color: var(--muted); }

@keyframes loader-hop { to { transform: translateY(-8px); } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(350px, calc(100% - 40px));
  padding: 16px;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  animation: toast-in .35s ease-out;
}
.toast[hidden] { display: none; }
.toast-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 12px;
}
.toast strong { display: block; font-size: 14px; color: var(--grass); }
.toast div > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.toast-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink);
  background:
    linear-gradient(var(--grass-dark) 0 8px, transparent 8px),
    repeating-linear-gradient(90deg, var(--grass) 0 8px, var(--grass-dark) 8px 16px);
  box-shadow: 3px 3px 0 var(--ink);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--dirt) 0 6px, var(--dirt-dark) 6px 12px);
}
.brand-mark.small { width: 22px; height: 22px; box-shadow: 2px 2px 0 var(--ink); }
.brand-name { font-family: var(--font-pixel); font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--grass); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 42px; border: 3px solid var(--ink); background: var(--panel); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle-bar { display: block; height: 3px; background: var(--text); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main, .site-footer { position: relative; z-index: 1; }
.section { padding: 104px 0; border-bottom: 3px solid var(--ink); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--font-pixel); font-size: 9px; line-height: 1.7; letter-spacing: .06em; color: var(--grass); }
.eyebrow-dot { width: 9px; height: 9px; background: var(--grass); box-shadow: 0 0 0 3px rgba(100, 201, 78, .2); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-family: var(--font-pixel); font-size: clamp(20px, 3.1vw, 34px); letter-spacing: -.02em; }
.section-head > p:last-child { color: var(--muted); margin: 18px 0 0; font-size: 15px; }
.featured-repo a { display: inline-block; padding: 10px 14px; border: 3px solid var(--ink); background: var(--panel); color: var(--grass); font-family: var(--font-pixel); font-size: 8px; line-height: 1.7; text-decoration: none; box-shadow: 4px 4px 0 var(--shadow); transition: transform .15s ease, background-color .2s ease; }
.featured-repo a:hover { transform: translate(-2px, -2px); background: var(--grass); color: var(--ink); }
code { font-family: var(--font-body); color: var(--grass); background: var(--bg-deep); padding: 1px 5px; border: 1px solid var(--line); }
.panel { position: relative; background: var(--panel); border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--shadow); padding: 28px; }
.panel-label { position: absolute; top: -13px; left: 20px; padding: 3px 9px; background: var(--grass); color: var(--ink); font-family: var(--font-pixel); font-size: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 22px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  text-decoration: none;
  border: 3px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--grass); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-secondary { background: var(--panel-hi); color: var(--text); box-shadow: 4px 4px 0 var(--ink); }

.hero { position: relative; overflow: hidden; padding: 88px 0 92px; background: radial-gradient(circle at 78% 30%, rgba(100, 201, 78, .09), transparent 46%), var(--bg); }
.hero-grid-overlay { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(100, 201, 78, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 201, 78, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; max-width: 18ch; }
.pixel-title { display: block; margin-top: 18px; font-family: var(--font-pixel); font-size: clamp(22px, 3.4vw, 40px); line-height: 1.35; color: var(--grass); text-shadow: 4px 4px 0 var(--ink); }
.tagline { margin: 26px 0 16px; font-family: var(--font-pixel); font-size: clamp(10px, 1.15vw, 13px); line-height: 2; color: var(--gold); }
.hero-intro { max-width: 60ch; margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 42px 0 0; padding-top: 22px; border-top: 2px dashed var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta dt, .hero-meta dd { margin: 0; }
.hero-meta dt { font-family: var(--font-pixel); font-size: 8px; color: var(--muted); }
.hero-meta dd { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--grass); box-shadow: 0 0 0 3px rgba(100, 201, 78, .2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 8px; color: var(--muted); white-space: nowrap; }
.scroll-cue span { width: 10px; height: 14px; border: 2px solid var(--muted); }
.scroll-cue span::after { content: ""; display: block; width: 2px; height: 4px; margin: 2px auto 0; background: var(--grass); animation: scroll-dot 1.4s ease-in-out infinite; }
@keyframes scroll-dot { 50% { transform: translateY(4px); opacity: 0; } }

.world-scene { position: relative; aspect-ratio: 1.12 / 1; min-height: 380px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--shadow); background: var(--sky-top); }
.scene-sky { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--sky-top) 0 62%, var(--sky-bottom) 100%); }
.scene-sun { position: absolute; top: 13%; right: 16%; width: 52px; height: 52px; background: var(--sun); box-shadow: 0 0 0 6px rgba(245, 217, 121, .14), 0 0 40px rgba(245, 217, 121, .3); }
.cloud { position: absolute; height: 12px; background: var(--cloud); opacity: .85; box-shadow: 16px -10px 0 var(--cloud), -14px 9px 0 var(--cloud), 30px 4px 0 var(--cloud); }
.cloud-one { top: 16%; left: 12%; width: 46px; animation: drift 18s linear infinite alternate; }
.cloud-two { top: 29%; right: 10%; width: 62px; animation: drift 24s linear infinite alternate-reverse; }
.cloud-three { top: 8%; left: 52%; width: 32px; opacity: .6; animation: drift 30s linear infinite alternate; }
@keyframes drift { to { transform: translateX(38px); } }
.mountain { position: absolute; left: 0; right: 0; bottom: 22%; }
.mountain-back { height: 55%; background: var(--mountain-back); clip-path: polygon(0 100%, 0 74%, 11% 74%, 11% 61%, 23% 61%, 23% 45%, 35% 45%, 35% 29%, 47% 29%, 47% 45%, 60% 45%, 60% 60%, 73% 60%, 73% 72%, 100% 72%, 100% 100%); }
.mountain-front { height: 40%; background: var(--mountain-front); clip-path: polygon(0 100%, 0 78%, 14% 78%, 14% 62%, 29% 62%, 29% 46%, 43% 46%, 43% 58%, 57% 58%, 57% 72%, 72% 72%, 72% 61%, 100% 61%, 100% 100%); }
.scene-tree { position: absolute; bottom: 20%; z-index: 2; width: 80px; height: 120px; }
.tree-left { left: 8%; }
.tree-right { right: 9%; transform: scale(.78); transform-origin: bottom center; }
.tree-trunk { position: absolute; left: 34px; bottom: 0; width: 14px; height: 46px; background: repeating-linear-gradient(90deg, var(--wood) 0 7px, var(--dirt-dark) 7px 14px); border: 2px solid var(--ink); }
.tree-leaves { position: absolute; left: 4px; top: 0; width: 72px; height: 72px; background: var(--leaf); border: 3px solid var(--ink); box-shadow: -10px 14px 0 var(--leaf), 10px 14px 0 var(--leaf-hi); }
.tree-leaves::after { content: ""; position: absolute; inset: 8px 8px auto 8px; height: 20px; background: rgba(255, 255, 255, .08); }
.scene-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 3; border-top: 3px solid var(--ink); }
.grass-layer { display: block; height: 14px; background: repeating-linear-gradient(90deg, var(--grass) 0 12px, var(--grass-dark) 12px 24px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.dirt-layer { display: block; height: calc(100% - 14px); background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 8px, transparent 8px 16px), repeating-linear-gradient(90deg, var(--dirt) 0 14px, var(--dirt-dark) 14px 28px); }
.floating-block { position: absolute; z-index: 4; width: 34px; height: 34px; border: 3px solid var(--ink); background: repeating-linear-gradient(90deg, var(--stone) 0 8px, var(--mountain-back) 8px 16px); box-shadow: 4px 4px 0 var(--shadow); animation: float 4s ease-in-out infinite alternate; }
.fb-one { top: 18%; left: 29%; }
.fb-two { top: 38%; right: 27%; width: 26px; height: 26px; animation-delay: -1.4s; }
.fb-three { top: 9%; right: 43%; width: 20px; height: 20px; animation-delay: -2.7s; }
.fb-one::before, .fb-three::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--grass); }
@keyframes float { to { transform: translateY(-16px) rotate(4deg); } }
.scene-player { position: absolute; left: 45%; bottom: 16%; z-index: 5; width: 104px; animation: bob 2.4s ease-in-out infinite; }
.scene-player svg { width: 100%; filter: drop-shadow(5px 6px 0 var(--shadow)); }
@keyframes bob { 50% { transform: translateY(-7px); } }
.scene-label { position: absolute; left: 12px; bottom: 12px; z-index: 6; padding: 6px 8px; background: var(--ink); color: var(--grass); font-family: var(--font-pixel); font-size: 7px; }

.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: .85fr 1.35fr 1fr; gap: 24px; align-items: stretch; }
.about-grid .panel { display: flex; flex-direction: column; }
.profile-card { align-items: center; text-align: center; }
.portrait { position: relative; display: grid; place-items: center; width: 100%; max-width: 220px; aspect-ratio: 1; margin: 10px auto 16px; border: 3px solid var(--ink); background: repeating-linear-gradient(45deg, var(--panel-hi) 0 12px, var(--panel) 12px 24px); overflow: hidden; }
.portrait-glow { position: absolute; inset: 16%; background: radial-gradient(circle, rgba(100, 201, 78, .28), transparent 70%); }
.portrait-svg { position: relative; width: 62%; image-rendering: pixelated; filter: drop-shadow(4px 5px 0 var(--shadow)); }
.portrait-caption { margin: 0 0 18px; font-family: var(--font-pixel); font-size: 7px; line-height: 1.9; color: var(--muted); }
.profile-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; }
.profile-tags span, .tag-list li { padding: 5px 8px; background: var(--bg-deep); border: 2px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.bio-card h3 { margin-bottom: 18px; font-size: 18px; }
.bio-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.bio-card blockquote { margin: auto 0 0; padding: 14px 16px; border-left: 5px solid var(--grass); background: var(--bg-deep); font-family: var(--font-pixel); font-size: 9px; line-height: 1.9; color: var(--gold); }
.xp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.xp-level { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); }
.xp-level strong { color: var(--grass); font-size: 15px; }
.xp-label { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.xp-track { height: 22px; padding: 3px; border: 3px solid var(--ink); background: var(--bg-deep); }
.xp-fill { display: block; width: 68%; height: 100%; background: repeating-linear-gradient(90deg, var(--grass-dark) 0 12px, var(--grass) 12px 15px, transparent 15px 18px); }
.hearts { display: flex; gap: 4px; margin: 20px 0; font-size: 22px; line-height: 1; color: #e0574f; text-shadow: 2px 2px 0 var(--ink); }
.stat-list { margin: 0; }
.stat-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.stat-list dt, .stat-list dd { margin: 0; font-size: 11px; }
.stat-list dt { font-family: var(--font-pixel); font-size: 8px; color: var(--muted); }
.stat-list dd { font-weight: 600; text-align: right; }
.stat-note { margin: 18px 0 0; font-size: 11px; color: var(--muted); }

.skills { background: var(--bg-soft); }
.inventory-shell { border: 4px solid var(--ink); background: var(--panel); box-shadow: 9px 9px 0 var(--shadow); border-radius: var(--radius-lg); }
.inventory-top, .inventory-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; font-family: var(--font-pixel); font-size: 8px; letter-spacing: .05em; }
.inventory-top { background: var(--grass); color: var(--ink); border-bottom: 3px solid var(--ink); border-radius: calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px) 0 0; }
.inventory-sort, .inventory-hint { opacity: .72; }
.inventory-bottom { border-top: 3px solid var(--ink); color: var(--muted); background: var(--bg-deep); border-radius: 0 0 calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px); }
.inventory-grid { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.inv-slot { position: relative; aspect-ratio: 1 / 1; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; text-align: center; background: linear-gradient(145deg, var(--panel-hi), var(--bg-deep)); border: 3px solid var(--line); border-radius: var(--radius); cursor: help; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.inv-slot:hover, .inv-slot:focus-visible { transform: translateY(-5px); border-color: var(--grass); box-shadow: 0 7px 0 var(--ink); }
.slot-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: calc(var(--radius) - 2px); background: transparent; }
.slot-icon img { width: 96%; height: 96%; object-fit: contain; }
.slot-icon img[src*="github"],
.slot-icon img[src*="terminal"] { filter: invert(1); }
.slot-name { font-family: var(--font-pixel); font-size: 7px; line-height: 1.6; color: var(--text); padding: 3px 5px; border-radius: 6px; background: rgba(0, 0, 0, .16); }
.slot-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); width: max-content; max-width: 190px; padding: 8px 10px; background: var(--ink); color: var(--grass); font-family: var(--font-pixel); font-size: 7px; line-height: 1.6; border-radius: 8px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 5; }
.inv-slot:hover .slot-tip, .inv-slot:focus-visible .slot-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.section-footnote { margin: 22px 0 0; font-size: 12px; color: var(--muted); }

.notice { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin-bottom: 32px; border: 3px solid var(--gold); background: rgba(243, 198, 93, .09); }
.notice > span { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; background: var(--gold); color: var(--ink); font-family: var(--font-pixel); font-size: 11px; }
.notice p { margin: 0; font-size: 13px; color: var(--text); }
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; padding: 26px; background: var(--panel); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 8px 14px 0 var(--shadow); }
.project-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--grass); color: var(--ink); font-family: var(--font-pixel); font-size: 17px; box-shadow: 4px 4px 0 var(--shadow); }
.project-badge { align-self: flex-start; margin: 20px 0 12px; padding: 5px 8px; background: var(--gold); color: var(--ink); font-family: var(--font-pixel); font-size: 7px; }
.project-badge.is-live { background: var(--grass); }
.project-card h3 { font-size: 16px; }
.project-card > p { flex: 1; color: var(--muted); font-size: 13px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 22px; padding: 0; }
.link-slot { display: block; padding: 12px; text-align: center; border: 3px dashed var(--line); color: var(--muted); font-family: var(--font-pixel); font-size: 7px; line-height: 1.8; }
a.link-slot { text-decoration: none; border-style: solid; color: var(--grass); transition: background-color .2s ease, color .2s ease; }
a.link-slot:hover { background: var(--grass); color: var(--ink); border-color: var(--grass); }

.contact { background: var(--bg-soft); }
.contact-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 46px; background: var(--panel); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--shadow); }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p { max-width: 52ch; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--bg-deep); border: 3px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.contact-link:hover { border-color: var(--grass); transform: translateX(4px); }
.contact-link > span:first-child { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; background: var(--grass); color: var(--ink); font-family: var(--font-pixel); font-size: 11px; }
.contact-link strong { display: block; font-family: var(--font-pixel); font-size: 8px; color: var(--text); }
.contact-link small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.contact-link > span:last-child { margin-left: auto; color: var(--grass); }
.contact-link.is-placeholder { opacity: .55; cursor: default; }
.contact-link.is-placeholder:hover { transform: none; border-color: var(--line); }
.contact-link.is-placeholder > span:first-child { background: var(--stone); }

.site-footer { background: var(--bg-deep); border-top: 3px solid var(--ink); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 10px; color: var(--grass); }
.footer-inner > p { margin: 0; font-size: 12px; color: var(--muted); }
.footer-meta { display: flex; gap: 26px; font-size: 11px; color: var(--muted); }
.footer-meta a { color: var(--grass); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .project-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .project-grid .reveal:nth-child(3) { transition-delay: .2s; }
.js .about-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .about-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (max-width: 1050px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; }
  .stats-card { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { gap: 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: grid;
    gap: 0;
    padding: 0 20px;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s ease;
  }
  .site-nav.is-open { max-height: 420px; opacity: 1; visibility: visible; padding: 10px 20px 18px; }
  .nav-link { padding: 13px 4px; border-bottom: 2px dashed var(--line); font-size: 13px; }
  .nav-link::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { max-width: none; }
  .world-scene { max-width: 620px; width: 100%; margin-inline: auto; }
  .contact-panel { grid-template-columns: 1fr; gap: 34px; padding: 34px; }
  .scroll-cue { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 76px; }
  .hero-copy h1 { font-size: 30px; }
  .pixel-title { font-size: 23px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 14px 22px; }
  .world-scene { min-height: 320px; aspect-ratio: 1 / 1; }
  .scene-player { width: 84px; left: 42%; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-card { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px; }
  .inv-slot { min-height: 96px; gap: 6px; padding: 6px; border-width: 2px; }
  .slot-icon { width: 48px; height: 48px; }
  .slot-name { font-size: 6px; }
  .inventory-top, .inventory-bottom { padding: 12px; font-size: 7px; }
  .contact-panel { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-wrap: wrap; gap: 10px 20px; }
  .panel { padding: 22px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 9px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
