/* Zugli website: one stylesheet, self-hosted fonts (no third-party requests on a kids' product site). */
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('fonts/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --night: #2a1748; --plum: #4b2a7b; --ink: #2a1748; --muted: #5d4f78;
  --saffron: #f6a21a; --magenta: #e2297a; --turquoise: #19b8c9; --leaf: #6cbf3a; --sun: #ffd45e;
  --paper: #fff8ec; --card: #ffffff; --line: rgba(42, 23, 72, 0.12);
  --radius: 22px; --shadow: 0 10px 30px rgba(42, 23, 72, 0.16);
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.05rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(42, 23, 72, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.35rem var(--head); }
.brand img { width: auto; height: 44px; max-width: 60vw; }
.hero-logo { width: min(360px, 72vw); height: auto; margin: 0 0 18px; filter: drop-shadow(0 8px 24px rgba(42, 23, 72, 0.55)); }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.lang { color: var(--sun) !important; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--night) url('img/hero.webp') center 62% / cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,23,72,0.55) 0%, rgba(42,23,72,0.15) 45%, rgba(42,23,72,0.82) 100%); }
.hero .wrap { position: relative; min-height: min(86vh, 760px); display: grid; align-content: end; padding: 120px 0 64px; }
.hero h1 { text-shadow: 0 4px 24px rgba(42, 23, 72, 0.6); max-width: 13ch; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 34ch; text-shadow: 0 2px 12px rgba(42, 23, 72, 0.7); }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pillars li { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; border-radius: 999px; font: 700 0.95rem var(--head); backdrop-filter: blur(4px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 800 1.1rem var(--head); text-decoration: none; color: var(--night); background: var(--saffron); box-shadow: 0 6px 0 #c47b0a, var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #c47b0a; }
.btn.ghost { background: rgba(255,255,255,0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.badge-note { font-size: 0.9rem; opacity: 0.9; margin-top: 12px; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow { font: 800 0.85rem var(--head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--magenta); margin-bottom: 6px; }
.center { text-align: center; }
.center p.sub { max-width: 60ch; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 1.12rem; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); } }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 12px; }
.c1 .ico { background: #fff1d6; } .c2 .ico { background: #ffe0ee; } .c3 .ico { background: #dcf6f9; } .c4 .ico { background: #e7f6dc; } .c5 .ico { background: #ece3fb; } .c6 .ico { background: #fff4c7; }
.card p { color: var(--muted); margin: 0; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; font: 800 0.85rem/24px var(--body); text-align: center; }

/* Worlds strip */
.worlds { background: linear-gradient(180deg, #2a1748 0%, #4b2a7b 100%); color: #fff; }
.worlds .center p.sub { color: #e6dcff; }
.world-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-top: 28px; }
.world-row img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35)); transition: transform 0.2s ease; }
.world-row img:hover { transform: scale(1.06) rotate(-2deg); }

/* Characters */
.crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.crew figure { margin: 0; text-align: center; width: 120px; }
.crew img { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff 0%, #ffe9c2 70%); box-shadow: var(--shadow); object-fit: cover; }
.crew figcaption { font: 700 1rem var(--head); margin-top: 8px; }

/* Parents band */
.parents { background: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.trust li { background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font: 700 0.95rem var(--head); }

/* Legal / support pages */
.page-hero { background: linear-gradient(135deg, var(--plum) 0%, var(--magenta) 120%); color: #fff; padding: 64px 0 48px; }
.page-hero p { max-width: 62ch; opacity: 0.95; margin: 0; }
.doc { max-width: 780px; }
.doc h2 { font-size: 1.6rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin: -28px 0 8px; position: relative; }
.summary h2 { margin-top: 0; font-size: 1.3rem; }
details { background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(42, 23, 72, 0.08); margin: 0 0 12px; padding: 4px 20px; }
summary { cursor: pointer; font: 700 1.1rem var(--head); padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--magenta); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p, details ul { color: var(--muted); }
.contact { background: var(--night); color: #fff; border-radius: var(--radius); padding: 28px; }
.contact a { color: var(--sun); }
.ph { background: #fff3c4; color: #7a4b00; padding: 0 6px; border-radius: 6px; font-weight: 800; }

/* Footer */
.site-foot { background: var(--night); color: #d9cff0; padding: 40px 0; font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.site-foot a { color: #fff; font-weight: 700; text-decoration: none; margin-right: 18px; }
.site-foot a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .nav a { padding: 6px 9px; font-size: 0.88rem; }
  .hero .wrap { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* See it move: real gameplay loops in phone frames */
.phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px;max-width:900px;margin-inline:auto}
.phone{margin:0;text-align:center}
.phone video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:28px;border:6px solid #1d1240;box-shadow:0 14px 34px rgba(29,18,64,.28);background:#2a1b5c}
.phone figcaption{margin-top:12px;font-weight:700}
@media (max-width:640px){.phones{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.phone video{border-width:3px;border-radius:16px}.phone figcaption{font-size:.85rem}}
.btn.soon{opacity:.7;cursor:default;background:transparent;border:2px dashed currentColor;box-shadow:none}
.hero .btn.soon{color:#fff;border-color:rgba(255,255,255,.75);opacity:.9}
