:root {
  --font: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
  --ink: #3a3352; --ink-soft: #6a6288; --cream: #fffaf0; --paper: #fffdf8;
  --sun: #ffd166; --sun-dark: #e0a832; --coral: #ff9776; --coral-dark: #cc6547; --leaf: #7bd389; --leaf-dark: #4f9c5c;
  --sky: #bfe6ff; --berry: #b48ae6; --line: #eadfc8;
  --shadow: 0 10px 30px rgba(58,51,82,0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font, 'Baloo 2', 'Segoe UI', Arial, sans-serif); color: var(--ink); background: var(--cream); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
p { margin: 0; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: #fff; background: var(--leaf); border-radius: 999px; padding: 0 30px; height: 64px; font-size: 22px; box-shadow: 0 6px 0 var(--leaf-dark), var(--shadow); transition: transform .08s ease; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--leaf-dark); }
.btn.coral { background: var(--coral); box-shadow: 0 6px 0 var(--coral-dark), var(--shadow); }
.btn.ghost { background: rgba(255,255,255,0.92); color: var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,0.12), var(--shadow); }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* ---- hero: obloha ze hry ---- */
header.hero { position: relative; background: var(--sky) url('img/game/sky.webp') center/cover; overflow: hidden; }
header.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(255,250,240,0), var(--cream)); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 24px; padding: 56px 0 130px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); text-wrap: balance; color: #fff; letter-spacing: 1px; text-shadow: -2px -2px 0 var(--sun-dark), 2px -2px 0 var(--sun-dark), -2px 2px 0 var(--sun-dark), 2px 2px 0 var(--sun-dark), 0 5px 0 var(--sun-dark), 0 7px 0 var(--sun-dark), 0 12px 28px rgba(58,51,82,0.28); }
.hero .lead { font-size: clamp(19px, 2.2vw, 25px); font-weight: 600; max-width: 34ch; margin: 18px 0 28px; background: rgba(255,255,255,0.72); padding: 14px 18px; border-radius: 22px; border: 4px solid var(--sun); }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fox { justify-self: center; width: min(420px, 80%); filter: drop-shadow(0 18px 24px rgba(58,51,82,0.22)); animation: bob 3.2s ease-in-out infinite; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge { background: #fff; border: 3px solid var(--sun); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero .fox { animation: none; } }

section { padding: 64px 0; }
section + section { border-top: 2px dashed var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; font-weight: 700; color: var(--coral-dark); margin-bottom: 8px; }
.manifest p:not(.eyebrow) { max-width: 74ch; font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin-top: 14px; }
.intro { font-size: 19px; max-width: 62ch; margin-top: 12px; color: var(--ink-soft); }

/* ---- příběh ---- */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.bubbles { display: grid; gap: 14px; margin-top: 22px; }
.bubble { display: flex; gap: 14px; align-items: center; background: #fff; border: 4px solid var(--sun); border-radius: 26px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: 18px; }
.bubble img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--sun); background: #fff3d6; flex: 0 0 auto; }
.shot { border-radius: 24px; border: 6px solid #fff; box-shadow: var(--shadow); }

/* ---- hlavolamy ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: #fff; border-radius: 26px; padding: 18px 18px 20px; box-shadow: var(--shadow); border: 4px solid #fff; display: grid; grid-template-rows: 120px auto auto; gap: 8px; align-items: end; }
.card img { height: 120px; width: auto; margin: 0 auto; object-fit: contain; }
.card h3 { font-size: 21px; }
.card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.4; }
.card .age { font-size: 13px; font-weight: 700; color: var(--leaf-dark); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- galerie ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-weight: 600; margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ---- rodiče ---- */
.parents { background: #fff; border-radius: 32px; border: 6px solid var(--sun); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.promises { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.promises li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.promises .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 var(--leaf-dark); }
.promises .tick svg { width: 18px; height: 18px; }
.ages { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.age-pill { background: var(--sun); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 6px 18px; box-shadow: 0 4px 0 var(--sun-dark); }
.age-pill small { display: block; font-weight: 600; font-size: 13px; }

/* ---- dokumenty ---- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.doc { background: #fff; border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 4px solid #fff; display: grid; gap: 6px; }
.doc:hover, .doc:focus-visible { border-color: var(--sun); outline: none; }
.doc strong { font-size: 20px; } .doc span { color: var(--ink-soft); font-size: 15px; }

footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 15px; border-top: 2px dashed var(--line); }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.note { background: #fff3d6; border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: 14.5px; }
.todo { background: #fff3d6; border-radius: 8px; padding: 0 6px; }

.gallery img, .story img.shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card img { max-height: 120px; }
@media (max-width: 480px) {
  .wrap { width: min(1120px, 94vw); }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; padding: 12px 14px; }
  .btn { height: 56px; font-size: 19px; padding: 0 22px; width: 100%; justify-content: center; }
  .hero .cta { flex-direction: column; }
  h2 { font-size: 28px; }
  .intro, .bubble, .manifest p:not(.eyebrow) { font-size: 16px; }
  .bubble { padding: 10px 12px; gap: 10px; } .bubble img { width: 48px; height: 48px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; } .card { padding: 12px; grid-template-rows: 90px auto auto; } .card img { max-height: 90px; } .card h3 { font-size: 17px; } .card p { font-size: 14px; }
  .parents { padding: 20px; border-width: 4px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta, .badges { justify-content: center; }
  .hero .fox { order: -1; width: min(260px, 60%); }
  .story, .parents { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}

/* ---- přepínač jazyka: rozbalovací nabídka s vlaječkami (details/summary, bez JS) ---- */
.lang-switch { position: absolute; top: 16px; right: 16px; z-index: 5; font-weight: 700; font-size: 15px; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.92); border: 3px solid var(--sun); border-radius: 999px; padding: 6px 12px 6px 8px; color: var(--ink); user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 14px; height: 14px; transition: transform .15s ease; }
.lang-switch[open] summary svg { transform: rotate(180deg); }
.lang-switch img { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(58,51,82,0.18); flex: 0 0 auto; }
.lang-switch ul { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; right: 0; min-width: 200px; background: #fff; border: 3px solid var(--sun); border-radius: 18px; box-shadow: var(--shadow); }
.lang-switch li a, .lang-switch li span { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lang-switch li a:hover, .lang-switch li a:focus-visible { background: var(--cream); }
.lang-switch li span { background: var(--sun); }
@media (max-width: 860px) { .lang-switch { top: 12px; right: 12px; font-size: 14px; } }

/* CJK stránky: kanu a hanzi dodá systémový font, latinka zůstává v Baloo 2 */
html[lang="ja"] { --font: 'Baloo 2', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
html[lang^="zh"] { --font: 'Baloo 2', 'PingFang TC', 'PingFang HK', 'Hiragino Sans TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
