@font-face {
  font-family: PressStart;
  src: url(vendor/press-start.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --orange: #ff6b10;
  --background: #0c0b10;
  --panel: #15141a;
  --text: #fffaf7;
  --muted: #c9c4cb;
  --line: #38323b;
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 3px solid white; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); background: #101015; }
.bar-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.logo { width: clamp(150px, 22vw, 240px); height: auto; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { color: var(--orange); }
.button, .secondary {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 10px 16px; text-decoration: none; font-weight: 800;
}
.button { background: var(--orange); color: #141016; box-shadow: 4px 4px #8e3400; }
.button:hover, nav .button:hover { background: #ff954b; color: #141016; }
.compact { min-height: 42px; }
.secondary { border: 1px solid #625663; }
.secondary:hover { border-color: var(--orange); }
.hero {
  border-bottom: 1px solid var(--line);
  background-color: #111015;
  background-image: radial-gradient(ellipse at 82% 52%, #53250e82, transparent 62%), linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 100px); }
h1, h2, h3 { margin: 0; font-family: PressStart, monospace; line-height: 1.6; }
h1 { font-size: clamp(1.45rem, 3.2vw, 3rem); }
h1 span { color: var(--orange); }
.hero p { max-width: 49ch; font-size: clamp(1rem, 1.5vw, 1.2rem); margin: 20px 0 26px; }
p { color: var(--muted); }
.hero-art { border: 2px solid #75482e; box-shadow: 10px 10px #452715, 0 0 50px #ff6b1026; }
.hero-art img { width: 100%; height: auto; }
.gallery { padding-block: 50px 68px; }
h2 { font-size: clamp(1.1rem, 2.1vw, 1.55rem); }
.gallery > p { margin: 12px 0 28px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card img { width: 100%; height: auto; border-bottom: 3px solid var(--accent); }
.moon { --accent: #c38dff; }
.asteroid { --accent: var(--orange); }
.platform { --accent: #75eed0; }
.card-content { flex: 1; display: flex; flex-direction: column; padding: 20px; }
h3 { font-size: clamp(.9rem, 1.35vw, 1.1rem); }
.card p { margin: 12px 0 22px; }
.card span { margin-top: auto; color: var(--accent); font-weight: 800; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cards { gap: 12px; }
  .card-content { padding: 14px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner, .cards { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.legal {max-width: 760px; padding-block: 48px 64px; overflow-wrap: anywhere}
.legal h1 {font-size: clamp(1.25rem, 3vw, 2rem)}
.legal h2 {margin-top: 32px; font-size: clamp(.9rem, 2vw, 1.15rem)}
.legal a {color: var(--orange)}

.about-intro, .author {
  background: radial-gradient(ellipse at 30% 50%, #57270f78, transparent 70%), var(--panel);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(36px, 7vw, 80px);
}
.about-intro p { font-size: 1.15rem; margin-bottom: 24px; }
.about-scene, .author-portrait {
  border: 2px solid #a34a20;
  box-shadow: 8px 8px #502711;
}
.about-scene, .author-portrait img { height: auto; }
.author-portrait { margin: 0; max-width: 440px; padding: 8px; background: #28170f; }
.author-portrait img { width: 100%; }
.author a, .learning a { color: #ff9a5a; }
.learning { padding-block: 48px; }
.learning .cards { margin-top: 24px; }
.learning-card { padding: clamp(16px, 3vw, 24px); background: var(--panel); border-top: 3px solid var(--orange); }
@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; }
}

.arcade-nav { gap: 12px; }
.arcade-nav .arcade-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #554033;
  background: #1d1719;
  box-shadow: inset 0 -3px #35241e;
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
}
.arcade-nav .arcade-link:hover,
.arcade-nav .arcade-link:focus-visible {
  border-color: var(--orange);
  background: #321e16;
  color: #ffd5ba;
}
.arcade-icon {
  flex: 0 0 16px;
  height: 16px;
  background-color: var(--orange);
}
.arcade-games {
  clip-path: polygon(0 25%, 12.5% 25%, 12.5% 12.5%, 87.5% 12.5%, 87.5% 25%, 100% 25%, 100% 87.5%, 75% 87.5%, 75% 75%, 25% 75%, 25% 87.5%, 0 87.5%);
  background-image: linear-gradient(#1d1719,#1d1719), linear-gradient(#1d1719,#1d1719), linear-gradient(#1d1719,#1d1719);
  background-position: 3px 5px, 2px 6px, 11px 6px;
  background-size: 2px 4px, 4px 2px, 2px 2px;
  background-repeat: no-repeat;
}
.arcade-info {
  clip-path: polygon(12.5% 0,87.5% 0,87.5% 12.5%,100% 12.5%,100% 87.5%,87.5% 87.5%,87.5% 100%,12.5% 100%,12.5% 87.5%,0 87.5%,0 12.5%,12.5% 12.5%);
  background-image: linear-gradient(#1d1719,#1d1719), linear-gradient(#1d1719,#1d1719);
  background-position: 7px 3px, 7px 7px;
  background-size: 2px 2px, 2px 6px;
  background-repeat: no-repeat;
}
@media (max-width: 760px) {
  .bar-inner:has(.arcade-nav) { flex-wrap: wrap; gap: 14px; }
  .arcade-nav { gap: 8px; }
}
