/* PIXEL-RETROS — neon arcade theme */
:root {
  --bg: #0a0a12;
  --bg-elev: #12121f;
  --bg-card: #161628;
  --purple: #b44dff;
  --purple-dim: #6b2d9b;
  --teal: #2ef5c8;
  --teal-dim: #1a9e82;
  --pink: #ff4d9a;
  --yellow: #ffe566;
  --text: #e8e6f0;
  --muted: #8a879a;
  --border: rgba(180, 77, 255, 0.35);
  --glow-p: 0 0 12px rgba(180, 77, 255, 0.65), 0 0 28px rgba(180, 77, 255, 0.25);
  --glow-t: 0 0 12px rgba(46, 245, 200, 0.55);
  --font-pixel: "Press Start 2P", monospace;
  --font-ui: "VT323", monospace;
  --radius: 4px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* CRT + grid */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 18, 0.2) 0%, var(--bg) 70%),
    linear-gradient(rgba(180, 77, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 245, 200, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0;
  transform: perspective(400px) rotateX(12deg) scale(1.2);
  transform-origin: center top;
  opacity: 0.55;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-shadow: var(--glow-t);
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  background: rgba(10, 10, 18, 0.92);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
}

.logo-tag {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.logo-glitch {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--purple);
  text-shadow: var(--glow-p);
  position: relative;
}

.logo-glitch.small {
  font-size: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.cart-btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  box-shadow: var(--glow-t);
}

.cart-btn:hover {
  background: rgba(46, 245, 200, 0.12);
}

.cart-count {
  display: inline-block;
  min-width: 1.25rem;
  margin-left: 0.25rem;
  color: var(--yellow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.9rem 1.2rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: var(--glow-p);
}

.btn-primary:hover {
  background: #c46bff;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--glow-t);
}

.btn-ghost:hover {
  background: rgba(46, 245, 200, 0.1);
  color: var(--teal);
}

.btn-small {
  font-size: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border: 2px solid var(--pink);
  color: var(--pink);
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.pixel-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--yellow);
  border: 1px dashed var(--yellow);
  padding: 0.4rem 0.6rem;
  margin: 0 0 1rem;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3.5vw, 1.75rem);
  line-height: 1.55;
}

.hero h1 .line {
  display: block;
}

.neon-purple {
  color: var(--purple);
  text-shadow: var(--glow-p);
}

.neon-teal {
  color: var(--teal);
  text-shadow: var(--glow-t);
}

.neon-pink {
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 77, 154, 0.7);
}

.hero-sub {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--teal);
}

.hero-stats span {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.pixel-frame {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border: 3px solid var(--purple);
  box-shadow: var(--glow-p), inset 0 0 40px rgba(180, 77, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(46, 245, 200, 0.08), transparent 50%),
    var(--bg-elev);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.pixel-sprite {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  background:
    linear-gradient(var(--teal) 0 0) 20px 8px / 56px 8px,
    linear-gradient(var(--teal) 0 0) 12px 16px / 72px 8px,
    linear-gradient(var(--purple) 0 0) 12px 24px / 72px 32px,
    linear-gradient(var(--bg) 0 0) 28px 32px / 12px 12px,
    linear-gradient(var(--bg) 0 0) 56px 32px / 12px 12px,
    linear-gradient(var(--pink) 0 0) 36px 48px / 24px 8px,
    linear-gradient(var(--purple) 0 0) 4px 56px / 16px 24px,
    linear-gradient(var(--purple) 0 0) 76px 56px / 16px 24px,
    linear-gradient(var(--teal) 0 0) 28px 72px / 16px 16px,
    linear-gradient(var(--teal) 0 0) 52px 72px / 16px 16px;
  background-repeat: no-repeat;
  animation: bob 2s ease-in-out infinite;
}

.blink {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--teal);
  animation: blink 1.1s step-end infinite;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-dark {
  max-width: none;
  background: linear-gradient(180deg, rgba(22, 22, 40, 0.9), rgba(10, 10, 18, 0.95));
  border-block: 2px solid var(--border);
}

.section-dark > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-pixel);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-head .num {
  color: var(--pink);
  margin-right: 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.35rem;
}

/* Filters + products */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}

.filter:hover,
.filter.active {
  color: var(--bg);
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: var(--glow-t);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-p);
}

.product-thumb {
  aspect-ratio: 1;
  border: 1px solid rgba(46, 245, 200, 0.2);
  background: #000;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(46, 245, 200, 0.35));
}

.product-emoji.big {
  font-size: 4rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  padding: 0.75rem;
}

.product-img.big {
  max-height: 220px;
  width: auto;
  margin: 0 auto;
}

.heat {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  padding: 0.3rem 0.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--muted);
  color: var(--muted);
}

.heat-hot {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 8px rgba(255, 77, 154, 0.45);
}

.heat-warm {
  border-color: var(--yellow);
  color: var(--yellow);
}

.source-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}

.source-pill {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--teal);
  border: 1px solid rgba(46, 245, 200, 0.35);
  padding: 0.25rem 0.35rem;
}

.demand-line {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--yellow);
}

.demand-detail {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.demand-detail strong {
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}

.shop-note {
  margin: 0.75rem 0 0 !important;
  font-size: 1.1rem !important;
  color: var(--muted) !important;
  max-width: 60ch;
}

.shop-note strong {
  color: var(--teal);
  font-weight: normal;
}

.product-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  margin: 0;
  line-height: 1.5;
  min-height: 2.4em;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.price {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--yellow);
}

.tag {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-actions {
  display: flex;
  gap: 0.4rem;
}

.product-actions .btn {
  flex: 1;
  font-size: 0.45rem;
  padding: 0.65rem 0.4rem;
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-elev);
  border: 2px solid var(--border);
  padding: 1.25rem;
}

.game-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  margin: 0 0 0.5rem;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 77, 154, 0.5);
}

.game-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.arcade-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arcade-card .power-hint {
  margin: 0 0 0.75rem;
  color: var(--yellow);
  font-size: 1.05rem;
}

.arcade-card .btn {
  align-self: flex-start;
  text-decoration: none;
}

.power-tease {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--teal);
  background: rgba(46, 245, 200, 0.08);
  color: var(--teal);
  font-size: 1.05rem;
  line-height: 1.4;
}

.game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#snake-canvas {
  width: min(320px, 100%);
  height: auto;
  background: #05050a;
  border: 2px solid var(--teal);
  box-shadow: var(--glow-t);
  image-rendering: pixelated;
  touch-action: none;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  width: min(320px, 100%);
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--muted);
}

.game-hud strong {
  color: var(--teal);
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.dpad-mid {
  display: flex;
  gap: 1.5rem;
}

.dpad button {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.85rem;
  background: var(--bg);
  border: 2px solid var(--purple);
  color: var(--purple);
  cursor: pointer;
}

.dpad button:active {
  background: var(--purple);
  color: #fff;
}

.prize-msg {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--yellow);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(255, 229, 102, 0.5);
  margin: 0;
}

/* Memory */
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  width: min(320px, 100%);
}

.memory-card {
  aspect-ratio: 1;
  border: 2px solid var(--purple-dim);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.memory-card:hover:not(.matched):not(.flipped) {
  border-color: var(--teal);
}

.memory-card.flipped,
.memory-card.matched {
  border-color: var(--teal);
  background: rgba(46, 245, 200, 0.08);
}

.memory-card.matched {
  opacity: 0.55;
  cursor: default;
}

.memory-card .face {
  display: none;
}

.memory-card.flipped .face,
.memory-card.matched .face {
  display: block;
}

.memory-card .back {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--purple);
}

.memory-card.flipped .back,
.memory-card.matched .back {
  display: none;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step {
  border: 2px solid var(--border);
  background: var(--bg-card);
  padding: 1.25rem;
}

.step-num {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

/* Prizes */
.prize-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.prize-list,
.prize-form {
  border: 2px solid var(--border);
  background: var(--bg-elev);
  padding: 1.25rem;
}

.prize-form label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.prize-row {
  display: flex;
  gap: 0.5rem;
}

.prize-row input {
  flex: 1;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--teal);
  text-transform: uppercase;
}

.prize-row input:focus {
  outline: none;
  border-color: var(--teal);
}

.prize-feedback {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  color: var(--yellow);
}

.prize-code-item {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--yellow);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 229, 102, 0.25);
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 2px solid var(--border);
  display: grid;
  gap: 1rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text);
}

.copy {
  font-size: 0.95rem !important;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(380px, 100%);
  height: 100%;
  background: var(--bg-elev);
  border-left: 2px solid var(--purple);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.55);
}

.cart-head,
.cart-foot {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-foot {
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  margin: 0;
  color: var(--purple);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(180, 77, 255, 0.15);
}

.cart-line h4 {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  margin: 0;
  line-height: 1.5;
}

.cart-line .line-price {
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}

.cart-line .qty-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.cart-line button {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  margin-bottom: 0.75rem;
}

.cart-total strong {
  color: var(--yellow);
}

.cart-discount {
  color: var(--teal);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.empty-cart {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
}

/* Modal */
.product-modal {
  border: 2px solid var(--purple);
  background: var(--bg-elev);
  color: var(--text);
  padding: 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: var(--glow-p);
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}

.product-modal {
  position: relative;
}

/* Checkout */
.checkout-modal {
  border: 2px solid var(--purple);
  background: var(--bg-elev);
  color: var(--text);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 1.5rem);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  box-shadow: var(--glow-p);
}

.checkout-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.checkout-panel {
  padding: 1.25rem 1.35rem 1.5rem;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.checkout-head h2 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  margin: 0;
  color: var(--purple);
  text-shadow: var(--glow-p);
}

.checkout-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.checkout-summary {
  border: 1px solid var(--border);
  background: #000;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-list li,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.1rem;
  padding: 0.25rem 0;
  color: var(--muted);
}

.summary-list li span:last-child,
.summary-row span:last-child {
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  white-space: nowrap;
}

.summary-row.total {
  border-top: 1px dashed rgba(180, 77, 255, 0.35);
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  color: var(--text);
}

.summary-row.total span:first-child {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: var(--muted);
}

.order-form input,
.order-form textarea {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  padding: 0.55rem 0.65rem;
  background: #000;
  border: 2px solid var(--border);
  color: var(--text);
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.7fr;
  gap: 0.5rem;
}

.pay-pref {
  border: 1px solid var(--border);
  margin: 0.25rem 0;
  padding: 0.65rem 0.75rem;
}

.pay-pref legend {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: var(--muted);
  padding: 0 0.35rem;
}

.pay-pref .radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0.25rem 0;
  cursor: pointer;
}

.form-error {
  margin: 0;
  color: var(--pink);
  font-size: 1.1rem;
}

.confirm-lead {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

.confirm-id {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--teal);
  text-shadow: var(--glow-t);
  margin: 0 0 0.75rem;
}

.order-receipt {
  background: #000;
  border: 1px solid var(--border);
  padding: 0.85rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 220px;
  margin: 0 0 1rem;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.confirm-actions .btn {
  flex: 1;
  min-width: 7rem;
  font-size: 0.45rem;
  padding: 0.75rem 0.5rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-body .big-thumb {
  text-align: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(46, 245, 200, 0.2);
  padding: 1.5rem;
  background: #000;
  min-height: 200px;
  display: grid;
  place-items: center;
}

.modal-body h3 {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.modal-body .price {
  display: block;
  margin-bottom: 0.75rem;
}

.modal-body p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-elev);
  border: 2px solid var(--teal);
  color: var(--teal);
  box-shadow: var(--glow-t);
  max-width: 90vw;
  text-align: center;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 1rem !important;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shine {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-art {
    order: -1;
  }

  .prize-panel {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 18, 0.98);
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .cart-btn {
    padding: 0.9rem 1.25rem;
    border: none;
    box-shadow: none;
    text-align: left;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Neon 2048 */
.n2048-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  width: min(280px, 100%);
  background: #0a0018;
  border: 2px solid rgba(255, 0, 255, 0.45);
  padding: 0.4rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}
.n2048-board .t {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: #1a0033;
  color: #e0ffe8;
  border: 1px solid rgba(0, 255, 255, 0.2);
}
.n2048-board .t.empty { color: transparent; }
.n2048-board .t-2 { background: #2a1050; color: #00ffff; }
.n2048-board .t-4 { background: #3a1860; color: #00ffcc; }
.n2048-board .t-8 { background: #5a2080; color: #ff00ff; }
.n2048-board .t-16 { background: #7a2898; color: #fff; }
.n2048-board .t-32 { background: #9a30a0; color: #fff; }
.n2048-board .t-64 { background: #c040b0; color: #fff; }
.n2048-board .t-128,
.n2048-board .t-256,
.n2048-board .t-512,
.n2048-board .t-1024,
.n2048-board .t-2048 {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000;
  font-size: 0.45rem;
}
