:root {
  --ink: #211d36;
  --muted: #5f6074;
  --purple: #7768dc;
  --purple-light: #e9e4ff;
  --line: #29243c;
  --paper: #fbfbff;
  --header-height: 68px;
  font-family: Inter, ui-rounded, "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f4ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow: hidden; }
button, a, summary { font: inherit; }
button, summary { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
.gameplay-summary { max-width: 440px; margin: 16px 0 20px; font-size: 14px; line-height: 1.6; font-weight: 600; color: #48445b; }
@media (max-width: 980px) { .gameplay-summary { margin-inline: auto; max-width: 380px; } }
button { letter-spacing: 0; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; border: 2px solid var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header-height); background: #ffffffed; border-bottom: 2px solid #d7d1f0; backdrop-filter: blur(16px); }
.nav-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.nav-inner > .brand { grid-column: 1; grid-row: 1; justify-self: start; }
.section-navigation { position: relative; grid-column: 2; grid-row: 1; justify-self: center; }
.section-navigation > summary { display: none; }
.section-navigation .section-links { display: flex; align-items: center; gap: 16px; }
.section-links a, .section-links button { font-size: 12px; font-weight: 800; white-space: nowrap; }
.section-links button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.section-links a:hover, .section-links button:hover { color: #6751bc; }
@media (max-width: 1200px) {
  .section-navigation > summary { display: block; cursor: pointer; list-style: none; padding: 8px; border: 2px solid var(--line); background: white; border-radius: 4px; }
  .section-navigation:not([open]) .section-links { display: none; }
  .section-navigation .section-links { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: max-content; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 8px; background: #fff; border: 2px solid var(--line); border-radius: 4px; box-shadow: 4px 4px 0 #c7bee9; }
  .section-links a, .section-links button { padding: 12px; }
}
.brand { display: block; width: 154px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.header-socials { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 8px; margin-left: 0; }
.header-socials a { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 5px; color: #fff; box-shadow: 2px 2px 0 #c7bee9; transition: transform .15s ease, box-shadow .15s ease; }
.header-socials a:hover, .header-socials a:focus-visible { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.header-socials svg { width: 16px; height: 16px; fill: currentColor; }
.header-socials .facebook { background: #1877f2; }
.header-socials .instagram { background: linear-gradient(145deg, #6f43d8, #e3308d 48%, #f19b38); }
.header-socials .tiktok { background: #050505; }
.header-socials .youtube { background: #f00; }
.header-socials .discord { background: #5865f2; }
@media (max-width: 380px) {
  .site-header .nav-inner { gap: 6px; }
  .site-header .brand { width: 104px; }
  .site-header .header-socials { gap: 3px; }
  .site-header .header-socials a { width: 22px; height: 22px; }
}
.footer-nav a, .social-links a, .back-top { border-bottom: 2px solid transparent; }
.footer-nav a:hover, .social-links a:hover, .back-top:hover { border-color: var(--purple); }
.language-picker { position: relative; }
.language-picker summary { list-style: none; min-width: 92px; padding: 9px 11px; border: 2px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-menu { position: absolute; top: 43px; right: 0; display: grid; width: 132px; padding: 7px; border: 2px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 4px 4px 0 #b9afea; }
.language-menu span { padding: 8px 9px; color: #9290a0; font-size: 12px; font-weight: 800; }
.language-menu [aria-current] { color: var(--ink); background: var(--purple-light); }
.nav-cta, .primary-button, .process-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 18px; border: 2px solid var(--line); border-radius: 4px; background: #8f80eb; color: #161224; box-shadow: 4px 4px 0 var(--line); font-size: 12px; font-weight: 900; cursor: pointer; }
.nav-cta:hover, .primary-button:hover, .process-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--line); }

#main { position: fixed; inset: var(--header-height) 0 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; }
.panel { position: relative; display: flex; min-height: 100%; padding: clamp(46px, 6vh, 72px) 0 58px; overflow: hidden; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5; background-image: linear-gradient(#8d82d514 1px, transparent 1px), linear-gradient(90deg, #8d82d514 1px, transparent 1px); background-size: 28px 28px; }
.hero { background: #d8f5fb; }
.how-section { background: #e5f2ec; }
.how-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.how-copy h2 { margin-top: 10px; }
.how-awaken { display: grid; grid-template-columns: minmax(0,140px) 48px minmax(0,140px); align-items: center; gap: 18px; margin-top: 42px; }
.how-awaken figure { min-width: 0; text-align: center; }
.how-awaken figure > img, .how-result-frame { width: 100%; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 4px; background: #eeeaff; box-shadow: 3px 3px 0 #b6ace4; object-fit: cover; }
.how-awaken figcaption { margin-top: 10px; font-size: 12px; font-weight: 900; }
.how-ai { cursor: pointer; min-height: 36px; animation: how-wiggle 1.2s ease-in-out infinite; }
.how-ai[aria-expanded="true"] { animation: none; }
.how-ai:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.how-result-frame { display: grid; place-items: center; overflow: hidden; }
.how-result-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.how-result-frame [hidden] { display: none; }
.how-question { color: var(--purple); font-size: 40px; font-weight: 900; }
.how-result.is-revealed img { animation: how-reveal .4s ease-out; }
.how-loop { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; }
.how-loop figure { position: relative; min-width: 0; text-align: center; }
.how-loop figure > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.how-loop figcaption { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 2px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 2px 2px 0 #8a7cdf; font-size: 11px; font-weight: 900; }
.how-loop figcaption span { color: var(--purple); }
.how-loop figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.how-loop figure:nth-child(4) { grid-column: 1; grid-row: 2; }
.how-loop figure:not(:last-child)::after { content: "\2192"; position: absolute; right: -26px; top: 45%; color: var(--purple); font-size: 25px; font-weight: 900; }
.how-loop figure:nth-child(2)::after { right: 48%; top: auto; bottom: -28px; transform: rotate(90deg); }
.how-loop figure:nth-child(3)::after { right: auto; left: -26px; transform: rotate(180deg); }
@keyframes how-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76%, 88% { transform: rotate(-8deg); } 82%, 94% { transform: rotate(8deg); } }
@keyframes how-reveal { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 980px) { .how-layout { grid-template-columns: 1fr; gap: 32px; } .how-loop { width: min(600px,100%); margin-inline: auto; } }
@media (max-width: 650px) { .how-awaken { grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); gap: 12px; margin-top: 26px; } .how-loop { gap: 24px 20px; } .how-loop figcaption { padding: 5px; gap: 4px; font-size: 9px; } .how-loop figure:not(:last-child)::after { right: -18px; font-size: 20px; } .how-loop figure:nth-child(2)::after { right: 45%; } .how-loop figure:nth-child(3)::after { right: auto; left: -18px; } }
@media (prefers-reduced-motion: reduce) { .how-ai, .how-result.is-revealed img { animation: none; } }
.stories-section, .workshop-section, .pets-section { background: #b8edfa; }
.section-islands { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.section-islands img { position: absolute; height: auto; aspect-ratio: 1; object-fit: contain; opacity: 1; }
.section-islands img:nth-child(1) { left: -8%; top: -6%; transform: translateY(-45%); }
.section-islands img:nth-child(2) { right: -8%; top: 4%; }
.section-islands img:nth-child(3) { left: -8%; bottom: -6%; }
.section-islands img:nth-child(4) { right: -8%; bottom: -10%; }
.final-panel { background: #b8edfa; padding-bottom: 0; flex-direction: column; }
.eyebrow { color: #6252c3; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ai-label { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; min-height: 23px; padding: 3px 7px 3px 5px; border: 2px solid #000; border-radius: 2px; background: #eeeaff; box-shadow: 2px 2px 0 #8e80df; color: #5140b3; font-size: 10px; font-weight: 900; line-height: 1; white-space: nowrap; }
.ai-label img { width: 13px !important; height: 13px !important; object-fit: contain !important; }
h1, h2 { letter-spacing: 0; font-weight: 950; line-height: 1.03; text-wrap: balance; white-space: nowrap; }
h1 { margin-top: 13px; }
h1 span { color: #6252c3; }
h1, h2 { font-size: 46px; }
.section-description, .hero-description { color: var(--muted); font-size: 15px; font-weight: 650; line-height: 1.65; text-wrap: balance; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #4f42aa; font-size: 13px; font-weight: 900; }
.next-panel { position: absolute; left: 50%; bottom: 17px; z-index: 5; transform: translateX(-50%); color: #554d6b; font-size: 11px; font-weight: 900; }
.mascot { object-fit: contain; }

.hero-sky { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.hero-clouds { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; background: #84dffa url('/portable-assets/hero-blue-sky.webp') center / cover; }
.hero-clouds > span { --cloud-width: 340px; position: absolute; left: calc(-1 * var(--cloud-width)); top: 5%; width: var(--cloud-width); aspect-ratio: 1997 / 529; background: url('/portable-assets/hero-cloud-sprite.webp') center / contain no-repeat; image-rendering: pixelated; animation: hero-cloud-drift 150s linear infinite; animation-delay: -20s; will-change: transform; }
.hero-clouds > span:nth-child(2) { top: 17%; --cloud-width: 230px; animation-delay: -95s; }
.hero-clouds > span:nth-child(3) { top: 35%; --cloud-width: 280px; animation-delay: -55s; }
.hero-clouds > span:nth-child(4) { top: 57%; --cloud-width: 380px; animation-delay: -120s; }
.hero-clouds > span:nth-child(5) { top: 77%; --cloud-width: 260px; animation-delay: -35s; }
.hero-clouds > span:nth-child(6) { top: 90%; --cloud-width: 320px; animation-delay: -85s; }
.hero-clouds > span:nth-child(7) { top: 2%; --cloud-width: 210px; animation-delay: -105s; }
.hero-clouds > span:nth-child(8) { top: 10%; --cloud-width: 390px; animation-delay: -60s; }
.hero-clouds > span:nth-child(9) { top: 24%; --cloud-width: 170px; animation-delay: -135s; }
.hero-clouds > span:nth-child(10) { top: 30%; --cloud-width: 280px; animation-delay: -20s; }
.hero-clouds > span:nth-child(11) { top: 42%; --cloud-width: 330px; animation-delay: -110s; }
.hero-clouds > span:nth-child(12) { top: 48%; --cloud-width: 190px; animation-delay: -40s; }
.hero-clouds > span:nth-child(13) { top: 61%; --cloud-width: 230px; animation-delay: -65s; }
.hero-clouds > span:nth-child(14) { top: 67%; --cloud-width: 420px; animation-delay: -145s; }
.hero-clouds > span:nth-child(15) { top: 73%; --cloud-width: 180px; animation-delay: -90s; }
.hero-clouds > span:nth-child(16) { top: 83%; --cloud-width: 350px; animation-delay: -115s; }
.hero-clouds > span:nth-child(17) { top: 91%; --cloud-width: 240px; animation-delay: -30s; }
.hero-clouds > span:nth-child(18) { top: 96%; --cloud-width: 410px; animation-delay: -70s; }
.hero-clouds > span:nth-child(6n + 1) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-1.webp'); aspect-ratio: 1; }
.hero-clouds > span:nth-child(6n + 2) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-2.webp'); aspect-ratio: 1; animation-duration: 180s; }
.hero-clouds > span:nth-child(6n + 3) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-3.webp'); aspect-ratio: 1; animation-duration: 130s; }
.hero-clouds > span:nth-child(6n + 4) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-4.webp'); aspect-ratio: 1; animation-duration: 165s; }
.hero-clouds > span:nth-child(6n + 5) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-5.webp'); aspect-ratio: 1; }
.hero-clouds > span:nth-child(6n + 6) { --cloud-width: 224px; background-image: url('/portable-assets/cloud-fine-6.webp'); aspect-ratio: 1; animation-duration: 170s; }
@keyframes hero-cloud-drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + var(--cloud-width))); } }
@media (prefers-reduced-motion: reduce) { .hero-clouds > span { animation-play-state: paused; will-change: auto; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #ecfbffd9 0%, #ecfbffa8 39%, #ecfbff1c 69%); }
.hero-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(26px, 4vw, 68px); }
.hero-copy { position: relative; padding: 10px 0; }
.hero-brand-lockup { display: flex; align-items: center; width: min(450px, 92%); }
.hero-wordmark { width: min(390px, 82%); }
.hero-ai-label { flex: 0 0 auto; align-self: flex-start; margin-left: 18px; }
.awaken-connector::before { content: ''; position: absolute; left: calc(50% + 23px); bottom: calc(50% - 8px); z-index: 3; width: 29px; height: 32px; background: url('/portable-assets/icon-tap-hand-cute.webp') center / contain no-repeat; image-rendering: pixelated; pointer-events: none; }
.awaken-connector:has(.how-ai[aria-busy="true"])::before, .awaken-connector:has(.how-ai[aria-expanded="true"])::before { display: none; }
.hero-positioning { position: relative; display: inline-block; margin-top: 17px; padding: 7px 12px; border-radius: 2px; background: #242035; color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.positioning-typed { display: none; }
.hero-positioning.is-typing .positioning-reserve { opacity: 0; }
.hero-positioning.is-typing .positioning-typed { display: block; position: absolute; inset: 7px 12px; text-align: left; white-space: nowrap; }
.hero-positioning.is-typing .positioning-typed::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -.12em; animation: positioning-caret .8s steps(1) infinite; }
@keyframes positioning-caret { 50% { opacity: 0; } }
.hero h1 { max-width: 530px; margin-top: 18px; }
.character-journey { display: grid; grid-template-columns: 94px 24px 88px 24px 78px; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin-top: 24px; }
.character-journey > span { color: var(--purple); font-size: 25px; font-weight: 900; text-align: center; }
.character-journey figure { position: relative; min-width: 0; text-align: center; }
.character-journey figure > img { width: 100%; height: 94px; object-fit: cover; object-position: top; border: 2px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 3px 3px 0 #a99ee3; }
.character-journey .journey-resident > img { height: 94px; padding: 5px; object-fit: contain; object-position: center; image-rendering: pixelated; }
.journey-ai-label { position: absolute; top: -8px; left: -8px; z-index: 3; }
.character-journey figcaption { margin-top: 6px; font-size: 10px; font-weight: 900; }
.hero-actions { display: flex; align-items: center; gap: 15px; margin-top: 24px; }
.hero-actions .primary-button { min-height: 45px; }
.hero-actions { flex-wrap: wrap; }
.app-store-link { display:inline-flex; flex:none; align-items:center; line-height:0; }
.app-store-link img { display:block; width:156px; height:auto; max-width:none; }
.google-play-link { display:inline-flex; flex:none; align-items:center; justify-content:center; width:176px; height:52px; line-height:0; }
.google-play-link img { display:block; width:200px; height:auto; max-width:none; }
.google-play-link:focus-visible { outline:3px solid #6252c3; outline-offset:5px; border-radius:7px; }
.app-store-link:focus-visible { outline:3px solid #6252c3; outline-offset:5px; border-radius:7px; }
.how-play-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 2px solid var(--line); border-radius: 8px; background: #eeeaff; color: var(--line); box-shadow: 3px 3px 0 #8a7cdf; font: inherit; font-size: 11px; font-weight: 900; white-space: nowrap; cursor: pointer; transition: transform .18s ease; }
.how-play-button img { width: 26px; height: 26px; }
.how-play-button:hover { transform: translateY(-2px); }
.how-play-button:active { transform: translateY(1px); }
#how-play-dialog { width: min(860px, calc(100% - 24px)); }
#how-play-dialog .dialog-bar { position: sticky; top: 0; z-index: 1; background: #f8f7ff; }
.how-play-image { display: block; cursor: zoom-in; }
.how-play-image img { display: block; width: 100%; height: auto; }
.discord-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 20px; border: 2px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 4px 4px 0 var(--line); font-size: 12px; font-weight: 900; }
.discord-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--line); }
.world-showcase { position: relative; min-height: 610px; padding-top: 22px; }
.world-label { position: absolute; top: 28px; left: 12%; z-index: 3; padding: 7px 11px; border: 2px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 3px 3px 0 #8c7fe2; font-size: 11px; font-weight: 900; }
.featured-world { position: absolute; inset: 30px 0 82px; display: grid; place-items: center; }
.featured-world > img { width: 94%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px #3d617638); -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; transition: opacity .16s ease, transform .16s ease; }
.featured-world figcaption { position: absolute; right: 7%; bottom: 5%; padding: 7px 10px; border: 2px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 3px 3px 0 #8c7fe2; font-size: 11px; font-weight: 900; }
.world-phone { position: absolute; left: 3%; bottom: 126px; z-index: 4; width: 148px; text-align: center; }
.phone-preview-open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; background: transparent; cursor: zoom-in; }
.phone-preview-open > img { width: 100%; height: auto; object-fit: contain; border: 5px solid #262433; border-radius: 20px; background: #262433; box-shadow: 0 0 0 2px #a6aec0, 7px 9px 0 #7166bd66; }
.phone-preview-open > span { position: absolute; right: 8px; bottom: 9px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 2px 2px 0 #8c7fe2; font-size: 18px; font-weight: 900; }
.phone-preview-open:hover > img, .phone-preview-open:focus-visible > img { filter: brightness(1.05); }
.world-story-card { position: absolute; top: 62px; right: 0; z-index: 4; width: 178px; padding: 7px; border: 3px solid var(--line); border-radius: 4px; background: #f8f5ff; box-shadow: 6px 6px 0 #887be0; transform: rotate(2deg); cursor: pointer; transition: opacity .16s ease, transform .16s ease; }
.world-story-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.world-story-card span { display: block; padding: 7px 3px 2px; font-size: 10px; font-weight: 900; text-align: left; }
.world-showcase.is-changing .featured-world > img, .world-showcase.is-changing .world-story-card { opacity: .18; transform: translateY(4px); }
.world-picker { position: absolute; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 7px; border: 2px solid var(--line); border-radius: 4px; background: #ffffffdf; box-shadow: 5px 5px 0 #8478d6; }
.world-picker button { min-width: 0; padding: 4px; border: 2px solid transparent; border-radius: 3px; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.world-picker button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #8b84a6; }
.world-picker button span { display: block; margin-top: 4px; }
.world-picker button:hover, .world-picker button:focus-visible { border-color: #8d80e8; background: #f0edff; }
.world-picker button.is-active { border-color: var(--line); background: #e8e3ff; box-shadow: 2px 2px 0 #8175d6; }

.story-layout { display: grid; grid-template-columns: 1fr; align-items: center; gap: 28px; }
.story-heading .section-description { max-width: 560px; margin-top: 20px; }
.story-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; width: min(470px, 100%); margin-top: 20px; }
.story-inputs article { position: relative; min-width: 0; border: 2px solid var(--line); border-radius: 4px; background: #ffffffa8; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.story-inputs article:hover, .story-inputs article:focus-within { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #9e92df; }
.story-input-card { position: relative; display: block; width: 100%; height: 100%; padding: 8px 8px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.story-input-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #17131c; }
.story-card-ai .story-input-media, .story-input-share .story-input-media { background: #f7f4ff; }
.story-input-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story-input-raised .story-input-media img { object-position: center 38%; transform: scale(1.04) translateY(-5px); }
.story-input-share .story-input-media img { object-position: center 74%; }
.story-inputs .input-index { position: absolute; top: 13px; left: 13px; padding: 3px 5px; background: #fff; border: 1px solid var(--line); font-size: 9px; font-weight: 900; }
.story-input-ai { position: absolute; top: 13px; left: 13px; z-index: 3; }
.story-card-ai .input-index { right: 13px; left: auto; z-index: 3; }
.story-inputs strong, .story-input-card > span:last-child { display: block; }
.story-inputs strong { margin-top: 9px; font-size: 11px; }
.story-input-card > span:last-child { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.story-visual { position: relative; min-width: 0; text-align: center; }
.story-gallery { transition: opacity .24s ease, transform .24s ease; }
.story-visual.is-changing .story-gallery { transform: translateY(4px); }
.mascot-story { position: absolute; top: -63px; right: 0; z-index: 4; width: 78px; transform: rotate(8deg); }
.story-gallery { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 490px; }
.side-card, .story-open { padding: 0; border: 2px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 5px 5px 0 #9e92df; overflow: hidden; cursor: pointer; }
.side-card { flex: 0 0 105px; opacity: 1; }
.side-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.side-left { transform: rotate(-4deg); }
.side-right { transform: rotate(4deg); }
.main-story-card { width: min(300px, 58%); }
.story-open { width: 100%; }
.story-open img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.main-story-card figcaption { margin-top: 12px; font-size: 13px; font-weight: 900; }
.story-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 7px; }
.round-button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.story-controls p { min-width: 100px; font-size: 12px; font-weight: 900; text-align: center; }
.story-controls p span { color: var(--muted); }
.media-note { margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }

.workshop-layout { align-self: center; }
.split-heading { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 40px; }
.split-heading h2 { margin-top: 10px; }
.split-heading .section-description { padding-bottom: 8px; }
.workshop-flow { display: grid; grid-template-columns: 142px 1.25fr 1fr .92fr; align-items: stretch; gap: 12px; margin-top: 26px; }
.workshop-flow figure { min-width: 0; padding: 9px; border: 2px solid var(--line); border-radius: 4px; background: #ffffffb8; }
.workshop-flow figure img { width: 100%; object-fit: cover; border-radius: 2px; }
.workshop-flow figcaption { margin-top: 9px; font-size: 11px; font-weight: 900; text-align: center; }
.career-column { display: grid; grid-template-rows: repeat(6, 1fr); gap: 6px; }
.career-column figure { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 7px; padding: 5px; }
.career-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #9489c0; border-radius: 3px; background: #eeeaff; color: var(--ink); }
.career-column .career-icon img { width: 35px; height: 35px; object-fit: contain; image-rendering: pixelated; }
.career-column figure figcaption { margin: 0; text-align: left; font-size: 9px; }
.career-more { display: grid; place-items: center; min-height: 42px; border: 2px dashed #8e83bd; border-radius: 4px; background: #ffffff8c; font-size: 22px; font-weight: 950; letter-spacing: 3px; }
.workplace-column { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.workplace-column figure { display: flex; flex-direction: column; min-height: 0; }
.workplace-column figure img { flex: 1; min-height: 0; height: 104px; }
.workplace-column figure figcaption { margin-top: 6px; }
.ai-creation { display: flex; flex-direction: column; justify-content: center; background: #ddd6ff !important; text-align: center; }
.ai-creation-visual { position: relative; }
.ai-creation-visual > img { height: 210px; }
.ai-creation-visual > span { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 44px; height: 32px; border: 2px solid var(--line); background: #fff; box-shadow: 3px 3px 0 #7d6fd6; font-size: 14px; font-weight: 950; }
.ai-creation small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.world-result { display: flex; flex-direction: column; }
.world-result img { flex: 1; min-height: 0; height: 250px; }
.process-button { margin: 22px auto 0; }
.mascot-workshop { position: absolute; right: 3%; bottom: 30px; width: 82px; transform: rotate(-8deg); }

.pet-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(36px, 6vw, 90px); }
.pet-copy { position: relative; }
.pet-copy h2 { margin-top: 12px; }
.pet-copy .section-description { margin-top: 20px; }
.mascot-pet { width: 95px; margin-bottom: 15px; transform: rotate(-6deg); }
.pet-steps { display: flex; gap: 8px; margin-top: 24px; }
.pet-steps span, .story-logic li { padding: 7px 12px; border: 2px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 2px 2px 0 #8a7cdf; font-size: 11px; font-weight: 900; }
.pet-visual { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 14px; }
.pet-visual figure { padding: 10px; border: 2px solid var(--line); border-radius: 4px; background: #ffffffb8; box-shadow: 5px 5px 0 #a99ee3; }
.pet-visual figure img { width: 100%; object-fit: contain; }
.pet-evolution { grid-column: 1 / -1; }
.pet-evolution-flow { display: grid; grid-template-columns: 1fr 92px 1fr 92px 1fr; align-items: center; gap: 5px; }
.pet-stage { min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #aaa0d1; border-radius: 3px; background: #f4f3e9; }
.pet-stage img { width: 100%; height: 100%; object-fit: contain !important; object-position: center; }
.gene-link { position: relative; display: grid; place-items: center; min-width: 0; }
.gene-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.gene-link .ai-label { position: relative; z-index: 1; min-width: 62px; padding-inline: 4px; font-size: 8px; }
.pet-invasion, .pet-battle { display: flex; flex-direction: column; }
.pet-invasion > img, .pet-battle button, .pet-battle button img { width: 100%; height: 225px; }
.pet-invasion > img { object-fit: cover; object-position: center; }
.pet-battle button { width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pet-battle button img { object-fit: cover; object-position: top; }
.pet-visual figcaption { margin-top: 9px; font-size: 11px; font-weight: 900; text-align: center; }

.pet-preview { width: min(292px, 100%); margin-top: 26px; }
.pet-preview-stages { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 8px; align-items: center; }
.pet-preview .pet-stage { border: 2px solid var(--line); border-radius: 4px; background: #eeeaff; box-shadow: 3px 3px 0 #b6ace4; }
.pet-preview .pet-stage img { padding: 5px; }
.pet-preview figcaption { margin-top: 10px; font-size: 10px; font-weight: 900; white-space: nowrap; text-align: left; }
.reveal-mystery { position: relative; }
.reveal-mystery:not(.is-unlocked) > img, .reveal-mystery:not(.is-unlocked) > .character-walk { opacity: 0; }
.reveal-mystery:not(.is-unlocked) > .character-walk { animation-play-state: paused; }
.reveal-mystery:not(.is-unlocked)::after { content: ''; position: absolute; inset: 0; background: #eeeaff; pointer-events: none; }
.reveal-mystery:not(.is-unlocked)::before { content: '?'; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--ink); font-size: 40px; font-weight: 900; pointer-events: none; animation: how-wiggle 1.2s ease-in-out infinite; }
.reveal-mystery.is-charging::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .reveal-mystery:not(.is-unlocked)::before { animation: none; } }
.how-ai.is-charging { position: relative; overflow: hidden; isolation: isolate; animation: none; cursor: progress; opacity: 1; }
.how-ai.is-charging::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: #b6ace4; z-index: -1; border-right: 2px solid #7763c4; }
.how-result-frame.is-activating { animation: awaken-frame .65s ease-out; }
@media (prefers-reduced-motion: reduce) { .how-result-frame.is-activating { animation: none; } }
button.reveal-mystery:disabled { cursor: default; }
@media (max-width: 980px) { .pet-preview, .pet-logic { margin-inline: auto; } }
.join-section { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 25px; }
.mascot-goodbye { width: 112px; margin-bottom: 13px; }
.homepage-faq { max-width:800px; padding-block:46px 64px; position:relative; z-index:2; }
.homepage-faq>h2 { margin:12px 0 28px; font-size:28px; text-align:center; }
.homepage-faq>.eyebrow { text-align:center; }
.homepage-faq details { border-bottom:1px solid #aca3d7; background:#f5fbffe8; }
.homepage-faq summary { cursor:pointer; padding:18px 16px; font-size:14px; font-weight:800; }
.homepage-faq details p { padding:0 16px 20px; font-size:14px; line-height:1.7; color:#48445b; }
.homepage-faq details a { text-decoration:underline; }
.final-panel .join-section { min-height:500px; }
.join-section h2 { margin-top: 12px; }
.join-section .section-description { max-width: 610px; margin-top: 18px; }
.join-actions { display: flex; flex-wrap:wrap; align-items: center; gap: 28px; margin-top: 25px; }
.site-footer { padding: 22px 0 17px; border-top: 2px solid #b8aee4; background: #ffffff40; }
.footer-top, .footer-bottom, .social-links { display: flex; align-items: center; }
.footer-top { gap: 26px; }
.footer-top .brand { width: 118px; }
.footer-nav { display: flex; gap: 20px; margin-left: auto; font-size: 11px; font-weight: 900; }
.back-top { font-size: 11px; font-weight: 900; }
.social-links { justify-content: center; gap: 20px; margin-top: 18px; font-size: 10px; font-weight: 900; }
.footer-top .brand { flex-shrink: 0; }
.footer-top .social-links { margin: 0 0 0 auto; }
.footer-sections > span { color: var(--muted); cursor: default; white-space: nowrap; }
@media (max-width: 650px) {
  .footer-top { gap: 18px; }
  .footer-top .brand { width: 88px; }
  .footer-top .social-links { gap: 8px 12px; justify-content: flex-start; }
}
.footer-bottom { justify-content: center; flex-wrap: wrap; gap: 17px; margin-top: 17px; color: #5f5b70; font-size: 9px; }

.panel-nav { position: fixed; right: 17px; top: 50%; z-index: 20; transform: translateY(-50%); }
.panel-nav a { position: relative; display: grid; place-items: center; width: 30px; height: 35px; }
.panel-nav a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6750825e; transition: .2s; }
.panel-nav a[aria-current]::after { width: 7px; height: 22px; border-radius: 5px; background: var(--purple); }
.panel-nav span { position: absolute; right: 33px; padding: 5px 9px; border: 1px solid #aca3d7; border-radius: 3px; background: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; opacity: 0; }
.panel-nav a:hover span, .panel-nav a:focus-visible span { opacity: 1; }

dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 3px solid var(--line); border-radius: 5px; background: #f8f7ff; box-shadow: 10px 10px 0 #7669c8; }
dialog::backdrop { background: #262037b8; backdrop-filter: blur(3px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.dialog-bar h2 { font-size: 18px; }
.dialog-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid var(--line); border-radius: 3px; background: #fff; font-size: 22px; cursor: pointer; }
.expanded-card { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 105px); margin: auto; object-fit: contain; }
.dialog-wide-image { width: 100%; max-height: calc(100vh - 105px); object-fit: contain; }
.dialog-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.dialog-process figure { min-width: 0; }
.dialog-process img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--line); }
.dialog-process figcaption { margin-top: 8px; font-size: 10px; font-weight: 900; text-align: center; }
.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  body { overflow: auto; }
  .nav-cta { display: none; }
  #main { position: relative; inset: auto; padding-top: var(--header-height); overflow: visible; }
  .panel { min-height: auto; padding: 72px 0 76px; }
  .hero-layout, .story-layout, .pet-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 16px; }
  .hero-copy { text-align: center; }
  .hero-brand-lockup { justify-content: center; margin-inline: auto; }
  .hero-wordmark { margin-inline: auto; }
  .hero h1 { margin-inline: auto; }
  .character-journey { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .world-showcase { width: min(710px, 100%); min-height: 560px; margin-inline: auto; }
  .story-layout { gap: 45px; }
  .story-copy { text-align: center; }
  .story-heading .section-description { margin-inline: auto; }
  h1, h2 { font-size: 44px; }
  .workshop-flow { grid-template-columns: 142px 1fr 1fr; }
  .world-result { grid-column: 2 / -1; }
  .pet-layout { gap: 35px; }
  .pet-copy { text-align: center; }
  .mascot-pet { margin-inline: auto; }
  .pet-steps { justify-content: center; }
  .panel-nav { display: none; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 540px); }
  .site-header { height: 58px; }
  :root { --header-height: 58px; }
  .brand { width: 122px; }
  .nav-inner { gap: 8px; }
  .header-socials { gap: 4px; }
  .header-socials a { width: 24px; height: 24px; border-width: 1px; box-shadow: 1px 1px 0 #c7bee9; }
  .header-socials svg { width: 13px; height: 13px; }
  .language-picker summary { min-width: 84px; padding: 7px 9px; }
  .panel { padding-top: 54px; }
  h1, h2 { font-size: 27px; }
  .hero-kicker { font-size: 16px; }
  .hero-positioning { font-size: 10px; }
  .character-journey { grid-template-columns: 76px 17px 70px 17px 64px; gap: 3px; }
  .character-journey figure > img { height: 76px; }
  .character-journey .journey-resident > img { height: 76px; }
  .character-journey > span { font-size: 19px; }
  .world-showcase { min-height: 470px; }
  .featured-world { inset: 30px 0 110px; }
  .world-story-card { top: 62px; width: 124px; }
  .world-phone { left: 2%; bottom: 121px; width: 92px; }
  .world-picker { grid-auto-columns: 84px; grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; }
  .story-inputs { grid-template-columns: 1fr; }
  .story-input-card { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; gap: 0 10px; text-align: left; }
  .story-input-media { grid-row: 1 / 3; }
  .story-inputs strong { align-self: end; }
  .story-inputs .input-index { display: none; }
  .story-gallery { min-height: 410px; gap: 7px; }
  .side-card { flex-basis: 60px; }
  .main-story-card { width: min(248px, 68%); }
  .split-heading { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .workshop-flow { grid-template-columns: 1fr; gap: 10px; }
  .career-column { grid-template-columns: repeat(6, 1fr); grid-template-rows: none; }
  .career-column figure { display: flex; flex-direction: column; gap: 3px; text-align: center; }
  .career-icon { width: 40px; height: 40px; }
  .career-column .career-icon img { width: 34px; height: 34px; }
  .career-column figure figcaption { text-align: center; }
  .career-more { min-height: 70px; }
  .workplace-column { grid-template-columns: 1fr 1fr; }
  .workplace-column figure img { height: 112px; }
  .ai-creation-visual > img { height: 180px; }
  .world-result { grid-column: auto; }
  .world-result img { height: 190px; }
  .mascot-workshop { display: none; }
  .pet-visual { grid-template-columns: 1fr; }
  .pet-evolution { grid-column: auto; }
  .pet-evolution-flow { grid-template-columns: 1fr 48px 1fr 48px 1fr; }
  .gene-link .ai-label { min-width: 42px; padding: 3px; font-size: 7px; }
  .gene-link .ai-label img { display: none; }
  .pet-invasion { width: min(300px, 84%); margin-inline: auto; }
  .pet-battle { width: min(300px, 84%); margin-inline: auto; }
  .join-actions { flex-direction: column; gap: 18px; }
  .footer-top { justify-content: space-between; }
  .footer-nav { display: none; }
  .social-links { flex-wrap: wrap; }
  .dialog-process { grid-template-columns: 1fr; }
}

.story-flow-layout { align-content: center; }
.story-flow { display: grid; grid-template-columns: .76fr 1.12fr 1.12fr 1.16fr; gap: 12px; height: 440px; }
.story-flow > * { min-width: 0; min-height: 0; }
.story-flow .story-inputs { width: 100%; margin: 0; grid-template-columns: 1fr; gap: 10px; }
.story-flow .story-inputs article { min-height: 0; }
.story-flow .story-input-card { display: flex; flex-direction: column; gap: 8px; padding: 9px; text-align: center; }
.story-flow .story-input-card > span:last-child:not(.input-index) { display: none; }
.story-flow .story-input-card strong { margin: auto 0 0; font-size: 12px; line-height: 1.3; flex-shrink: 0; }
.story-flow .story-input-media { min-height: 0; aspect-ratio: auto; flex: 1; background: #ece5ff; }
.story-flow .input-index { z-index: 4; }
.story-flow .story-cast-column .story-input-media { flex: 1.2; }
.story-cast-portraits { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; flex: 1; min-height: 0; }
.story-cast-portraits img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #e7e0fb; border: 1px solid #c0b5df; border-radius: 2px; }
.story-actions-column { grid-template-rows: 1fr 1fr; }
.story-flow .story-input-raised .story-input-media img { object-position: center 20%; transform: none; }
.story-flow .story-actions-column article:nth-child(2) .story-input-media img { object-position: center 42%; }
.story-flow .story-input-share .story-input-media img { object-position: center 76%; }
.story-flow .story-visual { display: flex; flex-direction: column; padding: 9px; border: 2px solid var(--line); border-radius: 4px; background: #ffffffa8; }
.story-flow .story-gallery { display: block; flex: 1; min-height: 0; }
.story-flow .side-card { display: none; }
.story-flow .main-story-card { width: 100%; height: 100%; }
.story-flow .main-story-card figcaption { display: none; }
.story-flow .story-open { height: 100%; border: 0; border-radius: 2px; box-shadow: none; background: transparent; }
.story-flow .story-open img { height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.story-flow .story-controls { gap: 5px; margin-top: 8px; min-height: 26px; }
.story-flow .story-controls p { min-width: 84px; font-size: 11px; }
.story-flow .round-button { width: 25px; height: 25px; min-width: 25px; font-size: 14px; }
@media (min-width: 981px) and (max-height: 790px) {
  .story-flow { height: 360px; }
}
@media (max-width: 980px) {
  .story-flow-layout { gap: 24px; }
  .story-flow { grid-template-columns: 1fr 1fr; height: auto; }
  .story-flow > * { height: 420px; }
}
@media (max-width: 650px) {
  .story-flow { gap: 10px; }
  .story-flow > * { height: 310px; }
  .story-flow .story-input-card { padding: 6px; gap: 6px; }
  .story-flow .story-input-card strong { font-size: 10px; }
  .story-flow .story-visual { padding: 6px; }
  .story-flow .story-input-ai { top: 9px; left: 9px; }
  .story-flow .story-controls p { min-width: 0; font-size: 9px; }
  .story-flow .round-button { width: 22px; height: 22px; min-width: 22px; }
}

.story-split-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; column-gap: 48px; row-gap: 24px; align-content: center; }
.story-split-layout .story-heading { grid-column: 1; grid-row: 1; align-self: end; }
.story-split-layout .story-flow { display: contents; }
.story-split-layout .story-actions-column, .story-split-layout .story-share-column { display: none; }
.story-split-layout .story-cast-column { grid-column: 1; grid-row: 2; width: min(310px, 100%); height: auto; align-self: start; }
.story-split-layout .story-cast-column article { border: 0; background: transparent; overflow: visible; }
.story-split-layout .story-cast-column article:hover, .story-split-layout .story-cast-column article:focus-within { transform: none; box-shadow: none; }
.story-split-layout .story-cast-column .story-input-card { display: flex; padding: 0; gap: 12px; align-items: flex-start; cursor: default; }
.story-split-layout .story-cast-column .story-input-card strong { grid-column: 1 / -1; }
.story-split-layout .story-cast-column .story-input-media { height: 120px; }
.story-split-layout .story-cast-portraits { height: auto; width: 100%; flex: none; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; }
.story-split-layout .story-cast-portraits img { aspect-ratio: 1; height: auto; border: 2px solid var(--line); border-radius: 3px; }
.story-cast-more { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 3px; background: #e7e0fb; font-size: 24px; font-weight: 900; }
.story-split-layout .story-flow .story-visual { grid-column: 2; grid-row: 1 / 3; height: 525px; border: 0; background: transparent; padding: 0; }
.story-split-layout .story-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr) minmax(0, 1fr); align-items: center; gap: 10px; height: 480px; flex: none; }
.story-split-layout .story-flow .side-card { display: block; width: 100%; opacity: 1; box-shadow: 3px 3px 0 #b5a9e5; transform: none; }
.story-split-layout .story-flow .side-card:hover, .story-split-layout .story-flow .side-card:focus-visible { opacity: 1; }
.story-split-layout .side-card img { aspect-ratio: 2 / 3; object-fit: contain; }
.story-split-layout .story-open { height: calc(100% - 32px); }
.story-split-layout .main-story-card figcaption { display: block; margin-top: 10px; }
.story-feature-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 7px; margin-top: 12px; border: 2px solid var(--line); border-radius: 4px; background: #faf8ff; box-shadow: 4px 4px 0 #a096dc; }
.story-feature-picker button { min-width: 0; border: 1px solid transparent; border-radius: 2px; padding: 5px 3px; background: transparent; color: var(--ink); cursor: pointer; }
.story-feature-picker button[aria-pressed="true"] { background: #e3dcfa; border-color: var(--purple); }
.story-feature-picker img { width: 100%; height: 48px; object-fit: contain; }
.story-feature-picker span { display: block; font-size: 9px; font-weight: 800; margin-top: 5px; }
@media (min-width: 981px) and (max-height: 800px) {
  .story-split-layout .story-flow .story-visual { height: 415px; }
  .story-split-layout .story-gallery { height: 370px; }
}
@media (max-width: 980px) {
  .story-split-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 24px; }
  .story-split-layout .story-heading { grid-row: 1; }
  .story-split-layout .story-cast-column { grid-row: 2; }
  .story-split-layout .story-flow .story-visual { grid-column: 1; grid-row: 3; width: min(540px, 100%); height: 525px; justify-self: center; }
}
.story-split-layout .story-flow .story-visual { display: grid; grid-template-rows: minmax(0, 1fr) auto 32px; gap: 12px; }
.story-split-layout .story-flow .story-gallery { height: 100%; min-height: 0; }
.story-split-layout .story-flow .main-story-card { min-height: 0; height: 100%; }
.story-split-layout .story-flow .story-open { display: block; height: 100%; min-height: 0; }
.story-split-layout .story-flow .story-open img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-eyebrow { margin-bottom: 12px; }
.hero-island-stories { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.island-story { --tilt: -7deg; position: absolute; width: 110px; padding: 5px 5px 13px; border: 1px solid #d7d1e4; border-radius: 2px; background: #fff; box-shadow: 3px 5px 0 #27233832; cursor: pointer; pointer-events: auto; transform: translate(-50%, -50%) rotate(var(--tilt)); }
.island-story:nth-child(2) { --tilt: 6deg; }
.island-story:nth-child(3) { --tilt: -5deg; }
.island-story::before { content: ""; position: absolute; z-index: 1; width: 40px; height: 15px; left: calc(50% - 20px); top: -8px; background: #e4ddfacf; border: 1px solid #b7a6dd88; transform: rotate(-8deg); pointer-events: none; }
.island-story:nth-child(2)::before { transform: rotate(9deg); background: #d7eddad9; border-color: #a3c7b188; }
.island-story img { display: block; width: 100%; height: auto; }
.island-story:hover, .island-story:focus-visible { outline: 3px solid #8778e8; outline-offset: 3px; }
@media (max-width: 980px) {
  .hero { flex-direction: column; }
  .hero-island-stories { position: relative; inset: auto; display: flex; justify-content: center; align-items: center; gap: 14px; order: 2; margin: 24px auto 0; }
  .island-story { position: relative; left: auto !important; top: auto !important; width: 88px; transform: rotate(var(--tilt)); }
}
.hero { background: #b8edfa; }
.hero .hero-sky { opacity: 1; object-fit: cover; object-position: center; mask-image: none; }
.hero::after { display: none; }
.hero .hero-layout { width: min(1180px, calc(100% - 64px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.hero .hero-copy { position: relative; z-index: 2; padding-bottom: 70px; }
.hero h1 { font-size: 38px; }
.hero .how-carousel { width: 100%; margin-left: 0; position: relative; z-index: 1; }
@media (min-width: 981px) { .hero { padding-top: 24px; padding-bottom: 100px; } .hero .how-carousel { height: min(660px, calc(100svh - 200px)); min-height: 440px; } }
@media (max-width: 1100px) and (min-width: 981px) { .hero h1 { font-size: 30px; } .hero .hero-eyebrow { font-size: 10px; } }
@media (max-width: 980px) {
  .hero .hero-layout { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 30px; }
  .hero .hero-sky { display: none; }
  .hero .hero-copy { padding-bottom: 0; }
  .hero .how-carousel { width: 100%; margin-left: 0; isolation: isolate; }
  .hero .how-carousel::before { content: ""; position: absolute; inset: -12px -20px; z-index: -1; background: url("/portable-assets/hero-islands-fixed.webp") 80% center / auto 100% no-repeat; mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 83%, transparent); }
}
@media (max-width: 650px) { .hero h1 { font-size: 25px; } .hero .hero-eyebrow { font-size: 10px; } }
.hero-awaken { margin-top: 24px; grid-template-columns: 100px 48px 100px; }
.hero-awaken .how-result-frame img { padding: 5px; }
.photo-example { position: relative; }
.example-label { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: #6252c3; }
.hero-awaken .photo-example figcaption { font-size: 10px; max-width: none; position: relative; left: 50%; transform: translateX(-50%); margin-inline: 0; }
.hero-awaken .how-result figcaption { font-size: 10px; }
.character-walk { display: block; width: 90%; height: 90%; margin: 5%; background: url("/portable-assets/hero-character-walk-down-8-aligned.webp") 0 0 / 400% 200% no-repeat; image-rendering: pixelated; animation: character-walk 1.6s steps(1, end) infinite; }
@keyframes character-walk {
  0%, 100% { background-position: 0 0; }
  12.5% { background-position: 33.333333% 0; }
  25% { background-position: 66.666667% 0; }
  37.5% { background-position: 100% 0; }
  50% { background-position: 0 100%; }
  62.5% { background-position: 33.333333% 100%; }
  75% { background-position: 66.666667% 100%; }
  87.5% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) { .character-walk { animation: none; } }
.awaken-connector { position: relative; display: grid; place-items: center; align-self: start; height: 100px; }
.awaken-connector .how-ai { position: absolute; bottom: calc(50% + 15px); min-height: 30px; }
.awaken-arrow { color: var(--purple); font-size: 32px; font-weight: 900; line-height: 1; }
.how-ai.is-activating { animation: awaken-flash .65s ease-out; }
.awaken-connector.is-activating .awaken-arrow { animation: awaken-send .65s ease-out; }
.how-result.is-revealed .how-result-frame { animation: awaken-frame .65s ease-out; }
@keyframes awaken-flash { 0%,100% { transform: scale(1); } 35% { transform: scale(1.15) rotate(-5deg); background: #fff; box-shadow: 0 0 14px #9984ff; } 65% { transform: scale(1.05) rotate(4deg); } }
@keyframes awaken-send { 0%,100% { transform: translateX(0); } 45% { transform: translateX(5px); color: #ad91ff; } }
@keyframes awaken-frame { 0%,100% { box-shadow: 3px 3px 0 #b6ace4; } 45% { box-shadow: 0 0 0 4px #c8bcff, 0 0 22px #a793f6; } }
@media (prefers-reduced-motion: reduce) { .how-ai.is-activating, .awaken-connector.is-activating .awaken-arrow, .how-result.is-revealed .how-result-frame { animation: none; } }
.hero .how-carousel { height: 610px; }
.hero .how-carousel .workshop-gallery { grid-template-columns: minmax(0,1fr); }
.hero .how-carousel .workshop-main, .hero .how-carousel .workshop-side { position: relative; padding: 5px; border: 3px solid #262433; border-radius: 22px; background: #262433; box-shadow: 0 0 0 2px #a6aec0, 5px 7px 0 #7166bd44; overflow: hidden; }
.hero .how-carousel .workshop-main { width: auto; max-width: 100%; aspect-ratio: 860 / 1821; justify-self: center; }
.hero .how-carousel .workshop-side { border-radius: 12px; padding: 3px; }
.hero .how-carousel .workshop-main img, .hero .how-carousel .workshop-side img { width: 100%; height: 100%; aspect-ratio: 860 / 1821; object-fit: contain; border-radius: 15px; }
.hero .how-carousel .workshop-side img { border-radius: 7px; }
.hero .how-carousel .workshop-main::after, .hero .how-carousel .workshop-side::after { content: ""; position: absolute; width: 24%; height: 6px; left: 38%; top: 7px; border-radius: 5px; background: #262433; }
@media (max-width: 650px) { .hero-awaken { grid-template-columns: minmax(0,100px) 42px minmax(0,100px); gap: 12px; } .hero .how-carousel { height: 490px; } }
@media (min-width: 981px) and (max-height: 800px) { .hero .how-carousel { height: 510px; } }
.story-logic { display: flex; flex-wrap: wrap; gap: 22px; width: fit-content; max-width: 100%; list-style: none; padding: 0; margin: 16px 0 0; }
.story-logic li { --step-arrow: #000; position: relative; padding-inline: 10px; color: var(--ink); text-align: center; white-space: nowrap; }
.story-logic li.is-current-arrow { --step-arrow: #8a7cdf; }
.story-logic li + li::before { content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--step-arrow); }
@media (min-width: 981px) and (max-width: 1250px) {
  .story-logic { flex-direction: column; gap: 20px; }
  .story-logic li + li::before { left: 50%; top: -15px; transform: translateX(-50%); border-top: 7px solid var(--step-arrow); border-bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
}
@media (max-width: 650px) {
  .story-logic { display: grid; grid-template-columns: 1fr; gap: 20px; width: min(190px, 100%); }
  .story-logic li + li::before { left: 50%; top: -15px; transform: translateX(-50%); border-top: 7px solid var(--step-arrow); border-bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
}
.story-preview-title { font-size: 13px; font-weight: 900; line-height: 1.4; text-align: center; }
.story-split-layout .story-flow .story-controls { margin: 0; height: 32px; }

.workshop-split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; align-self: center; }
.workshop-careers { margin-top: 24px; width: min(290px, 100%); }
.workshop-career-icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.workshop-career-icons img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4px; border: 2px solid var(--line); border-radius: 3px; background: #e7e0fb; }
.workshop-careers > strong { display: block; margin-top: 12px; font-size: 12px; }
.hero-awaken figcaption, .story-preview-title, .story-cast-column .story-input-card > strong, .workshop-careers > strong, .pet-visual figcaption, .panel .media-note { width: fit-content; max-width: 100%; padding: 0; background: transparent; white-space: nowrap; }
.story-controls p { padding: 0; background: transparent; white-space: nowrap; }
@media (max-width: 350px) { .pet-visual figcaption { font-size: 9px; } }
.hero-awaken figcaption, .story-preview-title, .pet-visual figcaption, .panel .media-note { margin-inline: auto; justify-self: center; }
.workshop-carousel { display: grid; grid-template-rows: minmax(0, 1fr) auto 32px; gap: 12px; height: 525px; min-width: 0; }
.workshop-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr) minmax(0, 1fr); gap: 10px; align-items: center; min-height: 0; transition: opacity .24s ease, transform .24s ease; }
.workshop-carousel.is-changing .workshop-gallery { transform: translateY(4px); }
.workshop-gallery button { display: block; width: 100%; min-width: 0; padding: 0; background: transparent; cursor: pointer; }
.workshop-main { height: 100%; min-height: 0; border: 0; }
.workshop-main img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.workshop-gallery .workshop-side { border: 2px solid var(--line); border-radius: 4px; opacity: 1; background: #fff; box-shadow: 3px 3px 0 #b5a9e5; }
.workshop-side img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
.workshop-side:hover, .workshop-side:focus-visible { opacity: 1; }
.workshop-carousel .story-controls { margin: 0; gap: 5px; height: 32px; }
.workshop-carousel .story-controls p { font-size: 11px; min-width: 84px; }
.workshop-carousel .round-button { width: 25px; height: 25px; min-width: 25px; font-size: 14px; }
@media (max-width: 650px) {
  .workshop-carousel .story-controls p { min-width: 0; font-size: 9px; }
  .workshop-carousel .round-button { width: 22px; height: 22px; min-width: 22px; }
}
@media (min-width: 981px) and (max-height: 800px) {
  .workshop-carousel { height: 415px; }
}
@media (max-width: 980px) {
  .workshop-split-layout { grid-template-columns: 1fr; gap: 24px; }
  .workshop-carousel { width: min(540px, 100%); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) and (orientation: portrait) {
  .hero-awaken { justify-content: center; }
  .hero .hero-copy, .story-split-layout .story-heading, .workshop-copy, .pet-copy { min-width: 0; }
  .story-split-layout .story-heading, .workshop-copy { text-align: center; }
  .story-split-layout .story-logic, .workshop-copy .story-logic, .pet-copy .story-logic { margin-inline: auto; justify-content: center; }
  .story-split-layout .story-cast-column { justify-self: center; }
  .story-split-layout .story-cast-column .story-input-card { align-items: center; }
  .story-split-layout .story-cast-column .story-input-card > strong { align-self: center; }
  .workshop-careers, .workshop-careers > strong { margin-inline: auto; }
}
@media (max-width: 350px) and (orientation: portrait) {
  .story-split-layout .story-cast-column { width: 100%; }
  .story-split-layout h2, .workshop-copy h2 { font-size: 24px; }
}

/* Keep foreground content distinct without fading the island edges. */
.hero-copy, .hero .how-carousel, .story-heading, .story-cast-column,
.story-visual, .workshop-copy, .workshop-carousel { position: relative; isolation: auto; }
.story-heading::before,
.story-cast-column::before, .story-visual::before, .workshop-copy::before,
.workshop-section .workshop-carousel::before {
  content: ""; position: absolute; inset: -65px -45px; z-index: -1;
  pointer-events: none;
  background: none;
}
.panel { --panel-title-size: 38px; }
.panel h1, .panel h2, .hero h1 { font-size: var(--panel-title-size); }
.story-heading h2, .workshop-copy h2, .pet-copy h2 { margin-top: 12px; }
@media (min-width: 981px) {
  .story-split-layout, .workshop-split-layout, .pet-layout { height: 525px; align-self: center; }
  .story-split-layout { grid-template-rows: auto 1fr; }
  .story-split-layout .story-heading { align-self: start; padding-top: 90px; }
  .workshop-copy, .pet-copy { align-self: start; padding-top: 90px; }
  .pet-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
@media (min-width: 981px) and (max-width: 1250px) {
  .panel { --panel-title-size: 30px; }
  .story-split-layout .story-heading, .workshop-copy, .pet-copy { padding-top: 20px; }
}
@media (max-width: 980px) {
  .panel { --panel-title-size: 32px; }
  .hero .how-carousel::before { background: url("/portable-assets/hero-islands-fixed.webp") 80% center / auto 100% no-repeat; mask-image: none; }
}
@media (max-width: 650px) { .panel { --panel-title-size: 25px; } }
@media (max-width: 350px) { .panel { --panel-title-size: 22px; } }
.hero-awaken, .creation-pair { display: grid; grid-template-columns: minmax(0, 100px) 76px minmax(0, 100px); gap: 12px; width: min(300px, 100%); }
.story-split-layout .story-cast-column { width: min(300px, 100%); }
.workshop-careers.creation-pair { width: min(300px, 100%); }
.creation-square { display: block; width: 100%; aspect-ratio: 1; min-width: 0; padding: 5px; border: 2px solid var(--line); border-radius: 4px; background: #eeeaff; box-shadow: 3px 3px 0 #b6ace4; overflow: hidden; }
button.creation-square { cursor: pointer; }
.creation-square > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.creation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.creation-pair figure { min-width: 0; }
.creation-pair figcaption { margin-top: 10px; font-size: 10px; font-weight: 900; white-space: nowrap; text-align: center; }
.creation-pair .awaken-connector > .ai-label { position: absolute; bottom: calc(50% + 15px); min-height: 30px; }
.creation-pair .ai-label, .hero-awaken .ai-label { white-space: nowrap; }
@media (max-width: 980px) and (orientation: portrait) { .hero-awaken, .creation-pair { margin-inline: auto; } }
.story-split-layout .story-flow .story-visual, #workshop .workshop-carousel, .pet-carousel { grid-template-rows: 34px minmax(0, 1fr) 32px; }
.carousel-step.story-preview-title { align-self: center; justify-self: center; padding: 7px 12px; border: 2px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 2px 2px 0 #8a7cdf; font-size: 11px; font-weight: 900; white-space: nowrap; }
.hero .how-carousel { grid-template-rows: 48px minmax(0, 1fr) 34px 32px; }
.how-preview-header { display: flex; align-items: center; justify-content: center; gap: 12px; }
.how-preview-header .story-preview-title { margin: 0; }
.how-phone-wrap { position: relative; height: 100%; min-height: 0; aspect-ratio: 860 / 1821; justify-self: center; max-width: 100%; }
.how-phone-wrap > .workshop-gallery { height: 100%; width: 100%; }
.hero .how-carousel .how-phone-wrap .workshop-main { width: 100%; }
.how-preview-header .how-play-button { position: relative; z-index: 5; animation: how-guide-glow 2.4s ease-in-out infinite; }
.how-carousel > [data-how-title] { margin: 0; }
@keyframes how-guide-glow { 0%, 100% { background: #eeeaff; box-shadow: 3px 3px 0 #8a7cdf, 0 0 5px #a38cff55; } 50% { background: #fff5bd; box-shadow: 3px 3px 0 #8a7cdf, 0 0 20px 5px #c4a4ffbb; } }
@media (prefers-reduced-motion: reduce) { .how-preview-header .how-play-button { animation: none; box-shadow: 3px 3px 0 #8a7cdf, 0 0 10px #b9a3ff; } }
@media (max-width: 380px) { .how-preview-header { gap: 7px; } .how-preview-header .story-preview-title { font-size: 10px; padding-inline: 7px; } .how-play-button { padding-inline: 6px; font-size: 10px; } .how-play-button img { width: 22px; height: 22px; } }
.pet-preview.creation-pair { width: min(300px, 100%); }
.creation-square.is-activating { animation: awaken-frame .65s ease-out; }
.story-gallery, .workshop-gallery { transition: transform .38s cubic-bezier(.22, 1, .36, 1); }
.story-visual.is-changing .story-gallery, .workshop-carousel.is-changing .workshop-gallery { transform: translateX(-24px) scale(.94) rotate(-1deg); }
.story-visual:not(.is-changing) .main-story-card, .workshop-carousel:not(.is-changing) .workshop-main { animation: carousel-arrive .48s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes carousel-arrive { from { transform: translateX(36px) scale(.92) rotate(2deg); } to { transform: translateX(0) scale(1) rotate(0); } }
/* A single sky owns all scenery, so islands cross section boundaries intact. */
#main { isolation: isolate; }
#main > .panel { background: transparent; }
.continuous-sky { position: absolute; inset: 0 0 auto; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(#a5e7f7, #b9edfa 45%, #a5e7f7); }
.sky-region { position: absolute; left: 0; width: 100%; }
.world-islands { position: absolute; inset: 0; z-index: 1; }
.island-cloud-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.island-passing-cloud { position: absolute; left: -224px; width: 224px; height: 224px; background: center / contain no-repeat; image-rendering: pixelated; animation: island-cloud-pass 90s linear infinite; }
@keyframes island-cloud-pass { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 448px)); } }
@media (prefers-reduced-motion: reduce) { .island-passing-cloud { animation-play-state: paused; } }
.hero-island-pieces { position: absolute; inset: 0; z-index: 1; }
.hero-island-pieces img { position: absolute; max-width: none; height: auto; }
.world-islands > img { position: absolute; height: auto; max-width: none; transform: translateX(-50%); opacity: 1; }
.sky-region .hero-clouds { background: none; overflow: visible; z-index: 0; }
.sky-region .clouds-foreground { z-index: 2; }
.sky-region .clouds-foreground > span { display: none; }
.sky-region .clouds-foreground > span:is(:nth-child(3), :nth-child(6), :nth-child(12), :nth-child(16)) { display: block; }
.sky-region .clouds-background > span:is(:nth-child(3), :nth-child(6), :nth-child(12), :nth-child(16)) { visibility: hidden; }
.sky-region .section-islands { overflow: visible; z-index: 1; }
.sky-region .hero-sky { z-index: 1; opacity: 1; object-fit: cover; }
#main > .panel:not(.hero) { padding-top: 100px; padding-bottom: 220px; }
.sky-region:not(.sky-region-top) .hero-clouds > span:nth-child(n + 9) { display: none; }
.sky-region-follow .section-islands img:nth-child(n + 3) { bottom: var(--footer-clearance, 120px); }
#main > .panel.final-panel { padding-bottom: 0; }
.final-panel .join-section { padding-bottom: 270px; }
@media (max-width: 980px) {
  .sky-region-top .hero-sky { object-fit: contain; object-position: center bottom; }
  .hero .how-carousel::before { display: none; }
  #main > .panel:not(.hero) { padding-top: 72px; padding-bottom: 125px; }
  .section-islands img:nth-child(1) { left: -5%; top: -25px; transform: none; }
  .section-islands img:nth-child(2) { right: -5%; top: 30%; }
  .section-islands img:nth-child(3) { left: -5%; bottom: 18%; }
  .section-islands img:nth-child(4) { right: -5%; bottom: -25px; }
  #main > .panel.final-panel { padding-bottom: 0; }
  .final-panel .join-section { padding-bottom: 145px; }
  .sky-region-follow .section-islands img:nth-child(n + 3) { bottom: var(--footer-clearance, 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .creation-square.is-activating, .story-visual:not(.is-changing) .main-story-card, .workshop-carousel:not(.is-changing) .workshop-main { animation: none; }
  .story-visual.is-changing .story-gallery, .workshop-carousel.is-changing .workshop-gallery { transform: none; }
}
