@font-face {
  font-family: Fredoka;
  src: url("fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #352343;
  --muted: #5d4b66;
  --plum: #733d72;
  --teal: #1c6265;
  --deep-teal: #144b50;
  --line: #e8ddeb;
  --display: Fredoka, ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #64388e; outline-offset: 4px; }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: .5rem; left: .5rem; transform: translateY(-180%); padding: .5rem 1rem; background: white; }
.skip-link:focus { transform: none; }
.header-inner, .header-inner nav, .brand, .footer-inner, .site-footer nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 1.25rem; min-height: 4.9rem; }
.brand { gap: .67rem; font: 610 1.16rem/.95 var(--display); text-decoration: none; }
.brand img { flex: none; border-radius: 25%; }
.header-inner nav, .site-footer nav { gap: clamp(1rem, 3vw, 2.3rem); flex-wrap: wrap; }
.header-inner nav a, .site-footer nav a { text-decoration: none; font-weight: 650; }
.header-inner nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero { position: relative; display: grid; overflow: hidden; isolation: isolate; min-height: clamp(32rem, 42vw, 46rem); background: #fff3df; }
.hero-inner { display: flex; align-items: center; position: relative; z-index: 2; padding-block: 3rem; }
.hero-copy { width: min(48%, 34.5rem); }
h1, h2, h3 { font-family: var(--display); font-weight: 620; }
h1 { max-width: 10ch; font-size: clamp(3.05rem, 5.75vw, 5.3rem); line-height: .94; letter-spacing: -.027em; }
h1 em { font-style: normal; color: var(--plum); }
.hero-copy > p:first-of-type { margin-block: 1.2rem 1.55rem; max-width: 34ch; color: var(--ink); font-size: clamp(1.05rem, 1.55vw, 1.25rem); }
.button { display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; background: var(--teal); color: white; box-shadow: 0 .22rem var(--deep-teal); text-decoration: none; font-weight: 730; }
.button:hover { background: var(--deep-teal); }
.launch { margin-top: 1rem; color: var(--muted); font-size: .9rem; font-weight: 640; }
.hero-art { position: absolute; z-index: 0; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 52%; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #fff5e7d9 2%, #fff5e78c 26%, #fff5e71f 43%, transparent 56%); pointer-events: none; }

.essentials { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem 1rem; list-style: none; margin-block: 0; padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.essentials li + li::before { content: "·"; margin-inline-end: 1rem; color: var(--plum); }

.section { padding-block: clamp(2.8rem, 5vw, 4.5rem); scroll-margin-top: 1rem; }
.section-intro { margin-bottom: clamp(1.35rem, 3.2vw, 2.35rem); }
h2 { font-size: clamp(2.15rem, 4.25vw, 3.2rem); line-height: .98; letter-spacing: -.017em; text-wrap: balance; }
.section-intro p { margin-top: .75rem; color: var(--muted); max-width: 53ch; }
.games { padding-bottom: clamp(2rem, 4.5vw, 4rem); }
.game-gallery { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 3vw, 2rem); }
.device-stage { container-type: size; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: clamp(16rem, 28vw, 22rem); padding: clamp(.85rem, 2vw, 1.5rem); border-radius: 1.2rem; background: var(--stage); }
.stage--mint { --stage: #e4f0e7; }
.stage--pink { --stage: #f7e7ed; }
.stage--gold { --stage: #f8eed7; }
.stage--lilac { --stage: #eee6f5; }
.device-frame {
  --bezel: 5px;
  --corner: 17px;
  width: fit-content;
  max-width: 100%;
  padding: var(--bezel);
  background: #272230;
  border: 1px solid #5f5766;
  border-radius: var(--corner);
  box-shadow: 0 .5rem 1rem #39284332;
}
.device-frame img { width: 100%; height: auto; border-radius: calc(var(--corner) - var(--bezel)); }
.device-stage .device-frame--phone { width: clamp(6.4rem, 10vw, 8.4rem); }
.device-frame--tablet { --bezel: 7px; --corner: 15px; width: min(100%, 31rem, calc((100cqh - 16px) * 16 / 9 + 16px)); }
.game-preview figcaption { padding-top: .8rem; }
h3 { font-size: clamp(1.3rem, 2.35vw, 1.85rem); line-height: 1.04; }
.game-preview p, .family-copy p { margin-top: .45rem; color: var(--muted); }
.game-preview small { display: block; color: var(--muted); margin-top: .35rem; }

.grown-ups { background: #f6ecf7; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2.4vw, 1.7rem); }
.family-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(.85rem, 2vw, 1.6rem); padding: clamp(1rem, 2.3vw, 1.6rem); border-radius: 1.2rem; background: #fffaf7; }
.family-card--controls { background: #eef3e8; }
.family-card .device-frame { --bezel: 4px; --corner: 13px; width: clamp(6.3rem, 10vw, 8.2rem); }

.questions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 1.8rem; }
.answers { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 1rem 0; font-weight: 700; cursor: pointer; }
details p { margin: -.1rem 0 1rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #f4eaf5; }
.footer-inner { min-height: 7rem; justify-content: space-between; gap: 1.3rem; padding-block: 1.2rem; }
.site-footer p { font-weight: 740; }
.site-footer small { color: var(--muted); font-weight: 550; }

@media (701px <= width <= 950px) {
  .hero::after { background: linear-gradient(90deg, #fff5e7ed 2%, #fff5e7c7 32%, #fff5e747 46%, transparent 59%); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.3rem; gap: .9rem; }
  .header-inner nav { gap: .45rem .7rem; justify-content: flex-end; font-size: .83rem; }
  .brand { font-size: .99rem; gap: .5rem; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: 2rem .55rem; }
  .hero-copy { width: 100%; }
  h1 { max-width: 13ch; font-size: clamp(2.55rem, 9vw, 4.1rem); }
  .hero-copy > p:first-of-type { margin-block: .68rem 1rem; }
  .launch { margin-top: .8rem; }
  .hero-art { position: relative; width: 100%; aspect-ratio: 1.55; }
  .hero-art img { object-position: center 48%; }
  .hero::after { inset: auto 0 0; height: auto; aspect-ratio: 1.55; background: linear-gradient(#fff3df 0%, transparent 22%); }
  .essentials { padding-block: .75rem; font-size: .8rem; gap: .35rem .55rem; }
  .essentials li + li::before { margin-inline-end: .55rem; }
  .game-gallery { grid-template-columns: minmax(0, 1fr); }
  .device-stage { height: 17rem; }
  .family-grid, .questions { grid-template-columns: minmax(0,1fr); }
  .questions { gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { gap: .4rem 1.1rem; }
}
@media (max-width: 360px) {
  .header-inner nav { gap: .25rem .45rem; }
  .header-inner nav a { white-space: nowrap; }
  .brand { font-size: .91rem; }
}

.header-inner nav .nav-download {
  padding: .38rem .78rem;
  border: 1px solid #d3c4da;
  border-radius: 999px;
  background: #fffdf9;
}
.header-inner nav .nav-download:hover { background: #f1e6f2; }
.launch { display: block; width: fit-content; text-underline-offset: .2em; }
.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 4vw, 3.5rem);
  align-items: center;
  background: #f1e7f3;
  border-radius: 1.2rem;
  padding: clamp(1.1rem, 3.8vw, 2.5rem);
  margin-bottom: clamp(3.4rem, 7vw, 6.25rem);
  scroll-margin-top: 1rem;
}
.download-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.download-copy > p { margin-top: .7rem; max-width: 37ch; color: var(--muted); }
.store-status { margin: 0; border-top: 1px solid var(--line); }
.store-status > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.store-status dt { font-weight: 710; }
.store-status small { display: block; margin-top: .08rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.store-status dd { margin: 0; color: var(--muted); font-size: .88rem; text-align: right; }
@media (max-width: 700px) {
  .header-inner nav .nav-download { padding: .22rem .47rem; }
  .downloads { grid-template-columns: minmax(0, 1fr); }
}

.account-page { width: min(34rem, calc(100% - 2rem)); margin-inline: auto; padding-block: clamp(1.5rem, 5vw, 4rem); }
.account-back { display: inline-block; margin-block: 1.7rem .85rem; color: var(--teal); font-weight: 650; }
.account-card { padding: clamp(1.15rem, 5vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; }
.account-card h1 { max-width: none; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.account-card > p { margin-top: .85rem; }
.account-card form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.account-card form[hidden] { display: none; }
.account-field label { display: block; margin-bottom: .3rem; font-weight: 700; }
.account-field input { width: 100%; padding: .65rem .75rem; border: 1px solid #807287; border-radius: .5rem; color: var(--ink); font: inherit; }
.account-reset { padding: .5rem 0 0; border: 0; background: transparent; color: var(--teal); font: inherit; text-decoration: underline; cursor: pointer; }
.account-confirm { display: flex; align-items: baseline; gap: .6rem; }
.account-confirm input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--teal); }
.account-submit { padding: .72rem 1rem; border: 0; border-radius: .6rem; background: #8b283e; color: white; font: inherit; font-weight: 730; cursor: pointer; }
.account-submit:hover { background: #702034; }
.account-card button:disabled { cursor: default; opacity: .65; }
.account-card :is(button, input):focus-visible { outline: 3px solid #64388e; outline-offset: 3px; }
#account-deletion-status:empty { margin: 0; }
#account-deletion-status[data-state="error"] { color: #8b283e; font-weight: 650; }
#account-deletion-status[data-state="success"] { color: var(--deep-teal); font-weight: 650; }
.account-note { margin-top: 1rem; color: var(--muted); font-size: .925rem; }
