:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #1e2942;
  --muted: #4b5876;
  --coral: #ff5d73;
  --coral-deep: #d93b52;
  --sunny: #ffd447;
  --sunny-deep: #e0a800;
  --sky: #33a1ff;
  --sky-deep: #1576d6;
  --mint: #2ec486;
  --mint-deep: #1a9b65;
  --purple: #845ef7;
  --purple-deep: #623bd4;
  --border: #d9e2f2;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-toy: 0 8px 0 rgba(30, 41, 66, 0.1);
  --shadow-soft: 0 18px 40px rgba(30, 41, 66, 0.08);
  --font-display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--sky-deep);
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Soft playful backdrop blobs */
.studio-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
}

.blob--sun { width: 340px; height: 340px; background: #ffe380; top: -80px; left: -90px; }
.blob--sky { width: 420px; height: 420px; background: #bde4ff; top: 120px; right: -120px; }
.blob--berry { width: 320px; height: 320px; background: #ffd1dc; bottom: 18%; left: -100px; }
.blob--mint { width: 360px; height: 360px; background: #c3f7df; bottom: -100px; right: 5%; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1160px, calc(100% - 24px));
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 2.5px solid #e6ecf8;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(30, 41, 66, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 10px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 42px;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sky-deep);
}

.brand-fun {
  color: var(--coral);
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3c4;
  color: #7c5200;
  border: 1.5px solid #f7d66b;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.desktop-nav a:hover {
  background: #edf5ff;
  color: var(--sky-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--border);
  background: #f8faff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
}

.motion-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.motion-toggle[aria-pressed="true"] .motion-dot {
  background: #94a3b8;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--coral-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--coral-deep);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary svg {
  width: 22px;
  height: 22px;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: 52px;
  width: 220px;
  background: #fff;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 90;
}

.mobile-menu nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-menu nav a:hover {
  background: #eff6ff;
  color: var(--sky-deep);
}

/* Toy buttons */
.toy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.toy-btn--primary {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky-deep);
  box-shadow: 0 5px 0 var(--sky-deep);
}

.toy-btn--sunny {
  background: var(--sunny);
  color: #3a2600;
  border-color: var(--sunny-deep);
  box-shadow: 0 5px 0 var(--sunny-deep);
}

.toy-btn--small {
  font-size: 0.9rem;
  padding: 9px 16px;
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 4px 0 #cbd5e8;
}

.toy-btn--small.toy-btn--primary {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky-deep);
  box-shadow: 0 4px 0 var(--sky-deep);
}

.toy-btn--small.toy-btn--sunny {
  background: var(--sunny);
  color: #3a2600;
  border-color: var(--sunny-deep);
  box-shadow: 0 4px 0 var(--sunny-deep);
}

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

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

/* Hero */
.hero {
  padding: 42px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 32px;
  align-items: center;
}

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #ffe08a;
  box-shadow: 0 4px 12px rgba(224, 168, 0, 0.12);
  font-size: 0.85rem;
  font-weight: 800;
  color: #7c5200;
  margin-bottom: 16px;
}

.pill-star {
  color: #f59f00;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.highlight-coral {
  color: var(--coral-deep);
  background: #ffe3e8;
  padding: 0 10px;
  border-radius: 16px;
  display: inline-block;
}

.highlight-sky {
  color: var(--sky-deep);
  background: #dff1ff;
  padding: 0 10px;
  border-radius: 16px;
  display: inline-block;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-badges span {
  color: var(--mint-deep);
  margin-right: 4px;
}

/* Interactive Mascot Stage */
.stage-sky-card {
  background: linear-gradient(170deg, #e7f5ff 0%, #fff7df 58%, #e9fff4 100%);
  border: 3px solid #ffffff;
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 14px 0 rgba(51, 161, 255, 0.14), 0 24px 50px rgba(30, 41, 66, 0.12);
}

.stage-speech {
  background: #ffffff;
  border: 2.5px solid #cfe7ff;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  min-height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 0 #e2f0ff;
}

.mascot-parade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mascot-chip {
  background: #ffffff;
  border: 2.5px solid #e6ecf8;
  border-radius: 24px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 0 #dfe7f5;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chip-scene {
  display: grid;
  place-items: center;
}

.mascot-chip img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 18px;
}

.chip-scene--photo img {
  object-fit: cover;
  border: 3px solid #cfe7ff;
  box-shadow: 0 4px 10px rgba(30, 41, 66, 0.12);
}

.mascot-chip--polar {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8f4ff 0%, #fffaf2 100%);
  border-color: #decfff;
  box-shadow: 0 6px 0 #e4dafc;
  padding: 14px 16px;
}

.chip-duo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chip-duo img {
  width: 78px;
  height: 78px;
}

.duo-pair-pill {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #efe6ff;
  border: 2px solid #d4bfff;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

.chip-text-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mascot-chip:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--sky);
}

.mascot-chip.is-talking {
  border-color: var(--coral);
  box-shadow: 0 6px 0 #ffc2cc;
  transform: translateY(-3px);
}

.chip-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.chip-sub {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 96px;
}

.stage-ground {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.quest-meter {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quest-count {
  background: #fff3c4;
  color: #7c5200;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.stage-jump {
  text-decoration: none;
  color: var(--sky-deep);
  font-weight: 800;
  white-space: nowrap;
}

/* Gentle float animations (respects reduced motion) */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

body:not(.reduced-motion) .mascot-chip--polar .duo-fire {
  animation: bob 3.2s ease-in-out infinite;
}

body:not(.reduced-motion) .mascot-chip--polar .duo-frost {
  animation: bob 3.6s ease-in-out 0.4s infinite;
}

body:not(.reduced-motion) .mascot-chip--dino img {
  animation: bob 3.4s ease-in-out 0.8s infinite;
}

/* Section Headings */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 8px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.55rem);
  margin-bottom: 10px;
}

.section-lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.04rem;
}

/* Games Section */
.games-section {
  padding: 40px 0 56px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.game-card {
  background: var(--surface);
  border: 3px solid #e6ecf8;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 0 #e2eaf6, var(--shadow-soft);
  transition: transform 0.16s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card--jigsaw { border-color: #bfe2ff; box-shadow: 0 10px 0 #cfe8ff, var(--shadow-soft); }
.game-card--polar { border-color: #d7c9ff; box-shadow: 0 10px 0 #e2d8ff, var(--shadow-soft); }
.game-card--diny { border-color: #bdebd5; box-shadow: 0 10px 0 #ccf2e0, var(--shadow-soft); }

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(30, 41, 66, 0.15);
  flex-shrink: 0;
}

.game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-icon--trim {
  transform: scale(1.15);
}

.game-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge--blue { background: #e3f2ff; color: #0e5cad; }
.badge--purple { background: #efe9ff; color: #522ec2; }
.badge--coral { background: #ffe6ea; color: #b5243b; }
.badge--mint { background: #e0f9ee; color: #11754b; }

.game-art-banner {
  border-radius: 20px;
  padding: 14px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.game-art-banner--jigsaw {
  background: linear-gradient(135deg, #e7f4ff 0%, #fff4d6 100%);
}

.mini-transform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-transform img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 14px rgba(30, 41, 66, 0.12);
}

.transform-arrow {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--sky-deep);
}

.puzzle-overlay-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.puzzle-overlay-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.65) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255,255,255,0.65) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.game-art-banner--polar {
  background: linear-gradient(135deg, #56329e 0%, #7d4cc9 100%);
  color: #fff;
}

.banner-sprite {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.clue-token {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.clue-token--eq { background: #ffd447; color: #543700; }
.clue-token--ne { background: #3dd9ff; color: #05384d; }

.game-art-banner--diny {
  background: linear-gradient(135deg, #d7f7e7 0%, #fff6d1 100%);
}

.banner-sprite--dino {
  width: 96px;
  height: 96px;
}

.banner-sprite--egg {
  width: 60px;
  height: 74px;
}

.game-card h3 {
  font-size: 1.38rem;
}

.game-tagline {
  margin: -6px 0 0;
  font-weight: 800;
  color: var(--sky-deep);
  font-size: 0.95rem;
}

.game-card--polar .game-tagline { color: var(--purple-deep); }
.game-card--diny .game-tagline { color: var(--mint-deep); }

.game-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.game-facts {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  gap: 4px;
}

.game-actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 2px dashed #e6ecf8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-link {
  display: inline-block;
  width: fit-content;
}

.store-link img {
  height: 44px;
  width: auto;
}

.store-note {
  margin: -2px 0 0;
  min-height: 34px;
  font-size: 0.79rem;
  line-height: 1.35;
  color: var(--muted);
}

.game-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.game-sublinks a {
  text-decoration: none;
  color: var(--muted);
}

.game-sublinks a:hover {
  color: var(--sky-deep);
  text-decoration: underline;
}

.try-pill {
  background: #fff3c4;
  color: #6b4700;
  border: 1.5px solid #f5cf5b;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.84rem;
}

.try-pill:hover {
  background: var(--sunny);
}

/* Interactive Arcade Playground */
.playground-section {
  padding: 34px 0 56px;
}

.arcade-console {
  background: #ffffff;
  border: 3px solid #d5e5ff;
  border-radius: 34px;
  padding: 24px;
  box-shadow: 0 12px 0 #dbe9ff, var(--shadow-soft);
}

.cartridge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.cartridge-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 2.5px solid var(--border);
  background: #f6f9ff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 0 #dfe7f5;
}

.tab-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.cartridge-tab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-icon--trim {
  transform: scale(1.15);
}

.cartridge-tab.is-active {
  background: #e5f3ff;
  border-color: var(--sky);
  box-shadow: 0 4px 0 #b8dcff;
  color: #0b4c8c;
}

.tab-check {
  font-size: 0.9rem;
  color: var(--mint-deep);
}

.toy-panel[hidden] {
  display: none;
}

.toy-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.toy-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.toy-info p {
  color: var(--muted);
  margin: 0 0 16px;
}

.toy-status {
  background: #f4f8ff;
  border: 2px solid #d8e7ff;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.toy-status.is-won {
  background: #e3fbef;
  border-color: var(--mint);
  color: #0d6a42;
}

.toy-status.is-error {
  background: #fff0f2;
  border-color: #ff9aa8;
  color: #a61c33;
}

.toy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toy-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #f8fbff;
  border: 2.5px dashed #cfe0fa;
  border-radius: 26px;
  padding: 20px;
}

/* Mini Jigsaw */
.mini-jigsaw-board {
  display: grid;
  grid-template-columns: repeat(2, 112px);
  grid-template-rows: repeat(2, 112px);
  gap: 6px;
  background: #dfecff;
  padding: 10px;
  border-radius: 20px;
}

.jigsaw-slot {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  border: 2.5px dashed #93b7eb;
  background-color: rgba(255, 255, 255, 0.72);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.jigsaw-slot.is-filled {
  border-style: solid;
  border-color: var(--mint);
  background-image: url("assets/cat.png");
  background-size: 224px 224px;
}

.jigsaw-slot[data-slot="0"].is-filled { background-position: 0 0; }
.jigsaw-slot[data-slot="1"].is-filled { background-position: -112px 0; }
.jigsaw-slot[data-slot="2"].is-filled { background-position: 0 -112px; }
.jigsaw-slot[data-slot="3"].is-filled { background-position: -112px -112px; }

.jigsaw-tray {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
}

.jigsaw-piece {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 0 #c5d6f0;
  background-image: url("assets/cat.png");
  background-size: 144px 144px;
}

.jigsaw-piece[data-piece="0"] { background-position: 0 0; }
.jigsaw-piece[data-piece="1"] { background-position: -72px 0; }
.jigsaw-piece[data-piece="2"] { background-position: 0 -72px; }
.jigsaw-piece[data-piece="3"] { background-position: -72px -72px; }

.jigsaw-piece.is-selected {
  border-color: var(--coral);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 7px 0 #ffa9b5;
}

/* Mini Polar Doku Board */
.polar-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 62px);
  grid-template-rows: repeat(4, 62px);
  gap: 10px;
  background: #4e2b8f;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 8px 0 #371c6b;
}

.polar-cell {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 2.5px solid #754ec2;
  background: #fff8eb;
  display: grid;
  place-items: center;
  padding: 6px;
}

.polar-cell.is-fixed {
  background: #efe6ff;
  border-color: #bfa6ff;
  cursor: default;
}

.polar-cell img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.polar-clue {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.polar-clue--eq { background: #ffd447; color: #543700; }
.polar-clue--ne { background: #3dd9ff; color: #05384d; }

/* Mini Diny Doku Board */
.diny-board {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  grid-template-rows: repeat(4, 64px);
  gap: 6px;
  background: #ffffff;
  padding: 12px;
  border-radius: 22px;
  border: 3px solid #e4dccf;
  box-shadow: 0 8px 0 #e6ded0;
}

.diny-cell {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  padding: 4px;
}

.diny-cell--a { background: #e877a8; }
.diny-cell--b { background: #4c86ad; }
.diny-cell--c { background: #6c8e58; }
.diny-cell--d { background: #f2be42; }

.diny-cell.is-fixed {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.75);
  cursor: default;
}

.diny-cell.is-conflict {
  box-shadow: inset 0 0 0 4px #ff2e4c;
}

.diny-cell img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Studio Pillars */
.about-section {
  padding: 26px 0 54px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 2.5px solid #e6ecf8;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.pillar-card--warm { background: #fff7e6; border-color: #ffe09e; }
.pillar-card--sky { background: #ecf6ff; border-color: #bfe0ff; }
.pillar-card--mint { background: #eafbf3; border-color: #b7edd2; }

.pillar-emoji {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
}

/* Support Hub */
.support-hub {
  padding: 14px 0 56px;
}

.hub-card {
  background: #ffffff;
  border: 3px solid #d5e6ff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 10px 0 #dcebff, var(--shadow-soft);
}

.hub-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.hub-kitty {
  width: 74px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.hub-intro h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 6px;
}

.hub-intro p {
  margin: 0;
  color: var(--muted);
}

.email-link {
  font-weight: 800;
  color: var(--sky-deep);
}

.hub-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-game-links {
  background: #f7faff;
  border: 2px solid #e1ecff;
  border-radius: 18px;
  padding: 16px;
}

.hub-game-links h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.hub-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hub-game-links p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hub-game-links a {
  text-decoration: none;
}

.hub-game-links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 2.5px solid #e6ecf8;
  background: #ffffff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--sky-deep);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .games-grid,
  .toy-layout,
  .pillars-grid,
  .hub-links-grid {
    grid-template-columns: 1fr;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

  .motion-toggle {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 24px;
  }

  .mascot-chip img {
    width: 70px;
    height: 70px;
  }

  .hub-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-jigsaw-board {
    grid-template-columns: repeat(2, 94px);
    grid-template-rows: repeat(2, 94px);
  }

  .jigsaw-slot {
    width: 94px;
    height: 94px;
  }

  .jigsaw-slot.is-filled {
    background-size: 188px 188px;
  }

  .jigsaw-slot[data-slot="1"].is-filled { background-position: -94px 0; }
  .jigsaw-slot[data-slot="2"].is-filled { background-position: 0 -94px; }
  .jigsaw-slot[data-slot="3"].is-filled { background-position: -94px -94px; }

  .polar-board {
    grid-template-columns: repeat(4, 54px);
    grid-template-rows: repeat(4, 54px);
    gap: 8px;
  }

  .polar-cell {
    width: 54px;
    height: 54px;
  }

  .polar-cell img {
    width: 36px;
    height: 36px;
  }

  .diny-board {
    grid-template-columns: repeat(4, 56px);
    grid-template-rows: repeat(4, 56px);
  }

  .diny-cell {
    width: 56px;
    height: 56px;
  }

  .diny-cell img {
    width: 42px;
    height: 42px;
  }
}
