:root{--night:#101a38;--ink:#1b2450;--purple:#6b43d5;--pink:#ed78bc;--sky:#d0f4ff;--gold:#ffe49c;--paper:#fffcf8;--radius:24px;--shadow:0 24px 70px rgba(28,26,92,.14);font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:94px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-rounded,"Avenir Next",Avenir,Inter,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden;line-height:1.55}
a{color:inherit;text-decoration:none}
button{font:inherit}
button,a{outline-offset:4px}
:focus-visible{outline:3px solid #f48d37!important;outline-offset:4px}
.skip{position:fixed;z-index:110;top:1rem;left:1rem;background:#fff;padding:.8rem 1.2rem;border-radius:12px;transform:translateY(-220%);font-weight:800}
.skip:focus{transform:none}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:1.2rem;padding:.82rem clamp(1rem,4vw,4.8rem);position:sticky;top:0;z-index:80;background:rgba(254,252,255,.9);backdrop-filter:blur(22px);border-bottom:1px solid rgba(43,43,105,.09)}
.logo{display:flex;align-items:center;gap:.65rem;white-space:nowrap;font-size:1.35rem;font-weight:1000;letter-spacing:-.04em}
.logo small{display:block;font-size:.67rem;line-height:1;margin-top:-.15rem;letter-spacing:.18em;text-transform:uppercase;color:#62409d;font-weight:950}
.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(140deg,#ffbe7d,#f26d9d 42%,#7856ed);color:#fff;box-shadow:0 7px 23px #7757be65;font-size:1.6rem}
.topbar nav{display:flex;align-items:center;gap:clamp(.5rem,2vw,1.8rem);font-size:.89rem;font-weight:800;color:#394069}
.topbar nav a{padding:.44rem .18rem;white-space:nowrap}.topbar nav a.active{color:#7847d8}
.topbar nav a:hover{color:#7847d8}
.topbar nav a.academy{padding:.65rem .95rem;border-radius:100px;background:#f4edff}
.language{display:inline-flex;align-items:center;gap:.35rem;border:1px solid #d9d0ee;border-radius:100px;padding:.55rem .8rem;font-size:.8rem;font-weight:950;white-space:nowrap}
.world-hero{min-height:650px;display:grid;grid-template-columns:minmax(360px,.77fr) minmax(460px,1.23fr);position:relative;overflow:hidden;background:radial-gradient(ellipse at 28% 25%,#feeffa 0,transparent 35%),linear-gradient(135deg,#fff8fc 5%,#f0eaff 47%,#d7edff 100%);isolation:isolate}
.skyglow{pointer-events:none;position:absolute;inset:-20%;opacity:.65;background:radial-gradient(circle at 68% 48%,#ffc9a6 0,transparent 22%),radial-gradient(circle at 85% 10%,#e2d7ff 0,transparent 25%);filter:blur(20px);z-index:-1}
.hero-copy{padding:clamp(3rem,7vw,7rem) 0 clamp(3rem,7vw,6rem) clamp(1.4rem,6vw,7rem);max-width:700px;z-index:5;align-self:center}
.eyebrow,.kicker{font-size:.7rem;letter-spacing:.18em;font-weight:1000;color:#7e56c2}
.eyebrow{display:flex;gap:.5rem;align-items:center}
.live-dot{width:.48rem;height:.48rem;border-radius:50%;background:#ffbe6d;box-shadow:0 0 0 5px #ffbd6d40}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.9rem,5.5vw,6.1rem);line-height:.96;font-weight:950;letter-spacing:-.075em;max-width:700px;margin:1.3rem 0 1.5rem}
h1 em,h2 em{font-style:normal;background:linear-gradient(90deg,#7546d3,#d866ac,#ef9c69);background-clip:text;-webkit-background-clip:text;color:transparent}
.hero-copy>p{font-size:clamp(1rem,1.35vw,1.23rem);max-width:535px;color:#626587;line-height:1.68}
.hero-buttons{display:flex;flex-wrap:wrap;gap:.8rem;margin:2.1rem 0 1.4rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-height:50px;padding:.86rem 1.48rem;border:0;border-radius:100px;font-weight:950;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:linear-gradient(110deg,#7456e6,#a058d9);color:#fff;box-shadow:0 10px 28px #7254cf53}
.btn.outline{color:#6b50a0;background:#fff;border:1px solid #c9bce1}
.btn.ghost{border:1px solid #b7a9d8;background:white}
.btn.light{background:#fff;color:#302464;box-shadow:0 12px 30px #15214528}
.hero-caption{max-width:440px;font-size:.78rem;color:#827e99}
.experience{position:relative;min-height:610px;overflow:hidden;background:radial-gradient(ellipse at 55% 52%,#bbddff99,transparent 60%)}
.experience::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(to bottom,transparent 75%,#e9eeff69 100%)}
#world-canvas{display:block;width:100%;height:100%;min-height:610px;cursor:grab;touch-action:pan-y}
#world-canvas:active{cursor:grabbing}
.scene-fallback{position:absolute;inset:1rem 1rem 2rem;overflow:hidden;border-radius:40px;display:grid;align-content:center;justify-items:center;background:linear-gradient(135deg,#9abcf8,#e9b5df);box-shadow:var(--shadow)}
.scene-fallback img{height:100%;width:100%;object-fit:cover;position:absolute;opacity:.78}
.scene-fallback span{z-index:2;align-self:end;background:#211e5ae0;color:white;font-weight:850;padding:.7rem 1.2rem;border-radius:50px;margin-top:230px}
.scene-fallback.is-hidden{display:none}
.viewport-tag{position:absolute;top:2.3rem;left:2rem;display:flex;align-items:center;gap:9px;z-index:8;border:1px solid #ffffffac;border-radius:100px;background:#ffffffbd;backdrop-filter:blur(16px);font-size:.7rem;font-weight:1000;letter-spacing:.16em;color:#6c54ab;padding:.7rem .9rem;pointer-events:none}
.spark{font-size:1rem;color:#ef9c56}
.viewport-hint{position:absolute;bottom:1.5rem;left:2rem;z-index:8;background:#ffffffdd;border-radius:100px;padding:.5rem .88rem;color:#5d648e;font-size:.73rem;font-weight:800;pointer-events:none}
.reset{position:absolute;right:1.9rem;bottom:1.5rem;z-index:10;border:1px solid #fff;background:#ffffffeb;border-radius:50%;width:46px;height:46px;font-size:1.5rem;color:#6351b4;cursor:pointer;box-shadow:0 6px 18px #5e458c25}
.floating-note{position:absolute;right:6%;bottom:7%;z-index:9;background:#ffffffee;color:#60427e;transform:rotate(-6deg);font-weight:950;line-height:1.1;padding:1rem 1.3rem;border:1px solid #e3c5ff;border-radius:18px;box-shadow:var(--shadow);pointer-events:none}
.floating-note span{color:#f4b86b;font-size:1.5rem}
.worlds-section{padding:clamp(3.4rem,6vw,6rem) clamp(1.1rem,5vw,5.4rem);max-width:1600px;margin:auto}
.section-intro{max-width:800px;margin-bottom:2.1rem}
.section-intro h2,.featured h2,.adult-crosslink h2{font-size:clamp(2.2rem,4vw,4.2rem);line-height:1.02;letter-spacing:-.055em;margin:.75rem 0 1.1rem}
.section-intro p{font-size:1.08rem;color:#626586;max-width:670px}
.world-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}
.world-card{padding:0;text-align:left;border:1px solid #e9e3f2;border-radius:24px;background:#fff;box-shadow:0 13px 34px #54489d0f;cursor:pointer;min-height:310px;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:transform .22s,box-shadow .22s,border-color .22s}
.world-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #7562aa33}
.world-card.is-current{border-color:#a576ef;box-shadow:0 0 0 2px #b69aff,0 20px 40px #856bcc24}
.card-visual{min-height:150px;display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden}
.card-visual::before{content:"";position:absolute;border:17px solid #ffffff80;border-radius:50%;width:155px;height:155px;transform:translate(32px,28px);filter:blur(.3px)}
.card-visual::after{content:"";position:absolute;width:50px;height:50px;border-radius:50%;background:#ffffffb7;filter:blur(13px);transform:translate(-80px,-42px);z-index:-1}
.card-visual b{font-size:4.4rem;line-height:1;font-weight:900;color:#fff;text-shadow:0 10px 20px #20215b35;transform:rotate(-9deg)}
.card-visual.hub{background:linear-gradient(130deg,#ab8aff,#7154cf)}
.card-visual.music{background:linear-gradient(130deg,#facd69,#e99a9f)}
.card-visual.stories{background:linear-gradient(130deg,#a28ded,#5f7ae6)}
.card-visual.numbers{background:linear-gradient(130deg,#64e4b6,#2fa8b8)}
.card-visual.numbers b{font-size:3.45rem}
.card-visual.jersey{background:linear-gradient(130deg,#a9baf2,#72a3da)}
.card-visual.jersey b{font-size:3.3rem}
.card-copy{display:flex;flex-direction:column;padding:1rem 1rem 1.3rem;gap:.3rem}
.card-copy small{font-size:.65rem;font-weight:950;letter-spacing:.15em;color:#72518d}
.card-copy strong{font-size:1.18rem;line-height:1.13;letter-spacing:-.035em;color:#23254d}
.card-copy>span{font-size:.8rem;color:#74728d;line-height:1.48}
.card-arrow{position:absolute;bottom:.8rem;right:.8rem;font-weight:950;color:#aa91d2;opacity:.5}
.world-detail{display:flex;justify-content:space-between;align-items:center;gap:2rem;margin:2rem 0 0;border:1px solid #e5dcf8;background:linear-gradient(100deg,#f4efff,#fffafb);border-radius:26px;padding:2rem clamp(1.5rem,4vw,3rem)}
.world-detail h3{margin:.6rem 0 .4rem;font-size:clamp(1.5rem,2vw,2.1rem);letter-spacing:-.04em}
.world-detail p{max-width:700px;color:#76708e;margin:0}
.detail-actions{display:flex;gap:.7rem;flex-wrap:wrap;justify-content:flex-end}
.quest{margin:1.4rem 0 0;padding:1.6rem 2rem;border-radius:24px;background:#faf3da;border:1px solid #f0dc96}
.quest[hidden]{display:none}
.quest h3{margin:.65rem 0 .3rem;font-size:1.5rem}
.quest p{color:#715e4c}
.quest-choices{display:flex;gap:.8rem;flex-wrap:wrap;margin:.8rem 0}
.quest-choices button{border:2px solid #e0be74;background:white;border-radius:14px;min-width:62px;padding:.65rem 1rem;cursor:pointer;font-size:1.2rem;font-weight:950;color:#5e4f8f}
.quest-choices button.correct{background:#b0edca;border-color:#42b686}
.quest-close{border:0;background:transparent;color:#756d60;font-weight:850;text-decoration:underline;cursor:pointer;margin-top:.6rem}
.featured{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,7rem);align-items:center;margin:2rem auto 0;padding:clamp(2.5rem,6vw,6.5rem);background:#f0ecff}
.featured-art{position:relative;overflow:hidden;max-width:680px;border-radius:36px;box-shadow:0 25px 70px #7060ae35}
.featured-art img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.featured-art>span{position:absolute;bottom:1.5rem;left:1.5rem;background:#fff;border-radius:100px;font-size:.7rem;color:#7160b0;font-weight:950;letter-spacing:.09em;padding:.65rem 1rem}
.featured-copy{max-width:590px}
.featured-copy>p{color:#655f88;font-size:1.05rem;line-height:1.7}
.featured-links{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.8rem;align-items:center}
.featured-links>a:not(.btn){font-weight:850;color:#7656c3;text-decoration:underline}
.adult-crosslink{background:#2e255a;color:#fff;padding:3.2rem clamp(1.4rem,6vw,7rem);display:flex;align-items:center;justify-content:space-between;gap:2rem}
.adult-crosslink .kicker{color:#e3c4ff}.adult-crosslink h2{font-size:clamp(2rem,3vw,3.3rem)}
.adult-crosslink p{color:#ccc4e1;margin:0}
.footer{padding:1.4rem clamp(1.2rem,5vw,5rem);background:#151a31;color:#bcb6d1;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:.82rem}
.footer nav{display:flex;flex-wrap:wrap;gap:1.3rem}.footer a:hover{color:#fff}
@media(max-width:1320px){.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-hero{grid-template-columns:minmax(320px,.9fr) minmax(400px,1fr)}.floating-note{display:none}.topbar nav{gap:.8rem}}
@media(max-width:920px){.world-hero{display:flex;flex-direction:column}.hero-copy{padding:3.5rem 1.5rem 1.2rem;text-align:center;max-width:740px;margin:auto}.hero-copy .eyebrow{justify-content:center}.hero-copy>p{margin-left:auto;margin-right:auto}.hero-buttons{justify-content:center}.hero-caption{margin:auto}.experience,#world-canvas{min-height:470px;height:470px}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured{grid-template-columns:1fr}.topbar nav a.academy{display:none}}
@media(max-width:610px){.topbar{padding:.7rem .8rem}.topbar nav{overflow-x:auto;flex-wrap:nowrap;gap:1rem;max-width:50vw}.topbar nav a{font-size:.76rem}.topbar nav{scrollbar-width:thin;scroll-snap-type:x proximity}.topbar nav a{scroll-snap-align:start}.logo{font-size:1.02rem}.logo small{font-size:.55rem}.brand-icon{width:36px;height:36px}.hero-copy{padding:2.2rem 1rem .8rem}.hero-copy h1{font-size:clamp(2.65rem,12vw,4.2rem)}.hero-copy>p{font-size:.97rem}.experience,#world-canvas{min-height:355px;height:355px}.viewport-tag{left:.7rem;top:.7rem;font-size:.53rem}.viewport-hint{left:.6rem;bottom:.75rem;font-size:.6rem}.reset{right:.7rem;bottom:.7rem;width:42px;height:42px}.worlds-section{padding:3rem 1rem}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.world-card{min-height:240px;border-radius:17px}.card-visual{min-height:110px}.card-visual b{font-size:3rem}.card-copy{padding:.75rem}.card-copy strong{font-size:1rem}.card-copy small{font-size:.59rem}.card-copy>span{font-size:.72rem}.world-detail{padding:1.3rem;display:block}.detail-actions{justify-content:flex-start;margin-top:1rem}.featured{padding:2rem 1rem}.featured-art{border-radius:22px}.featured-art>span{font-size:.55rem;left:.5rem;bottom:.5rem}.adult-crosslink{display:block}.adult-crosslink .btn{margin-top:1.3rem}.footer{display:block}.footer nav{margin-top:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.world-card{transition:none}.world-card:hover,.btn:hover{transform:none}}

.character-greeting{position:absolute;left:50%;top:21%;transform:translateX(-50%);z-index:12;max-width:80%;border-radius:18px;background:#fffaf5f2;color:#58417f;box-shadow:0 12px 45px #574b9638;padding:.75rem 1.1rem;font-weight:900;text-align:center;font-size:.85rem}
.character-greeting[hidden]{display:none}
.meet-family{display:flex;flex-wrap:wrap;gap:.7rem;margin:-.7rem 0 1.5rem}
.meet-family button{background:#fbf6ff;border:1px solid #daccf4;border-radius:100px;padding:.6rem 1rem;font:900 .8rem system-ui;color:#684eb0;cursor:pointer}
.meet-family button:hover{background:#ece1ff}
@media(max-width:640px){.character-greeting{top:20%;font-size:.7rem}.meet-family{gap:.4rem}.meet-family button{padding:.5rem .65rem;font-size:.7rem}}


/* On-demand 3D keeps slow mobile devices responsive without removing worlds. */
.launch-3d{position:absolute;z-index:14;top:75%;left:50%;transform:translate(-50%,-50%);
  min-width:185px;max-width:calc(100% - 2rem);padding:.85rem 1.1rem;
  border:2px solid #fff;border-radius:999px;background:#382a82;color:#fff;
  font:900 clamp(.86rem,2.5vw,1.05rem)/1.3 system-ui,sans-serif;
  cursor:pointer;box-shadow:0 12px 30px #25185575}
.launch-3d:hover{background:#251b64}
.launch-3d:focus-visible{outline:4px solid #fabe54;outline-offset:4px}
.launch-3d[hidden],.reset[hidden]{display:none!important}
.scene-fallback img{object-position:center 48%}
@media(prefers-reduced-motion:reduce){.launch-3d{transition:none}}


/* Three-step, no-tracking learning challenges in every Wonderverse world. */
.quest-progress{font-size:.85rem;font-weight:900;color:#54426c!important;margin:.35rem 0}
.quest-next{border:2px solid #7c4dce;background:#6545ae;border-radius:14px;color:#fff;
 font:900 1rem/1.35 system-ui,sans-serif;padding:.72rem 1.15rem;cursor:pointer;margin:.45rem .7rem .2rem 0}
.quest-next:hover{background:#473184}
.quest-next:focus-visible,.quest-choices button:focus-visible{outline:4px solid #f5a63d;outline-offset:3px}
.quest-next[hidden]{display:none!important}
.quest-choices button:disabled{cursor:default;opacity:.7}
.quest-choices button.correct:disabled{opacity:1}
