:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #292b2d;
  background: #faf9f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 14px; min-width: 320px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #7661a6; outline-offset: 5px; }
.playground {
  max-width: 1660px;
  margin: 0 auto;
  padding: 28px;
  min-height: calc(100svh - 28px);
  background: #fff;
  border: 1px solid #e9e8e5;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}
.welcome {
  padding: 31px 20px 30px;
  text-align: center;
  background: #f6f6f6;
  border-radius: 28px;
}
h1 { margin: 0; font-size: clamp(30px, 3.5vw, 54px); font-weight: 700; letter-spacing: .015em; line-height: 1.45; }
.rainbow { display: inline-block; margin-right: 13px; font-size: .97em; vertical-align: .015em; }
.greeting { margin: 8px 0 0; color: #717071; font-size: clamp(18px, 1.8vw, 27px); line-height: 1.65; }
.greeting strong { color: #84689f; font-weight: 650; font-variant-numeric: tabular-nums; }
.activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; flex: 1; }
.activity {
  border: 0;
  border-radius: 28px;
  padding: 27px 18px 29px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}
.adventure { background: #fff0e4; }
.puzzles { background: #e6f4ff; }
.art { background: #fce7f1; }
.stories { background: #ece7ff; }
.activity-icon { display: block; font-size: clamp(54px, 5.2vw, 80px); line-height: 1.25; margin-bottom: 17px; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.activity-title { font-size: clamp(26px, 2.05vw, 34px); font-weight: 650; line-height: 1.5; }
.activity-description { color: #606060; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.6; margin-top: 8px; letter-spacing: .02em; }
@media (hover: hover) { .activity:hover { transform: translateY(-3px); filter: saturate(1.08); } .parent-settings:hover { color: #615075; } }
.activity:active { transform: scale(.985); }
footer { padding-top: 29px; display: flex; justify-content: center; }
.parent-settings { border: 0; background: none; padding: 10px 14px; color: #7a797a; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-size: clamp(17px, 1.7vw, 25px); line-height: 1.6; cursor: pointer; border-radius: 10px; }
dialog { padding: 0; border: 0; border-radius: 28px; width: min(440px, calc(100vw - 40px)); color: #292b2d; box-shadow: 0 18px 70px #28203420; }
dialog::backdrop { background: #29233445; }
.dialog-content { text-align: center; padding: 36px 30px 30px; }
.dialog-icon { font-size: 54px; }
dialog h2 { font-size: 24px; line-height: 1.5; margin: 18px 0 10px; }
dialog p { font-size: 17px; color: #6d6870; line-height: 1.9; margin: 0 0 25px; }
.dialog-close { min-height: 48px; min-width: 130px; background: #ece7ff; border: 0; border-radius: 15px; font-size: 19px; cursor: pointer; padding: 10px 30px; }
@media (min-width: 1100px) and (min-height: 900px) { .activity { min-height: 270px; } }
@media (max-width: 760px) {
  body { padding: 10px; }
  .playground { padding: 18px; min-height: calc(100svh - 20px); border-radius: 26px; }
  .welcome { padding: 27px 12px; border-radius: 22px; }
  .rainbow { margin-right: 8px; }
  .activities { gap: 14px; margin-top: 18px; }
  .activity { min-height: 220px; padding: 24px 10px; border-radius: 23px; }
  .activity-description { font-size: 17px; }
  footer { padding-top: 22px; }
}
@media (max-width: 520px) {
  .playground { padding: 13px; border-radius: 23px; }
  .welcome { padding: 25px 8px; border-radius: 18px; }
  h1 { font-size: clamp(23px, 6.4vw, 32px); letter-spacing: 0; }
  .greeting { font-size: 16px; margin-top: 10px; }
  .activities { gap: 12px; margin-top: 14px; }
  .activity { min-height: 205px; padding: 22px 7px; border-radius: 20px; }
  .activity-icon { font-size: 52px; margin-bottom: 14px; }
  .activity-title { font-size: 23px; }
  .activity-description { font-size: 14px; letter-spacing: 0; margin-top: 6px; }
  .parent-settings { font-size: 15px; gap: 9px; padding: 10px 0; }
  .parent-settings svg { width: 17px; height: 20px; flex-shrink: 0; }
}
@media (max-width: 350px) { .footer-extra { display: none; } .activity-title { font-size: 21px; } .greeting { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
