@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8ff;
  --ink: #1c1431;
  --muted: #505263;
  --arcade: #2c1459;
  --purple: #5930a3;
  --lime: #e3ff91;
  --rule: #e7def3;
  --white: #fff;
  font: 500 16px/1.55 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 0 30%, #e5f7ff 0%, transparent 34%),
    radial-gradient(ellipse at 100% 48%, #ffeafa 0%, transparent 36%),
    var(--paper);
}
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7651cc; outline-offset: 4px; }
.hero a:focus-visible { outline-color: #fff; }
.symbols { display: none; }
.container { width: min(1232px, calc(100% - 64px)); margin-inline: auto; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  z-index: 4;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  clip-path: inset(50%);
  transform: translateY(-180%);
}
.skip:focus { clip-path: none; transform: translateY(0); }

.site-header {
  border-bottom: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #29adff, #ff7478 25%, #ffcf55 45%, #57dda5 66%, #b28cff 86%, #ec82d8) border-box;
}
.header-inner, .footer-inner {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: block;
  width: clamp(225px, 23vw, 305px);
  flex: none;
  margin-inline-start: -4px;
}
.wordmark img { width: 100%; height: auto; }
.header-inner nav { display: flex; align-items: center; gap: 24px; }
.header-inner nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .87rem;
  font-weight: 750;
  white-space: nowrap;
}
.header-inner nav a:hover { color: var(--purple); }
.kids-link { padding: 0 13px; border: 1px solid #e2d3f8; border-radius: 10px; background: #f6eeff; }
.header-inner .kids-link .icon { width: 16px; height: 16px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 420px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background: var(--arcade);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 3%, #b246b978 0%, transparent 42%),
    radial-gradient(ellipse at 82% 72%, #3157c3 0%, #5034ac 32%, transparent 60%),
    linear-gradient(112deg, #2a1558 12%, #402184 62%, #592bb5);
}
.hero-copy {
  align-self: center;
  position: relative;
  z-index: 2;
  padding: 44px 0 48px clamp(30px, 5.25vw, 76px);
}
.eyebrow {
  font-size: .71rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .15em;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ded2ff;
}
.hero-eyebrow span, .scene-caption span, .prototype-label span, .cover-label span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 2px;
  background: var(--lime);
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(3.2rem, 5.75vw, 5.35rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.072em;
  word-spacing: .04em;
}
.hero h1 em { color: #ffe377; font-style: normal; }
.hero-description {
  max-width: 32ch;
  margin: 22px 0 26px;
  color: #f1e9ff;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.5;
}
.hero-button, .kids-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--lime);
  color: #22263a;
  font-size: .91rem;
  font-weight: 800;
  transition: background .16s ease, transform .16s ease;
}
.hero-button:hover { background: #efffc1; transform: translateY(-2px); }
.hero-button .icon { transform: rotate(90deg); }

.hero-scene {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 32px, #e2ceff25 32px, #e2ceff25 33px),
    repeating-linear-gradient(90deg, transparent, transparent 32px, #e2ceff25 32px, #e2ceff25 33px);
  background-size: 92% 90%;
  background-repeat: no-repeat;
  background-position: center;
}
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, transparent 34%, #44269438 75%, #3e227e7a 100%);
  z-index: -1;
}
.orbit {
  position: absolute;
  left: 49%;
  top: 52%;
  width: min(63%, 365px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #f1e4ff9c;
  border-radius: 50%;
  background: radial-gradient(circle at 56% 38%, #d5a3ff 0%, #9c7cf8 46%, #7460eb 72%);
  box-shadow: inset 0 0 48px #d9baff58, 0 0 48px #b39cfc48;
}
.orbit-dashed {
  width: min(75%, 426px);
  border-style: dashed;
  border-color: #e4d1ff9a;
  background: none;
  box-shadow: none;
}
.paxa {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 13px;
  width: min(77%, 432px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 19px #130c26a6);
}
.scene-mark {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #f8edff70;
  border-radius: 12px;
  background: #ff9be5;
  color: #211b3a;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 0 #18112c60;
}
.scene-a { top: 23%; right: 12%; transform: rotate(13deg); }
.scene-plus { bottom: 23%; left: 10%; transform: rotate(-12deg); background: #93f5da; }
.scene-seven { right: 15%; bottom: 22%; transform: rotate(14deg); background: #ffd65b; width: 38px; font-size: 1.3rem; }
.scene-star { position: absolute; width: 23px; height: 23px; color: var(--lime); }
.star-one { top: 16%; left: 20%; }
.star-two { right: 8%; bottom: 36%; width: 15px; height: 15px; color: #9cf2ff; }
.star-three { top: 10%; right: 21%; width: 16px; height: 16px; color: #ffc462; }
.scene-dot { position: absolute; width: 6px; height: 6px; background: #c7abff; border-radius: 50%; }
.dot-one { top: 36%; left: 11%; }
.dot-two { right: 33%; top: 8%; background: #ffb1e0; }
.scene-caption {
  position: absolute;
  right: 25px;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #9279cf76;
  border-radius: 8px;
  color: #d1c6ec;
  background: #211735;
  font-size: .62rem;
  letter-spacing: .1em;
}
.scene-caption b { color: #fff; }
.scene-caption span { width: 5px; height: 5px; }

.library { margin-top: 49px; scroll-margin-top: 18px; }
.section-intro, .library-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.section-eyebrow { color: var(--purple); }
.section-intro h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 3.45vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.056em;
}
.prototype-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  margin-bottom: 2px;
  border: 1px solid #e5d9fb;
  border-radius: 100px;
  background: #f1eafc;
  color: #503185;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.prototype-label span { background: #7951bf; width: 6px; height: 6px; }
.library-tools { margin: 20px 0 21px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #dfdcd6;
  border-radius: 100px;
  background: var(--white);
  color: #373746;
  font-size: .83rem;
  font-weight: 750;
}
.filters button:not([data-filter="all"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border-color: var(--chip-border);
}
.filters button:not([data-filter="all"])::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip-dot); }
.filters [data-filter="math"] { --chip: #ffe6e1; --chip-border: #f7c9be; --chip-dot: #c4474a; }
.filters [data-filter="words"] { --chip: #dbf8f3; --chip-border: #b8e9de; --chip-dot: #0e887d; }
.filters [data-filter="logic"] { --chip: #eee3ff; --chip-border: #dcc9f9; --chip-dot: #8755c9; }
.filters [data-filter="puzzles"] { --chip: #e5ecff; --chip-border: #c9d6fb; --chip-dot: #465dba; }
.filters [data-filter="education"] { --chip: #ecf6d6; --chip-border: #d3e5ad; --chip-dot: #5c7e2e; }
.filters [data-filter="arcade"] { --chip: #fff0c9; --chip-border: #f1da9f; --chip-dot: #a96727; }
.filters button:hover { border-color: #8e72c8; color: var(--purple); }
.filters button[aria-pressed="true"] { background: var(--arcade); border-color: var(--arcade); color: var(--white); }
.filters button[aria-pressed="true"]::before { background: #e1cbff; }
.result-count { flex: none; color: var(--muted); font-size: .79rem; font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  background: linear-gradient(var(--card-tint), #fff 83%);
  box-shadow: 0 4px 12px #36234907;
}
.math-race { --card-tint: #fff0e9; --card-line: #f5d5c7; --card-ink: #922b42; }
.memory-match { --card-tint: #f3ebff; --card-line: #e3d3f6; --card-ink: #6337a2; }
.word-builder { --card-tint: #e6fbf6; --card-line: #cbece4; --card-ink: #136b67; }
.coding-maze { --card-tint: #ebefff; --card-line: #d0d8f6; --card-ink: #3f509d; }
.multiplication { --card-tint: #f2f9e0; --card-line: #dceac2; --card-ink: #4b682c; }
.knowledge { --card-tint: #fff2d8; --card-line: #f1dfba; --card-ink: #874f1e; }
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 360 / 161;
  display: grid;
  place-items: center;
  border-radius: 13px;
}
.cover > svg { display: block; width: 100%; height: 100%; }
.cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-label { z-index: 1; }
.cover-math { background: #ff947e; }
.cover-memory { background: #d9c7fb; }
.cover-word {
  background:
    radial-gradient(circle at 60% 45%, #fff5da 0%, transparent 56%),
    repeating-linear-gradient(90deg, #94d6ca30 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, #94d6ca30 0 1px, transparent 1px 38px),
    #d8f7ec;
}
.word-card-scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.word-card-scene img { position: absolute; height: 88%; width: 31%; object-fit: contain; object-position: center bottom; }
.word-card-paxa { inset: auto auto 2% 2%; transform: rotate(-6deg); }
.word-card-maya { inset: auto 2% 2% auto; transform: rotate(5deg); }
.word-card-blocks { position: absolute; inset: 34% 24% auto; z-index: 1; display: flex; justify-content: center; gap: 5px; }
.word-card-blocks span {
  display: grid; place-items: center; width: 33%; max-width: 55px; aspect-ratio: 1;
  border: 1px solid #b699db; border-radius: 11px; background: #eee2ff; color: #4c2d75;
  box-shadow: 0 4px 0 #b699db; font-size: clamp(1.2rem, 3.5vw, 2.1rem); font-weight: 800;
  line-height: 1; transform: rotate(-9deg);
}
.word-card-blocks span:nth-child(2) { transform: translateY(-7px) rotate(3deg); background: #fff2c9; border-color: #dbba75; box-shadow: 0 4px 0 #dbba75; }
.word-card-blocks span:nth-child(3) { transform: rotate(10deg); background: #d9f8f0; border-color: #84bdae; box-shadow: 0 4px 0 #84bdae; }
.cover-maze { background: radial-gradient(ellipse at 25% 15%, #fff0be, #d7f3df 64%, #c8ece9); }
.cover-maze > svg { position: absolute; inset: 0; }
.cover-maze > .maze-cover-paxa { position: absolute; inset: auto auto 6% 5%; width: 26%; height: 72%; object-fit: contain; filter: drop-shadow(0 3px 2px #345a5260); }
.cover-multiply { background: #d5e9a8; }
.cover-knowledge { background: #ffd18a; }
.cover-label {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #291a38;
  color: #fff;
  font-size: .63rem;
  font-weight: 750;
}
.cover-label span { width: 5px; height: 5px; }
.coming-label {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid #ddd2ed;
  border-radius: 8px;
  background: #f6f0fd;
  color: #573e78;
  font-size: .77rem;
  font-weight: 800;
}

.game-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; color: #55486d; font-size: .76rem; font-weight: 750; }
.game-crumbs a { color: #573390; text-decoration: underline; text-underline-offset: 3px; }
.game-crumbs > :not(:first-child)::before { content: "›"; display: inline-block; margin-inline-end: 8px; color: #68577f; }
.game-lead, .memory-lead { max-width: 68ch; margin-top: 5px; color: #4a526a; font-size: .92rem; }
.game-reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 23px; }
.game-guide, .game-faq {
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #e1d7ee;
  border-radius: 17px;
  background: #fff;
}
.game-guide { background: linear-gradient(136deg, #fff 50%, #f7efff); }
.game-reading h2 { margin: 3px 0 8px; color: #30234b; font-size: clamp(1.2rem, 2.6vw, 1.65rem); letter-spacing: -.035em; line-height: 1.2; }
.game-steps { display: grid; gap: 8px; margin: 8px 0 12px; padding-inline-start: 22px; color: #42445c; font-size: .9rem; }
.game-steps li::marker { color: #7148af; font-weight: 800; }
.game-steps strong { color: #3e285f; }
.game-coach { padding: 9px 11px; border-radius: 10px; background: #e9f8f0; color: #315440; font-size: .84rem; }
.game-faq details { margin-top: 7px; padding: 8px 10px; border: 1px solid #e5d9f1; border-radius: 9px; background: #fbf7ff; }
.game-faq summary { color: #482f71; font-size: .88rem; font-weight: 800; cursor: pointer; }
.game-faq details p { margin-top: 6px; color: #44465b; font-size: .84rem; }
.game-related { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px; }
.game-related a { padding: 8px 11px; border: 1px solid #ddd0ee; border-radius: 9px; background: #fff; color: #57348c; font-size: .83rem; font-weight: 800; }
.game-related a:hover { background: #f1e7fb; }
.game-study { grid-column: 1 / -1; }
.game-study h2 { margin: 0 0 5px; font-size: 1.15rem; color: #30234b; }
.game-study p, .game-study summary { color: #42445c; font-size: .88rem; line-height: 1.5; }
.game-study a { color: #57348c; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.game-study details { margin-top: 6px; }
.game-study summary { cursor: pointer; font-weight: 800; }
#main > .game-study { margin-block: 18px; }
.games-header {
  border-bottom: 1px solid #dfd9ec;
  background: #fff;
  box-shadow: 0 3px 15px #48396b0b;
}
.games-header .header-inner { flex-wrap: wrap; min-height: 0; gap: 8px 16px; padding-top: 10px; }
.games-header .wordmark { width: clamp(162px, 20vw, 252px); margin: 0; }
.games-header-note { color: #5b4f70; font-size: .78rem; font-weight: 800; }
.games-header .games-nav {
  flex: 0 0 100%;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-block: 4px;
  border-top: 1px solid #eee7f5;
}
.games-header .games-nav a { min-height: 40px; padding: 5px 10px; border-radius: 8px; color: #51396f; }
.games-header .games-nav a:hover, .games-header .games-nav a[aria-current] { background: #f3eaff; color: #502980; }
.games-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #e0d3ef;
  border-radius: 9px;
  background: #faf5ff;
  color: #51396f;
  font-size: .82rem;
  font-weight: 800;
}
.games-footer { border-top: 1px solid #e6ddef; background: #f9f6fd; }
.games-footer .footer-inner { min-height: 0; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding-block: 15px; }
.games-footer p { color: #544962; font-size: .78rem; }
.games-footer nav { display: flex; flex-wrap: wrap; gap: 8px 13px; color: #55378a; font-size: .78rem; font-weight: 800; }
.games-footer nav a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .games-header .header-inner { padding-block: 8px; }
  .games-header-note { display: none; }
  .games-menu { margin-inline-start: auto; }
  .games-header .games-nav { align-items: stretch; flex-direction: column; gap: 0; padding-bottom: 0; }
}
body:has(:is(.race-layout, .memory-layout):is(:fullscreen, .is-expanded)) :is(.game-crumbs, .game-reading, .games-footer) { visibility: hidden; }
@media (max-width: 760px) {
  .game-lead, .memory-lead { font-size: .8rem; }
  .game-reading { grid-template-columns: minmax(0, 1fr); margin-top: 15px; }
}
.game-info { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding: 14px 11px 8px; }
.game-kind {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--card-ink);
  font-size: .72rem;
  font-weight: 800;
}
.game-kind span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.game-card h3 {
  margin: 3px 0 5px;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
}
.game-description { padding-bottom: 11px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.preview-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin-top: auto;
  padding: 0 11px;
  border: 1px solid var(--card-line);
  border-radius: 9px;
  color: var(--card-ink);
  background: var(--card-tint);
  font-size: .81rem;
  font-weight: 800;
  transition: background .16s ease;
}
.preview-button:hover { background: var(--card-line); }
.preview-button .icon { width: 17px; height: 17px; }
.play-button { background: #e3ff91; border-color: #d0e68d; color: #293220; }
.play-button:hover { background: #efffc1; }

.kids-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 34px 0 40px;
  padding: 24px 28px;
  border: 1px solid #e2d9f3;
  border-radius: 20px;
  background: linear-gradient(110deg, #e4dbff, #f7e5ff 57%, #ffedcb);
}
.book-tile {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #d7c6ff;
  color: #513393;
}
.book-tile svg { width: 37px; height: 37px; }
.kids-panel h2 { margin: 2px 0; font-size: 1.44rem; letter-spacing: -.05em; }
.kids-panel p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.kids-button { border: 1px solid #dcd0ed; background: var(--white); color: var(--purple); min-height: 46px; }
.kids-button:hover { background: #faf6ff; }
.kids-button .icon { width: 16px; height: 16px; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 76px; }
.footer-inner p { color: var(--muted); font-size: .8rem; }

dialog {
  width: min(460px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  padding: 23px 25px;
  border: 1px solid #ddd3f0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 80px #15102240;
}
dialog::backdrop { background: #1c1739aa; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.close-button { width: 44px; height: 44px; border: 0; border-radius: 9px; background: #f1ebfa; color: #3d2865; font-size: 1.48rem; }
dialog h2 { margin: 4px 0 7px; font-size: 1.84rem; line-height: 1.14; letter-spacing: -.05em; }
#preview-description, .dialog-note { color: var(--muted); }
.example { margin: 18px 0 12px; padding: 13px 16px; border-radius: 12px; background: #f0ebfa; }
.example h3 { font-size: .83rem; margin-bottom: 4px; color: var(--purple); }
.example p, .dialog-note { font-size: .9rem; }

@media (max-width: 950px) {
  .container { width: calc(100% - 44px); }
  .hero { min-height: 363px; }
  .hero-copy { padding: 38px 0 41px 35px; }
  .hero h1 { font-size: clamp(3rem, 6.75vw, 4.3rem); }
  .paxa { width: min(90%, 365px); }
  .game-grid { gap: 13px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .wordmark { width: clamp(169px, 49vw, 239px); }
  .header-inner nav { gap: 10px; }
  .header-inner .library-link { display: none; }
  .header-inner nav a { font-size: .76rem; }
  .kids-link { padding: 0 10px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; border-radius: 22px; }
  .hero::before {
    background: radial-gradient(ellipse at 100% 72%, #a23ab686 0%, transparent 48%),
      radial-gradient(ellipse at 46% 82%, #3f62d1, #5731ab 32%, #30165f 73%);
  }
  .hero-copy { padding: 28px 23px 0; }
  .hero h1 { font-size: clamp(2.9rem, 10.35vw, 4.1rem); margin-top: 12px; }
  .hero-description { margin: 15px 0 17px; font-size: .98rem; }
  .hero-button { min-height: 46px; }
  .hero-scene { height: 260px; background: none; }
  .hero-scene::before {
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 32px, #9d8bf018 32px, #9d8bf018 33px),
      repeating-linear-gradient(90deg, transparent, transparent 32px, #9d8bf018 32px, #9d8bf018 33px);
    mask-image: linear-gradient(transparent, #000 23%, #000 80%, transparent);
  }
  .paxa { width: min(73%, 280px); bottom: 9px; }
  .orbit { width: min(62%, 230px); }
  .orbit-dashed { width: min(74%, 270px); }
  .scene-mark { width: 35px; border-radius: 8px; font-size: 1.21rem; }
  .scene-seven { width: 28px; font-size: .97rem; }
  .scene-caption { right: 12px; bottom: 12px; font-size: .56rem; }
  .scene-star { width: 16px; height: 16px; }
  .library { margin-top: 33px; }
  .section-intro { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .library-tools { margin: 13px 0 15px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 11px; min-height: 44px; font-size: .79rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-card { border-radius: 15px; padding: 5px; }
  .cover { border-radius: 10px; }
  .cover-label { left: 5px; top: 5px; padding: 3px 5px; gap: 4px; font-size: .51rem; }
  .game-info { padding: 8px 6px 5px; }
  .game-kind { font-size: .62rem; }
  .game-kind span { width: 5px; height: 5px; }
  .game-card h3 { font-size: 1.08rem; }
  .game-description { font-size: .81rem; }
  .preview-button { min-height: 44px; padding-inline: 8px; }
  .kids-panel { grid-template-columns: auto 1fr; gap: 11px; margin: 25px 0 27px; padding: 16px; }
  .book-tile { width: 48px; height: 48px; }
  .book-tile svg { width: 30px; height: 30px; }
  .kids-panel h2 { font-size: 1.25rem; }
  .kids-button { grid-column: 2; justify-self: start; }
  .footer-inner { gap: 8px; flex-wrap: wrap; padding-block: 16px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-scene { height: 228px; }
  .game-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
