@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('assets/press-start-2p-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcf6e7;
  --ink: #342b24;
  --muted: #746554;
  --line: #ddcfb0;
  --red: #b83d31;
  --green: #526a42;
  --pixel: 'Press Start 2P', monospace;
  --body: 'DM Sans', system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: #f5ecd6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 280px;
  background-color: #f5ecd6;
  background-image: radial-gradient(#d6c6a5 0.75px, transparent 0.75px), radial-gradient(ellipse at 50% 15%, #fff9e9 0%, #f4ebd4 85%);
  background-size: 11px 11px, 100% 100%;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; touch-action: manipulation; }
svg { display: block; flex-shrink: 0; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; border-radius: 3px; }
::selection { background: #d7dfb1; color: var(--ink); }
.shell { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-160%); background: var(--paper); border: 2px solid var(--ink); padding: 10px 16px; }
.skip-link:focus { transform: translateY(0); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; border-bottom: 1px solid #d4c4a3; }
.brand { display: inline-flex; align-items: center; gap: 14px; font: 400 1.375rem/1.5 var(--pixel); letter-spacing: -1.2px; }
.brand-icon { width: 40px; height: 32px; filter: drop-shadow(0 3px 0 #c7b48e); }
.brand-gio { color: var(--green); }
nav { display: flex; align-items: center; gap: 30px; font-size: 0.9375rem; font-weight: 700; }
nav a { padding: 8px 0; }
nav a:hover { color: var(--red); }
.nav-game { color: var(--green); }
.nav-game::after { content: ''; display: block; height: 2px; background: var(--green); margin-top: 3px; }

.intro { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 63px 48px 60px 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--red); font-size: 0.8125rem; letter-spacing: 1.8px; font-weight: 800; margin: 0 0 19px; }
.pixel-spark { font-size: 1.5rem; line-height: 1; color: var(--red); }
h1 { font: 400 clamp(1.6rem, 3.1vw, 2.5rem)/1.65 var(--pixel); letter-spacing: -1.6px; margin: 0; }
.red { color: var(--red); }
.intro-description { color: #695b4b; font-size: 1.0625rem; line-height: 1.8; margin: 20px 0 0; }
.intro-note { text-align: center; transform: rotate(7deg); color: #79684e; }
.cartridge { width: 112px; height: 121px; margin: 0 auto 10px; filter: drop-shadow(4px 5px 0 #b6a38238); }
.intro-note span { display: block; font-size: 0.875rem; line-height: 1.6; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font: 400 0.6875rem/1.8 var(--pixel); margin: 0; }
.section-heading svg { width: 20px; height: 20px; fill: none; stroke: #746554; stroke-width: 1.5; }
.shelf-count { color: var(--muted); font-size: 0.875rem; }
.game-card { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--paper); border: 3px solid #3a3025; border-radius: 12px; box-shadow: 0 5px 0 #8d7559, 0 13px 25px #6c4c2918; overflow: hidden; }
.game-art { display: flex; flex-direction: column; min-width: 0; background: #b8c97e; border-right: 3px solid #3a3025; position: relative; }
.game-art:focus-visible { outline-offset: -7px; z-index: 1; }
.art-bar { background: #3a3025; color: #f4e8c9; display: flex; justify-content: space-between; align-items: center; min-height: 39px; padding: 0 15px; font: 400 0.5625rem/1.8 var(--pixel); letter-spacing: 0.3px; }
.art-bar > span:first-child { display: flex; gap: 9px; align-items: center; }
.art-sun { color: #e7c67c; font-size: 1.25rem; }
.ball { display: inline-block; flex-shrink: 0; position: relative; width: 17px; height: 17px; border: 2px solid #3a2b23; border-radius: 50%; background: linear-gradient(#de6950 0 42%, #3a2b23 42% 57%, #fff3d9 57%); }
.ball::after { content: ''; position: absolute; inset: 0; margin: auto; width: 5px; height: 5px; border: 1px solid #3a2b23; border-radius: 50%; background: #fff7e4; }
.game-image-wrap { flex: 1; overflow: hidden; position: relative; min-height: 260px; }
.game-image { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; image-rendering: pixelated; transition: transform 240ms ease; }
.game-art:hover .game-image { transform: scale(1.035); }
.art-caption { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; background: #e5e7bd; border-top: 2px solid #8b9b61; color: #485638; padding: 8px 12px; font-size: 0.875rem; font-weight: 600; }
.mini-spark { color: #637a46; font-size: 1.125rem; }
.game-info { padding: 31px 32px 27px; }
.game-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; color: var(--red); font-size: 0.75rem; letter-spacing: 1.3px; font-weight: 800; }
.game-kicker .ball { width: 15px; height: 15px; }
.game-info h3 { font: 400 clamp(1.05rem, 1.7vw, 1.375rem)/1.6 var(--pixel); margin: 0 0 18px; letter-spacing: -0.9px; }
.pokemon-label { display: block; color: var(--red); font-size: 0.625rem; line-height: 1.5; letter-spacing: 2px; margin-bottom: 8px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game-tags span { border: 1px solid #d2c5a4; border-radius: 4px; padding: 2px 9px; font-size: 0.8125rem; line-height: 1.6; color: #675940; background: #f2ead5; font-weight: 600; }
.game-description { color: #6c5c49; font-size: 1rem; line-height: 1.75; margin: 18px 0 23px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 17px; background: #c55340; color: #fff6db; border: 2px solid #80372d; border-radius: 6px; box-shadow: 0 3px 0 #80372d; font: 400 0.625rem/1.8 var(--pixel); transition: background 140ms ease, transform 140ms ease; }
.play-button svg { fill: currentColor; width: 12px; height: 12px; }
.play-button:hover { background: #ad4535; transform: translateY(-1px); }
.play-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #80372d; }
.play-note { margin: 12px 0 0; color: var(--muted); font-size: 0.8125rem; }
.shelf-bottom { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 28px 0 0; }
.shelf-bottom p { font-size: 0.875rem; color: var(--muted); text-align: center; margin: 0; }
.shelf-line { display: block; width: 37px; height: 1px; background: #cbb791; }

.about { display: flex; align-items: center; gap: 25px; padding: 34px 32px; margin: 55px 0 43px; background: #fbf3e0a6; border: 1px solid #d8c9a7; border-radius: 8px; }
.about-icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; background: #f1e4c9; border: 1px solid #d8c9a7; border-radius: 7px; }
.about-icon svg { width: 34px; height: 34px; }
.about-copy { flex: 1; }
.about .eyebrow { font-size: 0.6875rem; letter-spacing: 1.5px; margin-bottom: 8px; }
.about h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 9px; font-weight: 800; letter-spacing: -0.4px; }
.about-copy > p:last-child { max-width: 640px; font-size: 0.9375rem; color: #6c5c49; line-height: 1.8; margin: 0; }
.signature { font-size: 0.875rem; min-width: 114px; text-align: center; color: #79684e; transform: rotate(-5deg); }
.signature b { font-size: 1.1875rem; font-weight: 600; color: #526a42; line-height: 2; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0 18px; border-top: 1px solid #d4c4a3; }
.footer-brand { font: 400 0.8125rem/1.5 var(--pixel); letter-spacing: -0.6px; }
.footer p { color: var(--muted); font-size: 0.875rem; margin: 0; }
.footer-spark { color: #967953; font-size: 1.5rem; line-height: 1; }
.fan-note { font-size: 0.75rem; color: #7e6c54; text-align: center; margin: 9px 0 25px; }

@media (min-width: 1400px) { .intro { padding-top: 72px; padding-bottom: 68px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .intro { padding: 46px 25px 45px 0; }
  .game-card { grid-template-columns: 1.05fr 1fr; }
  .game-info { padding: 26px 24px; }
  .about { padding: 26px 24px; gap: 20px; }
  .signature { display: none; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 86px; gap: 16px; }
  .brand { font-size: 1.0625rem; gap: 10px; letter-spacing: -0.8px; }
  .brand-icon { width: 31px; height: 27px; }
  nav { gap: 20px; font-size: 0.875rem; }
  .intro { padding: 37px 0 39px; gap: 15px; }
  .eyebrow { font-size: 0.6875rem; letter-spacing: 1.2px; margin-bottom: 14px; }
  h1 { font-size: clamp(1.15rem, 4.6vw, 1.875rem); letter-spacing: -1px; }
  .intro-description { font-size: 1rem; margin-top: 15px; }
  .intro-note { display: none; }
  .section-heading { gap: 12px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 0.5625rem; gap: 7px; }
  .shelf-count { font-size: 0.8125rem; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { border-right: 0; border-bottom: 3px solid #3a3025; }
  .game-image-wrap { min-height: 0; aspect-ratio: 480 / 260; }
  .game-info { padding: 26px; }
  .game-info h3 { font-size: 1.375rem; }
  .game-kicker { margin-bottom: 15px; }
  .game-description { max-width: 480px; }
  .play-button { min-height: 50px; }
  .about { align-items: flex-start; margin: 38px 0 30px; padding: 24px 20px; gap: 17px; }
  .about-icon { width: 44px; height: 44px; }
  .about-icon svg { width: 27px; height: 27px; }
  .about h2 { font-size: 1.125rem; }
  .about .eyebrow { font-size: 0.625rem; letter-spacing: 1px; }
}
@media (max-width: 400px) {
  .brand { font-size: 0.875rem; gap: 7px; }
  .brand-icon { width: 27px; }
  nav { gap: 14px; font-size: 0.8125rem; }
  .section-heading { flex-wrap: wrap; gap: 5px; }
  .game-info { padding: 24px 20px; }
  .game-info h3 { font-size: 1.1875rem; }
  .art-caption { font-size: 0.75rem; }
  .about { display: block; }
  .about-icon { margin-bottom: 17px; }
  .footer { flex-wrap: wrap; gap: 12px; }
  .footer-spark { display: none; }
  .footer p { font-size: 0.8125rem; }
  .shelf-line { width: 20px; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
