/* ═══════════════════════════════════════════════════════════════════
   NINTENDO TOYBOX — design system
   Fridge-magnet colour universe on one spring-loaded page.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --red: #e60012;
  --red-deep: #b3000e;
  --ink: #17171f;
  --paper: #fffdf8;
  --cream: #fff6e8;
  --sky: #bde3ff;
  --blue: #0b8fe8;
  --yellow: #ffd400;
  --pink: #ff8fd0;
  --green: #46c93e;
  --teal: #17d1ae;
  --violet: #7a5cff;

  --floodA: #ffffff;
  --floodB: #ffe9ee;

  --font: "Geologica", "Geologica Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-l: 28px;
  --radius-m: 18px;
  --shadow-pop: 0 10px 0 0 rgba(23, 23, 31, 0.9);
  --shadow-pop-sm: 0 6px 0 0 rgba(23, 23, 31, 0.9);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-variation-settings: "wght" 500;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(255, 212, 0, 0.16), transparent 60%),
    radial-gradient(1000px 700px at -10% 8%, rgba(11, 143, 232, 0.14), transparent 60%),
    linear-gradient(180deg, var(--floodA), var(--floodB));
  transition: background 0.9s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* per-world colour floods */
body[data-world="mario"]          { --floodA: #ffe1d9; --floodB: #ffd0bd; }
body[data-world="zelda"]          { --floodA: #dff4e3; --floodB: #f4ecc9; }
body[data-world="kirby"]          { --floodA: #ffe0f1; --floodB: #ffd2ea; }
body[data-world="pokemon"]        { --floodA: #dcebff; --floodB: #fff3bf; }
body[data-world="animalcrossing"] { --floodA: #e8f7d7; --floodB: #faf3da; }
body[data-world="splatoon"]       { --floodA: #e2fdf5; --floodB: #ffdfea; }
body[data-world="switch2"]        { --floodA: #ffe2e2; --floodB: #ffd6d6; }
body[data-world="toybox"]         { --floodA: #ffffff; --floodB: #ffe9ee; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ═══════════ TOYBOX LID ═══════════ */
#lid {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(900px 500px at 50% 118%, var(--red-deep), transparent 70%),
    linear-gradient(180deg, #ff2b3d, var(--red));
  display: grid; place-items: center;
  transform-origin: 50% 0%;
  transform: perspective(1200px) rotateX(0deg);
  transition: transform 0.85s cubic-bezier(0.6, -0.28, 0.2, 1.2), opacity 0.6s 0.55s;
}
#lid.open {
  transform: perspective(1200px) rotateX(-78deg) translateY(-40%);
  opacity: 0; pointer-events: none;
}
.lid-flap { text-align: center; color: #fff; }
.lid-logo svg { width: min(46vw, 300px); color: #fff; filter: drop-shadow(0 8px 0 rgba(90, 0, 6, 0.55)); }
.lid-tag { margin-top: 22px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; opacity: 0.92; }
.lid-dots i { display: inline-block; animation: lidDot 1.1s infinite; font-style: normal; }
.lid-dots i:nth-child(2) { animation-delay: 0.18s; }
.lid-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes lidDot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }

/* ═══════════ NAV SHELF ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease-overshoot);
}
.nav.on { transform: translateY(0); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo svg { width: 88px; color: var(--red); }
.nav-logo-word {
  font-weight: 900; letter-spacing: 0.22em; font-size: 13px;
  font-variation-settings: "wght" 900;
  color: var(--ink);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-chip {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 999px;
  font-variation-settings: "wght" 700;
  transition: background 0.2s, color 0.2s;
}
.nav-chip:hover { background: var(--ink); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.wishlist-pill {
  display: flex; align-items: center; gap: 7px;
  border: 3px solid var(--ink); background: #fff; color: var(--red);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-pop-sm);
}
.wishlist-pill.filled { background: var(--red); color: #fff; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 14px;
  background: #fff; cursor: pointer; box-shadow: var(--shadow-pop-sm);
  align-items: center;
}
.nav-burger span { width: 20px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-overshoot), opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-badges {
  position: absolute; right: 18px; top: calc(var(--nav-h) + 8px);
  display: flex; gap: 6px; pointer-events: none;
}
.nav-badges img {
  width: 38px; height: 38px; object-fit: contain;
  opacity: 0; transform: translateY(-14px) scale(0.6);
  transition: opacity 0.45s var(--ease-overshoot), transform 0.45s var(--ease-overshoot);
  filter: drop-shadow(0 3px 0 rgba(23, 23, 31, 0.35));
}
body[data-world="mario"] .nav-badges [data-badge="mario"],
body[data-world="zelda"] .nav-badges [data-badge="zelda"],
body[data-world="kirby"] .nav-badges [data-badge="kirby"],
body[data-world="switch2"] .nav-badges [data-badge="switch2"],
body[data-world="pokemon"] .nav-badges [data-badge="pokemon"],
body[data-world="animalcrossing"] .nav-badges [data-badge="mario"],
body[data-world="splatoon"] .nav-badges [data-badge="kirby"] {
  opacity: 1; transform: translateY(0) scale(1);
}

.nav-drawer[hidden] { display: none; }
.nav-drawer {
  position: fixed; z-index: 99; inset: var(--nav-h) 0 auto 0;
  background: var(--paper); border-bottom: 3px solid var(--ink);
  padding: 18px 22px 26px; display: flex; flex-direction: column; gap: 4px;
  animation: drawerIn 0.45s var(--ease-overshoot);
}
@keyframes drawerIn { from { transform: translateY(-16px); opacity: 0; } }
.drawer-link {
  text-decoration: none; font-weight: 800; font-size: 19px; padding: 12px 8px;
  border-bottom: 2px dashed rgba(23, 23, 31, 0.15);
}
.drawer-note { font-size: 13px; opacity: 0.6; padding-top: 12px; }

/* ═══════════ SPRING PRESS ═══════════ */
.spring-press { will-change: transform; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; font-weight: 800; overflow: hidden;
  font-variation-settings: "wght" 800; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop); cursor: pointer; transition: box-shadow 0.15s;
}
.btn:active { box-shadow: 0 3px 0 0 rgba(23, 23, 31, 0.9); }
.btn-primary { background: var(--red); color: #fff; }
.btn-invert { background: #fff; color: var(--red); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghostline { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 10px 0 0 rgba(0, 0, 0, 0.35); }
.btn-shine {
  position: absolute; top: -60%; left: -30%; width: 40px; height: 220%;
  background: rgba(255, 255, 255, 0.45); transform: rotate(20deg) translateX(-80px);
  transition: transform 0.6s ease;
}
.btn:hover .btn-shine { transform: rotate(20deg) translateX(340px); }
.btn-world { background: var(--ink); color: #fff; box-shadow: 0 10px 0 0 rgba(255, 255, 255, 0.28); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: calc(var(--nav-h) + 26px) 20px 0;
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(900px 420px at 12% 6%, rgba(255, 212, 0, 0.35), transparent 65%),
    radial-gradient(1000px 520px at 88% 2%, rgba(23, 209, 174, 0.3), transparent 65%),
    linear-gradient(180deg, var(--sky), #e9f6ff 45%, var(--cream));
}
.hero-sky .deco { position: absolute; pointer-events: none; }
.deco-cloud {
  width: 130px; height: 52px; background: #fff; border-radius: 60px;
  box-shadow: 34px -18px 0 8px #fff, 64px 4px 0 2px #fff;
  opacity: 0.9; animation: drift 16s ease-in-out infinite alternate;
}
.deco-1 { top: 16%; left: 6%; }
.deco-2 { top: 26%; right: 10%; animation-delay: -6s; transform: scale(0.7); }
.deco-ring {
  width: 84px; height: 84px; border: 14px solid var(--yellow); border-radius: 50%;
  top: 12%; right: 22%; opacity: 0.55; animation: bob 7s ease-in-out infinite;
}
.deco-blob {
  width: 60px; height: 60px; background: var(--pink); border-radius: 20px;
  top: 34%; left: 12%; rotate: 15deg; opacity: 0.65; animation: bob 9s ease-in-out infinite reverse;
}
@keyframes drift { to { transform: translateX(46px); } }
@keyframes bob { 50% { transform: translateY(-22px) rotate(8deg); } }

.hero-copy { position: relative; z-index: 3; text-align: center; max-width: 860px; }
.hero-eyebrow {
  display: inline-block; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-title {
  margin: 18px 0 14px; line-height: 0.95; letter-spacing: -0.02em;
  font-size: clamp(52px, 11vw, 128px); font-weight: 900;
  font-variation-settings: "wght" 900, "SHRP" 100;
}
.ht-word { display: inline-block; margin: 0 0.12em; }
.ht-word > span { display: inline-block; will-change: transform; }
.ht-lid { color: var(--red); text-shadow: 5px 5px 0 rgba(23, 23, 31, 0.14); }
.hero-sub { font-size: clamp(16px, 2.3vw, 20px); line-height: 1.55; max-width: 640px; margin: 0 auto; }
.hero-sub strong { color: var(--red); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.hero-toybox {
  position: relative; z-index: 2; width: min(1060px, 96vw); height: clamp(240px, 36vw, 380px);
  margin-top: -6px; pointer-events: none;
}
.toy { position: absolute; bottom: 30%; object-fit: contain; will-change: transform; filter: drop-shadow(0 18px 22px rgba(23, 23, 31, 0.25)); }
.toy-mario    { left: 2%;  width: clamp(140px, 24vw, 330px); }
.toy-zelda    { left: 19%; width: clamp(120px, 21vw, 300px); }
.toy-kirby    { left: 38%; width: clamp(100px, 17vw, 240px); }
.toy-inkling  { left: 52%; width: clamp(110px, 19vw, 280px); }
.toy-pikachu  { left: 71%; width: clamp(86px, 14vw, 190px); }
.toy-isabelle { left: 83%; width: clamp(88px, 15vw, 200px); }
.toybox-box {
  position: absolute; left: -4%; right: -4%; bottom: 0; height: 34%;
  background: var(--red);
  border: 4px solid var(--ink); border-radius: 26px 26px 0 0;
  box-shadow: inset 0 18px 0 rgba(255, 255, 255, 0.18);
}
.toybox-box::before {
  content: "NINTENDO TOYBOX";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 900; letter-spacing: 0.34em; font-size: clamp(11px, 1.6vw, 16px);
  font-variation-settings: "wght" 900; opacity: 0.9;
}
.toybox-front { position: absolute; inset: auto 6% -14px 6%; height: 16px; background: var(--red-deep); border-radius: 8px; }

.hero-stage { position: relative; z-index: 4; width: min(1120px, 96vw); margin: 26px auto 70px; }
.stage-track { list-style: none; position: relative; }
.stage-slide {
  position: absolute; inset: 0 0 auto 0; display: block;
  border: 4px solid var(--ink); border-radius: var(--radius-l); overflow: hidden;
  background: #fff; box-shadow: 0 18px 0 rgba(23, 23, 31, 0.85);
  opacity: 0; transform: translateY(60px) scale(0.94); pointer-events: none;
  transition: opacity 0.55s ease, transform 0.65s var(--ease-overshoot);
}
.stage-slide.active { position: relative; transform: none; opacity: 1; pointer-events: auto; }
.stage-slide img { width: 100%; height: auto; display: block; }
.stage-slide .stage-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(0deg, rgba(23, 23, 31, 0.78), transparent);
  color: #fff;
}
.stage-caption b { font-size: clamp(15px, 2.2vw, 20px); font-variation-settings: "wght" 800; }
.stage-caption span {
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.stage-caption i { font-style: normal; margin-left: auto; font-size: 13px; opacity: 0.9; max-width: 46ch; }
.stage-footer { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.stage-dots { display: flex; gap: 8px; }
.stage-dots button {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink);
  background: #fff; cursor: pointer; padding: 0; transition: transform 0.3s var(--ease-overshoot), background 0.2s;
}
.stage-dots button[aria-selected="true"] { background: var(--red); transform: scale(1.25); }
.stage-timer { flex: 1; height: 8px; border-radius: 6px; background: rgba(23, 23, 31, 0.12); overflow: hidden; }
.stage-timer i { display: block; height: 100%; width: 0; background: var(--red); }

.hero-scrollcue {
  display: none;
}

/* ═══════════ SECTION HEADERS ═══════════ */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 90px 20px 10px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--ink); color: var(--yellow);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 16px;
}
.kicker-invert { background: #fff; color: var(--red); }
.section-head h2, .switch2 h2, .store h2 {
  font-size: clamp(34px, 6vw, 60px); font-weight: 900; line-height: 1.04;
  font-variation-settings: "wght" 900; letter-spacing: -0.02em;
}
.section-head em, .switch2 em, .store em { font-style: normal; color: var(--red); }
.section-sub { margin-top: 14px; font-size: clamp(15px, 2vw, 18px); line-height: 1.6; opacity: 0.85; }

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(46px) scale(0.97); transition: opacity 0.7s ease, transform 0.7s var(--ease-overshoot); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ WORLDS ═══════════ */
.world { position: relative; margin: 34px auto; width: min(1180px, 94vw); }
.world-inner {
  border: 4px solid var(--ink); border-radius: 40px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center;
  background: var(--floodA);
  color: var(--ink);
  box-shadow: 0 20px 0 rgba(23, 23, 31, 0.85);
  position: relative;
}
.world-inner.flip { grid-template-columns: 1.15fr 1fr; }
.world-inner.flip .world-art { order: 2; }
.world-inner.flip .world-copy { order: 1; }

#world-mario .world-inner { background: linear-gradient(135deg, #e60012, #ff7a1a); color: #fff; }
#world-zelda .world-inner { background: linear-gradient(135deg, #0b3d2e, #12704a); color: #fdf6d8; }
#world-kirby .world-inner { background: linear-gradient(135deg, #ff8fd0, #ffc7e6); color: #57163a; }
#world-pokemon .world-inner { background: linear-gradient(135deg, #3565d8, #2b4ea0); color: #fff; }
#world-animalcrossing .world-inner { background: linear-gradient(135deg, #8fd44f, #d9f0b0); color: #29481c; }
#world-splatoon .world-inner { background: linear-gradient(135deg, #101020, #1d1d3a 55%, #123c3f); color: #e8fff8; }

.world-art { display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); position: relative; }
.world-art::before {
  content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: peel 9s ease-in-out infinite alternate;
}
#world-pokemon .world-art::before { background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); border-radius: 50%; animation: none; transform: rotate(-8deg); opacity: 0.85; }
#world-splatoon .world-art::before { background: var(--teal); border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%; animation: peel 7s ease-in-out infinite alternate; opacity: 0.5; }
@keyframes peel { to { transform: scale(1.08) rotate(10deg); } }
.world-art img { position: relative; width: min(78%, 480px); will-change: transform; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.28)); }

.world-copy { padding: clamp(24px, 4vw, 56px); position: relative; }
.world-flag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; background: rgba(255, 255, 255, 0.9); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}
#world-zelda .world-flag { background: var(--yellow); }
.world-name {
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; line-height: 1;
  font-variation-settings: "wght" 900; letter-spacing: -0.01em; margin-bottom: 14px;
}
.font-mario  { font-variation-settings: "wght" 900, "SHRP" 0; letter-spacing: 0.01em; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18); }
.font-zelda  { font-variation-settings: "wght" 300; letter-spacing: 0.14em; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 44px); color: var(--yellow); }
.font-kirby  { font-variation-settings: "wght" 600, "SHRP" 0, "CRSV" 1; letter-spacing: 0.04em; }
.font-pokemon { font-variation-settings: "wght" 900; letter-spacing: 0.02em; color: var(--yellow); text-shadow: 3px 3px 0 #2b4ea0; }
.font-ac     { font-variation-settings: "wght" 700, "CRSV" 1; }
.font-splat  { font-variation-settings: "wght" 900, "SHRP" 100; font-style: italic; letter-spacing: -0.03em; color: var(--teal); text-shadow: 3px 3px 0 #ff2e88; }
.world-copy p { line-height: 1.65; font-size: clamp(15px, 1.8vw, 18px); }

.world-feature {
  display: flex; gap: 14px; align-items: center; margin: 22px 0;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--radius-m); padding: 12px;
  box-shadow: var(--shadow-pop-sm);
}
.world-feature img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; }
.world-feature b { display: block; font-size: 15px; }
.world-feature span { font-size: 13px; opacity: 0.75; }

.world-beyond { text-align: center; padding: 30px 20px 60px; }
.world-beyond p { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 15px; opacity: 0.85; }
.beyond-badge { width: 44px; height: 44px; object-fit: contain; transition: transform 0.35s var(--ease-overshoot); }
.beyond-badge:hover { transform: translateY(-6px) rotate(-8deg) scale(1.15); }

/* ═══════════ DECK ═══════════ */
.deck-section { padding-bottom: 40px; }
.deck-stage {
  position: relative; width: min(1180px, 96vw); margin: 30px auto 0;
  border-radius: 44px; padding: clamp(24px, 4vw, 60px) 20px 26px;
  overflow: hidden;
}
.deck-felt {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 212, 0, 0.25), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(255, 143, 208, 0.3), transparent 36%),
    radial-gradient(circle at 60% 90%, rgba(23, 209, 174, 0.28), transparent 40%),
    linear-gradient(160deg, #26263a, var(--ink));
  border: 4px solid var(--ink); border-radius: 44px;
}
.deck-cards { position: relative; height: clamp(500px, 60vw, 620px); }
.card {
  position: absolute; left: 50%; top: 50%; width: clamp(230px, 30vw, 300px);
  translate: -50% -50%; transform-origin: center;
  border-radius: 24px; border: 4px solid var(--ink);
  background: var(--card-a, #fff); color: var(--card-ink, var(--ink));
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.45);
  padding: 14px 14px 12px; cursor: pointer; user-select: none; -webkit-user-drag: none;
  will-change: transform;
  touch-action: pan-y;
}
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-chip {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.78); color: #fff; border-radius: 999px; padding: 4px 10px;
}
.card-chip.light { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.card-art {
  background: #fff; border: 3px solid rgba(23, 23, 31, 0.85); border-radius: 16px;
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.card-art img { width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.card-name { font-size: clamp(15px, 1.9vw, 18px); font-weight: 800; margin: 12px 2px 4px; line-height: 1.2; font-variation-settings: "wght" 800; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin: 0 2px; font-size: 13px; opacity: 0.92; }
.card-rating { border: 2px solid currentColor; border-radius: 6px; padding: 1px 7px; font-weight: 800; font-size: 11px; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.card-price { font-weight: 900; font-size: 19px; font-variation-settings: "wght" 900; }
.card-tag { font-size: 12px; font-weight: 800; background: var(--yellow); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.card-wish {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--ink); background: #fff; color: var(--red);
  font-size: 17px; cursor: pointer; line-height: 1;
}
.card-wish.on { background: var(--red); color: #fff; }
.deck-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.deck-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink);
  background: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-pop-sm);
}
.deck-readout {
  position: relative; color: #fff; font-weight: 800; background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
  max-width: min(60vw, 460px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-hint { position: relative; text-align: center; color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-top: 12px; }

/* ═══════════ SWITCH 2 ═══════════ */
.switch2 { padding: 40px 0 70px; }
.switch2-inner {
  width: min(1180px, 94vw); margin: 0 auto;
  background: linear-gradient(120deg, var(--red), var(--red-deep) 70%);
  border: 4px solid var(--ink); border-radius: 44px; color: #fff;
  padding: clamp(28px, 4.5vw, 64px); box-shadow: 0 20px 0 rgba(23, 23, 31, 0.85);
}
.switch2 h2 { color: #fff; }
.switch2 em { color: var(--yellow); font-style: normal; }
.switch2 .section-sub { color: rgba(255, 255, 255, 0.9); max-width: 560px; }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.chip {
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 9px 16px; border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop-sm); cursor: default;
}
.switch2-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.switch2-hero { margin-top: 34px; }
.switch2-hero img { border-radius: 24px; border: 4px solid var(--ink); }
.switch2-hero figcaption { margin-top: 10px; font-size: 12.5px; opacity: 0.75; }

/* ═══════════ NEWS ═══════════ */
.news { padding-bottom: 30px; }
.news-rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 26px max(20px, calc((100vw - 1180px) / 2)) 30px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.news-rail::-webkit-scrollbar { display: none; }
.news-card {
  flex: 0 0 clamp(260px, 30vw, 340px); scroll-snap-align: start;
  background: #fff; border: 4px solid var(--ink); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-pop); will-change: transform;
}
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--ink); will-change: transform; }
.news-body { padding: 16px 18px 18px; }
.news-kicker { display: flex; gap: 8px; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.news-kicker span { background: var(--ink); color: var(--yellow); padding: 3px 10px; border-radius: 999px; }
.news-kicker time { color: rgba(23, 23, 31, 0.6); align-self: center; }
.news-body h3 { font-size: 16.5px; line-height: 1.35; font-variation-settings: "wght" 800; }
.news-controls { display: flex; gap: 12px; justify-content: center; }

/* ═══════════ BLADES ═══════════ */
.blades { padding: 50px 0; }
.blade-grid { width: min(1180px, 94vw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blade {
  background: #fff; border: 4px solid var(--ink); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-pop); padding-bottom: 18px;
  display: flex; flex-direction: column;
}
.blade img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-bottom: 4px solid var(--ink); }
.blade h3 { padding: 16px 18px 6px; font-size: 18px; font-variation-settings: "wght" 800; }
.blade p { padding: 0 18px 14px; font-size: 14px; line-height: 1.55; opacity: 0.8; }
.blade-cta {
  margin: auto 18px 0; align-self: flex-start; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 13px;
  border-radius: 999px; padding: 9px 18px;
}

/* ═══════════ STORE ═══════════ */
.store { padding: 30px 0 90px; }
.store-inner {
  width: min(1180px, 94vw); margin: 0 auto;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 212, 0, 0.5), transparent 40%),
    linear-gradient(135deg, var(--yellow), #ffb700);
  border: 4px solid var(--ink); border-radius: 44px; box-shadow: 0 20px 0 rgba(23, 23, 31, 0.85);
}
.store-ticket { padding: clamp(28px, 4.5vw, 64px); max-width: 720px; }
.store h2 em { color: var(--red-deep); }
.store-ticket > p { margin: 12px 0 24px; line-height: 1.6; font-size: 16.5px; }
.store-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.stat {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-m);
  padding: 14px 20px; box-shadow: var(--shadow-pop-sm); min-width: 130px;
}
.stat b { display: block; font-size: 30px; font-variation-settings: "wght" 900; color: var(--red); }
.stat span { font-size: 13px; font-weight: 700; opacity: 0.75; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--ink); color: #fff; border-top: 4px solid var(--ink); }
.footer-inner {
  width: min(1180px, 94vw); margin: 0 auto; padding: 54px 20px 30px;
  display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 34px; align-items: start;
}
.footer-brand svg { color: #fff; margin-bottom: 16px; }
.footer-note { font-size: 13px; line-height: 1.6; opacity: 0.65; max-width: 42ch; }
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.footer-cols a { display: block; color: #fff; opacity: 0.85; text-decoration: none; padding: 4px 0; font-size: 14.5px; }
.footer-cols a:hover { opacity: 1; color: var(--yellow); }
.btn-top { background: var(--red); color: #fff; white-space: nowrap; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 18px 20px; text-align: center; }
.footer-legal p { font-size: 12px; opacity: 0.55; }

/* ═══════════ CONFETTI CANVAS ═══════════ */
#confetti { position: fixed; inset: 0; z-index: 150; pointer-events: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-badges { right: 84px; }
  .world-inner, .world-inner.flip { grid-template-columns: 1fr; }
  .world-inner.flip .world-art { order: 0; }
  .world-inner.flip .world-copy { order: 1; }
  .blade-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .toy-pikachu { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .nav-logo svg { width: 70px; }
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero-ctas .btn { width: 100%; }
  .toy-isabelle { display: none; }
  .toy-mario   { left: 0;  width: 152px; }
  .toy-zelda   { left: 17%; width: 138px; }
  .toy-kirby   { left: 36%; width: 116px; }
  .toy-inkling { left: 55%; width: 128px; }
  .hero-toybox { height: 250px; }
  .stage-caption i { display: none; }
  .section-head { padding-top: 64px; }
  .world-feature span { font-size: 12px; }
  .card { width: min(74vw, 300px); }
  .deck-cards { height: 500px; }
  .store-stats { gap: 10px; }
  .stat { min-width: calc(50% - 10px); }
  .nav-badges { display: none; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #confetti { display: none; }
  #lid { display: none; }
  .stage-timer { display: none; }
}
