:root {
  color-scheme: dark;
  --bg: #1d140d;
  --bg2: #312113;
  --panel: rgba(79, 51, 29, .72);
  --line: #8c6134;
  --text: #fff6dd;
  --muted: #d8b98c;
  --gold: #ffd15c;
  --green: #86c06c;
  --shadow: #120b07;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.03) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(255,255,255,.03) 25%, transparent 25%) 0 0 / 28px 28px,
    radial-gradient(circle at top left, #694523 0, transparent 38rem),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.brand, .navlinks { display: flex; align-items: center; gap: 14px; }
.brand img { width: 34px; height: 34px; object-fit: none; object-position: top left; image-rendering: pixelated; border-radius: 6px; }
.brand span { font-size: clamp(22px, 3vw, 34px); font-weight: 900; letter-spacing: -.04em; color: white; text-shadow: 3px 3px 0 var(--shadow); }
.navlinks a { color: var(--muted); font-weight: 700; font-size: 14px; }
.navlinks a:hover { color: white; }
.navplay { border: 2px solid var(--line); padding: 9px 14px; background: rgba(255,255,255,.06); box-shadow: 4px 4px 0 var(--shadow); }
.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 48px;
  padding: 42px 0 70px;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 900; margin: 0 0 16px; }
h1 { font-size: clamp(44px, 7vw, 86px); line-height: .9; margin: 0; letter-spacing: -.08em; text-shadow: 5px 5px 0 var(--shadow); }
.lede { max-width: 640px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; margin: 24px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 3px solid #2a190c;
  font-weight: 950;
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--shadow); }
.primary { background: var(--gold); color: #281605; }
.secondary { background: #5b3a1f; color: white; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.status-row span { border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.18); padding: 10px 12px; color: var(--muted); font-size: 13px; }
.status-row strong { color: white; }
.hero-card {
  border: 4px solid #2a190c;
  background: #4e321c;
  box-shadow: 12px 12px 0 var(--shadow);
  padding: 16px;
  transform: rotate(1deg);
}
.pixel-window { position: relative; min-height: 420px; overflow: hidden; background: #7ec0d8; image-rendering: pixelated; }
.sky { position: absolute; inset: 0 0 38%; background: linear-gradient(#7ec0d8, #add8dd); }
.ground {
  position: absolute; inset: 54% 0 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(0,0,0,.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(#8fca64 0 26%, #6aa04b 26% 100%);
}
.sprite { position: absolute; image-rendering: pixelated; object-fit: none; }
.hero-player { width: 90px; height: 122px; object-position: 0 0; left: 42%; bottom: 76px; transform: scale(1.5); transform-origin: bottom; }
.hero-sword { width: 60px; height: 110px; object-position: 0 0; left: 54%; bottom: 76px; transform: scale(1.2); transform-origin: bottom; }
.hero-rat { width: 64px; height: 58px; object-position: 0 0; right: 16%; bottom: 86px; transform: scale(1.7); transform-origin: bottom; }
.hero-chest { width: 40px; height: 30px; object-position: 0 0; left: 15%; bottom: 88px; transform: scale(2.4); transform-origin: bottom; }
.speech { position: absolute; left: 24px; top: 24px; color: #2a190c; background: white; border: 3px solid #2a190c; padding: 12px 14px; font-weight: 950; box-shadow: 5px 5px 0 rgba(0,0,0,.3); }
.panel {
  margin: 0 0 34px;
  padding: 30px;
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--shadow);
}
h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.06em; text-shadow: 3px 3px 0 var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article { background: rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.12); padding: 22px; min-height: 220px; }
.cards img { width: 54px; height: 58px; object-fit: none; object-position: top left; image-rendering: pixelated; transform: scale(1.35); transform-origin: left top; margin-bottom: 28px; }
h3 { margin: 0 0 10px; font-size: 22px; color: var(--gold); }
p { color: var(--muted); line-height: 1.6; }
.controls { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.controls ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.controls li { background: rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.12); padding: 14px 16px; color: var(--muted); }
.controls li span { display: inline-block; min-width: 86px; color: white; font-weight: 950; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); padding: 18px 0 32px; font-size: 13px; }
@media (max-width: 860px) {
  .nav { align-items: flex-start; }
  .navlinks { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 28px; }
  .hero-card { transform: none; }
  .cards, .controls { grid-template-columns: 1fr; }
  .pixel-window { min-height: 340px; }
}
