:root {
  --navy: #0a1f3f;
  --blue: #0a7fd6;
  --sky: #e6f3fd;
  --pink: #e83e8c;
  --blush: #fde9f2;
  --yellow: #f8b400;
  --green: #4cc26b;
  --bg: #fffdf8;
  --line: #ece6dc;
  --muted: #5e6a80;
  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16.5px/1.65 var(--body); color: var(--navy); background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.pink { color: var(--pink); } .blue { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 700 .95rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); margin: 0 0 8px; }
.eyebrow.light { color: var(--yellow); }
.btn { display: inline-block; font: 700 1.05rem var(--head); text-decoration: none; background: var(--blue); color: #fff; border: 0; border-radius: 16px; padding: 13px 26px; cursor: pointer; box-shadow: 0 5px 0 #075ea0; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #075ea0; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #075ea0; }
.btn-soft { background: var(--blush); color: var(--pink); box-shadow: 0 5px 0 #f6c3da; }
.btn-soft:hover { box-shadow: 0 7px 0 #f6c3da; }
.btn-full { width: 100%; }

.topbar { background: var(--navy); color: #d6e3f5; font-size: .82rem; font-weight: 500; }
.topbar-in { display: flex; justify-content: space-between; gap: 6px 20px; padding: 8px 20px; flex-wrap: wrap; }
.topbar-in span::before { content: '★'; color: var(--yellow); margin-right: 7px; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,253,248,.95); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 30px; height: 82px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font: 700 1.05rem var(--head); }
.nav a:hover { color: var(--blue); }
.cart { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); }
.cart b { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-size: .74rem; display: grid; place-items: center; padding: 0 5px; transition: transform .2s; }
.cart b.bump { transform: scale(1.35); }

/* hero */
.hero { padding: 50px 0 80px; background: radial-gradient(600px 360px at 85% 30%, var(--sky), transparent 70%), radial-gradient(500px 300px at 60% 90%, var(--blush), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 16px 4px 4px; font-weight: 700; font-size: .92rem; }
.badge span { background: var(--yellow); border-radius: 999px; padding: 3px 12px; font-family: var(--head); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 20px 0 30px; max-width: 32em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-watch { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-stage { position: relative; width: min(440px, 92vw); padding: 0 0 40px 60px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: 36px; box-shadow: 0 24px 50px rgba(10,31,63,.18); }
.hero-stage .watch { position: absolute; left: 0; bottom: 0; width: 46%; filter: drop-shadow(0 14px 20px rgba(10,31,63,.25)); }
.watch { width: min(330px, 80vw); }
.watch svg, .game-clock svg { width: 100%; height: auto; display: block; overflow: visible; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.theme { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .15s; }
.theme:hover { transform: scale(1.08); }
.theme[aria-checked=true] { box-shadow: 0 0 0 3px var(--blue); }
.hand { transition: transform .3s cubic-bezier(.3,1.4,.6,1); }

/* products */
.products { padding: 80px 0; background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.filters { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 .95rem var(--head); border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 2px solid var(--line); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; animation: pop .3s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.pic { border-radius: 18px; padding: 14px 0 6px; display: grid; place-items: center; margin-bottom: 12px; }
.pic svg { width: 62%; height: auto; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tags span { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.tags .t-learn { background: var(--blush); color: var(--pink); }
.tags .t-age { background: #fff4d6; color: #9a6b00; }
.card h3 { font-size: 1.15rem; }
.card .desc { font-size: .9rem; color: var(--muted); margin: 4px 0 14px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font: 800 1.45rem var(--head); }
.add { font: 700 .95rem var(--head); border: 0; background: var(--pink); color: #fff; border-radius: 12px; padding: 8px 16px; cursor: pointer; }
.add:hover { background: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* learn */
.learn { padding: 90px 0; }
.learn-in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.learn-copy > p { color: var(--muted); }
.levels { display: flex; flex-direction: column; gap: 8px; margin: 22px 0; max-width: 320px; }
.levels button { font: 700 1rem var(--head); text-align: left; border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 14px; padding: 10px 16px; cursor: pointer; }
.levels button[aria-pressed=true] { border-color: var(--yellow); background: #fff4d6; }
.stars { font: 700 1.2rem var(--head); }
#starIcons { color: var(--yellow); letter-spacing: 2px; }
.game { background: var(--sky); border-radius: 32px; padding: 26px; max-width: 440px; width: 100%; margin: 0 auto; }
.ask { text-align: center; font: 700 1.1rem var(--head); margin: 0 0 10px; color: var(--muted); }
.ask b { font-size: 1.9rem; color: var(--navy); }
.game-clock { width: min(260px, 70vw); margin: 0 auto 16px; }
.ctrl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ctrl button { font: 700 1rem var(--head); border: 0; border-radius: 12px; padding: 10px 4px; background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 3px 0 #c9dff2; }
.ctrl button:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9dff2; }
.feedback { text-align: center; font: 700 1.1rem var(--head); margin: 12px 0 0; min-height: 1.6em; }
.feedback.ok { color: #1f8f45; } .feedback.no { color: var(--pink); }

/* ages */
.ages { padding: 20px 0 90px; }
.age-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; margin-top: 30px; align-items: stretch; }
.age-photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 50% 40%; border-radius: 24px; }
.age-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.age-grid article { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 24px; }
.age { display: inline-block; font: 800 1.6rem var(--head); color: #fff; background: var(--blue); border-radius: 14px; padding: 2px 14px; margin-bottom: 12px; }
.age-grid article:nth-child(2) .age { background: var(--pink); }
.age-grid article:nth-child(3) .age { background: var(--green); }
.age-grid article:nth-child(4) .age { background: var(--navy); }
.age-grid p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }

/* store */
.store { background: var(--navy); color: #fff; padding: 90px 0; }
.store-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; }
.store-copy p { color: #c7d4ea; }
.years { margin-top: 24px; font-weight: 500; }
.store-photo { margin-top: 26px; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: 24px; border: 4px solid rgba(255,255,255,.12); }
.years b { display: block; font: 800 4rem var(--head); color: var(--yellow); line-height: 1; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-grid article { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px; }
.svc-grid span { font-size: 1.6rem; }
.svc-grid h3 { font-size: 1.1rem; margin-top: 6px; }
.svc-grid p { color: #c7d4ea; font-size: .88rem; margin: 6px 0 0; }

/* faq */
.faq { padding: 90px 0; }
.faq-in { display: grid; grid-template-columns: 1fr 1.8fr; gap: 50px; }
.contact { margin-top: 22px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 2px; }
.contact span { color: var(--muted); }
.contact a { color: var(--blue); font-weight: 700; }
.faq-list details { background: #fff; border: 2px solid var(--line); border-radius: 18px; margin-bottom: 10px; padding: 0 20px; }
.faq-list summary { list-style: none; cursor: pointer; font: 700 1.1rem var(--head); padding: 14px 34px 14px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 8px; font-size: 1.6rem; color: var(--pink); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 16px; color: var(--muted); }

/* footer */
.footer { background: #fff; border-top: 2px solid var(--line); padding: 40px 0; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; }
.footer .brand img { height: 64px; }
.slogan { margin: 0; text-align: right; font: 700 1.1rem var(--head); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--blue); }
.copy { margin: 0; text-align: right; color: var(--muted); font-size: .88rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 16px; font-weight: 700; transition: transform .3s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero-in, .learn-in, .store-in, .faq-in { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-wrap { grid-template-columns: 1fr; }
  .age-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-in { justify-content: center; font-size: .75rem; }
  .topbar-in span:nth-child(n+3) { display: none; }
  .nav { display: none; }
  .header-in { justify-content: space-between; height: 68px; }
  .brand img { height: 48px; }
  .hero { padding: 30px 0 56px; }
  .products, .learn, .store, .faq { padding: 64px 0; }
  .ages { padding: 0 0 64px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; }
  .slogan, .copy { text-align: left; }
}
@media (max-width: 520px) {
  .grid, .age-grid { grid-template-columns: 1fr; }
  .hero-stage { padding-left: 40px; }
  .game { padding: 18px; }
  .ctrl button { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hand, .card, .btn { transition: none; animation: none; } }
