:root {
  color-scheme: light;
  --ink: #302044;
  --muted: #594c6b;
  --purple: #642eb1;
  --purple-dark: #50238f;
  --lavender: #eee4ff;
  --paper: #fcfaff;
  --line: #e9dff1;
  --title: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #762bc5; outline-offset: 4px; }
section[id] { scroll-margin-top: 32px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); padding: 12px 20px; border-radius: 12px; background: white; }
.skip:focus { transform: none; }

.header { background: #fff; border-bottom: 1px solid #f0e8f5; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-family: var(--title); }
.brand img { width: 50px; height: 50px; border-radius: 14px; border: 1px solid #f0e8ee; }
.brand small, .brand strong { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .73rem; font-weight: 750; }
.brand strong { color: var(--purple-dark); font-size: 1.28rem; font-weight: 900; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.7vw, 38px); }
.nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 750; font-size: .96rem; }
.nav a:hover { color: var(--purple-dark); }
.nav .nav-play { color: var(--purple-dark); background: var(--lavender); padding: 0 18px; border-radius: 999px; }
.nav-play .icon { fill: #e0c5ff; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(26px, 3.7vw, 55px); margin-block: 28px 0; border: 1px solid #d9efe4; border-radius: 38px; background: radial-gradient(ellipse at 92% 12%, #e1f9ed, transparent 70%), linear-gradient(115deg, #ecf9ef 5%, #e8f6f8 98%); }
.eyebrow, .tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border-radius: 999px; font-weight: 850; }
.eyebrow { padding: 8px 13px; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: #235a48; background: #f7fffa; border: 1px solid #cdeade; }
.eyebrow .icon { stroke-width: 1.9; }
.eyebrow.lavender { color: var(--purple-dark); background: #f1e6ff; border-color: #e9d9ff; }
.eyebrow.peach { color: #8b402e; background: #ffeadb; border-color: #f7dccc; }
h1, h2, h3, .friend strong { font-family: var(--title); font-weight: 900; }
h1 { margin: 16px 0; font-size: clamp(2.7rem, 5.15vw, 4.9rem); letter-spacing: -.067em; line-height: .99; }
h1 em { color: var(--purple); font-style: normal; }
.hero-copy p, .section-heading p, .game-intro p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.62; margin: 0; }
.hero-copy p { max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; font-size: .96rem; text-decoration: none; line-height: 1.25; }
.primary { background: var(--purple); color: #fff; box-shadow: 0 4px 0 #482084; }
.primary:hover { background: var(--purple-dark); }
.outline { border-color: #d6c7ee; color: var(--purple-dark); background: #fff; }
.outline:hover { background: #f4edff; }
.hero-scene { position: relative; border: 7px solid #fff; border-radius: 28px; background: #e8f4ff; box-shadow: 0 14px 36px #6a5e8524; }
.hero-scene img { width: 100%; height: auto; border-radius: 21px; }
.hero-sticker { position: absolute; top: 21px; right: 17px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--purple-dark); padding: 10px 14px; border-radius: 999px; font-weight: 850; font-size: .86rem; box-shadow: 0 5px 12px #4b2b6320; transform: rotate(6deg); }
.hero-sticker .icon { fill: #ffb5cf; stroke: #ae4671; }

.section { padding-block: clamp(48px, 6vw, 86px); }
.video-section { padding-bottom: 0; }
.video-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 4vw, 54px); padding: clamp(20px, 3.6vw, 44px); background: #fff2e9; border: 1px solid #f2ded1; border-radius: 32px; }
.video-copy p { margin: 0; max-width: 37ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.62; }
.video-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.subscribe { background: #a12740; color: #fff; box-shadow: 0 4px 0 #751a32; }
.subscribe:hover { background: #831b34; }
.video-cover { display: block; min-width: 0; padding: 5px; color: var(--purple-dark); background: #fff; border: 1px solid #f2ded1; border-radius: 22px; box-shadow: 0 6px 0 #9d634016; text-decoration: none; }
.video-poster { display: grid; place-items: center; position: relative; border-radius: 16px; overflow: hidden; background: #f7dccd; }
.video-poster img { width: 100%; height: auto; }
.video-play { position: absolute; display: grid; place-items: center; width: clamp(44px, 6vw, 66px); aspect-ratio: 1; padding-left: 3px; color: #fff; background: #a12740; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 14px #331a3a60; }
.video-play .icon { width: 48%; height: 48%; fill: currentColor; }
.video-cover:hover .video-play { background: #831b34; }
.video-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px 8px; font-size: .93rem; font-weight: 850; line-height: 1.35; }
.video-cover:hover .video-caption { text-decoration: underline; }

.section-heading { text-align: center; margin: 0 auto clamp(25px, 3vw, 36px); max-width: 650px; }
h2 { margin: 12px 0 9px; font-size: clamp(2.05rem, 4.1vw, 3.5rem); letter-spacing: -.05em; line-height: 1.06; }
.friend-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dumpli { --tint: #fff1d7; --strong-tint: #f2daa5; }
.chispa { --tint: #fff3bb; --strong-tint: #f7d767; }
.duraznito { --tint: #ffe7db; --strong-tint: #ffbd9b; }
.menta { --tint: #e1f7e8; --strong-tint: #a5e5ae; }
.lila { --tint: #f2e7fc; --strong-tint: #d3a5ec; }
.friend { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 0; text-align: left; color: var(--ink); border: 1px solid var(--line); background: var(--tint); border-radius: 21px; box-shadow: 0 5px 0 #2c18400c; transition: transform .18s ease, border-color .18s ease; }
.friend:hover { transform: translateY(-5px); border-color: var(--strong-tint); }
.friend img { width: 100%; height: auto; border-radius: 20px 20px 0 0; }
.friend-caption { display: grid; gap: 4px; padding: 13px 37px 15px 13px; }
.friend strong { font-size: clamp(1.04rem, 1.75vw, 1.45rem); letter-spacing: -.04em; }
.friend-caption span { color: var(--muted); font-size: .83rem; }
.friend > .icon { position: absolute; right: 10px; bottom: 16px; padding: 6px; width: 29px; height: 29px; color: var(--purple-dark); background: #ffffffb5; border-radius: 50%; }

.stories-section { background: #fff6ef; border-block: 1px solid #f4e8df; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story { min-width: 0; background: #fff; border: 1px solid #efe4ea; border-radius: 23px; display: flex; flex-direction: column; box-shadow: 0 6px 0 #653a320b; }
.story-art { display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; overflow: hidden; gap: 4px; min-height: 150px; height: clamp(155px, 16vw, 200px); padding: 7px; border-radius: 22px 22px 0 0; background: radial-gradient(circle at 18% 22%, #ffffffa0 0 7px, transparent 8px), radial-gradient(circle at 88% 69%, #ffffffc9 0 12px, transparent 13px), radial-gradient(circle at 77% 18%, #ffffff95 0 21px, transparent 22px), radial-gradient(circle at 24% 76%, #ffffff87 0 25px, transparent 26px), var(--tint); }
.story-art img { border: 3px solid #ffffffd9; border-radius: 48%; width: min(45%, 156px); height: auto; }
.story-art.pair img { width: min(37%, 128px); transform: rotate(-7deg); }
.story-art.pair img + img { transform: rotate(7deg); }
.story-body { display: flex; align-items: flex-start; flex: 1; flex-direction: column; gap: 8px; padding: 19px 20px 16px; }
.tag { font-size: .76rem; padding: 5px 10px; color: var(--purple-dark); background: var(--tint, #f0e5ff); }
.story h3, .game-panel h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.62rem); letter-spacing: -.035em; }
.story p { margin: 0 0 4px; color: var(--muted); line-height: 1.54; }
.text-button { color: var(--purple-dark); border: 0; background: none; min-height: 44px; margin-top: auto; padding: 6px 7px 6px 0; font-weight: 850; }
.text-button .icon { margin-left: 4px; }
.text-button:hover { text-decoration: underline; }

.game { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: stretch; gap: clamp(22px, 4vw, 58px); padding: clamp(22px, 4vw, 49px); background: #eee3ff; border: 1px solid #e8d8f8; border-radius: 34px; }
.game-intro h2 { margin-bottom: 12px; }
.game-intro .eyebrow { background: #fff; color: var(--purple-dark); border-color: #e3d5f5; }
.game-intro img { width: 110px; height: 110px; object-fit: cover; border: 4px solid #fff; border-radius: 32px; margin: 20px 0 1px 6px; transform: rotate(-6deg); }
.game-panel { background: #fff; padding: clamp(18px, 3vw, 30px); border-radius: 24px; box-shadow: 0 5px 0 #dac8f0; }
.game-progress { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--purple-dark); font-size: .91rem; font-weight: 850; }
.game-stars { display: inline-flex; gap: 4px; }
.game-stars .icon { width: 20px; height: 20px; color: #9d80bd; }
.game-stars .earned { fill: #ffcb43; stroke: #935c0e; }
.game-choices { display: grid; gap: 8px; margin-top: 15px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 9px 12px; text-align: left; color: var(--ink); border: 1px solid #e8dcf5; border-radius: 12px; background: #f9f4ff; font-weight: 720; }
.choice:not([aria-disabled="true"]):hover { background: #f0e4ff; border-color: #ba9bdd; }
.choice.correct { border-color: #7abca1; background: #e3f8eb; color: #205940; }
.choice[aria-disabled="true"] { cursor: default; }
.choice .icon { margin-left: auto; }
.game-feedback { min-height: 1.6em; margin: 12px 0 7px; color: var(--muted); font-weight: 650; line-height: 1.48; }
.game-feedback.success { color: #255f47; }
.game-feedback.retry { color: #87401f; }
.game-next { margin-top: 5px; }

.footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 17px 0; font-size: .88rem; }
.footer-inner > :first-child { font-weight: 850; color: var(--purple-dark); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
.footer .icon { color: #b44470; fill: #ffe0eb; }

.detail { width: min(545px, calc(100% - 28px)); max-height: calc(100dvh - 34px); padding: 0; color: var(--ink); border: 1px solid #e9ddf4; border-radius: 24px; box-shadow: 0 20px 60px #2b164a4f; }
.detail::backdrop { background: #2b1c49a6; }
body:has(.detail[open]) { overflow: hidden; }
.detail-inner { position: relative; }
.close-detail { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 45px; height: 45px; padding: 0; border-radius: 50%; color: var(--purple-dark); background: #fff; border: 1px solid #e1d3f3; }
.close-detail:hover { background: #eee3ff; }
.detail-image { width: 100%; height: 180px; object-fit: contain; background: var(--tint, #fff1dc); }
.detail-content { padding: clamp(19px, 5vw, 31px); }
.detail h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.detail p { line-height: 1.55; }
.detail-note { border-radius: 14px; padding: 13px 15px; background: var(--tint, #f2e7fc); margin-bottom: 0; font-weight: 750; }

@media (max-width: 1020px) {
  .shell { width: min(1200px, calc(100% - 52px)); }
  .friend-grid { gap: 10px; }
  .friend-caption { padding-left: 9px; padding-right: 29px; }
  .friend > .icon { right: 6px; width: 24px; height: 24px; padding: 4px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; border-radius: 29px; gap: 23px; }
  h1 { font-size: clamp(2.8rem, 8.5vw, 4.25rem); }
  .hero-copy p { max-width: 38ch; }
  .hero-scene { width: min(100%, 590px); margin: 0 auto; }
  .video-feature { grid-template-columns: 1fr; border-radius: 28px; }
  .friend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { height: 160px; }
  .game { grid-template-columns: 1fr; }
  .game-intro { position: relative; padding-right: 84px; }
  .game-intro img { width: 76px; height: 76px; position: absolute; top: 40px; right: 0; border-radius: 22px; margin: 0; }
  .footer-inner { flex-wrap: wrap; gap: 0 15px; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 11px 0 7px; }
  .brand img { width: 43px; height: 43px; }
  .nav { flex-wrap: wrap; justify-content: space-between; gap: 4px; width: 100%; }
  .nav a { padding: 0 5px; font-size: .85rem; }
  .nav .nav-play { padding: 0 10px; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 30px); }
  .hero { padding: 19px; margin-top: 13px; }
  h1 { font-size: clamp(2.25rem, 10vw, 2.65rem); }
  .hero-scene { border-width: 5px; border-radius: 22px; }
  .hero-scene img { border-radius: 17px; }
  .hero-sticker { top: 10px; right: 10px; padding: 6px 10px; font-size: .73rem; }
  .hero-actions .button { padding-inline: 11px; font-size: .85rem; }
  .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friend-caption { padding-left: 12px; }
  .game-intro { padding-right: 64px; }
  .game-intro img { width: 60px; height: 60px; }
}
@media (max-width: 360px) {
  .nav a { padding-inline: 3px; }
  .nav .nav-play { padding-inline: 8px; }
  .nav-play .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
