@font-face {
  font-family: Fredoka;
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url("../fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url("../fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #4e342e;
  --muted: #6d4c41;
  --cream: #fff8e1;
  --paper: #fffdf6;
  --coral: #ff6f7a;
  --coral-dark: #e85a66;
  --leaf: #2e7d32;
  --shadow: 0 10px 28px rgba(78, 52, 46, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Fredoka, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.45;
  min-height: 100vh;
}

.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, #ffcc80 0%, transparent 70%),
    linear-gradient(180deg, #ffb74d 0%, #ffd08a 38%, #fff3c4 72%, #fff8e1 100%);
  padding: 1rem 1.15rem 2.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
}
.lang {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 253, 246, 0.75);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: 0 2px 8px rgba(78, 52, 46, 0.08);
}
.lang-btn {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.lang-btn.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(78, 52, 46, 0.12);
}

.hero {
  position: relative;
  max-width: 720px;
  margin: 0.4rem auto 0;
  text-align: center;
  z-index: 2;
  padding: 0.5rem 0 0.25rem;
}
.kids {
  display: block;
  width: auto;
  max-width: min(100%, 40rem);
  max-height: min(32vh, 250px);
  height: auto;
  object-fit: contain;
  margin: 0.35rem auto 0.15rem;
  filter: drop-shadow(0 8px 14px rgba(78, 52, 46, 0.16));
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 600;
}
.lead {
  margin: 0.85rem auto 0;
  max-width: 26rem;
  font-size: 1.05rem;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.4rem auto 0;
  max-width: 22rem;
}
.btn {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-download {
  background: var(--coral);
  color: #fff;
}
.btn-download:hover { background: var(--coral-dark); }
.btn-play {
  background: #fff;
  color: var(--coral-dark);
  box-shadow: inset 0 0 0 3px var(--coral), var(--shadow);
}
.privacy {
  margin: 1.1rem 0 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.98rem;
}
.version {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.sticker {
  position: absolute;
  width: 72px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(78, 52, 46, 0.16));
}
.sticker { display: none; } /* keep the corners clear of the kids on narrow screens */
.sticker-tl { top: 4.2rem; left: 0.15rem; }
.sticker-tr { top: 4rem; right: 0.15rem; }
.sticker-bl, .sticker-br { display: none; }
.hero { padding-bottom: 0.6rem; }
.privacy { padding: 0 0.75rem; }

.panel {
  max-width: 720px;
  margin: -0.6rem auto 0;
  background: var(--paper);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.6rem 1.25rem 1.2rem;
  position: relative;
  z-index: 3;
  box-shadow: 0 -8px 24px rgba(78, 52, 46, 0.06);
}
.panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.panel p { margin: 0; }
.older { margin-top: 1rem !important; }
.older a {
  color: var(--leaf);
  font-weight: 700;
  font-size: 0.98rem;
}

.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--paper);
}
.foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  margin: 0 0.35rem;
}
.foot a:hover { text-decoration: underline; }
.made { margin: 0 0 0.4rem; font-weight: 600; }
.contact { margin: 0; }

@media (min-width: 720px) {
  .sky { padding: 1.4rem 2rem 3.2rem; }
  .actions {
    flex-direction: row;
    max-width: 36rem;
    justify-content: center;
  }
  .btn { min-width: 16rem; }
  .sticker { display: block; width: 130px; }
  .sticker-tl { top: 5rem; left: 1.5rem; }
  .sticker-tr { top: 4.8rem; right: 1.5rem; }
  .sticker-bl, .sticker-br { display: block; width: 120px; }
  .sticker-bl { left: 1.6rem; bottom: 1.2rem; }
  .sticker-br { right: 1.6rem; bottom: 1rem; }
  .kids { max-width: 42rem; max-height: 300px; }
  .panel, .foot { padding-left: 2rem; padding-right: 2rem; }
}

.legal-link { margin: 0 0 0.5rem; }
.legal-link a { margin: 0; }
body.privacy-page { background: var(--paper); }
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  background: var(--paper);
  color: var(--ink);
}
.policy h1 { margin: 0 0 0.75rem; font-size: 1.7rem; }
.policy h2 { margin: 1.3rem 0 0.4rem; font-size: 1.15rem; }
.policy p { margin: 0 0 0.7rem; line-height: 1.45; }
.policy .back { display: inline-block; margin: 0.4rem 0 1rem; font-weight: 700; color: var(--leaf); text-decoration: none; }
.policy .back:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .policy { padding-left: 2rem; padding-right: 2rem; }
}

.btn-feedback {
  background: var(--leaf);
  color: #fff;
}
.btn-feedback:hover { filter: brightness(0.95); }
@media (min-width: 720px) {
  .actions { flex-wrap: wrap; max-width: 36rem; }
  .btn { min-width: 16rem; }
  .btn-feedback { min-width: 16rem; }
}

.feedback-page .purpose { font-weight: 600; }
.fb-form { margin-top: 1.2rem; display: grid; gap: 0.95rem; }
.fb-form label,
.fb-form fieldset {
  display: block;
  text-align: left;
  font-weight: 600;
}
.fb-form input[type="text"],
.fb-form select,
.fb-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem;
  border: 2px solid #ead9b8;
  border-radius: 0.7rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
.fb-form textarea { resize: vertical; min-height: 6rem; }
.fb-form small { display: block; margin-top: 0.3rem; color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.fb-form .is-invalid input,
.fb-form .is-invalid select,
.fb-form .is-invalid textarea,
.fb-form fieldset.is-invalid {
  border-color: #c62828;
}
.fb-form fieldset.block,
.fb-form fieldset.stars {
  border: 2px solid #ead9b8;
  border-radius: 0.9rem;
  padding: 0.85rem 0.9rem 1rem;
  margin: 0;
}
.fb-form fieldset.block { display: grid; gap: 0.85rem; }
.fb-form legend { padding: 0 0.35rem; }
.stars { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.stars legend { width: 100%; margin-bottom: 0.4rem; }
.star { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; }
.star span { font-size: 1.05rem; }
.fb-form .check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
}
.fb-form .check input { margin-top: 0.3rem; flex: 0 0 auto; }
.captcha-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0.5rem 0; }
.btn-refresh {
  border: 0;
  background: #fff;
  color: var(--leaf);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--leaf);
  cursor: pointer;
}
.form-thanks {
  background: #e8f6e8;
  color: #215c21;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  font-weight: 600;
}
.form-error {
  background: #fdecea;
  color: #8b1e1e;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.fb-form .btn { width: 100%; border: 0; cursor: pointer; text-align: center; }
