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

:root {
  --cream: #fffaf0;
  --paper: #ffffff;
  --sky: #38b6ff;
  --coral: #ff5964;
  --sun: #ffd23f;
  --mint: #2ec4b6;
  --grape: #8338ec;
  --ink: #1e1b4b;
  --ink-soft: #433878;
  --ink-muted: #5b567a;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 22px;
  --max-w: 1180px;
  --font-display: ui-rounded, "Quicksand", "Nunito", "Hiragino Maru Gothic ProN", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(30, 27, 75, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  line-height: 1.55;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img, canvas, svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.sticker-tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 2px 9px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 0.96rem;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.14s ease;
}

.nav-links a:hover {
  background: #fef08a;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

/* Chunky toy buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
  border-radius: 11px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-coral { background: var(--coral); color: #ffffff; }
.btn-sun   { background: var(--sun);   color: var(--ink); }
.btn-sky   { background: var(--sky);   color: var(--ink); }
.btn-mint  { background: var(--mint);  color: var(--ink); }
.btn-grape { background: var(--grape); color: #ffffff; }

.btn.is-active {
  outline: 3px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
}

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

.hero-card {
  background: linear-gradient(135deg, #fff4cc 0%, #e0f4ff 55%, #ffe6eb 100%);
  border: var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.7vw, 3.6rem);
  line-height: 1.07;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero h1 .pop {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 6px;
  text-underline-offset: 4px;
}

.hero-lead {
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 26px;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.fun-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fun-pill {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.86rem;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-head {
  margin-bottom: 26px;
  max-width: 64ch;
}

.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin: 0 0 8px;
  line-height: 1.12;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  font-weight: 600;
}

/* Arcade Game Grid */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 3px solid var(--ink);
}

.tint-sky   { background: #d6f0ff; }
.tint-mint  { background: #d1fae5; }
.tint-sun   { background: #fef3c7; }
.tint-coral { background: #ffe4e6; }
.tint-grape { background: #ede9fe; }
.tint-peach { background: #ffedd5; }

.game-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
}

.score-pill {
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.game-stage {
  background: #f1f5f9;
  border-bottom: 3px solid var(--ink);
  min-height: 220px;
}

.game-stage fresh-applet {
  display: block;
  width: 100%;
}

.game-bar {
  padding: 13px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper);
}

.game-tip {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Creative Possibilities Cards */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.idea-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.idea-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 13px;
  font-size: 1.35rem;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.idea-card h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.idea-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

/* Philosophy & Big Dreams */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0 0 14px;
}

.happy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.happy-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink-soft);
}

.happy-bullet {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 28px 0 42px;
  border-top: 3px solid var(--ink);
  background: #fef3c7;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Responsive */
@media (max-width: 980px) {
  .arcade-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .ideas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    padding: 16px 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .hero-card {
    padding: 26px 20px;
  }
  .ideas-grid {
    grid-template-columns: 1fr;
  }
}
