:root {
  --ink: #1b2430;
  --ink-soft: #3d4b5c;
  --cream: #dff4ff;
  --white: #ffffff;
  --mango: #ffd23a;
  --mango-deep: #e0a400;
  --coral: #ff3b5c;
  --coral-deep: #c81e3a;
  --grape: #7b3ff2;
  --grape-deep: #5420b8;
  --aqua: #12b5a0;
  --sky: #7ecbff;
  --grass: #5cbf38;
  --dirt: #8a5530;
  --line: #1b2430;
  --shadow: 5px 5px 0 #1b2430;
  --radius: 16px;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: #b9e6ff;
  background-image:
    linear-gradient(#8fd4ff 0%, #d9f4ff 42%, #e7fff0 100%);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; display: block; }
a { color: var(--grape); font-weight: 800; }
h1, h2, h3, .brand strong, .btn, .price, .fact-kicker, .footer-brand, .sticker, .line-price {
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.05rem, 8vw, 4.2rem); line-height: 0.98; margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
h3 { margin: 0; font-size: 1.35rem; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 50;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap, .header-inner, .fact-wrap, .footer-inner {
  width: min(1120px, calc(100% - 1.25rem));
  margin-inline: auto;
}

#fact-slot, main, .site-footer { position: relative; z-index: 1; }
.skip { z-index: 50; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(#dff6ff, #c5ecff);
  border-bottom: 0;
}
.site-header::after {
  content: "";
  display: block;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 3px, transparent 3px 16px),
    linear-gradient(#74dc45 0 10px, #8a5530 10px 16px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 58px;
  height: 68px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(3px 3px 0 #1b2430);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.25rem; }
.brand-text small { color: var(--ink-soft); font-weight: 800; }

.nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav a[aria-current="page"] {
  background: #2f9bff;
  color: white;
}

.count {
  background: var(--coral);
  color: white;
  border-radius: 999px;
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.85rem;
  text-align: center;
}

.fact-wrap { padding-top: 0.9rem; }
.fact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  background: white;
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.fact-kicker { margin: 0; color: var(--coral); font-size: 1.15rem; }
.fact-copy { flex: 1 1 240px; font-weight: 750; }
.fact-chip {
  margin: 0;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 800;
  font-size: 0.95rem;
}
.topic-minecraft { background: #c8f5a8; color: #1d6b12; border: 3px solid #1d6b12; }
.topic-roblox { background: #d7efff; color: #0b63c9; border: 3px solid #0b63c9; }
.topic-msm { background: #f3d9ff; color: #6d28d9; border: 3px solid #6d28d9; }

.hero, .about-hero, .watch-hero, .product-layout, .watch-split, .basket-grid {
  display: grid;
  gap: 1.5rem;
}

.hero { align-items: center; padding: 1.6rem 0 0.4rem; }
.kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  color: #1d6b12;
  text-transform: uppercase;
  letter-spacing: 0;
  font-family: "Press Start 2P", "Nunito", sans-serif;
  font-size: 0.68rem;
  line-height: 1.7;
}
.kicker-light { color: #ffe08a; }
.lede { font-size: 1.2rem; max-width: 38rem; color: var(--ink-soft); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }

.btn {
  border: 3px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  color: white;
  font-size: 1.05rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active, .btn.is-squished { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-coral { background: var(--coral); }
.btn-grape { background: var(--grape); }
.btn-mango { background: var(--mango); color: var(--ink); }
.btn-ghost { background: white; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.45rem 0.9rem; font-size: 1rem; }

.hero-frame { position: relative; }
.hero-frame img, .watch-photo, .product-photo img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: white;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--grass);
}
.hero-frame img { aspect-ratio: 16 / 10; }
.sticker {
  position: absolute;
  left: -0.2rem;
  bottom: 1.2rem;
  margin: 0;
  background: var(--mango);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

.section-head, .page-intro { padding-top: 2.2rem; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}
.section-head p { flex: 1 1 100%; }
.section-head p, .page-intro .lede { margin-top: 0.35rem; }

.tiles, .info-grid, .steps, .toy-grid {
  display: grid;
  gap: 1rem;
}
.tiles { grid-template-columns: 1fr; margin-bottom: 0.5rem; }
.toy-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 0.5rem;
}
.tile, .info-grid article, .step, .panel, .note-panel, .toy-card, .world {
  background: white;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
  padding: 1.1rem 1.2rem;
  min-height: 140px;
  justify-content: flex-end;
}
.tile span { font-size: 2rem; }
.tile small { color: var(--ink-soft); font-weight: 800; }
.tile-squishy { background: #fff3bf; }
.tile-dumpling { background: #ffe0ea; }
.tile-pack { background: #e7fbf6; }

.toy-card { overflow: hidden; }
.toy-media { position: relative; display: block; }
.toy-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff8ee;
}
.tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 800;
  transform: rotate(-3deg);
}
.toy-body { padding: 0.95rem 1rem 1.1rem; display: grid; gap: 0.35rem; }
.toy-body h3 a { color: inherit; text-decoration: none; }
.toy-body p { color: var(--ink-soft); font-weight: 700; }
.eyebrow { color: var(--aqua); font-weight: 800; font-size: 0.95rem; margin: 0; }
.price { color: var(--ink); font-size: 1.4rem; }
.price-large { font-size: 2rem; }
.price-row, .qty-row, .qty-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.watch-band {
  margin-top: 2.4rem;
  background: #5b2db8;
  color: white;
  padding: 2rem 0;
  border-block: 4px solid var(--ink);
}
.watch-band h2, .watch-band p { color: white; }
.watch-band .wrap { display: grid; gap: 1.2rem; align-items: center; }
.watch-band img {
  width: 100%;
  border-radius: 18px;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 #ffd23a;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-bottom: 2.5rem;
}
.video-frame {
  background: white;
  border: 4px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #2a2142;
}
.video-frame h2 {
  font-size: 1.25rem;
  padding: 0.85rem 1rem 0.2rem;
}
.video-frame p { padding: 0 1rem 0.4rem; color: var(--ink-soft); font-weight: 700; }
.video-link { padding-bottom: 1rem; }

.steps { list-style: none; padding: 0; margin: 0 0 2rem; }
.step, .info-grid article, .panel, .note-panel { padding: 1.15rem 1.2rem; }
.step span, .qty-stepper button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mango);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: "Lilita One", sans-serif;
  font-size: 1.3rem;
}
.step h3, .info-grid h2 { margin-bottom: 0.3rem; }
.steps-section { padding-bottom: 2.5rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.filter {
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.filter[aria-current="page"] { background: #2f9bff; color: white; }

.page-intro { padding-bottom: 1rem; }
.product { padding-top: 1.2rem; }
.back-link { margin: 0 0 0.8rem; }
.product-photo img { border-radius: 32px; aspect-ratio: 1; box-shadow: var(--shadow); border-width: 6px; }
.buy-box { display: grid; align-content: start; gap: 0.75rem; }
.quiet { color: var(--ink-soft); font-weight: 700; font-size: 1rem; }
.squish { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 800; }
.dots { display: flex; gap: 0.3rem; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: #efe8dc; }
.dot.is-on { background: var(--coral); }
.qty-row input, .field input, .field textarea {
  width: 100%;
  border: 3px solid #efe6d8;
  background: #fffaf3;
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}
.qty-row input { max-width: 6rem; }

.watch-hero, .about-hero { align-items: center; padding-top: 1.5rem; }
.watch-photo { aspect-ratio: 16 / 10; box-shadow: 0 16px 0 #ff8fb5; }
.about-hero img {
  width: min(280px, 78vw);
  max-width: 280px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  justify-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(6px 6px 0 #1b2430);
}
.info-grid { padding: 1.5rem 0 2rem; }
.note-panel { margin-bottom: 2.5rem; display: grid; gap: 0.7rem; background: #fff7d6; }

.basket-grid { align-items: start; padding-bottom: 2.5rem; }
.panel { display: grid; gap: 0.8rem; }
.pile-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 3px dashed #f3e6d4;
}
.pile-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 18px; }
.pile-copy { display: grid; gap: 0.2rem; min-width: 0; }
.pile-copy h3 { overflow-wrap: anywhere; }
.pile-copy h3 a { color: inherit; text-decoration: none; }
.pile-copy p { color: var(--ink-soft); font-weight: 800; }
.pile-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem; }
.panel .actions { flex-direction: column; align-items: stretch; }
.panel .btn { width: 100%; }
.line-price { font-size: 1.25rem; color: var(--ink); }
.qty-stepper button {
  border: 0;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--mango-deep);
}
.qty-stepper span { min-width: 1.2rem; text-align: center; font-weight: 800; }
.text-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--coral);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  display: inline-flex;
  align-items: center;
}
.total { display: flex; justify-content: space-between; font-size: 1.25rem; }
.field { display: grid; gap: 0.3rem; }
.field label, .check { font-weight: 800; }
.field label span { color: var(--ink-soft); font-weight: 700; }
.field-row { display: grid; gap: 0.8rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--grape); }
.errors {
  background: #ffe4ec;
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  color: #9f1239;
  font-weight: 800;
}
.errors p + p { margin-top: 0.25rem; }
.preview-label { margin-top: 0.4rem; }
.preview {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Nunito", sans-serif;
  background: #fffaf3;
  border-radius: 16px;
  padding: 0.9rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.sent-box {
  background: #e7fbf6;
  border-radius: 18px;
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.empty-pile {
  min-height: 50vh;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 0.7rem;
  padding: 2rem 0 3rem;
}
.empty-pile img {
  width: min(200px, 62vw);
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(5px 5px 0 #1b2430);
}

.site-footer {
  margin-top: 1rem;
  background: var(--dirt);
  color: #fff6e8;
  padding: 1.4rem 0 1.2rem;
  border-top: 14px solid var(--grass);
  box-shadow: inset 0 8px 0 #4eae2c;
}
.site-footer a { color: #ffe56a; display: block; margin-top: 0.35rem; }
.footer-inner { display: grid; gap: 1.3rem; }
.footer-brand { font-size: 1.5rem; color: white; }
.footer-label { color: #ffe56a; font-weight: 800; }
.fine-print {
  width: min(1120px, calc(100% - 1.25rem));
  margin: 1.2rem auto 0;
  color: #ffe8c7;
  font-weight: 700;
}
.noscript {
  margin: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  z-index: 40;
  transition: transform 0.2s ease;
  max-width: calc(100% - 2rem);
}
.toast.is-on { transform: translateX(-50%) translateY(0); }

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
}

.sky-bits {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 74px;
  height: 22px;
  background: white;
  border: 3px solid var(--ink);
  box-shadow: 22px -14px 0 -3px white, 22px -14px 0 0 var(--ink), 48px -6px 0 -3px white, 48px -6px 0 0 var(--ink);
}
.cloud-a { top: 18%; left: 4%; }
.cloud-b { top: 8%; right: 6%; }
.float-note {
  position: absolute;
  color: #7b3ff2;
  font-size: 2rem;
  font-family: "Lilita One", sans-serif;
  text-shadow: 3px 3px 0 white;
}
.n1 { top: 28%; right: 8%; }
.n2 { top: 62%; left: 6%; }
.float-block {
  position: absolute;
  top: 70%;
  right: 7%;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  background: linear-gradient(#74dc45 0 16px, #8a5530 16px 42px);
}
.world-grid { display: grid; gap: 1rem; }
.world { padding: 1rem 1.05rem 1.15rem; display: grid; gap: 0.35rem; align-content: start; }
.world h3 { font-size: 1.35rem; }
.grass-block, .buddy {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  display: block;
}
.grass-block { background: linear-gradient(#74dc45 0 22px, #8a5530 22px 58px); }
.world-robo { background: #e7f4ff; }
.world-song { background: #f8e9ff; }
.world-mine { background: #e9ffe0; }
.buddy {
  position: relative;
  border-radius: 14px;
  background: #ffd23a;
}
.buddy::before,
.buddy::after {
  content: "";
  position: absolute;
}
.buddy::before {
  left: 12px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: #1b2430;
  border-radius: 50%;
  box-shadow: 22px 0 0 #1b2430;
}
.buddy::after {
  left: 16px;
  top: 32px;
  width: 22px;
  height: 8px;
  border-bottom: 3px solid #1b2430;
  border-radius: 0 0 12px 12px;
}
.song-notes {
  font-family: "Lilita One", sans-serif;
  font-size: 2rem;
  color: #7b3ff2;
  line-height: 1;
}
.fan-note {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.95rem;
}

@media (max-width: 1099px) {
  .sky-bits { display: none; }
}

@media (max-width: 699px) {
  .nav { width: 100%; }
  .nav a { flex: 1 1 calc(50% - 0.4rem); }
  .brand img { width: 48px; height: 56px; }
  .fact-bar { align-items: stretch; }
  #new-fact, .actions .btn, .buy-box > .btn, .empty-pile .btn, .note-panel .btn { width: 100%; }
  .hero-frame img, .watch-photo { box-shadow: 5px 5px 0 var(--grass); }
  .watch-band img { box-shadow: 5px 5px 0 #ffd23a; }
  .sticker { left: 0.6rem; bottom: 0.8rem; }
}

@media (min-width: 700px) {
  .wrap, .header-inner, .fact-wrap, .footer-inner, .fine-print {
    width: min(1120px, calc(100% - 2rem));
  }
  .tiles, .info-grid, .steps, .world-grid { grid-template-columns: repeat(3, 1fr); }
  .hero, .watch-split, .watch-hero, .about-hero, .product-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .basket-grid { grid-template-columns: 1.05fr 0.95fr; }
  .footer-inner { grid-template-columns: 1.3fr 0.7fr 1.2fr; }
}


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