/* Home-only toy-world composition; the portal navigation is unchanged. */
[data-theme=dark] .surface:not([data-living=ready]) .scene-art{background-image:url('/assets/cartoon-top-night-v71.webp')}
[data-theme=dark] .surface:not([data-living=ready]) .scene-art:after{opacity:0}
[data-theme=dark] .cartoon-home .surface{background:#06173d}
@media(max-width:520px){.refuge{min-height:940px}.refuge-guild-card{top:12%;left:6%;width:88%;max-width:none;box-sizing:border-box;padding:15px}.guild-card-head img{width:52px;height:52px}.refuge-guild-card>p{min-height:0;margin:11px 0;font-size:10px}.guild-card-button{padding:10px}.refuge-panel{top:47%}}

/* v75 cascade guard: legacy rules above remain for old markup. */
@media(max-width:1100px){.cartoon-home .surface{min-height:720px}.cartoon-home .toy-hero{top:14%;width:47vw}.cartoon-home .toy-hero h1{font-size:clamp(29px,3.5vw,42px)}}
@media(max-width:768px){.cartoon-home .surface{height:640px;min-height:640px;aspect-ratio:auto}.cartoon-home .surface .scene-art{inset:0;height:100%;background-position:58% center;background-size:cover}.cartoon-home .toy-hero{left:24px;right:24px;top:92px;width:auto;max-width:600px}.cartoon-home .toy-hero h1{font-size:36px}.cartoon-home .refuge{min-height:860px}.cartoon-home .refuge-panel{left:5%;top:15%;width:90%;max-width:none;padding:26px}.cartoon-home .next-chapter{bottom:12px;transform:translateX(-50%)}}
@media(max-width:520px){.cartoon-home .surface{height:475px;min-height:475px}.cartoon-home .surface .scene-art{inset:0;height:100%;background-size:cover;background-position:62% center;mask-image:none}.cartoon-home .toy-hero{left:14px;right:14px;top:76px;width:auto;padding:14px 15px 16px}.cartoon-home .toy-hero h1{font-size:clamp(25px,7.4vw,31px);line-height:1.04}.cartoon-home .surface .next-chapter{bottom:4px;transform:translateX(-50%)}.cartoon-home .refuge{min-height:900px}.cartoon-home .refuge-panel{top:13%;left:5%;width:90%;padding:18px}.cartoon-home .module-tabs button{font-size:14px;min-height:44px}.cartoon-home #demo-description{font-size:15px}.cartoon-home .events-podium li strong{font-size:13px}.cartoon-home .events-podium li small{font-size:12px}}
@media(max-width:380px){.cartoon-home .surface{height:455px;min-height:455px}.cartoon-home .toy-hero{top:70px}.cartoon-home .toy-hero h1{font-size:24px}}
#portals-preview{height:min(900px,100svh);min-height:680px;max-height:900px;aspect-ratio:auto}#portals-preview .toy-hero{transform:none}#portals-preview .toy-hero h1{font-size:clamp(30px,3.25vw,52px);line-height:1.02}
@media(max-width:1100px){#portals-preview{height:720px;min-height:720px}#portals-preview .toy-hero h1{font-size:clamp(29px,3.5vw,42px)}}
@media(max-width:768px){#portals-preview{height:640px;min-height:640px}#portals-preview .toy-hero h1{font-size:36px}}
@media(max-width:520px){#portals-preview{height:475px;min-height:475px}#portals-preview .toy-hero h1{font-size:clamp(25px,7.4vw,31px);line-height:1.04}}
@media(max-width:380px){#portals-preview{height:455px;min-height:455px}#portals-preview .toy-hero h1{font-size:24px}}
.cartoon-home .surface{height:min(900px,100svh);min-height:680px;max-height:900px;aspect-ratio:auto}.cartoon-home .toy-hero{transform:none}.cartoon-home .toy-hero h1{font-size:clamp(30px,3.25vw,52px);line-height:1.02}
@media(max-width:1100px){.cartoon-home .surface{height:720px;min-height:720px}.cartoon-home .toy-hero h1{font-size:clamp(29px,3.5vw,42px)}}
@media(max-width:768px){.cartoon-home .surface{height:640px;min-height:640px}.cartoon-home .toy-hero h1{font-size:36px}}
@media(max-width:520px){.cartoon-home .surface{height:475px;min-height:475px}.cartoon-home .toy-hero h1{font-size:clamp(25px,7.4vw,31px);line-height:1.04}}
@media(max-width:380px){.cartoon-home .surface{height:455px;min-height:455px}.cartoon-home .toy-hero h1{font-size:24px}}

/* v75: clearer first impression, product demo and real community proof. */
.cartoon-home{--ketsu-focus:#ffe17f;--ketsu-panel:linear-gradient(145deg,#113a38ed,#092d31f2);--ketsu-radius:20px}
.cartoon-home .topbar a,.cartoon-home .topbar button{min-height:44px}
.surface{min-height:min(820px,calc(100svh - 8px));max-height:900px}
.surface .scene-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,26,38,.84) 0,rgba(5,31,39,.57) 38%,transparent 68%),linear-gradient(0deg,rgba(7,25,38,.42),transparent 35%);pointer-events:none}
.toy-hero{left:clamp(32px,7vw,130px);top:16%;transform:none;width:min(570px,42vw);text-align:left;padding:24px;border-radius:var(--ketsu-radius);background:linear-gradient(135deg,rgba(8,44,45,.84),rgba(11,35,53,.45));box-shadow:0 18px 50px rgba(4,24,31,.22);backdrop-filter:blur(5px)}
.toy-hero .hero-brand{margin:0 0 14px;font:900 clamp(42px,5.2vw,78px)/.85 Outfit,sans-serif;letter-spacing:-.07em;color:#fff3ce;text-shadow:0 2px #edc77a,0 5px #9b6428,0 10px 24px #0f465f80}
.toy-hero h1{margin:0;max-width:560px;font:900 clamp(30px,3.25vw,52px)/1.02 Outfit,sans-serif;letter-spacing:-.035em;color:#fff;text-wrap:balance;text-shadow:0 3px 18px #062832}
.toy-hero h1:hover{transform:none}.hero-description{max-width:540px;margin:18px 0 22px;color:#e8f2e9;font-size:clamp(16px,1.15vw,19px);line-height:1.5;text-shadow:0 2px 12px #052832}.hero-actions{justify-content:flex-start;flex-wrap:wrap}.hero-actions .world-button{min-height:48px;padding:12px 20px;font-size:15px}
.home-trust{position:absolute;z-index:5;left:clamp(32px,7vw,130px);bottom:78px;display:flex;align-items:center;gap:13px;max-width:560px;padding:11px 15px;border:1px solid #fff3;border-radius:16px;background:#102e32de;box-shadow:0 8px 28px #061e2950;color:#fff;backdrop-filter:blur(8px)}.home-trust[hidden]{display:none}.home-trust img{border-radius:12px}.home-trust p{margin:0;font-size:14px;line-height:1.3}.home-trust p strong{font-size:18px;color:#ffd87b}.home-trust dl{margin:0 0 0 auto;padding-left:18px;border-left:1px solid #fff3}.home-trust dt{font-size:12px;color:#c6d9d2}.home-trust dd{margin:1px 0 0;font-size:17px;font-weight:900;color:#a8e7bd}
.next-chapter{min-height:44px;font-size:12px;text-decoration:none}.next-chapter span{white-space:nowrap}.next-chapter:active{translate:0 2px}
.refuge-panel{width:42%;max-width:640px;padding:26px}.refuge-intro{margin:-4px 0 18px;color:#d5e6df;font-size:16px;line-height:1.5}.module-tabs button{min-height:44px;font-size:14px}.module-tabs button[aria-selected=true]:after{content:" • Ativo";font-size:11px}.refuge-guild-profile,.refuge-bot-button,.events-link{min-height:44px}.home-guild-copy>small{font-size:12px}.home-guild-copy b{font-size:11px}#demo-title{font-size:18px}#demo-description{font-size:15px}.demo-bottom{font-size:12px}.events-podium li strong{font-size:13px}.events-podium li small,.events-podium .podium-loading,.events-podium .podium-empty{font-size:12px}.events-link{display:flex;align-items:center;justify-content:center;font-size:13px}#discord-count{font-size:15px;color:#e2d7ff;font-weight:800}
@media(max-width:1100px){.surface{min-height:720px}.toy-hero{top:14%;width:47vw}.toy-hero h1{font-size:clamp(29px,3.5vw,42px)}.home-trust{bottom:68px}.refuge-panel{left:48%;width:46%}}
@media(max-width:768px){.cartoon-home .topbar{padding-inline:16px}.surface{height:640px;min-height:640px;aspect-ratio:auto}.surface .scene-art{inset:0;background-position:58% center;background-size:cover}.toy-hero{left:24px;right:24px;top:92px;width:auto;max-width:600px;padding:20px}.toy-hero .hero-brand{font-size:48px}.toy-hero h1{font-size:36px}.hero-description{font-size:16px}.home-trust{left:24px;right:24px;bottom:64px;max-width:none}.refuge{min-height:860px;aspect-ratio:auto}.refuge-panel{left:5%;top:15%;width:90%;max-width:none;box-sizing:border-box}.community-copy{width:72%}.next-chapter{bottom:12px}}
@media(max-width:520px){.surface{height:475px;min-height:475px}.surface .scene-art{inset:0;height:100%;background-size:cover;background-position:62% center;mask-image:none}.surface .scene-art:before{background:linear-gradient(180deg,rgba(5,25,39,.86),rgba(5,25,39,.48) 64%,rgba(5,25,39,.16))}.toy-hero{left:14px;right:14px;top:76px;padding:14px 15px 16px;border-radius:16px}.toy-hero .hero-brand{margin-bottom:8px;font-size:38px}.toy-hero h1{font-size:clamp(25px,7.4vw,31px);line-height:1.04}.hero-description{display:none}.hero-actions{margin-top:15px;gap:8px}.hero-actions .world-button{min-height:46px;padding:9px 13px;font-size:13px}.hero-actions .cream{background:#163f3fe8;color:#fff4d7;--edge:#0b282b}.home-trust{left:14px;right:14px;bottom:53px;padding:8px 10px;gap:9px}.home-trust img{width:36px;height:36px}.home-trust p{font-size:12px}.home-trust p strong{font-size:15px}.home-trust dl{padding-left:10px}.home-trust dt{font-size:10px}.home-trust dd{font-size:14px}.surface .next-chapter{bottom:4px;transform:translateX(-50%);padding-block:4px}.refuge{min-height:900px}.cartoon-home .refuge-panel{top:13%;padding:18px}.refuge-intro{font-size:15px}.refuge-guild-profile{grid-template-columns:48px minmax(0,1fr) 18px}.home-guild-copy>small{font-size:12px}.module-tabs{overflow-x:auto}.module-tabs button{min-width:82px}.cartoon-home .community-copy{width:88%}.community-copy h2{font-size:36px}.community-copy .world-button{min-height:48px;font-size:14px}.cartoon-home .community-copy .events-podium{padding:15px}.cartoon-home .community-copy .events-podium li{min-height:44px}.cartoon-footer a{min-height:44px;display:flex;align-items:center}}
@media(max-width:380px){.surface{height:455px;min-height:455px}.toy-hero{top:70px}.toy-hero .hero-brand{font-size:34px}.toy-hero h1{font-size:24px}.hero-actions .world-button{font-size:12px;padding-inline:10px}.home-trust p span{display:none}.home-trust dl{margin-left:auto}.next-chapter span{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.cartoon-home *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* v74: Guild and dashboard are one destination; Events belongs to Discord. */
.refuge-panel{left:52%;top:22%;width:38%;max-width:570px;padding:20px;border:1px solid #e5c2744a;border-radius:22px;background:linear-gradient(145deg,#113a38d9,#092d31df);box-shadow:0 8px 0 #08282c70,0 24px 50px #071f2850;backdrop-filter:blur(7px)}
.refuge-panel h2{margin-bottom:14px}.refuge-guild-profile{display:grid;grid-template-columns:58px minmax(0,1fr) 22px;align-items:center;gap:13px;margin-bottom:14px;padding:13px;border:1px solid #bc99ee48;border-radius:15px;background:linear-gradient(135deg,#30234ce8,#1d1838e8);color:#fff;transition:transform .2s,border-color .2s,background .2s}.refuge-guild-profile:hover{transform:translateY(-3px);border-color:#f0c36d9c;background:linear-gradient(135deg,#3b2a56,#251c42)}.refuge-guild-profile>img{width:58px;height:58px;object-fit:cover;border-radius:14px;box-shadow:0 3px 0 #7b5128}.home-guild-copy{display:grid;min-width:0;gap:4px}.home-guild-copy>strong{font:900 17px Outfit,sans-serif}.home-guild-copy>small{overflow:hidden;color:#c8bdd7;font-size:9px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.home-guild-copy>span{display:flex;flex-wrap:wrap;gap:5px}.home-guild-copy b{padding:4px 7px;border-radius:20px;background:#ffffff12;font-size:8px}.home-guild-copy em{font-style:normal;color:#e9deff}.guild-profile-arrow{color:#f3ca75}.refuge-bot-button{justify-content:center}.refuge-bot-button>span:nth-child(2){display:block}.refuge-bot-button small,.refuge-bot-button .destination-icon,.refuge-bot-button>b{display:none}.refuge-bot-button strong{font-size:13px;text-align:center}
.community-copy{top:12%;width:36%;max-width:470px}.community-copy h2{margin:10px 0 16px}.community-copy .events-podium{position:relative;inset:auto;width:100%;max-width:none;box-sizing:border-box;margin:22px 0 0;padding:15px;text-align:left}.community-copy .events-podium h3{font-size:25px;margin:2px 0 9px}.community-copy .events-podium ol{gap:6px}.community-copy .events-link{margin-top:9px}.community-copy #discord-count{margin-top:14px}
@media(max-width:900px){.refuge-panel{left:48%;top:17%;width:45%;padding:15px}.community-copy{top:10%;width:43%}}
@media(max-width:520px){.refuge{min-height:850px}.refuge-panel{top:18%;left:5%;width:90%;box-sizing:border-box;padding:16px}.refuge-guild-profile{grid-template-columns:50px minmax(0,1fr) 18px;padding:10px}.refuge-guild-profile>img{width:50px;height:50px}.home-guild-copy>small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.community-copy{top:10%;width:82%}.community-copy .events-podium{left:auto;bottom:auto;width:100%;padding:12px}.community-copy .events-podium ol{grid-template-columns:1fr}.community-copy .events-podium li{grid-template-columns:22px 1fr}.community-copy .events-podium li>img,.community-copy .podium-fallback{display:none}.grotto{min-height:900px}}

/* v73: KETSU guild destination and full-width Bot action. */
.refuge-guild-card{position:absolute;left:8%;top:31%;z-index:3;width:28%;max-width:410px;padding:22px;border:1px solid #e7c77866;border-radius:20px;background:linear-gradient(145deg,#173c38ed,#0a2c30ed);box-shadow:0 7px 0 #08292c88,0 20px 45px #10282355;backdrop-filter:blur(7px)}
.guild-card-head{display:flex;align-items:center;gap:15px}.guild-card-head img{border-radius:18px;box-shadow:0 4px 0 #b5782e,0 9px 20px #0005}.guild-card-head h3{margin:3px 0 0;font:900 clamp(25px,2.6vw,40px)/1 Outfit,sans-serif;color:#fff1d1;text-shadow:0 3px #704b2a}.refuge-guild-card>p{min-height:48px;margin:19px 0;color:#bed2c8;font-size:12px;line-height:1.55}.guild-card-button{width:100%;box-sizing:border-box;font-size:12px;padding:13px}
.refuge-bot-button{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin-top:13px;padding:13px 15px;border:2px solid #fff4;border-radius:15px;background:linear-gradient(#ffd77c,#ffb637);color:#513516;box-shadow:0 5px 0 #bc742c,0 10px 20px #15233030;transition:transform .2s,box-shadow .2s}.refuge-bot-button:hover{transform:translateY(-4px);box-shadow:0 8px 0 #bc742c,0 16px 22px #15233040}.refuge-bot-button>span:nth-child(2){display:grid}.refuge-bot-button small{font:900 7px Outfit,sans-serif;letter-spacing:1.1px}.refuge-bot-button strong{font-size:13px}.refuge-bot-button b{margin-left:auto;font-size:18px}.refuge-bot-button .destination-icon{background:#6e451d;color:#ffe6aa}
.events-podium li[class^=event-rank-]{--rank-main:#ffc52e;--rank-deep:#965700;--rank-line:#ffe071;position:relative;isolation:isolate;overflow:hidden;border-color:var(--rank-line);background:linear-gradient(105deg,var(--rank-main),var(--rank-deep) 48%,#17133e 48%);box-shadow:0 0 16px color-mix(in srgb,var(--rank-main) 55%,transparent),inset 0 1px #fff7}.events-podium li.event-rank-2{--rank-main:#d4e0e8;--rank-deep:#657b8b;--rank-line:#f0f8fc}.events-podium li.event-rank-3{--rank-main:#dc8249;--rank-deep:#713617;--rank-line:#f3a26e}.podium-shine{position:absolute;z-index:-1;inset:-60% auto -60% -25%;width:18px;background:linear-gradient(90deg,transparent,#fff9,transparent);transform:rotate(17deg);animation:podium-sweep 2.4s linear infinite}.events-podium li:nth-child(2) .podium-shine{animation-delay:.55s}.events-podium li:nth-child(3) .podium-shine{animation-delay:1.1s}.events-podium li[class^=event-rank-] .podium-rank{background:transparent;color:#fff;text-shadow:0 1px #0007,0 0 10px var(--rank-line);font-size:13px}.events-podium li[class^=event-rank-] strong{color:#fff;text-shadow:0 1px 5px #000}.events-podium li[class^=event-rank-] small{color:#eee5ff}@keyframes podium-sweep{0%{left:-25%}55%,100%{left:120%}}
@media(max-width:900px){.refuge-guild-card{left:4%;width:39%;padding:16px}}
@media(max-width:520px){.refuge{min-height:940px}.refuge-guild-card{top:12%;left:6%;width:88%;max-width:none;box-sizing:border-box;padding:15px}.guild-card-head img{width:52px;height:52px}.refuge-guild-card>p{min-height:0;margin:11px 0;font-size:10px}.guild-card-button{padding:10px}.refuge-panel{top:47%}}
/* v68: theme fallback also works without GPU support. Never double-tint the canvas. */
.scene-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:#081830;opacity:0;transition:opacity 2s ease}
[data-theme=dark] .chapter:not([data-living=ready]) .scene-art:after{opacity:.6}
.cartoon-home .surface{transition:background-color 2s ease}
[data-theme=dark] .cartoon-home .surface{background:#203d59}
[data-theme=dark] .cartoon-home .refuge-panel{background-color:#0e292b55;border-radius:18px;transition:background-color 2s}
@media(max-width:520px){[data-theme=dark] .cartoon-home .surface{background:#203d59}}
.cartoon-home{margin:0;background:#19112e;color:#fff5d9;font-family:Nunito,system-ui,sans-serif}
#community-title{white-space:pre-line}
.chapter:not(.surface){margin-top:-30px;mask-image:linear-gradient(transparent,#000 30px)}
.cartoon-home main{width:100%;max-width:none;margin:0;padding:0}.cartoon-home .topbar{z-index:100}
.skip-home{position:fixed;top:-90px;left:20px;z-index:120;padding:12px;background:#ffe8ac;color:#332519;border-radius:12px}.skip-home:focus{top:90px}
.cartoon-home a:focus-visible,.cartoon-home button:focus-visible,[role=tabpanel]:focus-visible{outline:3px solid #ffdb77;outline-offset:5px}
#cartoon-world{overflow:clip;isolation:isolate;background:#5a392d}
.chapter{position:relative;isolation:isolate;aspect-ratio:3/2;max-height:1100px;scroll-margin-top:80px;overflow:clip}
.scene-art{position:absolute;inset:0;z-index:-2;background-position:center;background-size:cover;background-repeat:no-repeat}
.scene-art canvas{display:block;width:100%;height:100%}
.surface .scene-art{background-image:url('/assets/cartoon-top-v71.webp')}.refuge .scene-art{background-image:url('/assets/cartoon-middle-v71.webp')}.grotto .scene-art{background-image:url('/assets/cartoon-end-v71.webp')}
.surface{background:#59bce4}.toy-hero{position:absolute;top:20%;left:50%;transform:translateX(-50%);text-align:center;width:52%;z-index:3}
.toy-hero h1{font:900 clamp(70px,9.5vw,150px)/1 Outfit,system-ui;letter-spacing:-.07em;color:#fff3ce;margin:0;text-shadow:0 3px #edc77a,0 7px #bb7c30,0 12px 0 #73512b,0 20px 35px #16596055;transition:transform .3s}
.toy-hero h1:hover{transform:translateY(-4px) rotate(-2deg)}
.hero-actions{display:flex;justify-content:center;gap:14px}.world-button{display:inline-flex;align-items:center;justify-content:center;gap:22px;border-radius:15px;padding:15px 23px;font:900 14px Nunito,system-ui;text-decoration:none;transition:transform .2s,box-shadow .2s;border:2px solid #fff4;box-shadow:0 5px 0 var(--edge),0 9px 18px #15233030}
.world-button:hover{transform:translateY(-4px) rotate(-1deg);box-shadow:0 8px 0 var(--edge),0 16px 22px #15233040}.world-button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--edge)}
.gold{background:linear-gradient(#ffd77c,#ffb637);color:#513516;--edge:#bc742c}.cream{background:linear-gradient(#fff5d5,#efdeae);color:#365044;--edge:#9b9c60}.lavender{background:linear-gradient(#b8a4ff,#8760e1);color:white;--edge:#573394}
.next-chapter{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;border:1px solid #fff3;border-radius:30px;padding:7px 9px 7px 14px;background:#293221a6;color:#fff1c9;backdrop-filter:blur(6px);font:800 10px Outfit,sans-serif;transition:translate .2s}.next-chapter b{display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#fff2;font-size:18px}.next-chapter:hover{translate:0 4px}
/* Narrow tonal seams follow the earth -> timber -> amethyst palette, no empty spacer. */
.chapter:after{content:'';position:absolute;inset:auto 0 0;height:7%;pointer-events:none;z-index:1;background:linear-gradient(transparent,#5c372ba6)}
.refuge{background:#684126}.refuge:before{content:'';position:absolute;inset:0 0 auto;height:6%;background:linear-gradient(#5c372b80,transparent);pointer-events:none;z-index:1}.refuge:after{background:linear-gradient(transparent,#30224f99)}
.refuge-panel{position:absolute;left:54%;top:31%;width:34%;max-width:530px;text-align:left;z-index:3}
.eyebrow{font:800 clamp(7px,.7vw,11px) Outfit,system-ui;letter-spacing:2px;color:#f5bc64}.refuge-panel h2{font:800 clamp(28px,3.8vw,57px)/1.1 Outfit,system-ui;letter-spacing:-1.5px;margin:8px 0 20px;text-shadow:0 3px #0c383d}
.module-tabs{display:flex;gap:5px;padding:5px;background:#092d32b3;border:1px solid #a6d9bf30;border-radius:13px;margin-bottom:13px}.module-tabs button{flex:1;cursor:pointer;border:0;border-radius:9px;background:transparent;color:#c1d8cd;padding:10px 4px;font:800 12px Nunito;transition:background .2s,transform .2s}.module-tabs button:hover{transform:translateY(-2px)}.module-tabs button[aria-selected=true]{background:linear-gradient(#ffda87,#eeb458);color:#523c20;box-shadow:0 3px #b38034}
#module-demo{background:linear-gradient(135deg,#133a3ceF,#0a2b30ef);border:1px solid #93ba923d;border-top:2px solid #b2c1a75c;border-radius:15px;padding:18px 20px;box-shadow:0 6px 0 #09292c66,0 12px 24px #061e2930;min-height:165px}
.demo-identity{display:flex;align-items:center;gap:9px;font-size:12px}.demo-identity img{border-radius:50%}.demo-identity small{font-size:8px;background:#8b78d6;padding:2px 4px;border-radius:3px;margin-left:3px}.demo-dot{margin-left:auto;width:7px;height:7px;background:#83dca6;border-radius:50%;box-shadow:0 0 10px #8fe8aa44}
#demo-title{font-size:15px;margin:13px 0 5px}#demo-description{font-size:11px;color:#b8cec5;margin:0;line-height:1.5}.demo-bottom{border-top:1px solid #a4c9bb20;display:flex;justify-content:space-between;align-items:center;padding-top:9px;margin-top:13px;font-size:9px;color:#e9c788}.demo-bottom>span:last-child{color:#93dfac}
.refuge-destinations{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.refuge-destination{min-width:0;display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #8ec8b24a;border-radius:12px;background:#092f31e8;color:#f6ebd6;box-shadow:0 3px 0 #08242680;transition:transform .2s,background .2s}.refuge-destination:hover{transform:translateY(-3px);background:#16484a}.refuge-destination>span:nth-child(2){min-width:0;display:grid;gap:1px}.refuge-destination small{font:800 7px Outfit,sans-serif;letter-spacing:1px;color:#e8b85f}.refuge-destination strong{font-size:11px;white-space:nowrap}.refuge-destination>b{margin-left:auto;color:#eec97d}.destination-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:#efb950;color:#533b20;font-weight:900}.guild-mark{background:#9d7de5;color:#fff}.guild-destination{border-color:#a994e15e}
.grotto{background:#312259}.grotto:before{content:'';position:absolute;inset:0 0 auto;height:7%;background:linear-gradient(#30224f77,transparent);pointer-events:none;z-index:1}.grotto:after{background:linear-gradient(transparent,#19112e)}
.community-copy{position:absolute;top:28%;left:50%;transform:translateX(-50%);width:35%;text-align:center;z-index:3}.discord-mark{width:clamp(40px,5vw,76px);height:auto;filter:drop-shadow(0 0 24px #b795ff8c);transition:transform .3s}.community-copy:hover .discord-mark{transform:rotate(-5deg) translateY(-4px)}
.community-copy h2{font:800 clamp(28px,4vw,61px)/1.05 Outfit,system-ui;letter-spacing:-1.5px;margin:18px 0 25px;color:#fff4e2}.community-copy .world-button{font-size:13px}#discord-count{display:block;min-height:16px;margin-top:22px;color:#b8a8df;font-size:11px}
.events-podium{position:absolute;left:6%;top:30%;z-index:4;width:25%;max-width:350px;padding:18px;border:1px solid #bcaaf058;border-radius:17px;background:linear-gradient(145deg,#261a4bea,#17133ee6);box-shadow:0 7px 0 #100d2d88,0 18px 45px #100b2d55;backdrop-filter:blur(7px)}.events-podium .eyebrow{color:#cbb6ff}.events-podium h3{font:900 clamp(23px,2.5vw,38px)/1 Outfit,sans-serif;margin:4px 0 13px;color:#fff0da}.events-podium ol{list-style:none;display:grid;gap:7px;margin:0;padding:0}.events-podium li{display:grid;grid-template-columns:24px 30px 1fr;align-items:center;gap:8px;padding:7px;border:1px solid #ffffff12;border-radius:10px;background:#ffffff0b}.events-podium li>img,.podium-fallback{width:30px;height:30px;border-radius:9px;object-fit:cover}.podium-fallback{display:grid;place-items:center;background:#745eb5;color:white;font-weight:900}.events-podium li>span:last-child{display:grid;min-width:0}.events-podium li strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.events-podium li small{font-size:8px;color:#bcb0d9}.podium-rank{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#6e5aa0;color:#fff;font-size:9px}.rank-1{background:#e4ad45;color:#3d2d12}.rank-2{background:#a9afc2;color:#292d39}.rank-3{background:#b16f49;color:#fff}.events-podium .podium-loading,.events-podium .podium-empty{display:block;padding:15px;text-align:center;color:#bcb0d9;font-size:9px}.events-link{display:block;margin-top:11px;padding:9px;border-radius:9px;background:#8b68df;color:white;text-align:center;font-size:10px;font-weight:900;transition:transform .2s,background .2s}.events-link:hover{transform:translateY(-2px);background:#a57ff1}
.cartoon-footer{display:flex;align-items:center;gap:30px;justify-content:space-between;padding:35px 7%;background:#19112e;color:#b4a5c8}.footer-name{font:900 33px Outfit,sans-serif;letter-spacing:-2px;color:#fff0cd}.cartoon-footer nav{display:flex;gap:25px;font-size:11px}.cartoon-footer>span{font-size:10px}.cartoon-footer a:hover{color:#ffc477}.back-top{border:1px solid #c8b3df40;border-radius:12px;padding:9px 14px}
@media(min-width:1700px){.chapter{aspect-ratio:auto;height:1100px}.scene-art{background-size:cover}}
@media(max-width:900px){.toy-hero{top:24%;width:70%}.toy-hero h1{font-size:90px}.world-button{font-size:12px;padding:12px 16px;gap:10px}.refuge-panel{top:22%;left:50%;width:47%;padding:14px;border-radius:18px;background:#0d3434b0}.refuge-panel h2{font-size:33px;margin-bottom:12px}#module-demo{padding:12px;min-height:140px}.module-tabs button{font-size:10px;padding:7px 3px}.refuge{min-height:650px}.grotto{min-height:650px}.community-copy{width:43%;top:24%}.events-podium{left:3%;width:29%;top:28%;padding:13px}.cartoon-footer{flex-wrap:wrap;gap:20px}}
@media(max-width:520px){.surface{aspect-ratio:auto;height:calc(100vw * .667 + 265px);min-height:510px;background:linear-gradient(#64c9ed,#72ceee)}.surface .scene-art{top:auto;bottom:0;height:calc(100vw * .667);background-size:100% 100%}.toy-hero{top:125px;width:94%}.toy-hero h1{font-size:80px}.surface .next-chapter{bottom:10px;transform:translateX(-50%) scale(.85)}.refuge{min-height:790px;aspect-ratio:auto}.refuge .scene-art{background-position:62% center}.refuge-panel{top:23%;left:6%;width:88%;max-width:none;padding:20px;background:#103b3cef;border:1px solid #e4b87655;box-shadow:0 8px 0 #272c2866}.eyebrow{font-size:8px;letter-spacing:1.4px}.refuge-panel h2{font-size:36px}.module-tabs button{font-size:12px;padding:9px 4px}#module-demo{padding:14px;min-height:145px}.refuge-destinations{grid-template-columns:1fr}.refuge-destination{padding:9px 11px}.grotto{min-height:850px;aspect-ratio:auto}.community-copy{top:19%;width:75%}.community-copy h2{font-size:37px;margin:13px 0 18px}.discord-mark{width:48px}.community-copy .world-button{font-size:11px}.events-podium{left:7%;top:auto;bottom:8%;width:86%;max-width:none;padding:14px}.events-podium h3{font-size:25px;margin-bottom:9px}.events-podium ol{grid-template-columns:repeat(3,1fr);gap:5px}.events-podium li{grid-template-columns:20px 1fr;padding:6px;gap:5px}.events-podium li>img,.podium-fallback{display:none}.events-podium li strong{font-size:8px}.events-link{margin-top:9px}.cartoon-footer{padding:28px 24px;gap:20px}.cartoon-footer nav{order:3;width:100%;justify-content:space-between;gap:10px}.cartoon-footer>span{margin-left:auto}.cartoon-footer .back-top{padding:7px 12px}}
@media(max-width:520px){.surface .scene-art{mask-image:linear-gradient(transparent,#000 18%)}.cartoon-footer{display:grid;grid-template-columns:1fr auto}.cartoon-footer nav{grid-column:1/-1;order:4}.cartoon-footer .back-top{justify-self:end}.cartoon-footer>span{margin-left:0;font-size:10px}.cartoon-footer .footer-name{justify-self:start}}
@media(prefers-reduced-motion:reduce){.cartoon-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[data-theme=dark] .surface:not([data-living=ready]) .scene-art:after{opacity:0}
[data-theme=dark] .cartoon-home .surface{background:#06173d}
.cartoon-home .refuge-panel{left:52%;top:22%;width:38%;max-width:570px;padding:20px;border:1px solid #e5c2744a;border-radius:22px;background:linear-gradient(145deg,#113a38d9,#092d31df);box-shadow:0 8px 0 #08282c70,0 24px 50px #071f2850;backdrop-filter:blur(7px)}
.cartoon-home .community-copy{top:12%;width:36%;max-width:470px}.cartoon-home .community-copy .events-podium{position:relative;inset:auto;width:100%;max-width:none;box-sizing:border-box;margin:22px 0 0;padding:15px;text-align:left}.cartoon-home .community-copy #discord-count{margin-top:14px}
@media(max-width:900px){.cartoon-home .refuge-panel{left:48%;top:17%;width:45%;padding:15px}.cartoon-home .community-copy{top:10%;width:43%}}
@media(max-width:520px){.cartoon-home .refuge{min-height:850px}.cartoon-home .refuge-panel{top:18%;left:5%;width:90%;box-sizing:border-box;padding:16px}.cartoon-home .community-copy{top:10%;width:82%}.cartoon-home .community-copy .events-podium{left:auto;bottom:auto;width:100%;padding:12px}.cartoon-home .community-copy .events-podium ol{grid-template-columns:1fr}.cartoon-home .community-copy .events-podium li{grid-template-columns:22px 1fr}.cartoon-home .grotto{min-height:900px}}
@media(max-width:520px){.refuge{min-height:940px}.refuge-guild-card{top:12%;left:6%;width:88%;max-width:none;box-sizing:border-box;padding:15px}.guild-card-head img{width:52px;height:52px}.refuge-guild-card>p{min-height:0;margin:11px 0;font-size:10px}.guild-card-button{padding:10px}.refuge-panel{top:47%}}
@media(max-width:1100px){.cartoon-home .surface{min-height:720px}.cartoon-home .toy-hero{top:14%;width:47vw}.cartoon-home .toy-hero h1{font-size:clamp(29px,3.5vw,42px)}}
@media(max-width:768px){.cartoon-home .surface{height:640px;min-height:640px;aspect-ratio:auto}.cartoon-home .surface .scene-art{inset:0;height:100%;background-position:58% center;background-size:cover}.cartoon-home .toy-hero{left:24px;right:24px;top:92px;width:auto;max-width:600px}.cartoon-home .toy-hero h1{font-size:36px}.cartoon-home .refuge{min-height:860px}.cartoon-home .refuge-panel{left:5%;top:15%;width:90%;max-width:none;padding:26px}.cartoon-home .next-chapter{bottom:12px;transform:translateX(-50%)}}
@media(max-width:520px){.cartoon-home .surface{height:475px;min-height:475px}.cartoon-home .surface .scene-art{inset:0;height:100%;background-size:cover;background-position:62% center;mask-image:none}.cartoon-home .toy-hero{left:14px;right:14px;top:76px;width:auto;padding:14px 15px 16px}.cartoon-home .toy-hero h1{font-size:clamp(25px,7.4vw,31px);line-height:1.04}.cartoon-home .surface .next-chapter{bottom:4px;transform:translateX(-50%)}.cartoon-home .refuge{min-height:900px}.cartoon-home .refuge-panel{top:13%;left:5%;width:90%;padding:18px}.cartoon-home .module-tabs button{font-size:14px;min-height:44px}.cartoon-home #demo-description{font-size:15px}.cartoon-home .events-podium li strong{font-size:13px}.cartoon-home .events-podium li small{font-size:12px}}
@media(max-width:380px){.cartoon-home .surface{height:455px;min-height:455px}.cartoon-home .toy-hero{top:70px}.cartoon-home .toy-hero h1{font-size:24px}}

/* Final home refinement: scoped overrides kept together after the legacy cascade. */
.cartoon-home .skip-home{top:0;left:16px;transform:translateY(calc(-100% - 24px));z-index:9999}
.cartoon-home .skip-home:focus,.cartoon-home .skip-home:focus-visible{top:16px;transform:none}
.trust-compact{display:none}
.cartoon-home .theme-button,.cartoon-home .mobile-menu{min-width:44px}
.cartoon-home .events-link,.cartoon-home .world-button,.cartoon-home .back-top{min-width:44px;min-height:44px}
@media(min-width:769px){
 #portals-preview .toy-hero{left:34%;right:auto;top:100px;width:34%;max-width:580px;padding:20px;text-align:center}
 #portals-preview .toy-hero h1{font-size:clamp(28px,2.45vw,42px);line-height:1.12;letter-spacing:-.04em;text-shadow:0 2px #bb7c30,0 4px #73512b,0 7px 16px #16596055}
 #portals-preview .hero-brand{font-size:clamp(44px,4vw,64px)}
 #portals-preview .hero-description{margin:16px 0;font-size:16px}
 #portals-preview .hero-actions{gap:10px}
 #portals-preview .hero-actions .world-button{padding:12px;font-size:14px}
}
@media(max-width:520px){
 #portals-preview .toy-hero{left:18px;right:18px;padding-inline:22px}
 #portals-preview .toy-hero h1{font-size:clamp(24px,6.9vw,29px);line-height:1.16;letter-spacing:-.045em;text-wrap:balance;text-shadow:0 2px #edc77a,0 4px #bb7c30,0 6px #73512b}
 #portals-preview .hero-actions{gap:10px}
 #home-trust{justify-content:center;bottom:58px;gap:8px;padding:10px 12px}
 #home-trust>p,#home-trust>dl{display:none}
 #home-trust>img{width:28px;height:28px}
 #home-trust .trust-compact{display:block;font-size:14px;line-height:1.4;white-space:nowrap;font-weight:800}
 .cartoon-home .cartoon-footer{grid-template-columns:1fr auto 44px;gap:10px 12px;padding:22px 20px}
 .cartoon-home .cartoon-footer .footer-name{grid-column:1}
 .cartoon-home .cartoon-footer>span{grid-column:2;white-space:nowrap}
 .cartoon-home .cartoon-footer .back-top{grid-column:3;grid-row:1;padding:0;justify-content:center}
 .cartoon-home .cartoon-footer nav{grid-column:1/-1;gap:8px;font-size:13px}
}
@media(max-width:380px){#portals-preview .toy-hero h1{font-size:23px}#home-trust>img{display:none}}
