@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("fonts/VT323.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #5c94fc;
  --sky2: #4a7fe0;
  --ink: #000;
  --ink2: #141414;
  --brick: #c84c0c;
  --brick2: #e07020;
  --brick3: #9c3c08;
  --mortar: #f4c4a0;
  --pipe: #007000;
  --pipe2: #00a000;
  --pipe3: #004d00;
  --pipe-rim: #183c00;
  --coin: #f8d878;
  --coin2: #e8b030;
  --red: #b01010;
  --red2: #8a0c0c;
  --white: #fcfcfc;
  --panel: #fcfcfc;
  --panel-ink: #fcfcfc;
  --ground: #c84c0c;
  --ground-top: #00a800;
  --night: #000080;
  --max: 1080px;
  --px: "Press Start 2P", ui-monospace, monospace;
  --bd: "VT323", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bd);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  background: #1a1a2e;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pipe3); }
a:hover { color: var(--ink); text-decoration: underline; }
.logo:hover, .nav a:hover, .btn:hover { text-decoration: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--coin); color: var(--ink);
  padding: 0.75rem 1rem; z-index: 200;
  font-family: var(--px); font-size: 12px;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* —— SMB status bar —— */
.status-bar {
  background: #000;
  color: var(--white);
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 0 0 3px var(--coin2);
}
.status-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}
.status-bar .sub { color: var(--coin); font-size: 10px; display: block; margin-top: 2px; }
.coins i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coin);
  border: 2px solid var(--ink);
  box-shadow: inset -2px -2px 0 var(--coin2);
  vertical-align: -1px;
  animation: bob 1.2s ease-in-out infinite;
}

/* —— HUD nav —— */
.hud {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink2);
  box-shadow: 0 4px 0 var(--red);
}
.hud-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--coin);
}
.logo-text {
  font-family: var(--px);
  font-size: 12px;
  color: var(--coin);
  line-height: 1.3;
}
.q-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--coin2);
  color: var(--ink);
  font-family: var(--px);
  font-size: 14px;
  border: 3px solid var(--ink);
  box-shadow: inset -3px -3px 0 #a87810, inset 3px 3px 0 #ffe8a0;
  flex-shrink: 0;
}
.q-block.big {
  width: 36px; height: 36px;
  font-size: 18px;
  animation: bob 1.6s ease-in-out infinite;
}
.nav { display: none; gap: 0.35rem; align-items: center; }
.nav a {
  font-family: var(--px);
  font-size: 12px;
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 0.55rem;
  line-height: 1.3;
}
.nav a:hover, .nav a:focus-visible { color: var(--coin); }
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  border: 3px solid #fff;
  box-shadow: 3px 3px 0 #000;
  padding: 0.65rem 0.85rem !important;
}
.nav-cta:hover { background: var(--coin) !important; color: var(--ink) !important; border-color: var(--ink); }
.nav-toggle {
  font-family: var(--px);
  font-size: 14px;
  width: 48px; height: 48px;
  background: var(--coin);
  border: 3px solid var(--ink);
  cursor: pointer;
}
.drawer {
  background: var(--ink2);
  padding: 0.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.drawer[hidden] { display: none !important; }
.drawer a {
  font-family: var(--px);
  font-size: 12px;
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 0.75rem;
  border: 3px solid #333;
  background: #0a0a12;
}
.drawer a:hover { border-color: var(--coin2); color: var(--coin); }
@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .status-bar { font-size: 12px; }
  .status-bar .sub { font-size: 9px; }
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
  padding-bottom: 0;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  background: #fff;
  height: 22px;
  border: 3px solid var(--ink);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border: 3px solid var(--ink);
}
.c1 { width: 64px; top: 12%; left: 6%; }
.c1::before { width: 30px; height: 24px; top: -16px; left: 8px; }
.c1::after { width: 24px; height: 18px; top: -10px; left: 32px; }
.c2 { width: 80px; top: 8%; right: 10%; }
.c2::before { width: 36px; height: 26px; top: -18px; left: 12px; }
.c2::after { width: 28px; height: 20px; top: -12px; left: 44px; }
.c3 { width: 50px; top: 28%; left: 48%; opacity: 0.85; }
.c3::before { width: 24px; height: 18px; top: -12px; left: 6px; }
.c3::after { width: 20px; height: 14px; top: -8px; left: 24px; }

.bush {
  position: absolute;
  bottom: 48px;
  width: 70px; height: 28px;
  background: #00b800;
  border: 3px solid var(--ink);
  border-radius: 40px 40px 0 0;
}
.bush::before {
  content: "";
  position: absolute;
  width: 36px; height: 30px;
  background: #00b800;
  border: 3px solid var(--ink);
  border-radius: 50%;
  top: -18px; left: 14px;
}
.b1 { left: 4%; }
.b2 { right: 18%; width: 90px; }

.hill {
  position: absolute;
  bottom: 48px;
  width: 120px; height: 48px;
  background: #80d010;
  border: 3px solid var(--ink);
  border-radius: 60px 60px 0 0;
  opacity: 0.9;
}
.h1 { left: 22%; }
.h2 { right: 2%; width: 160px; height: 60px; }

.hero-grid {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1rem 1.25rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: end;
    padding-top: 2.25rem;
  }
}

.panel {
  background: rgba(252, 252, 252, 0.96);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.15rem 1.2rem 1.25rem;
}
.panel.dark {
  background: #0a0a18;
  color: var(--white);
  box-shadow: 6px 6px 0 var(--coin2);
}

.hud-label {
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.4;
  display: inline-block;
  background: var(--coin);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 0.45rem 0.6rem;
  margin: 0 0 0.85rem;
}

.hero h1, .sec-head h2, .crew-copy h2, .book-copy h2 {
  font-family: var(--px);
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.crew-copy h2, .book-copy h2 { color: inherit; }

.lead, .sec-lead, .crew-copy p, .book-copy p {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--ink);
  cursor: pointer;
  color: #fff;
}
.btn.sm { min-height: 44px; padding: 0.7rem 0.85rem; font-size: 12px; width: 100%; }
.btn-red {
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: #fff;
}
.btn-red:hover { background: #000; color: var(--coin); }
.btn-pipe {
  background: var(--pipe);
  box-shadow: 4px 4px 0 var(--pipe-rim);
  color: #fff;
}
.btn-pipe:hover { background: #000; color: #7dff7d; }
.btn:focus-visible {
  outline: 3px solid var(--coin);
  outline-offset: 3px;
}
.pipe-ico {
  width: 14px; height: 18px;
  background: var(--pipe2);
  border: 2px solid var(--ink);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 4px 0 var(--pipe);
  position: relative;
}
.pipe-ico::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; top: -4px; height: 6px;
  background: var(--pipe2);
  border: 2px solid var(--ink);
}

.meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.meter div {
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--coin2);
  padding: 0.55rem 0.35rem;
  text-align: center;
}
.meter b {
  display: block;
  font-family: var(--px);
  font-size: 12px;
  color: var(--coin);
  line-height: 1.3;
}
.meter span {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-stage { position: relative; }
.blocks-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.brick {
  width: 28px; height: 28px;
  background: var(--brick);
  border: 2px solid var(--ink);
  box-shadow: inset -3px -3px 0 var(--brick3), inset 3px 3px 0 var(--brick2);
}

.hero-art, .crew-art {
  margin: 0;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.45);
  background: var(--ink);
  overflow: hidden;
}
.hero-art img, .crew-art img, .world-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  image-rendering: auto;
}
.hero-art figcaption, .crew-art figcaption {
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.4;
  padding: 0.65rem 0.75rem;
  background: var(--ink);
  color: var(--coin);
  text-align: center;
}

.pipe-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.5rem;
  margin-top: 0.65rem;
  min-height: 56px;
}
.pipe {
  position: relative;
  width: 44px;
  background: var(--pipe);
  border: 3px solid var(--ink);
  /* full outline — no single-side accent */
}
.pipe::before {
  content: "";
  position: absolute;
  left: -8px; right: -8px; top: -10px;
  height: 14px;
  background: var(--pipe2);
  border: 3px solid var(--ink);
}
.p-sm { height: 36px; }
.p-md { height: 52px; width: 52px; }
.p-lg { height: 70px; width: 60px; }
.p-cta {
  width: 72px;
  height: 88px;
  margin: 1rem 0;
}

.ground-strip {
  height: 44px;
  background: var(--brick3);
  border: 4px solid var(--ink);
  position: relative;
}
.ground-strip::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 50%;
  background: var(--ground-top);
  border-bottom: 3px solid var(--ink);
  pointer-events: none;
}
.ground-strip.dark {
  background: #5a2a08;
}
.ground-strip.dark::before { background: #3d1c04; }

/* sections */
.section { padding: 2.75rem 0 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem 2.5rem; }
.sec-head { margin-bottom: 1.5rem; max-width: 40rem; }

.worlds { background: #e8f0ff; }
.world-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 820px) {
  .world-grid { grid-template-columns: repeat(3, 1fr); }
}
.world-card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--brick);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.world-thumb { position: relative; background: var(--sky); }
.world-thumb .flag {
  position: absolute;
  top: 0.55rem; left: 0.55rem;
  font-family: var(--px);
  font-size: 12px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  padding: 0.35rem 0.45rem;
  line-height: 1.3;
}
.world-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.world-body h3 {
  font-family: var(--px);
  font-size: 13px;
  margin: 0;
  line-height: 1.35;
}
.world-body p {
  margin: 0;
  font-size: 1.25rem;
  flex: 1;
}
.world-body ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 1.15rem;
}
.world-body li { margin-bottom: 0.2rem; }

/* crew */
.crew {
  background: var(--night);
  color: var(--white);
  padding-bottom: 2.5rem;
}
.crew-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .crew-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.powerups {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.powerups li {
  border: 3px solid #2a2a60;
  background: #000040;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.star { color: var(--coin); font-family: var(--px); font-size: 12px; line-height: 1.6; }

/* playbook */
.playbook { background: #dce6f8; }
.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .beats { grid-template-columns: repeat(2, 1fr); }
}
.beats li {
  display: flex;
  gap: 0.85rem;
  background: var(--white);
  border: 4px solid var(--ink);
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--sky2);
}
.beats .n {
  font-family: var(--px);
  font-size: 12px;
  color: var(--red);
  line-height: 1.4;
  flex-shrink: 0;
}
.beats h3 {
  font-family: var(--px);
  font-size: 12px;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.beats p { margin: 0; font-size: 1.2rem; }

/* book */
.book {
  background: var(--brick3);
  padding: 2rem 0 2.5rem;
}
.book-frame {
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 820px) {
  .book-frame {
    grid-template-columns: 0.85fr 1.15fr;
    padding: 1.75rem;
  }
}
.book-copy .wa {
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--coin);
  border: 3px solid var(--ink);
  display: inline-block;
  padding: 0.55rem 0.65rem;
}
.inquiry { display: grid; gap: 0.8rem; }
.inquiry label { display: grid; gap: 0.35rem; }
.inquiry label span {
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.4;
}
.inquiry input,
.inquiry select,
.inquiry textarea {
  font-family: var(--bd);
  font-size: 1.3rem;
  padding: 0.7rem 0.75rem;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  width: 100%;
}
.inquiry textarea { min-height: 100px; resize: vertical; }
.inquiry input:focus-visible,
.inquiry select:focus-visible,
.inquiry textarea:focus-visible {
  outline: 3px solid var(--coin2);
  outline-offset: 2px;
}
.form-msg { min-height: 1.3em; margin: 0; font-size: 1.2rem; color: var(--pipe3); }
.form-msg.err { color: var(--red2); }

.foot {
  background: #000;
  color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 0 0 3px var(--coin2);
}
.foot p { margin: 0 0 0.35rem; font-size: 1.15rem; }
.foot .fine { opacity: 0.75; font-size: 1rem; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coins i, .q-block.big { animation: none; }
}
