:root {
  --panel: #3f4650;
  --panel-dark: #2b3138;
  --panel-light: #65707b;
  --line: #15191d;
  --text: #f1f5f9;
  --muted: #b6c0cc;
  --diamond: #62e7e8;
  --gold: #ffda70;
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #0e1113 0%, #15191d 100%);
  color: var(--text);
  font-family: "Press Start 2P", system-ui, monospace;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
body { position: relative; overflow-x: hidden; }
.bg-grid, .bg-vignette { position: fixed; inset: 0; pointer-events: none; }
.bg-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(41,195,223,0.10), transparent 40%);
  background-size: 32px 32px, 32px 32px, auto;
}
.bg-vignette {
  background: radial-gradient(circle at top, rgba(98,231,232,0.08), transparent 28%), radial-gradient(circle at bottom, rgba(0,0,0,0.45), transparent 55%);
}
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.topbar { padding-top: 18px; }
.site-main { padding: 18px 0 48px; }
.mc-panel, .mc-inset, .mc-button, input { border-radius: 0; }
.mc-panel {
  background: var(--panel);
  border: 4px solid var(--line);
  box-shadow: inset 4px 4px 0 0 var(--panel-light), inset -4px -4px 0 0 var(--panel-dark), 0 8px 0 0 #0b0d0f, 0 18px 30px var(--shadow);
}
.mc-inset {
  background: #262b31;
  border: 4px solid #111519;
  box-shadow: inset 4px 4px 0 0 #505861, inset -4px -4px 0 0 #1a1f24;
}
.brandbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px;
}
.brand-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; image-rendering: pixelated; }
.brand-kicker, .hero-overline, .lookup-label, .helper-title, .sprite-caption { font-size: 10px; line-height: 1.6; color: var(--diamond); }
.brand-name { font-size: 18px; line-height: 1.3; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mc-button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 4px solid #101418; background: #6b737d; color: #fff; padding: 14px 18px; min-height: 52px; cursor: pointer;
  box-shadow: inset 4px 4px 0 0 #97a1ab, inset -4px -4px 0 0 #4c535c, 0 6px 0 0 #090b0d;
  transition: transform 0.08s ease, filter 0.08s ease;
}
.mc-button:hover { filter: brightness(1.05); }
.mc-button:active { transform: translateY(2px); box-shadow: inset 4px 4px 0 0 #97a1ab, inset -4px -4px 0 0 #4c535c, 0 4px 0 0 #090b0d; }
.mc-button:disabled { opacity: 0.45; cursor: not-allowed; }
.mc-button.primary { background: #4bb6cc; box-shadow: inset 4px 4px 0 0 #8cedf2, inset -4px -4px 0 0 #267e8c, 0 6px 0 0 #090b0d; }
.mc-button.dark { background: #48525d; }
.mc-button.mini { min-height: 44px; padding: 10px 14px; font-size: 10px; }
.hero {
  margin-top: 18px; padding: 18px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: center;
}
.hero-media { padding: 20px; text-align: center; }
.sprite-frame {
  min-height: 330px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(98,231,232,0.12), rgba(0,0,0,0) 32%), linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0) 60%), #181d22;
  border: 4px solid #101418; box-shadow: inset 4px 4px 0 0 #44515d, inset -4px -4px 0 0 #11161b;
}
.hero-sprite { width: min(100%, 300px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 0 rgba(0,0,0,0.28)); animation: bob 2.6s steps(2, end) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-copy h1 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 54px); line-height: 1.25; }
.hero-copy h1 span, .price-highlight { color: var(--gold); }
.hero-tag, .section-heading p, .helper-box p, .status-line { font-size: 12px; line-height: 1.9; color: var(--muted); }
.hero-blurbs { display: grid; gap: 12px; margin: 22px 0 0; }
.mc-note {
  background: #2b3138; border: 4px solid #13171b; padding: 14px; font-size: 12px; line-height: 1.9;
  box-shadow: inset 4px 4px 0 0 #5c6672, inset -4px -4px 0 0 #20262c;
}
.mc-note.warn strong, .mc-note.warn { color: #ffd694; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.lab { margin-top: 22px; padding: 18px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 38px); line-height: 1.4; }
.lookup-wrap { margin-top: 18px; padding: 16px; }
.lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 12px; }
input {
  width: 100%; min-width: 0; border: 4px solid #111519; background: #1d2328; color: #fff; padding: 16px;
  box-shadow: inset 4px 4px 0 0 #3d464f, inset -4px -4px 0 0 #12171b; font-size: 12px;
}
input::placeholder { color: #93a0ad; }
.status-line { margin-top: 14px; padding: 14px 16px; }
.lab-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) 320px; gap: 16px; align-items: start; }
.preview-card, .action-card { padding: 16px; }
#posterCanvas { width: 100%; height: auto; display: block; background: #111; border: 4px solid #0d1115; image-rendering: pixelated; }
.action-stack { display: grid; gap: 12px; }
.helper-box {
  margin-top: 18px; background: #1d2228; border: 4px solid #111519; box-shadow: inset 4px 4px 0 0 #46515b, inset -4px -4px 0 0 #161c21; padding: 14px;
}
@media (max-width: 980px) { .hero, .lab-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .brandbar, .lookup-row { grid-template-columns: 1fr; display: grid; }
  .brandbar { justify-content: stretch; }
  .nav-links { justify-content: flex-start; }
  .hero-copy h1 { font-size: 30px; }
  .brand-name { font-size: 14px; }
  .hero-tag, .section-heading p, .helper-box p, .status-line, .mc-note, input { font-size: 10px; }
}
