/* Die Fragen der Zeit – loaded only on /kids/ and /en/kids/.
   The look of the game's studio "Zeitwerk": midnight blue, warm stage light, brass and gold; Unbounded for headlines
   (as on the title screen), Lexend for text (as in the game, made for young readers). Gold is kept for the play button
   and for rewards, like in the game. Nothing moves with reduced motion. */

@font-face { font-family: "Unbounded"; src: url(../fonts/unbounded-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lexend"; src: url(../fonts/lexend-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url(../fonts/lexend-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

[data-game="kids"] {
  --accent: #f5c04a; --accent-2: #ffe08a; --accent-ink: #1a1405; --game-bg: #070b1f;
  --surface: #0f1736; --line: rgba(255, 224, 138, .14); --line-strong: rgba(255, 224, 138, .32);
  --text: #f2f3fb; --muted: #aeb6d8;
  --brass: #c9a46a; --teal: #2cc5c9; --pink: #ff6b9a; --violet: #9b7bff;
  --body: "Lexend", "Atkinson Hyperlegible", system-ui, sans-serif;
  --display: "Unbounded", "Archivo", sans-serif; --display-weight: 700; --display-stretch: 100%;
  --display-case: none; --display-track: -.01em; --display-leading: 1.06;
}

/* A short gold rule leads every eyebrow, like the plates on the stage. */
[data-game="kids"] .eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .2em; color: var(--accent-2); }
[data-game="kids"] .eyebrow::before { content: ""; flex: none; width: 30px; height: 3px; border-radius: 2px; background: var(--accent); }
[data-game="kids"] .closing__content .eyebrow::after { content: ""; flex: none; width: 30px; height: 3px; border-radius: 2px; background: var(--accent); }
[data-game="kids"] .chip { border-color: rgba(255, 224, 138, .28); background: rgba(7, 11, 31, .55); }
[data-game="kids"] .chip--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-game="kids"] .btn--ghost { background: rgba(7, 11, 31, .5); }

/* The way into the game: a big golden button like "Spielen" on the title screen. */
[data-game="kids"] .btn--primary {
  background: linear-gradient(180deg, #ffd56a, #f0b53a); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .7), 0 12px 34px -12px rgba(245, 192, 74, .75);
}
[data-game="kids"] .btn--play { font-size: 1.12rem; padding-inline: 34px; min-height: 58px; letter-spacing: .01em; }
[data-game="kids"] .btn--play:hover { box-shadow: inset 0 1px 0 rgba(255, 250, 225, .7), 0 16px 44px -10px rgba(245, 192, 74, .9); }
@media (prefers-reduced-motion: no-preference) {
  [data-game="kids"] .btn--play { animation: kids-glow 2.8s ease-in-out infinite; }
}
@keyframes kids-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 250, 225, .7), 0 12px 34px -12px rgba(245, 192, 74, .75); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 250, 225, .7), 0 12px 48px -6px rgba(245, 192, 74, 1); }
}

/* ---------- Hero: the studio at night, sweeping stage light, a glint on the wordmark ---------- */
[data-game="kids"] .game-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 214, 140, .16), transparent 70%),
    linear-gradient(180deg, rgba(7, 11, 31, .1) 0%, rgba(7, 11, 31, .35) 55%, rgba(7, 11, 31, .92) 100%);
}
[data-game="kids"] .game-hero__logo img { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: no-preference) {
  [data-game="kids"] .game-hero::after {
    content: ""; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .5;
    background:
      linear-gradient(100deg, transparent 42%, rgba(255, 224, 160, .14) 48%, transparent 54%),
      linear-gradient(80deg, transparent 58%, rgba(160, 190, 255, .10) 63%, transparent 68%);
    animation: kids-beams 14s ease-in-out infinite alternate;
  }
}
@keyframes kids-beams { from { transform: translateX(-8%) rotate(-2deg); } to { transform: translateX(8%) rotate(2deg); } }

/* No film grain: the studio is clean and bright, not noir. The noir hooks stay for the rising sections and tilting pictures. */
[data-game="kids"][data-effects="noir"]::after { opacity: 0; }

/* ---------- Cards: the game's plates, midnight blue with a thin gold edge; the tag like a golden chip ---------- */
[data-game="kids"] .feature-card { border-color: var(--line); background: linear-gradient(180deg, rgba(18, 28, 66, .9), rgba(10, 15, 40, .92)); }
[data-game="kids"] .feature-card:hover { border-color: var(--line-strong); }
[data-game="kids"] .feature-card__tag { color: var(--accent-2); }
[data-game="kids"] .feature-card__num, [data-game="kids"] .journey__num, [data-game="kids"] .journey__numeral { color: var(--accent); }
[data-game="kids"] .soul__item { border-color: var(--line); }
[data-game="kids"] .journey__chips .chip { background: rgba(245, 192, 74, .12); }

/* ---------- The noir hooks in gold: a glint over the wordmark instead of Bad Life's neon bar, golden edges on hover ---------- */
[data-game="kids"] .game-hero__logo { display: inline-block; position: relative; }
[data-game="kids"] .game-hero__logo img { max-height: none; width: min(760px, 100%); }
[data-game="kids"] .game-hero__logo::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, .95) 49%, rgba(255, 255, 255, 1) 50%, rgba(255, 246, 214, .95) 51%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  -webkit-mask: url(../wordmarks/kids.svg) center / 100% 100% no-repeat; mask: url(../wordmarks/kids.svg) center / 100% 100% no-repeat;
  opacity: 0; animation: kids-glint 9s ease-in-out infinite; animation-delay: 2s;
}
@keyframes kids-glint {
  0% { background-position: 140% 0; opacity: 0; }
  2% { opacity: .85; }
  16% { background-position: -40% 0; opacity: .85; }
  18%, 100% { background-position: -40% 0; opacity: 0; }
}
[data-effects="noir"][data-game="kids"] [data-tilt]:hover { box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(245, 192, 74, .5), 0 0 46px -12px rgba(245, 192, 74, .5); }
@media (prefers-reduced-motion: reduce) {
  [data-game="kids"] .game-hero__logo::after { display: none; }
}

/* ---------- The journey's numbers: a golden roman numeral in a ring, the kicker beside it ---------- */
[data-game="kids"] .journey__num { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 700 .8rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
[data-game="kids"] .journey__numeral {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 23px;
  border: 2px solid var(--accent); color: var(--accent); font: 700 1rem/1 var(--display); letter-spacing: .04em;
  background: rgba(245, 192, 74, .08);
}
