:root{--gold:#f5b536;--cream:#fff2ca;--ink:#10120e}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0b0e0b;color:#fff;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif}.game{position:relative;width:100%;height:100%;overflow:hidden}.world-bg,.veil{position:absolute;inset:0}.world-bg{background:url('/assets/img/iriequest-world.webp') center/cover no-repeat;transition:transform 1.15s cubic-bezier(.2,.8,.2,1),filter .8s}.veil{background:linear-gradient(#07100a20,#07090735);pointer-events:none}.hud{position:absolute;z-index:20;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(16px,env(safe-area-inset-top)) 3vw 0}.brand{font-size:clamp(28px,3.6vw,54px);font-weight:1000;line-height:.8;text-shadow:0 3px 12px #000}.brand span{color:var(--gold)}.brand small{display:block;font-size:8px;letter-spacing:.25em;margin-top:13px;color:var(--cream)}.profile{display:grid;grid-template-columns:42px auto 80px auto;align-items:center;gap:9px;background:#17140dcc;border:1px solid #e6ae3b77;border-radius:15px;padding:7px 11px;backdrop-filter:blur(8px)}.avatar{width:40px;height:40px;border-radius:12px;background:linear-gradient(#ffc85d,#b96c20);display:grid;place-items:center;font-weight:900}.profile strong,.profile small{display:block}.profile small,.profile b{font-size:9px}.profile b{color:#ffd260}.xp{width:80px;height:6px;background:#0008;border-radius:8px}.xp i{display:block;width:58%;height:100%;background:var(--gold);border-radius:8px}.world-stage{position:absolute;inset:0;z-index:5}.chakana{position:absolute;width:58px;height:58px;border-radius:50%;border:2px solid #ffe18b;background:#15140fb8;color:white;cursor:pointer;box-shadow:0 0 0 6px #f5b53626,0 0 30px #f5b53699;animation:float 3.4s ease-in-out infinite}.chakana i{position:absolute;inset:9px;border-radius:50%;background:radial-gradient(circle,#fff6 0 8%,#f5b536 10% 18%,#5e3518 20% 34%,#f5b536 36% 43%,transparent 45%),conic-gradient(from 45deg,#f5b536 0 12%,transparent 12% 25%,#f5b536 25% 37%,transparent 37% 50%,#f5b536 50% 62%,transparent 62% 75%,#f5b536 75% 87%,transparent 87%);filter:drop-shadow(0 0 7px #ffc94c)}.chakana span{position:absolute;top:64px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#0c0d0bd9;border:1px solid #f2c65e66;padding:4px 8px;border-radius:8px;color:#fff;font-size:9px;font-weight:800}.q-wilds{left:20%;top:43%}.q-summit{left:59%;top:23%;animation-delay:-.7s}.q-city{right:8%;top:41%;animation-delay:-1.4s}.q-unknown{right:9%;top:69%;animation-delay:-2.1s}.enter-zone{position:absolute;left:50%;bottom:3.5%;transform:translateX(-50%);width:31%;height:10%;border:0;background:transparent;color:transparent;cursor:pointer}.world-tip{position:absolute;left:50%;bottom:1.4%;transform:translateX(-50%);font-size:9px;letter-spacing:.14em;text-transform:uppercase;text-shadow:0 2px 8px #000}.quest-view{position:absolute;inset:0;z-index:30;opacity:0;pointer-events:none;transform:scale(1.08);transition:.8s ease}.game.quest-open .quest-view{opacity:1;pointer-events:auto;transform:scale(1)}.game.quest-open .world-bg{transform:scale(1.22);filter:brightness(.48) saturate(1.2)}.game.quest-open .hud,.game.quest-open .world-stage{opacity:0;pointer-events:none}.quest-scene{position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,#52763b88,#0b120ddd 65%),url('/assets/img/iriequest-world.webp') center/cover}.quest-hud{position:absolute;top:max(18px,env(safe-area-inset-top));left:3vw;right:3vw;display:flex;align-items:center;gap:14px}.quest-hud small,.quest-hud strong{display:block}.quest-hud small{font-size:9px;letter-spacing:.2em;color:#ffd16a}.quest-hud strong{font-size:20px}.round{width:46px;height:46px;border-radius:50%;border:1px solid #fff5;background:#0c0e0bbc;color:#fff;font-size:24px}.steps{margin-left:auto;display:flex;align-items:center;gap:9px}.steps i{width:120px;height:7px;background:linear-gradient(90deg,var(--gold) 33%,#fff3 33%);border-radius:9px}.quest-panel{position:absolute;left:50%;bottom:max(5%,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(620px,90%);background:#10140ee8;border:1px solid #e6bd6255;border-radius:22px;padding:24px;backdrop-filter:blur(10px)}.quest-panel>p:first-child{font-size:clamp(20px,3vw,30px);font-weight:800;margin:0 0 18px}.answers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.answer{min-height:64px;border:1px solid #ffffff40;border-radius:13px;background:#ffffff10;color:#fff;font-size:18px;font-weight:800}.answer.selected{border-color:#ffd05a;background:#f5b53628}.quest-actions{display:flex;gap:10px;margin-top:18px}.quest-actions button{min-height:46px;border-radius:12px;padding:0 18px;border:1px solid #e5bd5c77;background:#191c16;color:#fff;font-weight:900}.quest-actions #continue{margin-left:auto;background:var(--gold);color:#17130b}.quest-actions #continue:disabled{opacity:.35}.hint{min-height:18px;margin:13px 0 0!important;font-size:13px!important;color:#ffe1a0}.quest-view[data-region="summit"] .quest-scene{background:linear-gradient(#18355388,#07101ccc),url('/assets/img/iriequest-world.webp') 62% 18%/cover}.quest-view[data-region="city"] .quest-scene{background:linear-gradient(#6e391566,#160d08dd),url('/assets/img/iriequest-world.webp') 88% 35%/cover}.quest-view[data-region="unknown"] .quest-scene{background:linear-gradient(#44205b66,#110817dd),url('/assets/img/iriequest-world.webp') 88% 72%/cover}dialog{border:1px solid #e9c56866;border-radius:20px;background:#11150ff2;color:#fff;padding:26px;width:min(420px,88%);text-align:center}dialog::backdrop{background:#000b}dialog button{padding:12px;border-radius:10px;border:1px solid #d7b65c66;background:#24251d;color:#fff;font-weight:800;margin:4px}@keyframes float{50%{transform:translateY(-13px) rotate(4deg)}}@media(max-width:700px){.brand small{display:none}.profile{grid-template-columns:36px auto}.profile .xp,.profile>b{display:none}.avatar{width:34px;height:34px}.chakana{width:52px;height:52px}.chakana span{top:56px}.q-wilds{left:12%;top:42%}.q-summit{left:56%;top:24%}.q-city{right:4%;top:42%}.q-unknown{right:5%;top:68%}.enter-zone{width:55%;height:11%}.world-tip{display:none}.answers{grid-template-columns:1fr}.quest-panel{padding:18px}.quest-actions{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.chakana{animation:none}.world-bg,.quest-view{transition:none}}
@media(min-width:1100px){body{background:#080a08}.game{width:min(1180px,calc(100% - 48px));height:min(820px,calc(100% - 40px));margin:20px auto;border-radius:22px;box-shadow:0 0 0 1px #e5bd5c35,0 24px 80px #000;overflow:hidden}.hud{padding-left:24px;padding-right:24px}.brand{font-size:38px}.profile{transform:scale(.92);transform-origin:top right}}

/* Center the desktop game frame precisely in the available browser area */
@media(min-width:1100px){body{display:grid;place-items:center;min-height:100vh}.game{width:min(1180px,calc(100vw - 64px));height:min(820px,calc(100vh - 64px));margin:0;border-radius:22px}.world-bg{background-size:cover;background-position:center center}}

/* v7: centered crescent quest orbit */
.quest-orbit{position:absolute;z-index:9;left:50%;top:57%;width:min(620px,70%);height:190px;transform:translate(-50%,-50%);pointer-events:none}.world-token{position:absolute;width:62px;height:62px;border-radius:50%;border:2px solid #f8dda0;background:#16140dc9;color:#fff;display:grid;place-items:center;cursor:pointer;pointer-events:auto;box-shadow:0 0 0 5px #f5b53622,0 8px 22px #0009;animation:tokenFloat 3.2s ease-in-out infinite}.world-token i{font-style:normal;font-size:27px;filter:drop-shadow(0 2px 3px #000)}.world-token span{position:absolute;top:68px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#0b0c0ad9;border:1px solid #e9c66d55;border-radius:7px;padding:4px 7px;font-size:9px;font-weight:800}.quest-orbit .q-wilds{left:3%;top:15%;animation-delay:-.4s}.quest-orbit .q-summit{left:25%;top:50%;animation-delay:-1.1s}.quest-orbit .q-city{left:50%;top:68%;animation-delay:-1.8s}.quest-orbit .q-unknown{right:14%;top:50%;animation-delay:-2.5s}.quest-orbit .q-dad{right:-3%;top:15%;animation-delay:-3.1s;border-color:#8fd8ff;box-shadow:0 0 0 5px #65cfff20,0 8px 22px #0009}.world-tip{display:none!important}@keyframes tokenFloat{50%{transform:translateY(-10px)}}@media(max-width:700px){.quest-orbit{width:88%;height:170px;top:59%}.world-token{width:50px;height:50px}.world-token i{font-size:22px}.world-token span{top:55px;font-size:8px}.quest-orbit .q-wilds{left:0}.quest-orbit .q-summit{left:22%}.quest-orbit .q-city{left:46%}.quest-orbit .q-unknown{right:13%}.quest-orbit .q-dad{right:-2%}}

/* v8: upward crescent in front of Irie */
.quest-orbit .q-wilds{left:3%;top:68%}.quest-orbit .q-summit{left:25%;top:28%}.quest-orbit .q-city{left:50%;top:8%}.quest-orbit .q-unknown{right:14%;top:28%}.quest-orbit .q-dad{right:-3%;top:68%}@media(max-width:700px){.quest-orbit .q-wilds{left:0;top:66%}.quest-orbit .q-summit{left:22%;top:30%}.quest-orbit .q-city{left:46%;top:12%}.quest-orbit .q-unknown{right:13%;top:30%}.quest-orbit .q-dad{right:-2%;top:66%}}

/* v9: image already contains title/tagline; keep only a minimal progress line */
.hud{pointer-events:none;padding:max(12px,env(safe-area-inset-top)) 22px 0;justify-content:flex-end}.hud .brand,.hud .profile{display:none!important}.progress-only{display:flex;align-items:center;gap:8px;margin-top:0;margin-right:0;font-size:8px;font-weight:900;text-shadow:0 1px 4px #000}.progress-only span,.progress-only b{white-space:nowrap}.progress-only b{color:#ffd15b}.progress-track{width:105px;height:5px;border-radius:8px;background:#15130b99;box-shadow:0 1px 3px #0008}.progress-track i{display:block;width:58%;height:100%;border-radius:8px;background:#f5b536;box-shadow:0 0 7px #f5b53688}@media(min-width:1100px){.hud{padding:14px 20px 0}.progress-only{margin-top:0}}@media(max-width:700px){.hud{padding:10px 12px 0}.progress-track{width:72px}.progress-only{font-size:7px}}

/* v10: game economy, area progress, tiered hints */
.coins{display:inline-flex;align-items:center;gap:3px;margin-left:4px;color:#ffe3a0}.coins b{color:#ffd15b}.quest-hud #areaProgress{margin-top:3px;color:#fff9;letter-spacing:.08em}.hint-level{align-self:center;font-size:9px;color:#ffd985;letter-spacing:.08em}.reward-pop{position:absolute;z-index:60;left:50%;top:45%;transform:translate(-50%,-50%);padding:15px 22px;border-radius:16px;background:#11150eef;border:1px solid #ffd15b;color:#ffd15b;font-weight:1000;font-size:20px;box-shadow:0 12px 40px #000;animation:reward 1.35s ease forwards;pointer-events:none}@keyframes reward{0%{opacity:0;transform:translate(-50%,-35%) scale(.8)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-75%) scale(.95)}}@media(max-width:700px){.coins{font-size:7px}.progress-only{gap:5px}}

#particles{position:absolute;inset:0;z-index:4;width:100%;height:100%;pointer-events:none}.world-bg{animation:worldBreath 12s ease-in-out infinite alternate}.veil:after{content:"";position:absolute;inset:-15%;background:radial-gradient(circle at 25% 45%,#8cff6a18 0 2%,transparent 9%),radial-gradient(circle at 75% 32%,#69d7ff1a 0 2%,transparent 10%),radial-gradient(circle at 84% 70%,#d968ff1c 0 2%,transparent 9%);animation:lightDrift 9s ease-in-out infinite alternate}.mission-control{position:absolute;inset:0;z-index:80;padding:clamp(18px,4vw,48px);background:#11160ff5;opacity:0;pointer-events:none;transform:scale(1.04);transition:.45s;overflow:auto}.game.mc-open .mission-control{opacity:1;pointer-events:auto;transform:scale(1)}.mc-head{display:flex;align-items:center;gap:14px;max-width:900px;margin:auto}.mc-head h2{margin:2px 0}.mc-coins{margin-left:auto;color:#ffd15b}.mc-grid{max-width:900px;margin:30px auto;display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.mc-grid article{background:#ffffff0b;border:1px solid #e4bd5b45;border-radius:18px;padding:22px}.mc-grid label{display:block;margin:14px 0}.mc-grid select,.mc-grid textarea{display:block;width:100%;margin-top:6px;border:1px solid #ffffff30;border-radius:10px;background:#0c0e0bbb;color:#fff;padding:11px;font:inherit}.mc-grid button{min-height:44px;border:1px solid #e6bd5c66;border-radius:10px;background:#f5b536;color:#17130b;font-weight:900;padding:0 14px}.mc-progress-row{margin:12px 0}.mc-progress-row span{display:flex;justify-content:space-between;font-size:11px}.mc-progress-row i{display:block;height:6px;margin-top:5px;border-radius:8px;background:linear-gradient(90deg,#f5b536 var(--p),#ffffff20 var(--p))}@keyframes worldBreath{from{transform:scale(1.005) translate(-2px,1px)}to{transform:scale(1.025) translate(4px,-3px)}}@keyframes lightDrift{from{transform:translate(-1%,1%)}to{transform:translate(2%,-2%)}}@media(max-width:700px){.mc-grid{grid-template-columns:1fr}.mission-control{padding:16px}}@media(prefers-reduced-motion:reduce){.world-bg,.veil:after{animation:none}}
/* v12 game-map HUD */
.world-token{width:66px;height:66px}.world-token span{top:69px;min-width:112px;padding:6px 9px;text-align:left}.world-token span b{display:block;font-size:10px}.world-token span em{display:block;margin-top:4px;font-style:normal;font-size:8px;color:#ddd}.q-city{border-color:#ffbd3e!important;box-shadow:0 0 0 5px #ffad272b,0 0 22px #ff9f27aa!important}.q-city .chakana-mark{color:#ffc34d;font-size:34px}.q-wilds{border-color:#8cff56!important}.q-summit{border-color:#62caff!important}.q-unknown{border-color:#c66cff!important}.enter-zone{z-index:12;bottom:4.2%;left:50%;transform:translateX(-50%);width:auto;height:auto;padding:12px 30px;border:2px solid #dcae55;border-radius:10px;background:linear-gradient(#3c2a13dd,#181108ee);color:#ffe6a4;font-size:16px;font-weight:1000;letter-spacing:.12em;box-shadow:0 6px 18px #000a,0 0 16px #dcae5538;pointer-events:auto}.enter-zone i{font-style:normal;margin-right:9px}.world-menu{position:absolute;z-index:13;inset:auto 18px 14px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.world-menu button{pointer-events:auto;border:1px solid #e4b85688;background:#17140dcc;color:#ffe8ad;border-radius:50%;width:46px;height:46px;font-size:20px;position:relative;box-shadow:0 5px 14px #0009}.world-menu button span{position:absolute;top:49px;left:50%;transform:translateX(-50%);font-size:7px;font-weight:900;color:#fff;white-space:nowrap;text-shadow:0 2px 4px #000}.world-menu button:nth-child(3){margin-left:auto}.world-menu button:nth-child(2){margin-right:auto;margin-left:12px}.world-menu button:nth-child(4){margin-left:12px}.world-menu button:nth-child(5){position:absolute;right:0;bottom:calc(100% + 650px);display:none}.tool-panel,.intro-story{position:absolute;inset:0;z-index:75;background:#0b100beF;opacity:0;pointer-events:none;transition:.35s;padding:44px}.game.tool-open .tool-panel,.game.story-open .intro-story{opacity:1;pointer-events:auto}.tool-panel #toolContent{max-width:760px;margin:40px auto;color:#fff}.tool-panel h2{font-size:34px;color:#ffd15b}.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.tool-card{border:1px solid #e1b65a55;border-radius:14px;padding:16px;background:#ffffff0a}.story-card{width:min(520px,85%);margin:16% auto 0;padding:28px;border:1px solid #e0b55277;border-radius:20px;background:#15160ff0;text-align:center;color:#fff;box-shadow:0 20px 70px #000}.story-card small{color:#ffd15b;letter-spacing:.25em}.story-card h2{font-size:32px}.story-card button{padding:12px 20px;border-radius:9px;border:1px solid #ffd15b;background:#e6a92d;color:#17120a;font-weight:1000}.coin-rain{position:absolute;z-index:100;top:-30px;font-size:24px;pointer-events:none;animation:coinFall 1.45s cubic-bezier(.2,.7,.5,1) forwards;filter:drop-shadow(0 3px 3px #000)}@keyframes coinFall{0%{opacity:0;transform:translateY(0) rotate(0) scale(.7)}15%{opacity:1}100%{opacity:0;transform:translateY(620px) rotate(720deg) scale(1.15)}}@media(max-width:700px){.world-menu{inset:auto 8px 8px}.world-menu button{width:38px;height:38px;font-size:16px}.world-menu button span{top:41px;font-size:6px}.enter-zone{bottom:4%;padding:9px 14px;font-size:10px}.world-token span{min-width:82px}.tool-panel{padding:20px}.tool-grid{grid-template-columns:1fr}}
/* v13 preserve the full IrieQuest logo at left edge */
@media(min-width:701px){
  .world-bg{background-size:100% 100%!important;background-position:center center!important;transform-origin:center center}
  @keyframes worldBreath{from{transform:scale(1)}to{transform:scale(1.006)}}
}

/* v14 polished game HUD and portal controls */
.hud{z-index:30;display:flex!important;align-items:flex-start;justify-content:flex-end!important;gap:10px;pointer-events:none}.progress-only{display:none!important}.player-hud{pointer-events:auto;display:grid;grid-template-columns:46px 1fr;gap:9px;width:250px;padding:8px 12px 8px 8px;border:1px solid #e7b95288;border-radius:14px;background:linear-gradient(135deg,#101a2de8,#11121de8);box-shadow:0 7px 22px #0008}.player-avatar{width:46px;height:46px;border-radius:12px;border:2px solid #e6b344;display:grid;place-items:center;background:linear-gradient(145deg,#255b8a,#152338);font-size:24px;font-weight:1000;color:#ffe5a1}.player-data{min-width:0}.player-data>strong{display:block;font-size:15px}.player-data small{font-size:8px;color:#ddd}.xp-row{display:flex;align-items:center;gap:7px;margin-top:4px}.xp-row .progress-track{width:130px;height:7px;background:#060b14;border:1px solid #ffffff2e}.xp-row b{font-size:9px;color:#fff!important}.coins{font-size:9px;margin:4px 0 0!important}.gear-button{pointer-events:auto;width:46px;height:46px;border-radius:50%;border:2px solid #e6b95e;background:#17150fe8;color:#ffe4a0;font-size:23px;box-shadow:0 5px 18px #0009}
.world-token{width:72px;height:72px;border-width:2px;background:#11140ee8}.world-token span{top:76px;min-width:132px;border-radius:9px;padding:7px 10px;background:#0a0c0bea}.world-token span b{font-size:11px}.world-token span em{position:relative;padding-left:50px;line-height:9px}.world-token span em:before{content:"";position:absolute;left:0;top:2px;width:42px;height:6px;border-radius:6px;background:#ffffff22}.world-token span em:after{content:"";position:absolute;left:0;top:2px;width:var(--world-fill,8px);height:6px;border-radius:6px;background:var(--world-color,#ffd15b);box-shadow:0 0 7px var(--world-color,#ffd15b)}.q-wilds{--world-color:#76e93e;--world-fill:17px}.q-summit{--world-color:#58c8ff;--world-fill:9px}.q-city{--world-color:#ffb72f;--world-fill:5px}.q-unknown{--world-color:#c25aff;--world-fill:9px}
.chakana-mark{position:relative!important;width:40px;height:40px;display:block!important;font-size:0!important}.chakana-mark b{position:absolute;display:block;background:#ffc44f;box-shadow:0 0 9px #ff9d23}.chakana-mark b:nth-child(1){width:14px;height:40px;left:13px;top:0}.chakana-mark b:nth-child(2){width:40px;height:14px;left:0;top:13px}.chakana-mark b:nth-child(3){width:14px;height:14px;left:13px;top:13px;background:#17140d;box-shadow:inset 0 0 0 3px #ffc44f}.chakana-mark b:nth-child(4){width:6px;height:6px;left:17px;top:17px;background:#ffc44f}.chakana-mark b:nth-child(5){display:none}
.compass-mark{position:relative;width:42px;height:42px;border-radius:50%;border:2px solid #e9d8a4;background:radial-gradient(circle,#f4e6bd 0 42%,#26394a 44% 48%,#d7b45c 50% 54%,#101a23 56%);box-shadow:0 0 12px #67cfff88}.compass-mark:before,.compass-mark:after{content:"";position:absolute;left:18px;top:5px;width:5px;height:31px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);background:linear-gradient(#e74b3c 0 50%,#25364b 50%)}.compass-mark:after{transform:rotate(90deg);background:linear-gradient(#d6b25a 0 50%,#6d7d88 50%)}.compass-mark b{position:absolute;z-index:2;left:17px;top:17px;width:7px;height:7px;border-radius:50%;background:#f7e8b4;border:1px solid #25364b}
.world-menu{inset:auto 22px 18px}.world-menu button{width:58px;height:58px;font-size:25px;border-width:2px;background:#17140de8}.world-menu button span{top:61px;font-size:8px}.world-menu button:nth-child(2){margin-left:16px}.world-menu button:nth-child(4){margin-left:16px}
@media(max-width:700px){.player-hud{width:185px;grid-template-columns:34px 1fr;padding:6px}.player-avatar{width:34px;height:34px;font-size:18px}.xp-row .progress-track{width:80px}.gear-button{width:38px;height:38px;font-size:18px}.world-token{width:56px;height:56px}.world-token span{top:60px;min-width:92px;padding:5px}.world-token span b{font-size:8px}.world-token span em{padding-left:35px;font-size:7px}.world-token span em:before{width:29px}.world-token span em:after{max-width:29px}.world-menu button{width:44px;height:44px;font-size:18px}.world-menu button span{top:47px}}

/* v15 authentic stepped Chakana + reference-style icon finish */
.chakana-mark{position:relative!important;width:46px!important;height:46px!important;display:block!important;filter:drop-shadow(0 0 7px #ff9f21)!important}
.chakana-mark .chakana-outer{display:block!important;position:absolute!important;inset:0!important;width:46px!important;height:46px!important;background:#ffc34d!important;box-shadow:none!important;clip-path:polygon(33% 0,67% 0,67% 17%,83% 17%,83% 33%,100% 33%,100% 67%,83% 67%,83% 83%,67% 83%,67% 100%,33% 100%,33% 83%,17% 83%,17% 67%,0 67%,0 33%,17% 33%,17% 17%,33% 17%)}
.chakana-mark .chakana-hole{display:block!important;position:absolute!important;left:17px!important;top:17px!important;width:12px!important;height:12px!important;background:#17140d!important;border-radius:50%!important;box-shadow:0 0 0 2px #ffe29a!important}
.world-token>i:not(.chakana-mark):not(.compass-mark){font-size:30px;filter:drop-shadow(0 0 7px currentColor)}
.q-wilds>i{color:#87f05a}.q-summit>i{color:#6dd6ff}.q-unknown>i{color:#d56cff}
.q-dad .compass-mark{width:46px;height:46px;border-width:2px;box-shadow:0 0 0 4px #d8ad4b22,0 0 15px #69d5ff88}

/* v16 bespoke IrieQuest icon family — no emoji/system glyphs */
:root{--iq-gold:#ffd36a;--iq-gold2:#e7a62c;--iq-ink:#17130b}
.world-menu button,.gear-button{display:grid;place-items:center}
.nav-icon{position:relative;display:block;width:32px;height:32px;color:var(--iq-gold);filter:drop-shadow(0 0 5px #f6ae2c88)}
.map-mark{transform:perspective(40px) rotateX(5deg)}
.map-mark b{position:absolute;top:5px;width:10px;height:23px;border:2px solid currentColor;background:#2b2110}
.map-mark b:nth-child(1){left:1px;clip-path:polygon(0 8%,100% 0,100% 92%,0 100%)}
.map-mark b:nth-child(2){left:11px;clip-path:polygon(0 0,100% 10%,100% 100%,0 92%)}
.map-mark b:nth-child(3){left:21px;clip-path:polygon(0 10%,100% 2%,100% 92%,0 100%)}
.trophy-mark:before{content:"";position:absolute;left:8px;top:3px;width:16px;height:15px;border:3px solid currentColor;border-radius:3px 3px 9px 9px;background:#5a3b12}.trophy-mark:after{content:"";position:absolute;left:14px;top:19px;width:5px;height:7px;background:currentColor;box-shadow:-6px 7px 0 1px currentColor,0 7px 0 1px currentColor,6px 7px 0 1px currentColor}.trophy-mark b:before,.trophy-mark b:after{content:"";position:absolute;top:6px;width:8px;height:10px;border:2px solid currentColor}.trophy-mark b:before{left:2px;border-right:0;border-radius:8px 0 0 8px}.trophy-mark b:after{right:2px;border-left:0;border-radius:0 8px 8px 0}
.book-mark:before,.book-mark:after{content:"";position:absolute;top:4px;width:14px;height:24px;border:2px solid currentColor;background:#493312}.book-mark:before{left:1px;border-radius:4px 1px 1px 5px;transform:skewY(5deg)}.book-mark:after{right:1px;border-radius:1px 4px 5px 1px;transform:skewY(-5deg)}.book-mark b:first-child{position:absolute;z-index:2;left:15px;top:5px;width:2px;height:22px;background:currentColor}
.stats-mark b{position:absolute;bottom:3px;width:7px;background:linear-gradient(#ffe99c,var(--iq-gold2));border:1px solid #fff1b055;border-radius:2px 2px 0 0}.stats-mark b:nth-child(1){left:2px;height:12px}.stats-mark b:nth-child(2){left:12px;height:20px}.stats-mark b:nth-child(3){left:22px;height:28px}
.gear-mark{position:relative;width:24px;height:24px;border:5px dotted var(--iq-gold);border-radius:50%;filter:drop-shadow(0 0 4px #e9a52c88)}.gear-mark:before{content:"";position:absolute;inset:4px;border:3px solid var(--iq-gold);border-radius:50%}
.compass-mark{position:relative!important;display:block!important;width:50px!important;height:50px!important;border-radius:50%!important;border:3px solid #f5c65d!important;background:radial-gradient(circle at 45% 40%,#fff3c9 0 38%,#c99135 39% 43%,#2a1c0b 44% 48%,#e7b84d 49% 53%,#17130b 54%)!important;box-shadow:0 0 0 4px #f1b72d26,0 0 18px #f3b62b99!important}
.compass-mark:before{content:"N";position:absolute;z-index:4;top:2px;left:50%;transform:translateX(-50%);font:900 6px/1 sans-serif;color:#5b3610}
.compass-mark .needle{display:block!important;position:absolute!important;z-index:3!important;left:20px!important;top:8px!important;width:8px!important;height:34px!important;background:linear-gradient(#df3e2d 0 49%,#173c62 50% 100%)!important;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)!important;transform:rotate(35deg)!important;box-shadow:none!important}
.compass-mark .hub{display:block!important;position:absolute!important;z-index:5!important;left:20px!important;top:20px!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#fff0b5!important;border:2px solid #704411!important;box-shadow:none!important}
.world-menu button{width:64px!important;height:64px!important;border:2px solid #efbd54!important;background:radial-gradient(circle at 45% 35%,#493014 0,#21170c 58%,#0d0c09 100%)!important;box-shadow:0 0 0 3px #e9b34818,0 5px 18px #000b,0 0 13px #e6a82c45!important}
.world-menu button:hover,.gear-button:hover{transform:translateY(-3px) scale(1.05);filter:brightness(1.15)}
.world-menu button span{top:67px!important;font-size:8px!important;letter-spacing:.04em}
.gear-button{background:radial-gradient(circle,#453016,#17130c 68%)!important;border-color:#efbd54!important;box-shadow:0 0 0 3px #e9b34818,0 5px 18px #000a!important}
.player-avatar{background:radial-gradient(circle at 50% 38%,#e5a15b 0 16%,#4c2a14 17% 28%,#21567b 29% 67%,#102337 68%)!important;overflow:hidden}.avatar-head{font-size:0}.avatar-head:before{content:"";display:block;width:17px;height:17px;border-radius:48% 48% 45% 45%;background:#efb16d;box-shadow:0 -5px 0 1px #49270f}
@media(max-width:700px){.world-menu button{width:48px!important;height:48px!important}.nav-icon{transform:scale(.78)}.world-menu button span{top:51px!important}.compass-mark{transform:scale(.82)}}

/* v17 repair compass proportions + user avatar upload */
.player-avatar{appearance:none;padding:0;cursor:pointer;position:relative}.player-avatar img{display:none;width:100%;height:100%;object-fit:cover;border-radius:9px}.player-avatar.has-image img{display:block}.player-avatar.has-image .avatar-placeholder{display:none}.avatar-placeholder{font-size:20px;font-weight:1000;color:#ffe1a0}.player-avatar:after{content:"+";position:absolute;right:-5px;bottom:-5px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#e6a92d;color:#17130b;font:900 11px/1 sans-serif;border:1px solid #ffe49b}
.q-dad .compass-mark{box-sizing:border-box!important;width:46px!important;height:46px!important;border:3px solid #efbd54!important;background:radial-gradient(circle,#fff1c4 0 52%,#d49a35 53% 59%,#31210d 60% 66%,#e4b64e 67% 72%,#16120b 73%)!important;border-radius:50%!important;transform:none!important;overflow:hidden!important}
.q-dad .compass-mark .cardinal{display:block!important;position:absolute!important;z-index:5!important;width:auto!important;height:auto!important;background:none!important;box-shadow:none!important;color:#5b3511!important;font:900 5px/1 sans-serif!important}
.q-dad .compass-mark .n{top:4px!important;left:20px!important}.q-dad .compass-mark .s{bottom:4px!important;left:20px!important}.q-dad .compass-mark .e{right:4px!important;top:20px!important}.q-dad .compass-mark .w{left:4px!important;top:20px!important}
.q-dad .compass-mark .needle{display:block!important;position:absolute!important;z-index:3!important;left:18px!important;top:7px!important;width:7px!important;height:30px!important;background:linear-gradient(#d63a2d 0 50%,#183c63 50% 100%)!important;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)!important;transform:rotate(32deg)!important;transform-origin:center!important;box-shadow:none!important}
.q-dad .compass-mark .hub{display:block!important;position:absolute!important;z-index:6!important;left:17px!important;top:17px!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#ffe9a7!important;border:2px solid #6b4014!important;box-shadow:none!important}
.q-dad .compass-mark:before{display:none!important}

/* v18 avatar is managed from Settings */
.player-avatar{cursor:default!important}.player-avatar:after{display:none!important}.settings-avatar{display:flex;align-items:center;gap:18px}.settings-avatar-preview{width:82px;height:82px;flex:0 0 82px;border-radius:18px;border:2px solid #e6b344;background:linear-gradient(145deg,#255b8a,#152338);display:grid;place-items:center;overflow:hidden;color:#ffe1a0;font-size:28px;font-weight:1000}.settings-avatar-preview img{display:none;width:100%;height:100%;object-fit:cover}.settings-avatar-preview.has-image img{display:block}.settings-avatar-preview.has-image span{display:none}.settings-avatar h3{margin:0 0 5px;color:#ffe2a0}.settings-avatar p{margin:0 0 12px;color:#ddd;font-size:12px}.settings-avatar button{border:1px solid #e5b64f;border-radius:9px;background:#e3a72d;color:#17130b;font-weight:1000;padding:10px 14px}

/* v19 explicit avatar preview/save flow */
.settings-avatar-copy{flex:1}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-actions button:disabled{opacity:.38;cursor:not-allowed}.settings-actions #saveAvatar:not(:disabled){background:#74d64a;border-color:#9af36e;box-shadow:0 0 12px #65d43f55}.settings-avatar-preview.has-image{box-shadow:0 0 0 3px #74d64a33,0 0 18px #74d64a44}

/* v20 real-world quests, evidence journal and Explorer Pack */
.quest-type{display:inline-block;margin-bottom:8px;padding:4px 8px;border:1px solid #e8b84b88;border-radius:999px;color:#ffd76d;font-size:9px;font-weight:1000;letter-spacing:.12em}.field-task{margin:10px 0}.field-task p{font-size:12px;color:#ddd}.evidence-upload{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:9px;background:#dca52e;color:#17130b;font-weight:1000;cursor:pointer}.evidence-upload input{display:none}.evidence-preview{margin:9px 0;display:flex;align-items:center;gap:9px;color:#8dec68;font-size:10px;font-weight:900}.evidence-preview img{width:70px;height:54px;object-fit:cover;border:2px solid #74d64a;border-radius:8px}.field-task textarea{box-sizing:border-box;width:100%;border:1px solid #d6ae5266;border-radius:8px;background:#0c0d0dcc;color:#fff;padding:9px}.field-quest{position:absolute;inset:0;z-index:50;display:none;place-items:center;background:#050705cc;backdrop-filter:blur(5px)}.field-quest.open{display:grid}.field-card{width:min(520px,82%);padding:28px;border:1px solid #e7b84b77;border-radius:18px;background:linear-gradient(145deg,#152719f5,#11120df5);box-shadow:0 24px 70px #000}.field-card small{color:#8de66b;font-weight:1000;letter-spacing:.15em}.field-card h2{font-size:30px;margin:8px 0;color:#ffe08b}.field-card p{line-height:1.5;color:#eee}.field-card>button:last-child{padding:11px 16px;border:1px solid #f0c45c;border-radius:9px;background:#dda72e;color:#17130b;font-weight:1000}.field-reward{margin:15px 0;color:#ffd76d;font-weight:900}.journal-grid{display:grid;gap:10px}.journal-grid article{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:10px;border:1px solid #ffffff18;border-radius:10px;background:#0004}.journal-grid img{width:90px;height:70px;object-fit:cover;border-radius:7px}.journal-grid b,.journal-grid small{display:block}.journal-grid small{color:#e7b94d}.journal-grid p{margin:4px 0;color:#ddd}.pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.pack-grid article{min-height:105px;padding:12px;border:1px solid #e2b34955;border-radius:12px;background:linear-gradient(#2a2112,#111);text-align:center}.pack-grid span{display:block;font-size:32px}.pack-grid b,.pack-grid small{display:block}.pack-grid small{margin-top:5px;color:#bbb}.pack-mark{border:2px solid currentColor;border-radius:5px 5px 8px 8px}.pack-mark:before{content:"";position:absolute;left:8px;top:-7px;width:12px;height:8px;border:2px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0}.pack-mark b{position:absolute;left:6px;right:6px;top:13px;height:2px;background:currentColor}

/* v21 explicit camera/library evidence actions */
.evidence-actions{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}.evidence-actions .evidence-upload{min-width:130px;justify-content:center}.library-action{background:#172535!important;color:#ffe09a!important;border:1px solid #dca52e}.camera-mark,.photo-mark{position:relative;display:inline-block;width:18px;height:14px;border:2px solid currentColor;border-radius:3px}.camera-mark:before{content:"";position:absolute;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;left:4px;top:2px}.camera-mark:after{content:"";position:absolute;width:7px;height:3px;background:currentColor;left:4px;top:-5px;border-radius:2px}.photo-mark:before{content:"";position:absolute;width:4px;height:4px;background:currentColor;border-radius:50%;right:2px;top:2px}.photo-mark:after{content:"";position:absolute;left:1px;bottom:1px;width:13px;height:8px;background:currentColor;clip-path:polygon(0 100%,35% 35%,55% 62%,75% 20%,100% 100%)}

/* v22 multi-Explorer foundation + Levels 1–8 / Steps 1–5 */
.explorer-gate{position:absolute;inset:0;z-index:90;display:none;place-items:center;background:#050705e8;backdrop-filter:blur(9px)}.explorer-gate.open{display:grid}.explorer-card{width:min(560px,86%);max-height:82%;overflow:auto;padding:28px;border:1px solid #e5b54d77;border-radius:20px;background:linear-gradient(145deg,#17251af7,#11120ef7);box-shadow:0 28px 80px #000}.explorer-card>small{color:#8ce66a;font-weight:1000;letter-spacing:.14em}.explorer-card h2{margin:6px 0 18px;color:#ffe08b;font-size:30px}.explorer-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}.explorer-list button{display:grid;grid-template-columns:42px 1fr;text-align:left;gap:2px 9px;align-items:center;padding:10px;border:1px solid #ffffff20;border-radius:12px;background:#0005;color:#fff}.explorer-list button.active{border-color:#e8b84d;box-shadow:0 0 15px #e8b84d33}.explorer-list b{align-self:end}.explorer-list small{align-self:start;color:#bbb;font-size:9px}.explorer-mini-avatar{grid-row:1/3;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#275d89,#16263a);border:1px solid #e7b64b;color:#ffe09a;font-weight:1000}.explorer-card>button,.explorer-card form button,.mc-explorer-bar button{padding:9px 12px;border:1px solid #e3b34b;border-radius:8px;background:#dca62d;color:#17130b;font-weight:1000}.explorer-card form{margin-top:14px;padding:15px;border:1px solid #ffffff18;border-radius:12px;background:#0004}.explorer-card form label{display:block;margin:9px 0;color:#ddd;font-size:11px}.explorer-card input,.explorer-card select,.mc-explorer-bar select{box-sizing:border-box;width:100%;margin-top:5px;padding:9px;border:1px solid #d5aa4b66;border-radius:7px;background:#111;color:#fff}.explorer-card form>div{display:flex;justify-content:flex-end;gap:8px}.mc-explorer-bar{display:grid;grid-template-columns:auto minmax(150px,260px) auto;align-items:center;gap:10px;margin-bottom:14px;padding:10px 12px;border:1px solid #e3b34b44;border-radius:10px;background:#0004}.mc-explorer-bar span{color:#e9bd59;font-size:10px;font-weight:1000;text-transform:uppercase}.level-step-card{padding:10px 0 14px}.level-step-card>b{color:#ffe08b}.step-dots{display:flex;gap:6px;margin-top:8px}.step-dots i{width:28px;height:6px;border-radius:4px;background:#ffffff22}.step-dots i.done{background:#e2ad32;box-shadow:0 0 7px #e2ad3266}@media(max-width:600px){.mc-explorer-bar{grid-template-columns:1fr}.explorer-list{grid-template-columns:1fr}}

/* v23 Explorer gate close control */
.explorer-card{position:relative}.explorer-gate-close{position:absolute!important;left:14px;top:14px;width:36px!important;height:36px!important;padding:0!important;background:#111b!important;color:#fff!important;border:1px solid #ffffff55!important}.explorer-card>.explorer-gate-close+small{display:block;margin-left:46px}.explorer-card>.explorer-gate-close+small+h2{margin-left:46px}

/* v24 sign-in gate */
.signin-gate{position:absolute;inset:0;z-index:120;display:none;place-items:center;background:linear-gradient(#030706d9,#020302ef);backdrop-filter:blur(8px)}.signin-gate.open{display:grid}.signin-card{width:min(390px,82%);padding:30px;border:1px solid #e5b54d88;border-radius:20px;background:linear-gradient(145deg,#17251af7,#0d100cf8);box-shadow:0 30px 90px #000}.signin-card>small{color:#7ee663;font-weight:1000;letter-spacing:.18em}.signin-card h1{margin:5px 0 3px;color:#ffe08a;font-size:34px}.signin-card>p{margin:0 0 22px;color:#ccc}.signin-card label{display:block;margin:12px 0;color:#e8bd59;font-size:10px;font-weight:1000;letter-spacing:.08em}.signin-card input{box-sizing:border-box;width:100%;margin-top:6px;padding:13px 12px;border:1px solid #e5b54d66;border-radius:9px;background:#070907;color:#fff;font-size:16px;outline:none}.signin-card input:focus{border-color:#f1bd43;box-shadow:0 0 0 3px #e5b54d18}.signin-card button{width:100%;margin-top:8px;padding:13px;border:1px solid #ffcf5a;border-radius:9px;background:linear-gradient(#f1bd42,#d89c1c);color:#171207;font-weight:1000;font-size:14px}.signin-status{min-height:18px;margin:10px 0 0!important;color:#ff9c7d!important;font-size:11px}.signed-out>.hud,.signed-out>.world-stage{visibility:hidden}

/* v25 sign-in over the IrieQuest world */
.signin-gate{background:linear-gradient(90deg,#02060452,#02060422,#02060452);backdrop-filter:none}
.signin-card{width:min(430px,82%);padding:28px 30px;border:1px solid #f0bf5666;background:linear-gradient(145deg,#07100aa8,#0b0d0a8c);backdrop-filter:blur(5px);box-shadow:0 24px 70px #0009}
.signin-card input{background:#05080645;border:1px solid #e8b84d8c;backdrop-filter:blur(2px)}
.signed-out>.hud,.signed-out>.world-stage{visibility:hidden}
.signed-out>.world-bg{filter:brightness(.72) saturate(.95)}

/* v26 Explorer sign out */
.settings-session{margin-top:14px;padding:16px;border:1px solid #ffffff1c;border-radius:12px;background:#0004}.settings-session h3{margin:0 0 5px;color:#ffe08b}.settings-session p{margin:0 0 12px;color:#c9c9c9;font-size:12px;line-height:1.45}.signout-button{padding:10px 16px;border:1px solid #e7b54c;border-radius:8px;background:transparent;color:#ffd56d;font-weight:1000;letter-spacing:.05em}.signout-button:hover{background:#e7b54c18}

/* v27 role-aware Dad entry */
.q-dad{display:none}.dad-entry{margin-top:14px;padding-top:13px;border-top:1px solid #ffffff1c;text-align:center}.dad-entry button{width:auto;background:transparent;border-color:#e5b54d66;color:#e6c36f;font-size:10px;letter-spacing:.08em}.dad-signin-form{margin-top:8px}.dad-signin-form[hidden],#signInForm[hidden],.dad-entry[hidden]{display:none!important}.dad-cancel{margin-top:7px!important;background:transparent!important;color:#d8c58d!important;border-color:#ffffff2a!important}

/* v28 Mission Control expedition dashboard */
.mc-subtitle{margin:2px 0 0;color:#aeb8a9;font-size:11px}.mc-tabs{display:flex;gap:8px;padding:0 24px 14px}.mc-tabs button{background:#0c120dd9;border:1px solid #ffffff1c;color:#aeb8a9;border-radius:999px;padding:9px 14px;font-size:10px;font-weight:900;letter-spacing:.08em}.mc-tabs button.active{color:#ffe08b;border-color:#e9b84d99;background:#e9b84d12}.mc-view{display:none;padding:0 24px 24px}.mc-view.active{display:block}.mc-section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:14px}.mc-section-head small{color:#6fdd8c;font-weight:900;letter-spacing:.12em}.mc-section-head h3{margin:2px 0;font-size:24px}.participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:18px}.participant-card{display:flex;align-items:center;text-align:left;gap:12px;padding:14px;border-radius:14px;border:1px solid #ffffff20;background:#07100bc9;color:white}.participant-card.selected{border-color:#e9b84d;box-shadow:0 0 0 1px #e9b84d33,0 10px 30px #0005}.participant-avatar{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:50%;background:linear-gradient(145deg,#214b31,#0c2115);border:2px solid #d9a936;color:#ffe28c;font-size:20px;font-weight:1000}.participant-card span:last-child{display:grid;gap:2px}.participant-card b{font-size:15px}.participant-card small,.participant-card em{font-size:10px;color:#b7c1b7;font-style:normal}.selected-explorer{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(220px,1fr);gap:18px;padding:18px;border:1px solid #e9b84d40;border-radius:16px;background:#050a07a8}.selected-explorer>div:first-child small{color:#e9b84d;font-weight:900;letter-spacing:.1em}.selected-explorer h3{margin:4px 0;font-size:25px}.mc-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px}.mc-actions button{flex:1;min-width:145px}.camp-preview{max-width:650px;margin:20px auto;padding:28px;border:1px solid #e9b84d45;border-radius:18px;background:#061009bd;text-align:center}.camp-preview small{color:#6fdd8c;font-weight:900;letter-spacing:.14em}.camp-preview h3{font-size:28px;margin:8px 0}.mc-muted{color:#b9c0b8;line-height:1.6}@media(max-width:700px){.selected-explorer{grid-template-columns:1fr}.mc-tabs{overflow:auto}.mc-view{padding-left:14px;padding-right:14px}}

/* v30 server Explorer creation */
.explorer-form-status{min-height:18px;color:#ffd36d;font-size:11px}.new-explorer-success{margin-top:15px;padding:20px;border:1px solid #e9b84d88;border-radius:16px;background:#07100de8;text-align:center}.new-explorer-success[hidden]{display:none}.new-explorer-success small{color:#71df91;font-weight:1000;letter-spacing:.12em}.new-explorer-success h3{font-size:24px;margin:6px 0 16px}.new-explorer-success>p{margin:5px 0;color:#bfc7bd}.new-explorer-success strong{display:block;margin:8px auto 12px;font-size:34px;letter-spacing:.16em;color:#ffe08b;text-shadow:0 0 18px #e9b84d66}.new-explorer-success .code-note{font-size:11px;max-width:300px;margin:0 auto 14px}.new-explorer-success button{margin:4px}

/* v32 expedition onboarding + curriculum */
.new-explorer-entry{margin-left:8px;opacity:.8}.registration-route{margin-top:18px;padding:18px;border:1px solid #e9b84d66;border-radius:16px;background:#07100de8}.registration-route[hidden]{display:none}.registration-route h3{margin:4px 0 8px;font-size:22px}.registration-route p{font-size:12px;line-height:1.5;color:#d8ddd6}.registration-steps{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.registration-steps b{padding:9px;border-radius:10px;background:#ffffff0b;border:1px solid #ffffff12;font-size:10px;color:#f5d985}.mc-level-title{margin-top:6px;color:#f0c75e;font-weight:900;font-size:15px}.mc-level-control{display:flex;gap:8px;align-items:end;margin-top:12px}.mc-level-control label{font-size:9px;letter-spacing:.1em;color:#aab3aa}.mc-level-control select{display:block;margin-top:4px;background:#0c1512;color:#fff;border:1px solid #ffffff25;border-radius:9px;padding:8px}.mc-level-control button{padding:9px 12px}.mc-level-summary{max-width:420px;color:#bfc8c0;font-size:11px;line-height:1.45;margin:8px 0 0}

/* v33 Challenge Engine 2.0 */
.answer-feedback{margin:14px 0 4px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#13251be8,#0b1611f2);border:1px solid #efd06b66;box-shadow:0 10px 30px #0005}.answer-feedback[hidden],.written-answer[hidden],.reward-choice[hidden]{display:none}.answer-feedback>small{color:#7fe69b;font-weight:1000;letter-spacing:.14em}.answer-feedback h3{margin:4px 0 6px;color:#ffe38c;font-size:20px}.answer-feedback p{margin:4px 0 12px;line-height:1.5}.reward-choice{padding-top:10px;border-top:1px solid #ffffff18}.reward-choice>p{font-size:9px;letter-spacing:.16em;color:#aeb8ae;font-weight:900}.reward-choice button{margin:4px 5px 0 0;padding:11px 14px;border-radius:12px}.written-answer textarea{width:100%;box-sizing:border-box;padding:14px;border-radius:14px;border:1px solid #ffffff2b;background:#07100dcc;color:#fff;font:inherit;resize:vertical}.answer.not-yet{animation:iqShake .25s ease;border-color:#d8896888}@keyframes iqShake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.journal-thought{display:grid;place-items:center;min-height:80px;font-size:30px;background:#ffffff0a;border-radius:10px}

/* v34 adaptive mastery */
.mastery-badge{display:inline-block;margin:0 0 10px;padding:7px 11px;border:1px solid #f2d06a66;border-radius:999px;background:#d5a52c18;color:#ffe08a;font-size:10px;font-weight:1000;letter-spacing:.12em}.mastery-badge[hidden]{display:none}.mc-learning{margin-top:16px;padding:13px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff12}.mc-learning h4{margin:0 0 9px;font-size:9px;letter-spacing:.16em;color:#e7c75e}.mc-learning>div{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.mc-learning span{display:flex;flex-direction:column;padding:9px;border-radius:10px;background:#07100d88}.mc-learning b{font-size:18px;color:#fff}.mc-learning small{font-size:8px;color:#aeb7af}@media(max-width:650px){.mc-learning>div{grid-template-columns:1fr 1fr}}

/* v35 Dad Coin economy */
.trading-post{margin-top:22px;padding:18px;border:1px solid #e6b84b55;border-radius:16px;background:linear-gradient(145deg,#101a12,#090d0a)}.trading-post>small{color:#74df91;font-weight:1000;letter-spacing:.14em}.trading-post h3{margin:4px 0 12px;color:#ffe08b}.trade-balance{display:flex;align-items:center;gap:7px;margin-bottom:12px;padding:10px;border-radius:10px;background:#0005}.trade-balance b{font-size:20px;color:#ffe08b}.trade-balance em{margin-left:auto;color:#aeb7ae;font-size:10px;font-style:normal}.trade-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.trade-grid button{display:grid;gap:3px;text-align:left;padding:12px;border:1px solid #e1b34a55;border-radius:12px;background:#142018;color:#fff}.trade-grid button:disabled{opacity:.35}.trade-grid span{font-size:10px;color:#bdc6bd}.trade-grid em{font-style:normal;color:#f1c85f;font-size:11px}.trade-status{font-size:10px;color:#b8c1b8}.mc-redemptions{grid-column:1/-1;margin-top:12px;padding:12px;border:1px solid #ffffff14;border-radius:12px;background:#0003}.mc-redemptions h4{margin:0 0 8px;color:#f0c75e;font-size:9px;letter-spacing:.14em}.redemption-row{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;padding:8px 0;border-top:1px solid #ffffff0d}.redemption-row span{display:grid}.redemption-row small,.no-redemptions{color:#aeb7ae;font-size:9px}.redemption-row button{padding:7px 9px;font-size:9px}@media(max-width:560px){.trade-grid{grid-template-columns:1fr}.redemption-row{grid-template-columns:1fr 1fr}.redemption-row span{grid-column:1/-1}}

/* v36 Motion Quest Engine */
.motion-task{margin:14px 0;padding:14px;border-radius:16px;background:#07110ddd;border:1px solid #ffffff18}.motion-task[hidden]{display:none}.motion-source{display:flex;flex-wrap:wrap;gap:9px;min-height:58px;padding:10px;border-radius:12px;background:#ffffff08}.drag-card{min-height:46px;padding:10px 13px;border:1px solid #e8c76166;border-radius:12px;background:#18271d;color:#fff;cursor:grab;touch-action:manipulation}.drag-card:active{cursor:grabbing}.drag-card.picked{outline:2px solid #f0cd68;transform:translateY(-2px)}.motion-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:9px;margin-top:12px}.drop-zone{min-height:74px;display:grid;place-content:center;gap:4px;border:1px dashed #ffffff44;border-radius:13px;background:#ffffff05;color:#dfe6df}.drop-zone small{font-size:8px;letter-spacing:.12em;color:#9fa99f}.drop-zone.filled{border-style:solid;border-color:#74df9188;background:#183120}.drop-zone.filled span{color:#fff;font-weight:900}.drop-zone.wrong-drop{animation:iqShake .3s ease;border-color:#d88968}.motion-status{margin:10px 2px 0;font-size:11px;color:#b9c3ba}.world-alive{animation:worldFloat 4.8s ease-in-out infinite;animation-delay:var(--float-delay)}@keyframes worldFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(.8deg)}}@media(prefers-reduced-motion:reduce){.world-alive{animation:none}}@media(max-width:560px){.motion-targets{grid-template-columns:1fr 1fr}.drag-card{flex:1 1 42%}}

/* v37 semantic motion */
.motion-instruction{margin:0 0 10px;padding:10px 12px;border-left:3px solid #e8c761;color:#e5ebe5;background:#ffffff07;font-size:12px;line-height:1.45}.drag-card.not-fit{animation:iqShake .3s ease;border-color:#d88968}.motion-source:has(+.motion-targets .filled) .drag-card{opacity:.72}.motion-targets .drop-zone:only-child{min-height:100px;border-width:2px}.motion-targets .drop-zone:only-child small{font-size:10px;color:#f0cd68}.motion-targets .drop-zone:only-child span{font-size:15px}

/* v38 installable PWA + update control */
.hud-actions{display:flex;align-items:center;gap:8px}.pwa-update{min-height:36px;padding:8px 11px;border:1px solid #f0c65b88;border-radius:999px;background:#182015d9;color:#ffe08b;font-size:9px;font-weight:1000;letter-spacing:.08em}.pwa-update[hidden]{display:none}.pwa-update:not([hidden]){animation:updatePulse 2s ease-in-out infinite}@keyframes updatePulse{50%{box-shadow:0 0 0 5px #e8b84d12;border-color:#ffe08b}}.pwa-toast{position:absolute;z-index:180;left:50%;bottom:76px;transform:translateX(-50%);max-width:min(420px,80%);padding:10px 14px;border:1px solid #e8bd5966;border-radius:999px;background:#07100df2;color:#f3e6b9;font-size:10px;font-weight:900;box-shadow:0 12px 35px #0008}.pwa-toast[hidden]{display:none}@media(prefers-reduced-motion:reduce){.pwa-update:not([hidden]){animation:none}}@media(max-width:520px){.pwa-update{font-size:0;padding:8px 10px}.pwa-update:before{content:'↻';font-size:18px}}

/* v39 world interaction repair */
.quest-orbit{z-index:18!important}.world-token{z-index:19!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}.world-token>*,.world-token span>*{pointer-events:none}.world-token:active{filter:brightness(1.35);scale:.96}.world-menu,.enter-zone{z-index:17}.hud{z-index:24}

/* v42 Weekend School Quest + Word Escape */
.weekend-quest-launch{position:absolute;z-index:20;left:50%;bottom:108px;transform:translateX(-50%);display:grid;gap:2px;min-width:250px;padding:9px 18px;border:1px solid #f4c64f99;border-radius:14px;background:#07100ee8;color:#ffe6a0;box-shadow:0 8px 25px #0008;text-align:center}.weekend-quest-launch small{font-size:7px;letter-spacing:.13em}.weekend-quest-launch b{font-size:12px}.weekend-quest-launch span{font-size:7px;color:#cbd8d0}.weekend-view{position:absolute;inset:0;z-index:90;display:none;place-items:center;padding:24px;background:#050b0de8;backdrop-filter:blur(8px)}.weekend-open .weekend-view{display:grid}.weekend-card{width:min(760px,94vw);max-height:92vh;overflow:auto;padding:24px;border:1px solid #e6bc5466;border-radius:24px;background:linear-gradient(145deg,#0b1717,#11162a);color:#f5edcf;box-shadow:0 30px 90px #000}.weekend-card>small{color:#eec95e;font-weight:900;letter-spacing:.12em}.weekend-card h2{margin:6px 0}.weekend-root{padding:8px 12px;border-radius:10px;background:#ffffff0b}.escape-head{display:flex;justify-content:space-between;margin-top:20px;font-size:10px;font-weight:900;color:#eec95e}.escape-word{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:22px 0}.escape-word span{display:grid;place-items:center;width:28px;height:38px;border-bottom:2px solid #e8ca72;font-size:20px;font-weight:1000}.escape-word.memory-hide span{color:transparent}.escape-letters{display:grid;grid-template-columns:repeat(9,1fr);gap:6px}.escape-letters button,.escape-spell button,.escape-context button,#escapeNext{min-height:36px;border:1px solid #b88aff66;border-radius:9px;background:#18202b;color:#fff;font-weight:900}.escape-letters button.hit{background:#255e43}.escape-letters button.miss{opacity:.3}.escape-spell,.escape-context{margin-top:16px}.escape-spell label,.escape-context label{display:grid;gap:7px;font-size:10px;font-weight:900}.escape-spell input,.escape-context textarea{padding:11px;border:1px solid #ffffff33;border-radius:10px;background:#05090dcc;color:#fff;font:inherit}.escape-spell button,.escape-context button,#escapeNext{margin-top:9px;padding:8px 14px;color:#ffe7a0}.school-focus{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:22px}.school-focus article{display:grid;gap:4px;padding:10px;border:1px solid #ffffff1f;border-radius:12px;background:#ffffff08}.school-focus b{font-size:9px;color:#eec95e}.school-focus span{font-size:8px;line-height:1.35}@media(max-width:600px){.weekend-quest-launch{bottom:96px}.escape-letters{grid-template-columns:repeat(7,1fr)}.school-focus{grid-template-columns:1fr 1fr}.weekend-card{padding:18px}}

/* v43 weekly mastery */
.school-focus button{display:grid;gap:4px;padding:10px;border:1px solid #ffffff1f;border-radius:12px;background:#ffffff08;color:#f5edcf;text-align:left;cursor:pointer}.school-focus button b{font-size:9px;color:#eec95e}.school-focus button span{font-size:8px}.word-mastery{display:flex;justify-content:space-between;gap:12px;margin-top:15px;padding:11px;border:1px solid #68d69b55;border-radius:11px;background:#14352566}.crossword{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff20}.crossword-grid{display:grid;gap:8px;margin:12px 0}.crossword-grid label{display:grid;grid-template-columns:24px 1fr minmax(120px,180px);align-items:center;gap:8px}.crossword-grid span{font-family:monospace;letter-spacing:2px;color:#e8ca72}.crossword-grid input{padding:8px;border:1px solid #ffffff2b;border-radius:8px;background:#05090d;color:#fff}.crossword-grid input.wrong{border-color:#d77}.crossword-clues{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px;font-size:9px}#crosswordCheck{padding:9px 14px;border:1px solid #eec95e77;border-radius:9px;background:#1b2230;color:#ffe7a0;font-weight:900}@media(max-width:600px){.crossword-grid label{grid-template-columns:20px 1fr}.crossword-grid input{grid-column:2}.crossword-clues{grid-template-columns:1fr}}

/* v44 Weekly Quest hub */
.weekly-top{display:flex;align-items:center;gap:12px}.weekly-top h2{margin:3px 0}.weekly-top small{color:#eec95e;font-weight:900;letter-spacing:.12em}.weekly-hub>p{color:#cbd8d0}.weekly-doors{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.weekly-doors button{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;padding:14px;border:1px solid #ffffff24;border-radius:15px;background:#ffffff08;color:#f8f0d5;text-align:left}.weekly-doors button:first-child{grid-column:1/-1;border-color:#eec95e66}.weekly-doors i{grid-row:1/4;font-style:normal;font-size:25px;align-self:center}.weekly-doors b{font-size:12px}.weekly-doors span{font-size:9px;color:#cbd8d0}.weekly-doors em{font-size:7px;color:#eec95e;font-style:normal;letter-spacing:.1em}.weekly-back{margin:12px 0;padding:7px 10px;border:1px solid #ffffff24;border-radius:999px;background:#ffffff08;color:#eec95e;font-size:8px;font-weight:900}.school-quest-head{display:flex;gap:12px;align-items:center;margin:10px 0 18px}.school-quest-head>span{font-size:34px}.school-quest-head h3{margin:2px 0}.school-quest-head small{color:#eec95e}.school-quest-head p{margin:0;font-size:9px}.school-prompt{font-size:18px;font-weight:900;line-height:1.35}.school-answers{display:grid;gap:8px}.school-answers button{padding:12px;border:1px solid #735c9b;border-radius:10px;background:#171a2b;color:#fff;text-align:left;font-weight:800}.school-answers button.correct{border-color:#5bc68a;background:#173929}.school-answers button.wrong{opacity:.45;border-color:#c76b6b}.school-feedback{min-height:32px;margin:12px 0;color:#f4d77d;font-size:11px;line-height:1.45}#schoolNext{padding:10px 15px;border:1px solid #eec95e88;border-radius:9px;background:#1c2430;color:#ffe7a0;font-weight:900}@media(max-width:600px){.weekly-doors{grid-template-columns:1fr}.weekly-doors button:first-child{grid-column:auto}.school-prompt{font-size:15px}}

/* v45 larger weekly quests + visual learning */
.weekend-card{width:min(860px,96vw);font-size:16px}.weekly-top h2{font-size:26px}.weekly-hub>p{font-size:15px}.weekly-doors button{min-height:92px;padding:18px}.weekly-doors i{font-size:34px}.weekly-doors b{font-size:16px}.weekly-doors span{font-size:12px}.weekly-doors em{font-size:9px}.weekly-back{padding:11px 16px;font-size:11px;border-color:#eec95e66}.school-quest-head h3{font-size:22px}.school-quest-head small,.school-quest-head p{font-size:11px}.school-prompt{font-size:22px}.school-answers button{min-height:56px;padding:15px;font-size:15px}.school-feedback{font-size:14px}.school-visual{min-height:92px;display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0 18px;border:1px solid #ffffff18;border-radius:18px;background:radial-gradient(circle at 50% 50%,#27374b99,#0a1119);overflow:hidden}.school-visual span{font-size:34px;filter:drop-shadow(0 5px 8px #0008)}.school-visual.science{background:radial-gradient(circle,#29264d,#090b1d)}.school-visual.history{background:linear-gradient(#263b31,#342d1d)}.school-visual.reading{background:linear-gradient(135deg,#28223b,#151c2b)}.math-workbench{padding:16px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff06}.math-instruction{font-size:13px}.place-grid{display:grid;grid-template-columns:minmax(90px,1fr) 28px minmax(110px,1fr);align-items:center;gap:7px;text-align:right}.place-label{font-size:8px;color:#eec95e;text-align:center}.place-grid b,.place-grid input{padding:10px;font-size:25px;font-family:monospace;font-weight:900;text-align:right}.place-grid i{font-size:25px;font-style:normal;text-align:center}.place-grid em{grid-column:1;font-size:22px;font-style:normal}.place-grid .math-line{grid-column:1/-1;border-top:2px solid #eec95e}.place-grid input{min-width:0;border:1px solid #8c6eb8;border-radius:9px;background:#0b0d18;color:#fff}.number-tray{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin:14px 0}.number-tray button{min-height:42px;border:1px solid #6d5a91;border-radius:8px;background:#171a2b;color:#fff;font-size:17px;font-weight:900}#mathCheck{padding:11px 16px;border:1px solid #eec95e88;border-radius:9px;background:#1c2430;color:#ffe7a0;font-weight:900}@media(max-width:600px){.weekend-card{font-size:14px}.weekly-top h2{font-size:21px}.school-prompt{font-size:18px}.school-visual{gap:9px}.school-visual span{font-size:26px}.number-tray{grid-template-columns:repeat(5,1fr)}}

/* v46 clean decimal board + safe scrolling */
.weekend-view{place-items:start center;overflow-y:auto;padding:clamp(12px,3vh,28px) 18px}.weekend-card{margin:auto 0;max-height:none;overflow:visible}.weekly-top{position:relative}.mission-pane{padding-bottom:8px}.school-visual.math{display:none}.math-workbench{max-width:680px;margin:0 auto;padding:20px}.math-instruction{margin:0 0 18px;font-size:15px;line-height:1.45}.decimal-board{max-width:520px;margin:0 auto;border-radius:14px;background:#0b111b;padding:15px 16px 18px}.place-head,.operand,.answer-row{display:grid;grid-template-columns:36px repeat(2,minmax(54px,1fr)) 22px repeat(2,minmax(68px,1fr));align-items:center;text-align:center}.place-head{padding-bottom:8px;color:#eec95e;font-size:9px;font-weight:900}.place-head .dot-head{grid-column:4}.operand{min-height:54px;font:900 29px/1 monospace}.operand em{font-style:normal;color:#eec95e}.operand b{font:inherit}.operand i,.answer-row i{font-style:normal;font-size:30px}.operand.second{border-bottom:2px solid #eec95e;padding-bottom:8px;margin-bottom:10px}.answer-row{min-height:58px}.digit-slot{height:50px;margin:3px;border:1px solid #765f9b;border-radius:9px;background:#141729;color:#fff;font:900 25px/1 monospace}.digit-slot.active{outline:2px solid #eec95e;outline-offset:2px}.digit-slot.filled{background:#20263a}.digit-slot.wrong{border-color:#d96f6f}.digit-slot.correct{border-color:#55c98a;background:#17392a}.math-tip{text-align:center;color:#c9d1ce;font-size:12px}.math-actions{display:flex;justify-content:space-between;gap:10px}.math-actions button{padding:11px 16px;border:1px solid #eec95e66;border-radius:9px;background:#1c2430;color:#ffe7a0;font-weight:900}#mathClear{border-color:#ffffff33;color:#d5ddd9}@media(max-width:600px){.weekend-view{padding:8px}.weekend-card{width:98vw;padding:16px}.decimal-board{padding:10px 6px}.place-head,.operand,.answer-row{grid-template-columns:25px repeat(2,minmax(40px,1fr)) 16px repeat(2,minmax(48px,1fr))}.place-head{font-size:7px}.operand{font-size:23px}.digit-slot{height:46px;font-size:22px}.math-workbench{padding:13px 9px}}

/* v48 world readability + PWA touch sizing */
.player-hud{grid-template-columns:54px 1fr;width:290px;padding:10px 14px 10px 10px;gap:11px}.player-avatar{width:54px;height:54px}.player-data>strong{font-size:19px;line-height:1.05}.player-data small{font-size:10px;line-height:1.4}.xp-row b{font-size:11px}.coins{font-size:11px!important}.xp-row .progress-track{height:8px}
.world-token{width:80px;height:80px}.world-token i{font-size:31px}.world-token span{top:84px;min-width:148px;padding:8px 11px}.world-token span b{font-size:14px}.world-token span em{font-size:11px;line-height:12px;padding-left:54px}.world-token span em:before,.world-token span em:after{top:3px;height:7px}
.weekend-quest-launch{bottom:105px;min-width:310px;padding:12px 22px;gap:3px;border-width:2px}.weekend-quest-launch small{font-size:9px}.weekend-quest-launch b{font-size:16px}.weekend-quest-launch span{font-size:9px}.enter-zone{font-size:18px;padding:13px 34px}.world-menu button{width:54px;height:54px}.world-menu button span{top:58px;font-size:9px}.pwa-update{min-height:42px;padding:10px 14px;font-size:10px}
@media(max-width:700px){.player-hud{grid-template-columns:46px 1fr;width:240px;padding:8px 10px}.player-avatar{width:46px;height:46px}.player-data>strong{font-size:16px}.player-data small{font-size:9px}.coins,.xp-row b{font-size:10px!important}.world-token{width:62px;height:62px}.world-token i{font-size:25px}.world-token span{top:66px;min-width:112px;padding:6px 7px}.world-token span b{font-size:11px}.world-token span em{font-size:9px;padding-left:38px}.world-token span em:before,.world-token span em:after{width:32px}.weekend-quest-launch{bottom:98px;min-width:min(290px,72vw);padding:10px 14px}.weekend-quest-launch small{font-size:8px}.weekend-quest-launch b{font-size:14px}.weekend-quest-launch span{font-size:8px}.world-menu button{width:50px;height:50px}.world-menu button span{top:53px;font-size:8px}}

/* v49 mobile home layout: app-style dock and breathing room */
.mobile-settings{display:none!important}
@media(max-width:700px){
 .desktop-gear{display:none}
 .world-menu{left:0;right:0;bottom:max(12px,env(safe-area-inset-bottom));padding:0 14px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;align-items:end;background:linear-gradient(180deg,transparent,#070906e8 28%,#070906f5);height:86px}
 .world-menu button,.world-menu button:nth-child(2),.world-menu button:nth-child(3),.world-menu button:nth-child(4),.world-menu button:nth-child(5),.world-menu .mobile-settings{display:grid!important;position:relative!important;inset:auto!important;margin:0!important;justify-self:center;place-items:center;width:48px;height:48px;border-radius:15px;background:#17140de8}
 .world-menu button span{top:52px;font-size:7px}
 .world-menu .mobile-settings{grid-column:5}.world-menu .mobile-settings .gear-mark{width:24px;height:24px}
 .world-menu button[data-panel="stats"]{display:none!important}
 .weekend-quest-launch{bottom:174px;min-width:min(330px,84vw);padding:11px 14px}
 .enter-zone{bottom:100px;width:min(330px,72vw);min-height:62px;padding:12px 20px;font-size:18px;line-height:1.15}
 .q-wilds{top:58%}.q-summit{top:48%}.q-city{top:54%}.q-unknown{top:61%}
}
@media(max-width:420px){
 .weekend-quest-launch{bottom:170px;min-width:82vw}.weekend-quest-launch b{font-size:15px}
 .enter-zone{bottom:98px;width:64vw;font-size:17px}
 .world-menu{padding:0 8px}.world-menu button,.world-menu button:nth-child(2),.world-menu button:nth-child(3),.world-menu button:nth-child(4),.world-menu .mobile-settings{width:44px;height:44px}
 .world-menu button span{top:48px;font-size:6.5px}
}

/* v50 rebalance: desktop untouched, compact mobile action stack */
@media(min-width:701px){
 .mobile-settings{display:none!important}
}
@media(max-width:700px){
 .quest-orbit{transform:translateY(-3.5vh)}
 .q-wilds{top:61%}.q-summit{top:53%}.q-city{top:57%}.q-unknown{top:61%}
 .weekend-quest-launch{bottom:150px;min-width:min(320px,78vw);padding:9px 13px;border-radius:18px}
 .weekend-quest-launch small{font-size:7px}.weekend-quest-launch b{font-size:14px}.weekend-quest-launch span{font-size:7px}
 .enter-zone{bottom:88px;width:min(300px,66vw);min-height:54px;padding:9px 16px;font-size:16px;border-radius:14px}
 .world-menu{bottom:max(5px,env(safe-area-inset-bottom));height:68px;padding:0 12px;background:linear-gradient(180deg,transparent 0,#070906d9 22%,#070906f2 100%)}
 .world-menu button,.world-menu button:nth-child(2),.world-menu button:nth-child(3),.world-menu button:nth-child(4),.world-menu .mobile-settings{width:40px;height:40px;border-radius:12px;border-width:1.5px}
 .world-menu button span{top:43px;font-size:6px;letter-spacing:.04em;white-space:nowrap}
 .world-menu .mobile-settings .gear-mark{width:20px;height:20px}
}
@media(max-width:420px){
 .quest-orbit{transform:translateY(-4.5vh)}
 .weekend-quest-launch{bottom:146px;min-width:78vw}
 .enter-zone{bottom:86px;width:64vw;min-height:52px}
 .world-menu{height:66px;padding:0 6px}
 .world-menu button,.world-menu button:nth-child(2),.world-menu button:nth-child(3),.world-menu button:nth-child(4),.world-menu .mobile-settings{width:38px;height:38px}
 .world-menu button span{top:41px;font-size:5.7px}
}

.settings-update{margin:0 0 18px;padding:18px;border:1px solid #d5a92f66;border-radius:18px;background:#111b27}
.settings-update h3{margin:0 0 6px;color:#ffd45a;font-size:20px}
.settings-update p{margin:0 0 13px;line-height:1.45}
.settings-update-button{min-height:48px;padding:10px 18px;border:1px solid #e3b739;border-radius:12px;background:#2b2413;color:#ffe28a;font-weight:900;letter-spacing:.04em}
.settings-update-button:disabled{opacity:.7}

/* v52 mobile portal rail + readable tool panels */
.tool-panel{overflow-y:auto}
.tool-card{font-size:17px;line-height:1.6}
.tool-card br{line-height:2}
.tool-panel h2{line-height:1.08;margin-bottom:24px}
.trading-post{color:#eef5ee}
.trading-post>small{color:#7df2a0;font-size:13px}
.trading-post h3{color:#ffe08b;font-size:22px;line-height:1.25}
.trade-balance{color:#f5f7f4}
.trade-balance b{font-size:26px}
.trade-balance em{color:#d0d8d0;font-size:13px}
.trade-grid button{color:#f6f8f6;opacity:1}
.trade-grid button:disabled{opacity:.62}
.trade-grid button:disabled strong{color:#e7ece7}
.trade-grid button:disabled span{color:#c3ccc3}
.trade-grid button:disabled em{color:#d6b958}
.trade-grid strong{font-size:16px}
.trade-grid span{font-size:13px;color:#d0d7d0}
.trade-grid em{font-size:14px}
.trade-status{font-size:13px;color:#d5ddd5}
@media(min-width:701px){
 .tool-card{padding:22px}
 .tool-panel #toolContent{margin:28px auto}
}
@media(max-width:700px){
 .tool-panel{padding:calc(max(18px,env(safe-area-inset-top)) + 10px) 18px 28px}
 .tool-panel #toolContent{margin:54px auto 24px}
 .tool-panel h2{font-size:clamp(34px,10vw,46px);margin:0 0 28px}
 .tool-card{padding:22px 20px;font-size:18px;line-height:1.72}
 .tool-card br{display:block;content:"";margin-bottom:10px}
 .quest-orbit{left:18px;right:auto;top:43%;width:min(330px,76vw);height:auto;transform:none;display:flex;flex-direction:column;gap:13px;align-items:stretch}
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;animation:none!important;width:100%;height:62px;border-radius:18px;display:flex;justify-content:flex-start;padding:7px 10px;background:#0a0d0bdc}
 .quest-orbit .world-token i{flex:0 0 46px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:25px}
 .quest-orbit .world-token span{position:static;transform:none;min-width:0;width:auto;flex:1;padding:0 0 0 11px;border:0;background:transparent;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;text-align:left}
 .quest-orbit .world-token span b{grid-column:1/-1;font-size:15px;line-height:1.05}
 .quest-orbit .world-token span em{grid-column:1/-1;padding-left:64px;font-size:11px;line-height:14px}
 .quest-orbit .world-token span em:before,.quest-orbit .world-token span em:after{top:4px;height:7px}
 .trading-post{margin-top:18px;padding:20px}
 .trading-post h3{font-size:22px}
 .trade-grid{gap:12px}
 .trade-grid button{padding:15px}
}
@media(max-width:420px){
 .quest-orbit{left:14px;top:42%;width:min(310px,78vw);gap:10px}
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{height:58px}
 .quest-orbit .world-token i{flex-basis:42px;width:42px;height:42px}
 .quest-orbit .world-token span b{font-size:14px}
 .tool-panel h2{font-size:38px}
 .tool-card{font-size:17px;padding:20px 17px}
}

/* v53 mobile world stack: centered, airy, alive */
@media(max-width:700px){
 .quest-orbit{
   left:50%;right:auto;top:45.5%;width:min(620px,76vw);height:auto;
   transform:translateX(-50%);display:flex;flex-direction:column;gap:18px;align-items:stretch;
 }
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{
   position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
   width:100%;height:66px;padding:7px 13px;border-radius:19px;
   transform:none!important;animation:worldCardFloat 4s ease-in-out infinite!important;
 }
 .quest-orbit .q-summit{animation-delay:-1s!important}
 .quest-orbit .q-city{animation-delay:-2s!important}
 .quest-orbit .q-unknown{animation-delay:-3s!important}
 .quest-orbit .world-token i{flex:0 0 48px;width:48px;height:48px}
 .quest-orbit .world-token span{padding-left:13px}
 .weekend-quest-launch{left:50%;width:min(620px,76vw);min-width:0}
 @keyframes worldCardFloat{
   0%,100%{transform:translateY(0)!important}
   50%{transform:translateY(-5px)!important}
 }
}
@media(max-width:420px){
 .quest-orbit{top:45%;width:76vw;gap:15px}
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{height:62px}
 .weekend-quest-launch{width:76vw}
}

/* v54 restore portal identity: staggered compact floating cards, no overlap */
@media(max-width:700px){
 .quest-orbit{
   left:0!important;right:0!important;top:47%!important;width:100%!important;height:300px!important;
   transform:none!important;display:block!important;
 }
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{
   position:absolute!important;width:43vw!important;max-width:220px!important;height:72px!important;
   padding:6px 9px!important;border-radius:20px!important;display:flex!important;
   animation:portalFloat 4.2s ease-in-out infinite!important;
 }
 .quest-orbit .q-wilds{left:4%!important;top:8px!important}
 .quest-orbit .q-summit{right:4%!important;left:auto!important;top:42px!important;animation-delay:-1.1s!important}
 .quest-orbit .q-city{left:7%!important;top:112px!important;animation-delay:-2.2s!important}
 .quest-orbit .q-unknown{right:5%!important;left:auto!important;top:148px!important;animation-delay:-3.1s!important}
 .quest-orbit .world-token i{flex:0 0 52px!important;width:52px!important;height:52px!important}
 .quest-orbit .world-token span{padding-left:9px!important}
 .quest-orbit .world-token span b{font-size:14px!important}
 .quest-orbit .world-token span em{padding-left:48px!important;font-size:10px!important}
 .weekend-quest-launch{left:50%!important;width:76vw!important;min-width:0!important}
 @keyframes portalFloat{
  0%,100%{transform:translateY(0) rotate(-.35deg)}
  50%{transform:translateY(-7px) rotate(.35deg)}
 }
}
@media(max-width:420px){
 .quest-orbit{top:47%!important;height:285px!important}
 .quest-orbit .world-token,.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{width:44vw!important;height:68px!important}
 .quest-orbit .q-wilds{left:3%!important}
 .quest-orbit .q-summit{right:3%!important}
 .quest-orbit .q-city{left:5%!important}
 .quest-orbit .q-unknown{right:4%!important}
}

/* v60 GAME WORLD upgrade */
.reward-wallet{display:flex;gap:7px;margin-top:5px}.reward-wallet>span{display:flex;align-items:center;gap:4px;padding:5px 8px;border-radius:10px;font-size:15px!important;font-weight:1000;box-shadow:inset 0 0 12px #fff1}.reward-wallet .coins{background:linear-gradient(135deg,#70480c,#d89b21);color:#fff4b2}.reward-wallet .hugs{background:linear-gradient(135deg,#6e245b,#c84c8f);color:#ffe7f6}.reward-wallet b{font-size:18px}.reward-wallet em{font-style:normal;font-size:8px;letter-spacing:.08em}.equipped-mini{position:absolute;right:-8px;bottom:-8px;font-style:normal;font-size:24px;filter:drop-shadow(0 3px 4px #000)}
.world-stage:before,.world-stage:after{content:"✦";position:absolute;z-index:4;color:#ffe677;text-shadow:0 0 18px #fff,0 0 32px #ffd54d;animation:wanderSpark 7s ease-in-out infinite;pointer-events:none}.world-stage:before{left:14%;top:30%;font-size:18px}.world-stage:after{right:18%;top:18%;font-size:13px;animation-delay:-3.5s}@keyframes wanderSpark{0%,100%{transform:translate(0,0) scale(.7);opacity:.25}35%{transform:translate(42px,-30px) scale(1.4);opacity:1}70%{transform:translate(-20px,35px) scale(.9);opacity:.5}}
.reward-choice{display:grid!important;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.reward-choice[hidden]{display:none!important}.reward-choice p{grid-column:1/-1;font-size:15px!important;letter-spacing:.14em;color:#ffe17c}.reward-choice button{min-height:78px!important;font-size:20px!important;border-radius:18px!important;box-shadow:0 8px 24px #0007, inset 0 0 20px #fff1}.reward-choice #chooseCoin{background:linear-gradient(145deg,#8c5d10,#e7a92b)!important;color:#fff8c8!important}.reward-choice #chooseHug{background:linear-gradient(145deg,#70265c,#d65095)!important;color:white!important}
.explorer-room{display:grid;gap:22px}.explorer-stage{position:relative;min-height:310px;border-radius:24px;display:grid;place-items:center;text-align:center;overflow:hidden;background:radial-gradient(circle at 50% 35%,#7ce7ff88,transparent 30%),linear-gradient(155deg,#244c6a,#51377c 55%,#ca7b3a);box-shadow:inset 0 0 70px #fff2}.explorer-glow{position:absolute;width:190px;height:190px;border-radius:50%;background:#fff3;filter:blur(18px);animation:avatarPulse 3s ease-in-out infinite}.explorer-character{z-index:2;display:grid;place-items:center;filter:drop-shadow(0 16px 12px #0007);animation:avatarBob 2.8s ease-in-out infinite}.explorer-head{font-size:68px;line-height:.8}.explorer-body{font-size:115px;line-height:.9}.explorer-equipped{font-size:45px;min-height:52px}.explorer-stage>b,.explorer-stage>small{position:absolute;z-index:3;bottom:42px}.explorer-stage>small{bottom:20px}.closet-grid,.gear-shop{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.closet-grid button,.gear-shop button{min-height:135px;border:1px solid #ffffff55;border-radius:20px;background:linear-gradient(145deg,#243f5e,#462d66);color:#fff;display:grid;place-items:center;padding:12px;box-shadow:0 9px 22px #0005}.closet-grid i,.gear-shop i{font-style:normal;font-size:48px}.closet-grid span{color:#9dffbb;font-weight:900}.gear-shop em{font-style:normal;color:#ffe06e;font-weight:1000}.shop-hero{display:flex;align-items:center;gap:18px;padding:20px;border-radius:22px;background:linear-gradient(120deg,#4b2e82,#1c7892,#b16b28);box-shadow:inset 0 0 30px #fff2}.shop-hero>span{font-size:54px}.shop-hero h3{font-size:26px;margin:3px 0}.shop-hero p{margin:0}.trade-balance.big{margin:16px 0;font-size:20px;padding:15px;background:#3d2d10;border-radius:16px}.trade-balance.big b{font-size:34px}.surprise-drop{position:fixed;z-index:100;left:50%;top:26%;transform:translateX(-50%);min-width:280px;padding:22px;text-align:center;border-radius:22px;background:linear-gradient(135deg,#5b2a91,#137f98,#c88422);box-shadow:0 0 60px #ffe56f99;color:#fff;animation:dropPop 2.4s ease both}.surprise-drop small,.surprise-drop b{display:block}.surprise-drop small{color:#fff19a;letter-spacing:.18em}.surprise-drop b{font-size:24px;margin-top:7px}@keyframes dropPop{0%{opacity:0;transform:translate(-50%,-25px) scale(.6)}15%,75%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-12px) scale(1.08)}}@keyframes avatarBob{50%{transform:translateY(-10px) rotate(1deg)}}@keyframes avatarPulse{50%{transform:scale(1.12);opacity:.6}}
@media(max-width:700px){.reward-wallet b{font-size:17px}.reward-wallet em{font-size:7px}.reward-choice{grid-template-columns:1fr}.reward-choice button{min-height:72px!important}.explorer-stage{min-height:280px}.closet-grid,.gear-shop{grid-template-columns:repeat(2,1fr)}}

/* v61 living WebGL world */
.world-stage{isolation:isolate;perspective:900px;overflow:hidden}.world-gl{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:.72}.world-stage>.quest-orbit,.world-stage>.weekend-quest-launch,.world-stage>.enter-zone,.world-stage>.world-menu{z-index:8}.world-depth{position:absolute;inset:-8%;pointer-events:none;z-index:2;transform-style:preserve-3d}.depth-far{background:radial-gradient(circle at 18% 70%,#53d88955 0 2%,transparent 8%),radial-gradient(circle at 82% 36%,#b466ff66 0 2%,transparent 10%),radial-gradient(ellipse at 50% 100%,#0d6b5544 0 22%,transparent 45%);transform:translate3d(calc(var(--px,0)*-9px),calc(var(--py,0)*-6px),-80px) scale(1.12);animation:depthBreathe 9s ease-in-out infinite}.depth-mid{background:radial-gradient(circle at 11% 48%,#ffdd6a99 0 1px,transparent 5px),radial-gradient(circle at 73% 64%,#8fffe099 0 2px,transparent 6px),radial-gradient(circle at 42% 29%,#fff6 0 1px,transparent 5px);background-size:130px 120px,170px 150px,95px 105px;transform:translate3d(calc(var(--px,0)*-18px),calc(var(--py,0)*-12px),20px);animation:driftLayer 14s linear infinite}.world-actor{position:absolute;z-index:7;left:50%;bottom:29%;width:76px;height:104px;transform:translateX(-50%);display:grid;place-items:end center;pointer-events:none;filter:drop-shadow(0 12px 10px #0009)}.world-actor span{font-size:62px;line-height:1;animation:actorIdle 2.4s ease-in-out infinite}.world-actor i{position:absolute;bottom:-8px;width:54px;height:12px;border-radius:50%;background:#0007;filter:blur(4px);animation:shadowIdle 2.4s ease-in-out infinite}.world-actor.jump span{animation:actorJump .8s cubic-bezier(.2,.8,.3,1)}.world-actor.dash{animation:actorDash .75s ease}.world-actor.discover span{animation:actorSpin .8s ease}.world-actions{position:absolute;z-index:12;right:18px;bottom:105px;display:flex;gap:9px}.world-actions button{width:66px;height:66px;border-radius:50%;border:2px solid #ffffff88;background:linear-gradient(145deg,#257d9ddd,#513087dd);color:#fff;box-shadow:0 8px 18px #0008,inset 0 0 15px #fff2;display:grid;place-items:center;padding:7px}.world-actions i{font-style:normal;font-size:21px;line-height:1}.world-actions b{font-size:7px;letter-spacing:.08em}.world-actions button:active{transform:scale(.9)}.world-burst{position:absolute;z-index:11;left:50%;bottom:45%;font-size:54px;pointer-events:none;animation:burstFind 1.3s ease-out both}
@keyframes actorIdle{50%{transform:translateY(-7px) rotate(1deg)}}@keyframes shadowIdle{50%{transform:scale(.82);opacity:.55}}@keyframes actorJump{0%,100%{transform:translateY(0)}45%{transform:translateY(-100px) scale(1.08)}}@keyframes actorDash{0%,100%{transform:translateX(-50%)}45%{transform:translateX(75%) scaleX(1.1)}}@keyframes actorSpin{50%{transform:rotate(360deg) scale(1.2)}}@keyframes burstFind{0%{opacity:0;transform:translate(-50%,20px) scale(.3)}30%{opacity:1;transform:translate(-50%,-35px) scale(1.25)}100%{opacity:0;transform:translate(-50%,-100px) scale(.8)}}@keyframes depthBreathe{50%{filter:brightness(1.35) saturate(1.25)}}@keyframes driftLayer{to{background-position:130px -120px,-170px 150px,95px -105px}}
@media(max-width:700px){.world-actor{bottom:32%;width:56px;height:78px}.world-actor span{font-size:48px}.world-actions{right:9px;bottom:82px;gap:6px;flex-direction:column}.world-actions button{width:52px;height:52px}.world-actions i{font-size:17px}.world-actions b{font-size:6px}.world-gl{opacity:.8}}
@media(prefers-reduced-motion:reduce){.depth-far,.depth-mid,.world-actor span,.world-actor i{animation:none!important}}

/* v62 Irie FX + keyboard game controls */
.fx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:10;pointer-events:none}.world-actor{left:50%;transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(var(--actor-y,0px));transition:filter .18s;will-change:transform}.actor-sprite{display:block!important;width:92px;height:118px;background:url('/assets/img/irie-avatar.webp') center 31%/210% auto no-repeat;border-radius:46% 46% 38% 38%;border:2px solid #ffd84f88;box-shadow:0 0 20px #ffd84f66;animation:actorIdle 2.4s ease-in-out infinite}.world-actor.walking .actor-sprite{animation:actorWalk .42s ease-in-out infinite alternate}.world-actor.sword .actor-sprite{filter:drop-shadow(0 0 14px #ffd64f) brightness(1.2)}.world-actions small{display:block;font-size:6px;opacity:.7;line-height:1}.world-actions button{height:72px}.world-actions i{font-weight:1000}.world-actor.jump{animation:actorJumpBox .8s cubic-bezier(.2,.8,.3,1)}.world-actor.dash{animation:actorDashBox .72s ease}.world-actor.discover{filter:drop-shadow(0 0 20px #ffe75f)}@keyframes actorWalk{from{rotate:-2deg;scale:.98}to{rotate:2deg;scale:1.02}}@keyframes actorJumpBox{0%,100%{translate:0 0}45%{translate:0 -105px}}@keyframes actorDashBox{0%,100%{scale:1}45%{scale:1.16 .88;filter:drop-shadow(25px 0 12px #69eaff)}}@media(max-width:700px){.actor-sprite{width:66px;height:86px}.world-actions small{display:none}.world-actions button{height:54px}}

/* v63 hero entrance + sword strike */
.world-actor{bottom:18%;z-index:11}.actor-sprite{width:126px;height:176px;background-size:175% auto;background-position:center 35%;border-radius:42% 42% 30% 30%;clip-path:polygon(12% 0,88% 0,100% 94%,72% 100%,25% 100%,0 91%);box-shadow:0 0 26px #ffd84f88}.sword-flare{position:absolute;z-index:4;width:12px;height:120px;left:50%;top:45%;border-radius:12px;background:linear-gradient(#fff,#fff6a2 25%,#ffb800 70%,transparent);box-shadow:0 0 12px #fff,0 0 28px #ffd000,0 0 50px #ff8c00;opacity:0;transform-origin:50% 90%;pointer-events:none}.world-actor.sword .sword-flare{opacity:1;animation:swordSlash .72s cubic-bezier(.2,.8,.2,1)}.world-actor.hero-enter{animation:heroDrop 1.45s cubic-bezier(.18,.8,.22,1) both}.world-actor.hero-enter .actor-sprite{animation:none}.world-actor.hero-enter:after{content:"";position:absolute;bottom:-20px;width:170px;height:34px;border-radius:50%;border:5px solid #ffd447;box-shadow:0 0 18px #fff09a,0 0 45px #ffb000;animation:landingRing 1.25s .58s ease-out both}.world-actor.sword-swing{filter:drop-shadow(0 0 24px #ffd02f)}@keyframes heroDrop{0%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(-520px) scale(.55);opacity:0}55%{opacity:1}72%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(18px) scale(1.08)}84%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(-18px) scale(.98)}100%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(var(--actor-y,0px)) scale(1)}}@keyframes landingRing{0%{opacity:0;transform:scale(.1)}25%{opacity:1}100%{opacity:0;transform:scale(2.8)}}@keyframes swordSlash{0%{transform:rotate(-115deg) scaleY(.6);opacity:0}15%{opacity:1}55%{transform:rotate(58deg) scaleY(1.15);opacity:1}100%{transform:rotate(85deg) scaleY(.7);opacity:0}}
@media(max-width:700px){.world-actor{bottom:20%}.actor-sprite{width:92px;height:128px}.sword-flare{height:90px}.world-actor.hero-enter:after{width:120px}}

/* v64 hero landing lane: keep Weekly Quest clear */
.world-actor{left:25%;bottom:17%;z-index:11}.world-actor.hero-enter{animation-name:heroDropLeft}.world-actor.dash{animation-name:actorDashBoxLeft}@keyframes heroDropLeft{0%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(-520px) scale(.55);opacity:0}55%{opacity:1}72%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(18px) scale(1.08)}84%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(-18px) scale(.98)}100%{transform:translateX(calc(-50% + var(--actor-x,0px))) translateY(var(--actor-y,0px)) scale(1)}}@keyframes actorDashBoxLeft{0%,100%{scale:1}45%{scale:1.16 .88;filter:drop-shadow(25px 0 12px #69eaff)}}@media(max-width:700px){.world-actor{left:23%;bottom:19%}}

/* v65 smaller playable hero */
.world-actor{left:23%;bottom:16%;width:58px;height:82px}.actor-sprite{width:68px;height:94px;background-size:178% auto;border-width:1px;box-shadow:0 0 14px #ffd84f66}.sword-flare{width:7px;height:68px}.world-actor.hero-enter:after{width:92px;height:20px;border-width:3px}.world-actor i{width:38px;height:8px}.world-actor.walking .actor-sprite{animation-duration:.36s}@media(max-width:700px){.world-actor{left:21%;bottom:18%;width:46px;height:66px}.actor-sprite{width:54px;height:74px}.sword-flare{height:54px}.world-actor.hero-enter:after{width:74px}}

/* v66 cinematic map composition — worlds high, Irie births Weekly Quest */
.quest-orbit{position:absolute!important;inset:0!important;z-index:18!important;pointer-events:none}.world-token{pointer-events:auto!important}.q-wilds{left:16%!important;top:42%!important}.q-summit{left:38%!important;top:30%!important}.q-city{left:59%!important;right:auto!important;top:31%!important}.q-unknown{left:79%!important;right:auto!important;top:43%!important}.world-actor{left:50%!important;bottom:27%!important;width:64px;height:90px;z-index:22!important}.actor-sprite{width:74px;height:103px;background-size:178% auto}.sword-flare{height:76px}.world-actor.hero-enter:after{width:150px;height:30px;z-index:-1}.weekly-energy{position:absolute;z-index:15;left:50%;bottom:15.5%;width:300px;height:210px;transform:translateX(-50%);pointer-events:none;background:radial-gradient(ellipse at 50% 100%,#ffd638aa 0 4%,#ff9d0066 13%,transparent 52%);filter:drop-shadow(0 0 18px #ffc21f)}.weekly-energy:before,.weekly-energy:after{content:"";position:absolute;left:50%;bottom:4px;width:150px;height:150px;border:2px solid #ffd74d;border-radius:50%;box-shadow:0 0 16px #fff6a0,0 0 35px #ffb000;transform:translateX(-50%) rotateX(72deg);animation:questRing 3.2s linear infinite}.weekly-energy:after{width:220px;height:220px;animation-direction:reverse;animation-duration:4.8s;opacity:.55}.weekly-energy i{position:absolute;left:50%;bottom:32px;width:6px;height:80px;border-radius:10px;background:linear-gradient(transparent,#fff6a0,#ffb300,transparent);box-shadow:0 0 12px #ffd32f;transform-origin:50% 100%;animation:questRay 2.4s ease-in-out infinite}.weekly-energy i:nth-child(1){rotate:-54deg}.weekly-energy i:nth-child(2){rotate:-32deg;animation-delay:-.4s}.weekly-energy i:nth-child(3){rotate:-12deg;animation-delay:-.8s}.weekly-energy i:nth-child(4){rotate:14deg;animation-delay:-1.2s}.weekly-energy i:nth-child(5){rotate:34deg;animation-delay:-1.6s}.weekly-energy i:nth-child(6){rotate:55deg;animation-delay:-2s}.weekend-quest-launch{bottom:92px!important;z-index:23!important;min-width:300px!important;padding:11px 22px!important;background:linear-gradient(180deg,#16130df2,#090b08f2)!important;border:2px solid #f5c84f!important;box-shadow:0 0 22px #ffba1744,0 12px 30px #000b!important}.weekend-quest-launch b{font-size:16px!important;color:#ffe37c;text-shadow:0 0 12px #ffbd26}.weekend-quest-launch.quest-born{animation:questBorn 1.1s cubic-bezier(.2,.9,.2,1)}.enter-zone{bottom:2.8%!important;z-index:23!important}.world-actions{z-index:24!important}.fx-canvas{z-index:25!important}.world-menu{z-index:26!important}.hud{z-index:27!important}@keyframes questRing{to{transform:translateX(-50%) rotateX(72deg) rotateZ(360deg)}}@keyframes questRay{0%,100%{opacity:.25;scale:.6 1}50%{opacity:1;scale:1.2 1.35}}@keyframes questBorn{0%{opacity:0;transform:translateX(-50%) translateY(45px) scale(.5);filter:brightness(3)}45%{opacity:1;transform:translateX(-50%) translateY(-10px) scale(1.08);filter:brightness(1.8)}100%{transform:translateX(-50%) translateY(0) scale(1);filter:none}}
@media(max-width:700px){.q-wilds{left:8%!important;top:40%!important}.q-summit{left:31%!important;top:29%!important}.q-city{left:56%!important;top:29%!important}.q-unknown{left:77%!important;top:40%!important}.world-actor{left:50%!important;bottom:28%!important;width:50px;height:70px}.actor-sprite{width:58px;height:81px}.weekly-energy{bottom:17%;width:210px;height:150px}.weekend-quest-launch{bottom:88px!important;min-width:245px!important}.weekend-quest-launch b{font-size:13px!important}}

/* v67 restore four portals across upper arc — keep hero/Weekly Quest composition */
.quest-orbit{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important;display:block!important;pointer-events:none!important}
.quest-orbit .world-token{position:absolute!important;width:76px!important;height:76px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;transform:none!important;pointer-events:auto!important}
.quest-orbit .world-token>i{width:auto!important;height:auto!important;flex:none!important}
.quest-orbit .world-token>span{position:absolute!important;left:50%!important;top:80px!important;transform:translateX(-50%)!important;min-width:142px!important;padding:7px 10px!important}
.quest-orbit .q-wilds{inset:auto!important;left:13%!important;top:36%!important;right:auto!important}
.quest-orbit .q-summit{inset:auto!important;left:34%!important;top:24%!important;right:auto!important}
.quest-orbit .q-city{inset:auto!important;left:58%!important;top:24%!important;right:auto!important}
.quest-orbit .q-unknown{inset:auto!important;left:79%!important;top:36%!important;right:auto!important}
.quest-orbit .q-wilds,.quest-orbit .q-summit,.quest-orbit .q-city,.quest-orbit .q-unknown{animation:tokenFloat 3.2s ease-in-out infinite!important}
.quest-orbit .q-summit{animation-delay:-.7s!important}.quest-orbit .q-city{animation-delay:-1.4s!important}.quest-orbit .q-unknown{animation-delay:-2.1s!important}
@media(max-width:700px){.quest-orbit{top:0!important}.quest-orbit .world-token{width:58px!important;height:58px!important}.quest-orbit .world-token>span{top:62px!important;min-width:104px!important;padding:5px 7px!important}.quest-orbit .q-wilds{left:7%!important;top:34%!important}.quest-orbit .q-summit{left:30%!important;top:24%!important}.quest-orbit .q-city{left:56%!important;top:24%!important}.quest-orbit .q-unknown{left:79%!important;top:34%!important}}

/* v68 unified bottom dock + protected Dad entry + centered Chakana */
.desktop-gear,.q-dad{display:none!important}.world-menu{left:18px!important;right:18px!important;bottom:14px!important;display:flex!important;justify-content:flex-start!important;gap:12px!important;align-items:flex-end!important}.world-menu button{position:relative!important;inset:auto!important;margin:0!important}.world-menu button[data-panel="explorer"]{margin-left:auto!important}.world-menu .mobile-settings,.world-menu .dad-dock{display:grid!important;place-items:center!important}.world-menu .dad-dock i{font-style:normal;font-family:system-ui,sans-serif;font-weight:1000;font-size:23px;color:#ffe19a;text-shadow:0 0 10px #ffc43d}.world-menu .dad-dock{border-color:#ffd05c!important;box-shadow:0 0 0 2px #ffd05c22,0 5px 14px #0009!important}.world-menu .mobile-settings .gear-mark{width:25px;height:25px}.q-city .chakana-mark{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;overflow:visible!important}.q-city .chakana-mark .chakana-outer{position:absolute!important;inset:0!important;width:44px!important;height:44px!important}.q-city .chakana-mark .chakana-hole{position:absolute!important;left:16px!important;top:16px!important;width:12px!important;height:12px!important}.q-city{overflow:visible!important}
@media(max-width:700px){.world-menu{left:0!important;right:0!important;bottom:max(5px,env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(7,1fr)!important;gap:2px!important;padding:0 5px!important;height:68px!important}.world-menu button,.world-menu .mobile-settings,.world-menu .dad-dock{display:grid!important;position:relative!important;inset:auto!important;margin:0!important;justify-self:center!important;width:38px!important;height:38px!important;border-radius:12px!important}.world-menu button[data-panel="explorer"]{margin-left:0!important}.world-menu button[data-panel="journal"]{display:none!important}.world-menu button span{top:41px!important;font-size:5.5px!important}.world-menu .dad-dock i{font-size:18px}.world-menu .mobile-settings .gear-mark{width:19px;height:19px}}

/* v69 mobile dock hit targets — controls must be tappable */
.world-menu{pointer-events:auto!important;z-index:40!important}.world-menu button{pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(255,210,75,.22);cursor:pointer!important}.world-menu button:active{transform:scale(.9)!important;filter:brightness(1.35)}@media(max-width:700px){.world-menu{height:78px!important;background:linear-gradient(180deg,transparent 0,#07100be8 22%,#07100bf7 52%)!important}.world-menu button,.world-menu .mobile-settings,.world-menu .dad-dock{width:44px!important;height:44px!important}.world-menu button span{top:47px!important;font-size:5.8px!important}.enter-zone{bottom:86px!important}}

/* v70 dock interaction repair + true centered Chakana */
.world-stage>.world-menu{z-index:60!important;pointer-events:auto!important}.world-menu button{z-index:61!important;pointer-events:auto!important}.world-menu:before{content:"";position:absolute;inset:-8px -8px -12px;z-index:-1;pointer-events:none}.q-city>i.chakana-mark{display:block!important;position:absolute!important;inset:50% auto auto 50%!important;width:40px!important;height:40px!important;transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;font-size:0!important;line-height:0!important}.q-city>i.chakana-mark>.chakana-outer{display:block!important;position:absolute!important;inset:0!important;width:40px!important;height:40px!important;transform:none!important;margin:0!important}.q-city>i.chakana-mark>.chakana-hole{display:block!important;position:absolute!important;left:14px!important;top:14px!important;width:12px!important;height:12px!important;transform:none!important;margin:0!important}.q-city>i.chakana-mark b{box-sizing:border-box!important}

/* v71 direct bottom dock */
.tool-panel.dock-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:1000!important}.world-stage>.world-menu{z-index:900!important;pointer-events:auto!important}.world-stage>.world-menu button{z-index:901!important;pointer-events:auto!important;touch-action:manipulation!important}

/* v73 native link dock */
.world-menu a{pointer-events:auto;border:1px solid #e4b85688;background:#17140dcc;color:#ffe8ad;border-radius:50%;width:46px;height:46px;font-size:20px;position:relative;box-shadow:0 5px 14px #0009;display:grid;place-items:center;text-decoration:none;cursor:pointer;touch-action:manipulation}.world-menu a span{position:absolute;top:49px;left:50%;transform:translateX(-50%);font-size:7px;font-weight:900;color:#fff;white-space:nowrap;text-shadow:0 2px 4px #000}.world-menu a[data-panel="explorer"]{margin-left:auto}.world-menu a:active{transform:scale(.9);filter:brightness(1.35)}@media(max-width:700px){.world-menu a{width:44px!important;height:44px!important}.world-menu a span{top:47px!important;font-size:5.8px!important}.world-menu a[data-panel="journal"]{display:none!important}}

/* v75 Parent Authoring Studio */
.parent-studio{max-width:1100px;margin:20px auto;color:#fff}.studio-intro{padding:22px 24px;margin-bottom:18px;border:1px solid #e6b94b66;border-radius:18px;background:linear-gradient(135deg,#12251de8,#172238e8)}.studio-intro small,.studio-preview>small{color:#7df2a0;font-weight:900;letter-spacing:.14em}.studio-intro h3{font-size:28px;color:#ffd45f;margin:5px 0}.studio-intro p{max-width:760px;line-height:1.55}.studio-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.studio-builder,.studio-preview{border:1px solid #d9ad4966;border-radius:18px;background:#0d1512e8;padding:22px}.studio-builder label{display:block;margin:0 0 15px;font-size:12px;font-weight:900;letter-spacing:.08em;color:#f6d77d}.studio-builder label small{font-weight:500;color:#aebbb3}.studio-builder select,.studio-builder textarea,.studio-builder input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #ffffff22;border-radius:10px;background:#17221d;color:#fff;font:inherit;box-sizing:border-box}.studio-actions{display:flex;gap:10px}.studio-actions button{flex:1;padding:13px;border-radius:10px;font-weight:900}.generated-preview{display:grid;grid-template-columns:36px 1fr;gap:9px 10px;margin:18px 0}.generated-preview span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d59d22;color:#10130e;font-weight:900}.generated-preview b{align-self:center}.studio-preview p{color:#bdc9c0;line-height:1.5}.mc-assignments{margin-top:24px;border-top:1px solid #ffffff18;padding-top:16px}.assignment-chip{padding:10px 12px;margin:8px 0;border-radius:10px;background:#ffffff0a}.assignment-chip b,.assignment-chip small{display:block}.assignment-chip small{color:#93a99b;margin-top:3px}.mc-tabs button{white-space:nowrap}@media(max-width:800px){.studio-grid{grid-template-columns:1fr}.studio-actions{flex-direction:column}}

/* v76 game-window navigation + Mastery Gate */
.weekly-mission{overflow:hidden!important}.mission-pane{overflow:hidden!important}.mission-window-controls,.master-window-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.weekly-back,.weekly-close,.master-window-controls button{width:44px!important;height:44px!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important;font-size:25px!important}.weekly-close{margin-left:auto!important}.master-challenge{display:block;margin:18px auto;padding:15px 24px;border-radius:14px;border:1px solid #ffd04d;background:linear-gradient(180deg,#d99b1d,#8b5809);color:#fff7d0;font-weight:1000;font-size:17px;letter-spacing:.04em;box-shadow:0 0 24px #ffc72c55}.master-gate{position:absolute;inset:0;z-index:1300;display:none;place-items:center;background:#020706d9;backdrop-filter:blur(7px);padding:22px}.master-gate[aria-hidden="false"]{display:grid}.master-window{width:min(820px,94%);max-height:86%;overflow:auto;border:1px solid #e4b74688;border-radius:22px;background:#101a28;padding:24px;box-shadow:0 25px 80px #000}.master-window>small{color:#70efa0;font-weight:900;letter-spacing:.15em}.master-window h2{font-size:32px;color:#ffd158;margin:5px 0}.master-window>p{font-size:17px;line-height:1.55}.master-window .crossword{display:block!important}.crossword h3{font-size:25px!important}.crossword>p,.crossword #crosswordStatus{font-size:17px!important;line-height:1.5!important}.crossword-grid label{font-size:17px!important;gap:14px!important;margin:10px 0!important}.crossword-grid input{font-size:18px!important;padding:9px!important}.crossword-clues{font-size:15px!important;line-height:1.55!important}.crossword-clues p{font-size:15px!important;line-height:1.55!important;margin:10px 0!important}
@media(max-width:700px){.master-gate{padding:8px}.master-window{width:96%;max-height:92%;padding:16px}.master-window h2{font-size:25px}.crossword-clues p{font-size:14px!important}.crossword-grid label{font-size:15px!important}}

/* v77 Parent Mission Control */
.review-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px}.review-head small,.extra-credit>small{color:#71e497;font-weight:1000;letter-spacing:.13em}.review-head h3{font-size:28px;margin:4px 0}.review-head p{margin:0;color:#b9c6bd}.review-head select{min-width:190px;padding:11px;border-radius:10px;background:#15201b;color:#fff;border:1px solid #ffffff2a}.review-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.review-summary article{padding:16px;border-radius:14px;background:linear-gradient(145deg,#14241c,#0a1210);border:1px solid #ffffff18}.review-summary b,.review-summary span{display:block}.review-summary b{font-size:24px;color:#ffd263}.review-summary span{font-size:10px;color:#a9b8ae;font-weight:900;letter-spacing:.08em;margin-top:4px}.review-assignments{display:grid;gap:12px}.review-card{padding:16px;border:1px solid #ffffff1b;border-radius:15px;background:#09120ed9}.review-card header,.review-card footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-card header small{color:#73dfa0;font-size:10px;font-weight:900;letter-spacing:.1em}.review-card h4{font-size:19px;margin:3px 0}.review-card header em{font-style:normal;color:#ffd36c;font-size:10px;text-transform:uppercase}.review-card footer{margin-top:14px;padding-top:10px;border-top:1px solid #ffffff12;font-size:10px;color:#91a499}.review-card footer b{color:#ffd36c}.dad-word-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.dad-word-list span{min-width:130px;flex:1;padding:10px;border-radius:10px;background:#ffffff0b}.dad-word-list b,.dad-word-list small{display:block}.dad-word-list small{color:#9eb0a4;margin-top:3px;line-height:1.35}.dad-material{margin-top:12px;padding:12px;border-radius:10px;background:#ffffff0b}.dad-material p{margin:5px 0 0;color:#aebcb3;line-height:1.45}.extra-credit{margin-top:22px;padding:18px;border:1px solid #e7b94c55;border-radius:16px;background:#17180d}.extra-credit h3{margin:5px 0;font-size:23px;color:#ffd568}.extra-credit p{color:#bfc7b8}.extra-grid{display:grid;grid-template-columns:180px 1fr;gap:10px}.extra-grid textarea{grid-column:1/-1}.extra-grid select,.extra-grid input,.extra-grid textarea{width:100%;box-sizing:border-box;padding:11px;border-radius:9px;border:1px solid #ffffff25;background:#0c1511;color:#fff;font:inherit}.extra-credit button{margin-top:10px;padding:12px 18px;border-radius:10px;font-weight:1000}.review-empty{padding:20px;text-align:center;color:#aebbb3;border:1px dashed #ffffff22;border-radius:12px}.assignment-chip{display:block;width:100%;text-align:left;border:0;color:#fff}
@media(max-width:700px){.review-head{display:block}.review-head select{width:100%;margin-top:12px}.review-summary{grid-template-columns:1fr 1fr}.extra-grid{grid-template-columns:1fr}.extra-grid textarea{grid-column:auto}.dad-word-list span{min-width:100%}}

/* v78 hard Dad/Explorer separation */
body.dad-mode .world-stage,body.dad-mode .hud,body.dad-mode .weekly-mission,body.dad-mode #toolPanel{visibility:hidden!important;pointer-events:none!important}
body.dad-mode #missionControl,.game.mc-open #missionControl{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;z-index:5000!important}
body.dad-mode #particles,body.dad-mode #fxCanvas{display:none!important}

/* v80 compact no-page-scroll Mission Control */
body.dad-mode{overflow:hidden!important}.mission-control{overflow:hidden!important}.mission-control .mc-shell{height:min(820px,calc(100vh - 40px))!important;max-height:calc(100vh - 40px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.mc-head{flex:0 0 auto}.mc-view{min-height:0!important;overflow:hidden!important}.mc-view.active{flex:1!important}.compact-studio{height:100%;display:flex;flex-direction:column;min-height:0;margin:0 auto!important}.builder-top{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px}.builder-top small{color:#6ee99b;font-weight:1000;letter-spacing:.13em}.builder-top h3{font-size:25px;margin:2px 0;color:#ffd35e}.builder-step{font-size:11px;color:#9eada4}.world-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.world-picker button{min-height:70px;border-radius:14px;border:1px solid #ffffff1c;background:#101a16;color:#fff;display:grid;grid-template-columns:36px 1fr;grid-template-rows:1fr 1fr;text-align:left;align-items:center;padding:9px 12px;cursor:pointer}.world-picker button i{grid-row:1/3;font-size:25px;font-style:normal}.world-picker button b{font-size:12px;align-self:end}.world-picker button span{font-size:10px;color:#9eafa4;align-self:start}.world-picker button.active{border-color:#ffd052;background:linear-gradient(135deg,#293019,#172638);box-shadow:0 0 0 1px #ffd05233 inset}.builder-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.65fr);gap:10px;flex:1;min-height:0}.builder-main,.builder-preview{border:1px solid #d7aa4055;border-radius:14px;background:#0b1410;padding:14px;min-height:0;overflow:hidden}.builder-main{display:flex;flex-direction:column}.builder-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-main label{display:block;color:#f4d36f;font-size:10px;font-weight:900;letter-spacing:.07em;margin-bottom:8px}.builder-main label small{color:#94a49b;font-weight:500}.builder-main select,.builder-main textarea,.builder-main input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border-radius:8px;border:1px solid #ffffff1f;background:#15201b;color:#fff;font:inherit}.builder-main textarea{resize:none}.author-fields{min-height:0}.builder-bottom{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:auto}.builder-bottom label{margin:0}.studio-actions{display:flex;gap:7px}.studio-actions button{padding:10px 13px!important}.builder-preview>small{color:#6ee99b;font-weight:1000;letter-spacing:.12em}.builder-preview h3{font-size:20px;margin:4px 0 10px}.builder-preview .generated-preview{margin:8px 0;gap:5px 8px}.builder-preview .generated-preview span{width:25px;height:25px;font-size:12px}.builder-preview .mc-assignments{margin-top:10px;padding-top:8px;max-height:145px;overflow:auto}.skill-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}.skill-chips button{padding:7px 9px;border-radius:999px;border:1px solid #ffffff22;background:#18231e;color:#dce5df;font-size:10px;font-weight:800}.skill-chips button.active{background:#d49a20;color:#111;border-color:#ffd35d}.mc-tabs{flex-wrap:nowrap!important}.mc-tabs button{padding:9px 15px!important}
@media(max-width:760px){.mission-control .mc-shell{height:100dvh!important;max-height:100dvh!important}.world-picker{grid-template-columns:1fr 1fr}.world-picker button{min-height:58px}.builder-workspace{grid-template-columns:1fr}.builder-preview{display:none}.builder-row,.builder-bottom{grid-template-columns:1fr}.compact-studio{overflow:hidden}.mc-tabs button{padding:7px 8px!important;font-size:8px!important}}

/* v81 Mission Control readability pass */
body.dad-mode .mission-control{font-size:17px!important}
body.dad-mode .mc-head h2{font-size:30px!important}
body.dad-mode .mc-head small{font-size:13px!important}
body.dad-mode .mc-tabs button{font-size:13px!important;letter-spacing:.05em!important;padding:10px 16px!important}
body.dad-mode .builder-top small{font-size:13px!important}
body.dad-mode .builder-top h3{font-size:31px!important}
body.dad-mode .builder-step{font-size:13px!important}
body.dad-mode .world-picker button{min-height:82px!important}
body.dad-mode .world-picker button i{font-size:30px!important}
body.dad-mode .world-picker button b{font-size:15px!important}
body.dad-mode .world-picker button span{font-size:13px!important}
body.dad-mode .builder-main label{font-size:13px!important;letter-spacing:.045em!important}
body.dad-mode .builder-main label small{font-size:12px!important}
body.dad-mode .builder-main select,body.dad-mode .builder-main textarea,body.dad-mode .builder-main input{font-size:16px!important;padding:11px 12px!important}
body.dad-mode .builder-preview>small{font-size:13px!important}
body.dad-mode .builder-preview h3{font-size:25px!important}
body.dad-mode .builder-preview .generated-preview b{font-size:16px!important}
body.dad-mode .builder-preview .generated-preview span{width:31px!important;height:31px!important;font-size:15px!important}
body.dad-mode .studio-actions button{font-size:14px!important;padding:12px 16px!important}
body.dad-mode #mcStatus,body.dad-mode .mc-assignments,body.dad-mode .mc-assignments small{font-size:13px!important;line-height:1.45!important}
body.dad-mode .mission-control .mc-shell{height:min(850px,calc(100vh - 24px))!important;max-height:calc(100vh - 24px)!important}
@media(max-width:760px){body.dad-mode .mission-control{font-size:16px!important}body.dad-mode .mc-tabs button{font-size:10px!important;padding:8px 7px!important}body.dad-mode .world-picker button b{font-size:13px!important}body.dad-mode .world-picker button span{font-size:11px!important}}

/* v84 Mission Control: readable first, scroll when needed */
body.dad-mode{overflow:auto!important}
body.dad-mode .mission-control{overflow:auto!important;overscroll-behavior:contain}
body.dad-mode .mission-control .mc-shell{height:auto!important;min-height:min(820px,calc(100vh - 24px))!important;max-height:none!important;overflow:visible!important}
body.dad-mode .mc-view,body.dad-mode .mc-view.active{overflow:visible!important;min-height:auto!important}
body.dad-mode .compact-studio{height:auto!important;min-height:0!important;overflow:visible!important}
body.dad-mode .builder-workspace{min-height:auto!important}
body.dad-mode .builder-main,body.dad-mode .builder-preview{overflow:visible!important}
@media(max-width:760px){body.dad-mode .mission-control .mc-shell{height:auto!important;min-height:100dvh!important;max-height:none!important}body.dad-mode .compact-studio{overflow:visible!important}}

/* v85 mobile stage spacing: lift Irie and Weekly Quest */
@media(max-width:700px){
  .world-actor{transform:translateY(-48px)!important}
  .weekly-mission,.weekend-quest-launch{transform:translateY(-48px)!important}
}

/* v86 phone-only dock/action cleanup */
@media(max-width:700px){
 .world-menu{left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:4px!important;height:132px!important;align-content:end!important;padding:0 3px!important}
 .world-menu a{position:relative!important;inset:auto!important;margin:0 auto!important;width:42px!important;height:42px!important;font-size:17px!important;display:grid!important;place-items:center!important}
 .world-menu a span{top:45px!important;font-size:6px!important}
 .world-menu a[data-panel="journal"]{display:none!important}
 .world-menu a[data-panel="stats"],.world-menu .mobile-settings,.world-menu .dad-dock{grid-row:2!important}
 .world-menu a[data-panel="stats"]{grid-column:4!important}.world-menu .mobile-settings{grid-column:5!important}.world-menu .dad-dock{grid-column:6!important}
 .world-actions{right:7px!important;bottom:150px!important;gap:5px!important}
 .world-actions button{width:48px!important;height:48px!important;padding:5px!important}
 .world-actions i{font-size:15px!important}.world-actions b{font-size:6px!important}.world-actions small{font-size:5px!important}
 .enter-zone{bottom:116px!important}
 .tool-panel{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:calc(34px + env(safe-area-inset-bottom))!important}
 .tool-panel #toolContent{margin-top:54px!important;margin-bottom:30px!important}
}

/* v87 mobile focus reset — desktop intentionally untouched */
@media(max-width:700px){
 .world-menu{
   left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
   height:68px!important;min-height:68px!important;padding:0 4px!important;
   display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
   gap:2px!important;background:linear-gradient(180deg,transparent,#07100bd9 30%,#07100bf2)!important;
 }
 .world-menu a{
   position:relative!important;inset:auto!important;margin:0!important;flex:0 0 auto!important;
   width:38px!important;height:38px!important;font-size:15px!important;display:grid!important;place-items:center!important;
 }
 .world-menu a span{top:40px!important;font-size:5.5px!important;line-height:1!important}
 .world-menu a[data-panel="journal"]{display:none!important}
 .world-menu a[data-panel="stats"],.world-menu .mobile-settings,.world-menu .dad-dock{grid-row:auto!important;grid-column:auto!important}
 .world-actions{right:7px!important;bottom:88px!important;gap:5px!important}
 .world-actions button{width:46px!important;height:46px!important}
 .enter-zone{bottom:82px!important}
 .weekend-quest-launch{bottom:142px!important}
}

/* v88 phone composition correction — desktop untouched */
@media(max-width:700px){
 /* keep each territory glyph optically centered inside its circle */
 .quest-orbit .world-token>i{
   position:absolute!important;left:50%!important;top:50%!important;
   transform:translate(-50%,-50%)!important;margin:0!important;
   display:grid!important;place-items:center!important;
 }
 .quest-orbit .q-city>i.chakana-mark{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}
 /* weekly card centered, safely above Enter World */
 .weekly-mission,.weekend-quest-launch{
   left:50%!important;right:auto!important;bottom:150px!important;
   transform:translateX(-50%)!important;margin:0!important;
   width:min(74vw,390px)!important;
 }
 .enter-zone{left:50%!important;right:auto!important;bottom:86px!important;transform:translateX(-50%)!important}
 /* action stack clears dock and remains fully visible */
 .world-actions{right:8px!important;bottom:104px!important;gap:5px!important}
 .world-actions button{width:44px!important;height:44px!important}
}

/* v89 mobile polish — desktop untouched */
@media(max-width:700px){
 /* center and lift Irie + quest controls together */
 .world-actor{left:50%!important;right:auto!important;bottom:31%!important;transform:translateX(-50%)!important}
 .weekly-energy{left:50%!important;right:auto!important;bottom:20%!important;transform:translateX(-50%)!important}
 .weekly-mission,.weekend-quest-launch{bottom:176px!important}
 .enter-zone{bottom:108px!important}
 /* controls remain visible but sit higher; key guide moves to Settings later */
 .world-actions{bottom:126px!important}
 /* compact reward HUD across the phone: accumulated rewards only */
 .hud{padding-top:max(10px,env(safe-area-inset-top))!important}
 .hud .profile{
   position:absolute!important;top:max(10px,env(safe-area-inset-top))!important;left:16px!important;right:16px!important;
   width:auto!important;max-width:none!important;min-width:0!important;
   display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
   padding:8px 10px!important;background:#101327e8!important;border:1px solid #d8a72caa!important;border-radius:18px!important;
 }
 .hud .profile>.avatar,.hud .profile>.profile-copy,.hud .profile>.profile-main,.hud .profile h2,.hud .profile small,.hud .profile .xp,.hud .profile .xpbar{display:none!important}
 .hud .profile .rewards,.hud .profile .profile-rewards{display:flex!important;width:100%!important;justify-content:space-evenly!important;gap:8px!important}
 .hud .profile .coin,.hud .profile .hug,.hud .profile [class*="coin"],.hud .profile [class*="hug"]{flex:1 1 0!important;justify-content:center!important}
}

/* v90 — Parent curation + mobile reward strip */
.curation-studio{max-width:1180px;margin:auto}.library-intro{font-size:16px;max-width:780px}.library-types{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.library-types button{min-height:64px;border:1px solid #80691f;border-radius:14px;background:#0b1711;color:#fff;font-weight:800}.library-types button.active{border-color:#ffc83d;background:#1c2b31}.library-types button b{margin-left:8px}.library-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:14px}.library-form,.library-preview{padding:16px;border:1px solid #725d1b;border-radius:16px;background:#07130dcc}.library-form label{display:block;color:#ffd34d;font-size:12px;font-weight:800;margin-bottom:10px}.library-form input,.library-form select,.library-form textarea{display:block;width:100%;margin-top:5px;padding:11px;border:1px solid #394a43;border-radius:9px;background:#132019;color:#fff;font:inherit}.thought-preview{padding:18px;margin:12px 0;border-radius:14px;background:#172237;font-size:18px;line-height:1.5}.library-items article{display:flex;flex-direction:column;padding:9px 0;border-top:1px solid #ffffff18}.library-items small{opacity:.7;margin-top:3px}
@media(max-width:700px){
 .player-hud{left:12px!important;right:12px!important;top:max(8px,env(safe-area-inset-top))!important;width:auto!important;min-width:0!important;height:74px!important;padding:8px 10px!important;display:flex!important;justify-content:center!important}
 .player-hud .player-avatar,.player-hud .player-data>strong,.player-hud .player-data>small,.player-hud .xp-row{display:none!important}
 .player-hud .player-data{width:100%!important}
 .player-hud .reward-wallet{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;margin:0!important}
 .player-hud .reward-wallet>span{height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:20px!important;border-radius:14px!important}
 .player-hud .reward-wallet b{font-size:25px!important}
 .player-hud .reward-wallet em{font-size:10px!important}
 .hud{pointer-events:none!important}.hud-actions{pointer-events:auto!important}
 .library-workspace{grid-template-columns:1fr}.library-types{grid-template-columns:1fr 1fr}.curation-studio{overflow:auto;max-height:calc(100dvh - 170px)}
}

/* v91 library is four distinct tools, not one giant form */
.library-types button{display:grid!important;grid-template-columns:auto 1fr!important;grid-template-rows:auto auto!important;text-align:left!important;column-gap:10px!important;padding:11px 15px!important}.library-types button>b{margin:0!important}.library-types button>span{grid-column:2;font-size:11px;opacity:.68;font-weight:500}.library-kind-fields[hidden]{display:none!important}.library-kind-fields{min-height:205px}.library-form textarea{resize:vertical}.library-preview p{margin:9px 0}.library-preview small{opacity:.7}

/* v92 — compact soundtrack controls; video remains an occasional milestone reward */
.world-radio{position:absolute;left:50%;bottom:15.5%;transform:translateX(-50%);z-index:35;display:flex;align-items:center;gap:6px;background:#07110de8;border:1px solid #f2b72d;border-radius:18px;padding:5px 7px;box-shadow:0 8px 30px #0009}.world-radio[hidden]{display:none!important}.world-radio button{border:0;background:transparent;color:#ffe6a0;font:800 10px/1.1 inherit;letter-spacing:.08em;padding:7px 9px}.world-radio #radioState{opacity:.65;font-size:8px}.world-radio #radioEmbed{position:absolute;width:1px;height:1px;overflow:hidden;opacity:.01;pointer-events:none}.world-radio iframe{width:1px;height:1px;border:0}.dad-drop{position:absolute;z-index:80;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,82%);background:#111b2a;border:2px solid #f2b72d;border-radius:24px;padding:22px;text-align:center;box-shadow:0 20px 70px #000}.dad-drop[hidden]{display:none!important}.dad-drop b,.dad-drop span{display:block;margin-bottom:12px}.dad-drop button{background:#efb12b;border:0;border-radius:14px;padding:12px 18px;font-weight:900}
@media(max-width:700px){.world-radio{bottom:18.8%;max-width:58%;white-space:nowrap}.world-radio button{font-size:9px;padding:6px}.dad-drop{position:fixed}}

/* v93 radio belongs to the game shell, not the world-stage, so it stays visible inside quests */
.game>.world-radio{z-index:96;bottom:18px}.game.quest-open>.world-radio{opacity:1;pointer-events:auto;bottom:22px}.game.mc-open>.world-radio,.game.tool-open>.world-radio,.game.weekly-open>.world-radio{display:none!important}@media(max-width:700px){.game>.world-radio{position:absolute;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));max-width:72%;z-index:96}.game.quest-open>.world-radio{bottom:calc(12px + env(safe-area-inset-bottom))}}

/* v94 — radio is a visible in-quest control; mastery has a clean success state */
.game.quest-open>.world-radio{top:max(118px,calc(env(safe-area-inset-top) + 88px));bottom:auto;left:50%;transform:translateX(-50%);min-width:250px;justify-content:center;padding:8px 10px;border:2px solid #f2b72d;background:#07110df2;box-shadow:0 8px 30px #000b,0 0 22px #f2b72d33}.game.quest-open>.world-radio #radioToggle{font-size:12px;padding:9px 12px}.game.quest-open>.world-radio #radioState{display:inline-block;margin-left:7px;padding:4px 8px;border-radius:999px;background:#efb12b;color:#10120e;opacity:1;font-size:9px}.game.quest-open>.world-radio #radioNext{font-size:15px}.mastered-exit{background:#efb12b!important;color:#10120e!important;border-color:#ffd96b!important;font-weight:1000!important}.game.territory-mastered .quest-panel{border-color:#7ef0a4;box-shadow:0 0 0 1px #7ef0a455,0 20px 70px #0009,0 0 55px #50df7b24;background:linear-gradient(160deg,#10251af5,#0b150ff7)}.game.territory-mastered .mastery-badge{display:block!important;padding:15px 18px;border-color:#79e99a;background:#173b25;color:#9bffb7;font-size:13px}.game.territory-mastered #questPrompt{font-size:clamp(22px,3vw,34px);color:#eaffef}.game.territory-mastered .quest-actions{justify-content:center}.game.territory-mastered>.world-radio{display:flex!important}@media(max-width:700px){.game.quest-open>.world-radio{top:calc(env(safe-area-inset-top) + 165px);bottom:auto;min-width:245px;max-width:82%;padding:7px 9px}.game.quest-open>.world-radio #radioToggle{font-size:11px}.game.territory-mastered .quest-panel{border-color:#76e99a}}

/* v95 — radio only lives inside a territory; Dad can remove curated tracks */
.game:not(.quest-open)>.world-radio{display:none!important}.library-items article{position:relative;padding-right:76px}.library-delete{position:absolute;right:4px;top:50%;transform:translateY(-50%);padding:6px 8px!important;border:1px solid #d79d35!important;border-radius:8px!important;background:#24180d!important;color:#ffd77a!important;font-size:8px!important;font-weight:900!important}.game.quest-open>.world-radio{display:flex!important}

/* v96 curated media */
.irie-media-frame{width:100%;aspect-ratio:16/9;border:0;border-radius:16px;background:#000}.world-radio audio{width:100%;max-width:360px}.library-items button[data-delete-curated]{position:relative;z-index:3;pointer-events:auto;cursor:pointer}

/* v97 library filters + in-app curated video */
.library-items article{padding-right:92px}.library-delete{z-index:6!important;pointer-events:auto!important;cursor:pointer!important}.curated-media-modal{position:fixed;inset:0;z-index:250;background:#000b;display:grid;place-items:center;padding:24px}.curated-media-modal[hidden]{display:none!important}.curated-media-window{width:min(900px,92vw);background:#07130d;border:2px solid #e9b83f;border-radius:22px;box-shadow:0 24px 80px #000;overflow:hidden}.curated-media-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;color:#ffe19a}.curated-media-head button{width:42px;height:38px;margin-left:6px;border:1px solid #e9b83f;border-radius:10px;background:#21190c;color:#ffe19a;font-size:22px}.curated-media-body{padding:0 14px 14px}.curated-video-frame{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#000}.curated-media-modal.mini{background:transparent;pointer-events:none;place-items:end end;padding:18px}.curated-media-modal.mini .curated-media-window{width:min(380px,88vw);pointer-events:auto}.curated-media-modal.mini .curated-media-head{padding:8px 10px}.curated-media-modal.mini .curated-media-body{padding:0 8px 8px}@media(max-width:700px){.curated-media-modal{padding:12px}.curated-media-modal.mini{padding:10px}.curated-media-modal.mini .curated-media-window{width:72vw}.curated-media-head b{font-size:13px}}

/* v98 automatic media library + Irie Cinema */
.media-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto;padding:8px;border:1px solid #38523e;border-radius:12px;background:#07130d}.media-card{display:flex!important;gap:9px;align-items:center;padding:10px!important;border:1px solid #314b38;border-radius:10px;background:#0d1d13;cursor:pointer}.media-card input{width:18px;height:18px;accent-color:#efb12b}.media-card span{display:grid;min-width:0}.media-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f5f3e8}.media-card small{color:#aeb9af}.media-card:has(input:checked){border-color:#efb12b;background:#20200f}.media-card.needs-convert{opacity:.55;cursor:not-allowed}.media-note{font-size:11px;color:#b8c5bb;margin:8px 2px 0}@media(max-width:700px){.media-shelf{grid-template-columns:1fr;max-height:240px}}

/* v99 explicit World assignments for Radio + Cinema */
.media-worlds{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;border:1px solid #38523e;border-radius:12px;background:#08150e}.media-worlds[hidden]{display:none!important}.media-worlds>b{font-size:10px;color:#efb12b;margin-right:4px}.media-worlds label{display:flex!important;align-items:center;gap:5px;padding:7px 9px!important;border:1px solid #36513d;border-radius:999px;background:#0d1d13;cursor:pointer;font-size:10px}.media-worlds label:has(input:checked){border-color:#efb12b;background:#29220d;color:#ffe6a0}.media-worlds input{accent-color:#efb12b}.media-worlds button{margin-left:auto;border:1px solid #efb12b;border-radius:999px;background:#241b0b;color:#ffe09a;padding:7px 10px;font-size:9px;font-weight:900}@media(max-width:700px){.media-worlds button{margin-left:0}}

/* v100 Irie Cinema is directly accessible inside assigned territories */
.world-cinema{position:absolute;z-index:97;top:max(118px,calc(env(safe-area-inset-top) + 88px));right:22px}.world-cinema[hidden]{display:none!important}.game:not(.quest-open)>.world-cinema,.game.mc-open>.world-cinema,.game.tool-open>.world-cinema,.game.weekly-open>.world-cinema{display:none!important}.world-cinema button{border:2px solid #d957ff;border-radius:16px;background:#160b22ed;color:#f4d7ff;padding:10px 13px;box-shadow:0 8px 30px #000b,0 0 24px #d957ff33;font-weight:900;letter-spacing:.04em}.world-cinema button span{display:block;margin-top:3px;font-size:8px;color:#e6a9ff}.game.quest-open>.world-cinema{display:block}@media(max-width:700px){.world-cinema{position:absolute;top:calc(env(safe-area-inset-top) + 222px);right:10px}.world-cinema button{padding:8px 10px;font-size:10px}}

/* v101 Math Generator */
.math-generator-head{display:flex;align-items:baseline;gap:10px;margin:4px 0 10px;color:#f0b72d}.math-generator-head span{font-size:10px;color:#aeb9af}.math-controls{margin:10px 0}.math-generate{width:100%;margin-top:10px;padding:12px;border:1px solid #efb12b;border-radius:12px;background:linear-gradient(180deg,#4a3710,#211807);color:#ffe29a;font-weight:1000;letter-spacing:.06em}.math-generated{margin-top:10px;max-height:260px;overflow:auto}.math-generated-head{display:flex;justify-content:space-between;gap:10px;padding:8px;color:#9bffb7}.math-generated-head span{font-size:9px;opacity:.75}.math-generated article{display:grid;gap:3px;padding:8px 10px;margin:5px 0;border:1px solid #34503b;border-radius:10px;background:#0b1810}.math-generated article small{color:#efb12b}.math-generated article span{font-size:10px;color:#9fb1a3}

/* v102 curriculum reader */
.math-reader{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin:10px 0;padding:11px;border:1px dashed #63816b;border-radius:12px;background:#09150e}.math-reader>div{display:grid}.math-reader b{color:#aef6be;font-size:11px}.math-reader span,.math-reader small{font-size:9px;color:#9eafa2}.reader-upload,.math-reader button{display:inline-flex!important;align-items:center;justify-content:center;padding:9px 10px!important;border:1px solid #efb12b!important;border-radius:10px!important;background:#211a0b!important;color:#ffe09a!important;font-size:9px!important;font-weight:900!important;cursor:pointer}.reader-upload input{display:none}.math-reader>small{grid-column:1/-1}@media(max-width:700px){.math-reader{grid-template-columns:1fr 1fr}.math-reader>div{grid-column:1/-1}}

/* v103 Learning Atmosphere Engine */
.atmo-studio{padding:18px;border:1px solid #7d6723;border-radius:18px;background:#07140deF}.atmo-master label{display:flex;gap:7px;align-items:center;color:#b7ffca;font-weight:900}.atmo-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}.atmo-grid section{display:grid;gap:9px}.atmo-grid label{display:grid;gap:4px;font-size:9px;color:#efc550}.atmo-grid select{padding:10px;border:1px solid #36513d;border-radius:9px;background:#102018;color:#fff}.atmo-tables{padding:13px;border:1px solid #375a41;border-radius:14px;background:#0b1d12}.atmo-tables>b{color:#ffe088}.atmo-tables p{font-size:10px;color:#9fb2a3}.atmo-tables>div{display:flex;flex-wrap:wrap;gap:6px}.atmo-tables>div label{display:flex;align-items:center;gap:4px;padding:7px 9px;border:1px solid #49624f;border-radius:999px;color:#fff}.atmo-tables>div label:has(input:checked){border-color:#efb12b;background:#31250b}.atmo-actions{display:flex;gap:8px;margin-top:14px}.atmo-actions button{flex:1;padding:11px;border:1px solid #efb12b;border-radius:10px;background:#251b08;color:#ffe09a;font-weight:900}.learning-atmosphere{position:absolute;inset:0;z-index:24;pointer-events:none;overflow:hidden;border-radius:inherit}.learning-atmosphere[aria-hidden=true]{display:none}.atmo-particle{position:absolute;left:var(--x);bottom:-8%;font-size:var(--size);font-weight:1000;color:#fff6bf;text-shadow:0 0 7px #ffbf35,0 2px 4px #000;opacity:.0;animation:atmoFloat var(--dur) linear var(--delay) infinite;transform:rotate(-8deg)}.learning-atmosphere[data-theme=arts] .atmo-particle{font-family:Georgia,serif;text-shadow:0 0 9px #fff,0 2px 5px #000}.learning-atmosphere[data-theme=science] .atmo-particle{color:#b8f6ff;text-shadow:0 0 8px #39c9ff}.learning-atmosphere[data-theme=words] .atmo-particle{color:#e8d9ff;text-shadow:0 0 8px #9c66ff}@keyframes atmoFloat{0%{transform:translate3d(-20px,0,0) rotate(-10deg) scale(.8);opacity:0}12%{opacity:.8}50%{transform:translate3d(35px,-55vh,0) rotate(8deg) scale(1.1);opacity:.7}88%{opacity:.7}100%{transform:translate3d(-10px,-115vh,0) rotate(-6deg) scale(.9);opacity:0}}@media(max-width:700px){.atmo-grid{grid-template-columns:1fr}.atmo-particle{font-size:calc(var(--size)*.78)}}

/* v113 Weekly Quest readability */
.weekly-top small{font-size:13px;letter-spacing:1.4px}
.weekly-top h2{font-size:30px;line-height:1.12}
.weekly-hub>p{font-size:17px;line-height:1.5}
.weekly-doors button b{font-size:18px;line-height:1.15}
.weekly-doors button span{font-size:14px;line-height:1.35}
.weekly-doors button em{font-size:11px;letter-spacing:1px}
.weekend-root{font-size:16px}
#escapeDefinition{font-size:18px;line-height:1.5}
@media(max-width:700px){.weekly-top h2{font-size:25px}.weekly-hub>p{font-size:15px}.weekly-doors button b{font-size:16px}.weekly-doors button span{font-size:13px}}

/* v114 — keep soundtrack available but out of the 3D play field */
.game.iq3d-open>.world-radio{display:flex!important;top:18px!important;right:18px!important;left:auto!important;bottom:auto!important;transform:none!important;min-width:0!important;max-width:210px!important;padding:4px 7px!important;opacity:.78;z-index:120}
.game.iq3d-open>.world-radio:hover,.game.iq3d-open>.world-radio:focus-within{opacity:1}
.game.iq3d-open>.world-radio #radioToggle{font-size:9px!important;padding:6px 7px!important}
.game.iq3d-open>.world-radio #radioState{font-size:7px!important;margin-left:2px!important;padding:3px 5px!important}
.game.iq3d-open>.world-radio #radioNext{font-size:11px!important;padding:5px!important}
@media(max-width:700px){.game.iq3d-open>.world-radio{top:10px!important;right:10px!important;max-width:170px!important}}

/* v115 — 3D challenge briefing, compact controls, clear exit */
.iq3d-brief{position:absolute;z-index:130;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,82%);padding:28px 30px;border:2px solid #eec95e;border-radius:24px;background:#07110df5;color:#f7f3df;text-align:center;box-shadow:0 24px 90px #000d}
.iq3d-brief[hidden]{display:none}.iq3d-brief small{font-size:12px;letter-spacing:1.6px;color:#eec95e;font-weight:900}.iq3d-brief h2{margin:9px 0 12px;font-size:32px}.iq3d-brief p{font-size:18px;line-height:1.5}.iq3d-brief strong{color:#ffd65b}.iq3d-brief button,.iq3d-exit{border:0;border-radius:14px;background:#eeb52d;color:#10150f;padding:13px 20px;font-weight:1000;font-size:15px}
.iq3d-exit{position:absolute;z-index:125;right:24px;bottom:24px}.iq3d-exit[hidden]{display:none}
.iq3d-help{gap:16px!important;align-items:center}.move-cross{position:relative;display:grid!important;grid-template-columns:repeat(3,22px);grid-template-rows:repeat(2,20px);width:66px;height:40px;gap:2px}.move-cross b{display:flex;align-items:center;justify-content:center;border:1px solid #eec95e55;border-radius:4px;background:#162219}.move-cross b:nth-child(1){grid-column:2}.move-cross b:nth-child(2){grid-column:1;grid-row:2}.move-cross b:nth-child(3){grid-column:2;grid-row:2}.move-cross b:nth-child(4){grid-column:3;grid-row:2}
.game.iq3d-open>.world-radio{top:74px!important;right:18px!important}
@media(max-width:700px){.iq3d-brief{padding:22px 18px}.iq3d-brief h2{font-size:26px}.iq3d-brief p{font-size:16px}.iq3d-help{gap:8px!important}.game.iq3d-open>.world-radio{top:68px!important}}

/* v116 — minimap, energy and live equation trail */
.iq3d-energy{position:absolute;z-index:122;left:26px;top:94px;width:190px;padding:8px 10px;border-radius:12px;background:#07110dcc;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;font-size:9px;font-weight:900;color:#f7e8ae}.iq3d-energy i{height:8px;border:1px solid #ffffff33;border-radius:9px;overflow:hidden;background:#0008}.iq3d-energy i b{display:block;width:50%;height:100%;background:linear-gradient(90deg,#d89b28,#9ce36d);transition:width .25s}
.iq3d-mini{position:absolute;z-index:121;left:26px;top:137px;width:150px;padding:7px;border:1px solid #ffffff28;border-radius:14px;background:#07110d99;opacity:.72}.iq3d-mini small{display:block;margin-bottom:4px;font-size:8px;letter-spacing:1px;color:#d9e2d8}.iq3d-mini canvas{display:block;width:100%;height:auto;border-radius:8px}
.iq3d-equation{position:absolute;z-index:121;right:24px;top:132px;width:165px;padding:10px 12px;border-radius:14px;background:#07110dcc;color:#b9c1bb}.iq3d-equation span{display:block;margin-bottom:7px;font-size:9px;color:#eec95e;font-weight:900;letter-spacing:1px}.iq3d-equation b{display:block;padding:5px 0;font-size:13px}.iq3d-equation i{font-style:normal;color:#788078}.iq3d-equation b.solved{color:#f4f1dd}.iq3d-equation b.solved i{color:#8dff70;text-shadow:0 0 10px #8dff7088}
@media(max-width:700px){.iq3d-energy{left:12px;top:82px;width:160px}.iq3d-mini{left:12px;top:122px;width:120px}.iq3d-equation{right:12px;top:122px;width:142px}}

/* v120 — progress bars reflect actual mastery proportion */
.world-token span em:after{width:calc(var(--world-fill-pct,0%) * .42)!important;max-width:42px!important;transition:width .35s ease,background .35s ease}
.world-token.world-mastered{--world-color:#76e93e!important}
.world-token.world-mastered span em:after{width:42px!important;background:#76e93e!important;box-shadow:0 0 9px #76e93e}
.world-token.world-mastered span em{color:#dfffd2}
@media(max-width:700px){.world-token span em:after{width:calc(var(--world-fill-pct,0%) * .29)!important;max-width:29px!important}.world-token.world-mastered span em:after{width:29px!important}}

/* v121 — give the Weekly Quest sign a little more breathing room */
@media(min-width:701px){.weekend-quest-launch{bottom:118px!important}}

/* v122 — desktop stage spacing, Mission Control weekly tools, mobile 3D controls */
@media(min-width:701px){.weekend-quest-launch{bottom:82px!important}}
.mc-week-controls{margin-top:20px;padding:18px;border:1px solid #eec95e55;border-radius:18px;background:#0b1712}.mc-week-controls>small{color:#eec95e;font-weight:900;letter-spacing:1.2px}.mc-week-controls h3{margin:4px 0 6px}.mc-week-controls p{opacity:.8}.mc-week-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:12px}.mc-week-row label{display:grid;gap:5px;font-size:10px;font-weight:900}.mc-week-row input{min-height:38px;border-radius:9px;border:1px solid #ffffff2b;background:#111d18;color:#fff;padding:7px 9px}.mc-week-row button{min-height:38px;border-radius:9px;border:1px solid #eec95e88;background:#172019;color:#f7e8ae;font-weight:900;padding:8px 12px}#mcResetWeek{background:#6c2e20;color:#fff}
.iq3d-touch{display:none}
@media(max-width:700px){.iq3d-help{display:none!important}.iq3d-touch{display:flex;position:absolute;z-index:128;left:18px;right:18px;bottom:18px;justify-content:space-between;align-items:end;pointer-events:none}.iq3d-stick{width:112px;height:112px;border:2px solid #ffffff45;border-radius:50%;background:#07110d77;position:relative;pointer-events:auto;touch-action:none;box-shadow:inset 0 0 25px #0008}.iq3d-stick:before,.iq3d-stick:after{content:"";position:absolute;background:#ffffff20}.iq3d-stick:before{width:2px;height:70%;left:50%;top:15%}.iq3d-stick:after{height:2px;width:70%;top:50%;left:15%}.iq3d-stick i{position:absolute;width:44px;height:44px;border-radius:50%;left:32px;top:32px;background:#eec95ecc;border:2px solid #ffe797;box-shadow:0 0 18px #eec95e66}.iq3d-touch-actions{display:flex;gap:10px;pointer-events:auto}.iq3d-touch-actions button{width:72px;height:72px;border-radius:50%;border:2px solid #ffffff55;background:#14251dcc;color:#fff;font-size:22px;font-weight:1000;touch-action:manipulation}.iq3d-touch-actions button:last-child{border-color:#eec95eaa}.iq3d-touch-actions small{display:block;font-size:8px;letter-spacing:.6px}.iq3d-mini{top:116px!important;width:105px!important}.iq3d-equation{top:116px!important;width:132px!important}.iq3d-energy{top:76px!important}}

/* v123 — mobile 3D exit sits in the free center lane between thumb controls */
@media(max-width:700px){
  .iq3d-exit{
    left:50%!important;
    right:auto!important;
    bottom:22px!important;
    transform:translateX(-50%)!important;
    z-index:130!important;
    max-width:128px;
    padding:11px 14px!important;
    text-align:center;
  }
}

/* v124 — Explorer Workshop */
@media(max-width:700px){.iq3d-exit{left:calc(50% - 26px)!important}}
.settings-explorer{margin-bottom:18px}.explorer-creator{display:grid;grid-template-columns:minmax(250px,.8fr) 1.3fr;gap:18px}.creator-preview{min-height:430px;border:1px solid #eec95e55;border-radius:20px;background:radial-gradient(circle at 50% 42%,#32506d 0,#172535 40%,#0a1412 78%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px}.creator-preview>small{color:#eec95e;font-weight:900;letter-spacing:1.4px}.creator-preview h3{margin:12px 0 2px}.creator-preview p{max-width:300px;opacity:.75}.creator-controls{display:grid;gap:10px}.creator-controls section{padding:11px;border-radius:14px;background:#0b1512;border:1px solid #ffffff14}.creator-controls section>b{font-size:10px;color:#eec95e;letter-spacing:1.2px}.creator-controls section>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.creator-controls button{min-width:84px;border:1px solid #ffffff24;border-radius:10px;background:#17201c;color:#fff;padding:8px}.creator-controls button span,.creator-controls button small{display:block}.creator-controls button small{font-size:8px;margin-top:3px;opacity:.7}.creator-controls button.active{border-color:#76e93e;box-shadow:0 0 0 1px #76e93e55}.creator-controls button.locked{border-color:#eec95e55}.creator-balance{grid-column:1/-1;text-align:right;font-weight:900;color:#f5d66d}.creator-locked{padding:34px;text-align:center;border:1px solid #eec95e55;border-radius:18px;background:#0b1512}.creator-locked>span{font-size:44px;color:#eec95e}.creator-locked>b{display:inline-block;margin-top:10px;color:#eec95e}
.iq-person{position:relative;width:126px;height:235px;margin:30px auto 12px;--skin:#d59a55;--top:#2f83a7;--bottom:#354452;--shoe:#171d1c}.iq-head{position:absolute;z-index:5;left:36px;top:15px;width:54px;height:56px;border-radius:42% 42% 46% 46%;background:var(--skin);border:3px solid #17201d;box-shadow:inset 0 -5px #00000018}.iq-person[data-head=square] .iq-head{border-radius:12px}.iq-person[data-head=wide] .iq-head{left:31px;width:64px;border-radius:36%}.iq-head b,.iq-head em{position:absolute;top:23px;width:6px;height:7px;background:#17201d;border-radius:50%}.iq-head b{left:13px}.iq-head em{right:13px}.iq-person[data-eyes=dash] .iq-head b,.iq-person[data-eyes=dash] .iq-head em{height:3px;border-radius:2px}.iq-person[data-eyes=visor] .iq-head:after{content:"";position:absolute;left:8px;right:8px;top:18px;height:13px;border-radius:8px;background:#183c50;border:2px solid #73d9ff}.iq-person[data-eyes=visor] .iq-head b,.iq-person[data-eyes=visor] .iq-head em{display:none}.iq-hair{position:absolute;z-index:7;left:34px;top:9px;width:58px;height:20px;background:#27211d;border-radius:50% 50% 25% 25%}.iq-person[data-hair=none] .iq-hair{display:none}.iq-person[data-hair=crest] .iq-hair{clip-path:polygon(0 100%,15% 20%,30% 70%,48% 0,62% 68%,80% 20%,100% 100%)}.iq-person[data-hair=wave] .iq-hair{height:27px;border-radius:60% 35% 45% 20%}.iq-person[data-hair=cap] .iq-hair{height:18px;background:#d5a522;border-radius:12px 12px 5px 5px}.iq-person[data-hair=cap] .iq-hair:after{content:"";position:absolute;width:24px;height:5px;right:-12px;bottom:0;background:#d5a522;border-radius:4px}.iq-neck{position:absolute;left:54px;top:67px;width:18px;height:13px;background:var(--skin)}.iq-torso{position:absolute;z-index:3;left:32px;top:76px;width:62px;height:70px;border-radius:13px 13px 8px 8px;background:var(--top);border:3px solid #17201d}.iq-arm{position:absolute;z-index:2;top:80px;width:20px;height:72px;background:var(--top);border:3px solid #17201d;border-radius:10px}.iq-arm.left{left:13px;transform:rotate(5deg)}.iq-arm.right{right:13px;transform:rotate(-5deg)}.iq-arm:after{content:"";position:absolute;left:2px;right:2px;bottom:-4px;height:18px;background:var(--skin);border-radius:7px}.iq-leg{position:absolute;z-index:2;top:140px;width:27px;height:68px;background:var(--bottom);border:3px solid #17201d}.iq-leg.left{left:34px}.iq-leg.right{right:34px}.iq-shoe{position:absolute;z-index:4;top:203px;width:34px;height:18px;background:var(--shoe);border:3px solid #17201d;border-radius:5px 9px 7px 7px}.iq-shoe.left{left:27px}.iq-shoe.right{right:27px}.iq-person[data-top=field]{--top:#63743d}.iq-person[data-top=space]{--top:#e5e8e3}.iq-person[data-top=guard]{--top:#8c4e36}.iq-person[data-bottom=shorts]{--bottom:#b18b45}.iq-person[data-bottom=utility]{--bottom:#536b42}.iq-person[data-shoes=sneakers]{--shoe:#d9d9d2}.iq-person[data-shoes=trailboots]{--shoe:#684a2f}
@media(max-width:700px){.explorer-creator{grid-template-columns:1fr}.creator-preview{min-height:350px}.creator-controls section>div{overflow-x:auto;flex-wrap:nowrap}.creator-controls button{flex:0 0 84px}}

/* v125 — Explorer Workshop as a no-scroll modal */
.settings-explorer{position:fixed;z-index:420;inset:50%;width:min(980px,calc(100vw - 70px));height:min(700px,calc(100vh - 90px));transform:translate(-50%,-50%);margin:0!important;padding:18px;background:#07110e;border:1px solid #eec95e66;border-radius:24px;box-shadow:0 30px 100px #000d;overflow:hidden}
.settings-explorer .explorer-creator{height:100%;grid-template-columns:minmax(245px,.72fr) 1.35fr;grid-template-rows:1fr auto auto;align-items:stretch}
.settings-explorer .creator-preview{grid-row:1/4;min-height:0;height:auto}
.settings-explorer .creator-controls{overflow:hidden;align-content:center;gap:7px}
.settings-explorer .creator-controls section{padding:8px 10px}
.settings-explorer .creator-controls section>div{margin-top:5px}
.settings-explorer .creator-controls button{padding:6px 8px;min-width:80px}
.creator-attributes{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:9px 11px;border:1px solid #ffffff14;border-radius:12px;background:#0b1512}.creator-attributes>b{font-size:9px;color:#eec95e;letter-spacing:1.1px}.creator-attributes span{font-size:10px;font-weight:900;padding:5px 8px;border-radius:8px;background:#ffffff0c}.creator-attributes small{width:100%;opacity:.55;font-size:9px}
.creator-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px}.creator-footer .creator-balance{margin:0}.creator-footer button{border:1px solid #8ff35d;border-radius:11px;background:#173f22;color:#dfffd1;font-weight:1000;padding:11px 18px;letter-spacing:.5px}.creator-footer button.saved{background:#2b6a38}
@media(max-width:700px){.settings-explorer{width:calc(100vw - 24px);height:calc(100vh - 34px);padding:12px;border-radius:18px;overflow:auto}.settings-explorer .explorer-creator{grid-template-columns:1fr;display:grid;height:auto}.settings-explorer .creator-preview{grid-row:auto;min-height:280px}.settings-explorer .creator-controls{overflow:visible}.creator-footer{position:sticky;bottom:0;background:#07110eee;padding:8px 0}}

/* v126 — Settings home + true Explorer modal */
.settings-home{display:grid;gap:12px}.settings-home section{display:grid;grid-template-columns:44px 1fr auto;gap:13px;align-items:center;padding:15px 16px;border:1px solid #ffffff18;border-radius:15px;background:#0b1512}.settings-home section>span{font-size:24px;text-align:center}.settings-home h3{margin:0 0 3px}.settings-home p{margin:0;opacity:.7}.settings-home button,.edit-explorer-button{border:1px solid #eec95e88;border-radius:10px;background:#172019;color:#f7e8ae;font-weight:900;padding:10px 13px}.explorer-stage .edit-explorer-button{margin-top:14px}
.settings-explorer{position:static!important;width:auto!important;height:auto!important;transform:none!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.explorer-workshop-modal{position:fixed;z-index:1000;inset:0;background:#020705d9;display:grid;place-items:center;padding:28px}.explorer-workshop-shell{position:relative;width:min(980px,calc(100vw - 70px));height:min(700px,calc(100vh - 70px));padding:18px;background:#07110e;border:1px solid #eec95e77;border-radius:24px;box-shadow:0 35px 120px #000;overflow:hidden}.explorer-workshop-shell>.explorer-creator{height:100%;grid-template-columns:minmax(245px,.72fr) 1.35fr;grid-template-rows:1fr auto auto}.explorer-workshop-shell .creator-preview{grid-row:1/4;min-height:0}.explorer-workshop-shell .creator-controls{overflow:hidden;align-content:center;gap:7px}.explorer-workshop-x{position:absolute;z-index:5;right:13px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid #ffffff44;background:#101916;color:#fff;font-size:23px;line-height:1}
@media(max-width:700px){.settings-home section{grid-template-columns:36px 1fr}.settings-home section button{grid-column:2}.explorer-workshop-modal{padding:10px}.explorer-workshop-shell{width:calc(100vw - 20px);height:calc(100vh - 20px);padding:12px;overflow:auto}.explorer-workshop-shell>.explorer-creator{grid-template-columns:1fr;height:auto}.explorer-workshop-shell .creator-preview{grid-row:auto;min-height:280px}}

/* v127 — My Explorer layout + naming */
.explorer-room{padding:4px}.explorer-stage{position:relative;min-height:340px;border:1px solid #d8b84e55;border-radius:22px;background:radial-gradient(circle at 42% 45%,#173d31 0,#0b1d19 42%,#06100e 78%);display:grid;grid-template-columns:1fr minmax(210px,.65fr);grid-template-rows:1fr auto;align-items:center;padding:24px 34px;overflow:hidden}.explorer-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(125deg,#1c6b4a1c,transparent 45%,#d6a22a14);pointer-events:none}.explorer-stage>.iq-person{grid-row:1/3;margin:auto;transform:scale(1.08)}.explorer-card-info{position:relative;z-index:2;align-self:end;padding:10px 0 5px}.explorer-card-info b,.explorer-card-info small{display:block}.explorer-card-info b{font-size:23px;color:#f8e7a9}.explorer-card-info small{margin-top:5px;opacity:.7}.explorer-stage>.edit-explorer-button{position:relative;z-index:2;justify-self:start;align-self:start;margin:4px 0 0!important;padding:12px 20px;font-size:13px;background:#dcae27;color:#10130d;border-color:#f4d45b;box-shadow:0 8px 25px #0005}
.explorer-name-field{width:min(260px,90%);margin:8px auto 2px;text-align:left}.explorer-name-field span{display:block;font-size:9px;letter-spacing:1.2px;color:#eec95e;font-weight:900;margin-bottom:5px}.explorer-name-field input{box-sizing:border-box;width:100%;border:1px solid #eec95e66;border-radius:9px;background:#07110e;color:#fff;padding:9px 11px;font:inherit;font-weight:800;outline:none}.explorer-name-field input:focus{border-color:#83ee51;box-shadow:0 0 0 2px #83ee5122}
@media(max-width:700px){.explorer-stage{grid-template-columns:1fr;grid-template-rows:auto auto auto;text-align:center;padding:18px}.explorer-stage>.iq-person{grid-row:auto;transform:.9}.explorer-card-info{align-self:auto}.explorer-stage>.edit-explorer-button{justify-self:center;align-self:auto}}

/* v128 — Explorer Workshop compact landscape layout, no scroll */
@media(min-width:701px){
.explorer-workshop-shell{height:min(690px,calc(100vh - 70px));overflow:hidden}
.explorer-workshop-shell>.explorer-creator{display:grid;grid-template-columns:270px 1fr;grid-template-rows:1fr auto auto;gap:10px;height:100%}
.explorer-workshop-shell .creator-preview{grid-column:1;grid-row:1/4;min-height:0;padding:14px 16px;justify-content:flex-start}
.explorer-workshop-shell .creator-preview>small{margin-top:4px}
.explorer-workshop-shell .creator-preview>.iq-person{transform:scale(.78);transform-origin:top center;margin:16px auto -25px}
.explorer-workshop-shell .explorer-name-field{margin-top:0}
.explorer-workshop-shell .creator-preview>p{font-size:12px;line-height:1.35;margin:9px auto 0}
.explorer-workshop-shell .creator-controls{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(82px,auto);gap:8px;overflow:visible;align-content:center;padding-right:2px}
.explorer-workshop-shell .creator-controls section{padding:9px 10px;min-width:0}
.explorer-workshop-shell .creator-controls section>div{display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));gap:6px}
.explorer-workshop-shell .creator-controls button{width:100%;min-width:0;padding:7px 5px}
.explorer-workshop-shell .creator-attributes{grid-column:2;grid-row:2}
.explorer-workshop-shell .creator-footer{grid-column:2;grid-row:3}
}

/* v129 — Mobile Explorer Workshop: true internal scroll with reachable footer */
@media(max-width:700px){
.explorer-workshop-modal{position:fixed;inset:0;height:100dvh;padding:8px;overflow:hidden;align-items:stretch}
.explorer-workshop-shell{box-sizing:border-box;width:100%;height:calc(100dvh - 16px);max-height:none;padding:10px 10px 28px;overflow-y:auto!important;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-gutter:stable}
.explorer-workshop-shell>.explorer-creator{display:flex!important;flex-direction:column;height:auto!important;min-height:max-content;gap:10px;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.explorer-workshop-shell .creator-preview{flex:0 0 auto;min-height:330px}
.explorer-workshop-shell .creator-controls,.explorer-workshop-shell .creator-attributes,.explorer-workshop-shell .creator-footer{flex:0 0 auto;width:100%;overflow:visible}
.explorer-workshop-shell .creator-footer{position:relative!important;bottom:auto!important;margin-bottom:24px;padding-bottom:env(safe-area-inset-bottom)}
}

/* v130 — richer Explorer wardrobe */
.creator-coins{align-self:flex-end;margin:-2px 0 2px;padding:7px 10px;border:1px solid #eec95e66;border-radius:10px;background:#08130f;color:#f7db72;font-size:11px;font-weight:900}.creator-coins b{font-size:15px}
.iq-person[data-color=terra]{--skin:#a96543}.iq-person[data-color=copper]{--skin:#c47b46}.iq-person[data-color=night]{--skin:#654634}.iq-person[data-color=sky]{--skin:#6593a7}
.iq-person[data-hair=short] .iq-hair{display:block;height:14px;border-radius:45% 45% 15% 15%}.iq-person[data-hair=mohawk] .iq-hair{display:block;left:49px;width:28px;height:27px;top:-1px;clip-path:polygon(0 100%,15% 38%,32% 70%,48% 0,65% 68%,82% 30%,100% 100%);background:#3b253d}.iq-person[data-hair=dreads] .iq-hair{display:block;left:30px;width:66px;height:53px;top:7px;background:repeating-linear-gradient(90deg,#27211d 0 6px,transparent 6px 10px);border-radius:45% 45% 20% 20%}.iq-person[data-hair=long] .iq-hair{display:block;left:30px;width:66px;height:67px;top:8px;background:#32251e;border-radius:48% 48% 30% 30%}.iq-person[data-hair=curly] .iq-hair{display:block;left:27px;width:72px;height:34px;top:1px;background:radial-gradient(circle,#2a211e 0 55%,transparent 58%) 0 0/18px 18px;border-radius:50%}
.iq-headwear{display:none;position:absolute;z-index:9;left:29px;top:3px;width:68px;height:20px}.iq-person[data-headwear=cap] .iq-headwear{display:block;background:#e2a92b;border:3px solid #17201d;border-radius:13px 13px 5px 5px}.iq-person[data-headwear=cap] .iq-headwear:after{content:"";position:absolute;right:-18px;bottom:-3px;width:25px;height:6px;background:#e2a92b;border:2px solid #17201d;border-radius:4px}.iq-person[data-headwear=explorer] .iq-headwear{display:block;top:0;left:25px;width:76px;height:18px;background:#a68143;border:3px solid #17201d;border-radius:50%}.iq-person[data-headwear=explorer] .iq-headwear:before{content:"";position:absolute;left:17px;top:-12px;width:38px;height:22px;background:#a68143;border:3px solid #17201d;border-radius:9px 9px 3px 3px}.iq-person[data-headwear=beanie] .iq-headwear{display:block;left:35px;width:56px;height:26px;top:0;background:#4d6577;border:3px solid #17201d;border-radius:50% 50% 8px 8px}.iq-person[data-headwear=straw] .iq-headwear{display:block;top:1px;left:22px;width:82px;height:14px;background:#d6b65b;border:3px solid #17201d;border-radius:50%}.iq-person[data-headwear=straw] .iq-headwear:before{content:"";position:absolute;left:21px;top:-13px;width:38px;height:20px;background:#d6b65b;border:3px solid #17201d;border-radius:8px}
.iq-person[data-top=hoodie]{--top:#7d3e88}.iq-person[data-top=field] .iq-torso:after{content:"";position:absolute;inset:8px 7px auto;height:19px;border:2px solid #d8c28b55;border-radius:4px}.iq-person[data-top=space] .iq-torso{box-shadow:inset 0 0 0 5px #a9c5c9}.iq-person[data-top=guard] .iq-torso:after{content:"";position:absolute;left:8px;right:8px;top:9px;height:36px;border:3px solid #d4a758;border-radius:5px}
.iq-pocket{display:none;position:absolute;z-index:5;top:166px;width:20px;height:17px;background:#46545b;border:2px solid #17201d;border-radius:3px}.iq-pocket.left{left:27px}.iq-pocket.right{right:27px}.iq-person[data-bottom=cargo] .iq-pocket,.iq-person[data-bottom=utility] .iq-pocket{display:block}.iq-person[data-bottom=cargo]{--bottom:#52615b}.iq-person[data-bottom=jeans]{--bottom:#365c7b}.iq-person[data-bottom=utility] .iq-pocket{background:#71804b}.iq-person[data-shoes=workboots]{--shoe:#8b572f}
.iq-gear{display:none;position:absolute;z-index:1}.iq-person[data-gear=backpack] .iq-gear{display:block;left:21px;top:79px;width:84px;height:78px;background:#875c34;border:3px solid #17201d;border-radius:16px}.iq-person[data-gear=satchel] .iq-gear{display:block;right:5px;top:115px;width:38px;height:43px;background:#9a6d39;border:3px solid #17201d;border-radius:7px}.iq-person[data-gear=satchel] .iq-gear:before{content:"";position:absolute;width:70px;height:3px;background:#9a6d39;right:15px;top:-34px;transform:rotate(55deg)}.iq-person[data-gear=canteen] .iq-gear{display:block;right:11px;top:140px;width:25px;height:34px;background:#66794d;border:3px solid #17201d;border-radius:7px}.iq-person[data-gear=binoculars] .iq-gear{display:block;left:46px;top:103px;width:35px;height:24px;border-left:12px solid #252c29;border-right:12px solid #252c29;border-radius:6px}
@media(min-width:701px){.explorer-workshop-shell .creator-controls{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(72px,auto);gap:7px}.explorer-workshop-shell .creator-controls section>div{grid-template-columns:repeat(2,minmax(72px,1fr))}.explorer-workshop-shell .creator-controls button{font-size:10px}.explorer-workshop-shell .creator-preview>.iq-person{transform:scale(.72);margin-bottom:-38px}}

/* v131 — desktop Workshop footer visibility */
@media(min-width:701px){
.explorer-workshop-modal{padding:18px;overflow:hidden}
.explorer-workshop-shell{box-sizing:border-box;max-height:calc(100dvh - 36px);overflow-y:auto!important;overflow-x:hidden;padding-bottom:22px;scrollbar-gutter:stable}
.explorer-workshop-shell .explorer-creator{min-height:0;height:auto}
.explorer-workshop-shell .creator-footer{position:relative!important;bottom:auto!important;min-height:52px;margin-top:7px;margin-bottom:4px}
}

/* v132 — Explorer color swatches live with the character */
.explorer-color-dots{display:flex;justify-content:center;align-items:center;gap:8px;margin:-22px auto 12px;position:relative;z-index:12}
.explorer-color-dots button{width:23px;height:23px;min-width:23px;padding:0;border-radius:50%;border:2px solid #ffffff55;box-shadow:0 2px 7px #0007;cursor:pointer;transition:.15s transform,.15s box-shadow}
.explorer-color-dots button:hover{transform:scale(1.13)}.explorer-color-dots button.active{box-shadow:0 0 0 3px #67ef42,0 2px 8px #0009;border-color:#fff}
.explorer-color-dots [data-explorer-color=sun]{background:#d99a54}.explorer-color-dots [data-explorer-color=terra]{background:#a96543}.explorer-color-dots [data-explorer-color=copper]{background:#c47b46}.explorer-color-dots [data-explorer-color=night]{background:#654634}.explorer-color-dots [data-explorer-color=sky]{background:#6593a7}
.creator-controls section:first-child{display:none}

/* v134 — fantasy Explorer patterns; server-synced identity */
.explorer-pattern-dots{display:flex;justify-content:center;align-items:flex-start;gap:7px;margin:-20px auto 12px;position:relative;z-index:12}
.explorer-pattern-dots button{position:relative;width:28px;height:28px;min-width:28px;padding:0;border-radius:50%;border:2px solid #ffffff66;box-shadow:0 2px 7px #0007;cursor:pointer}
.explorer-pattern-dots button.active{box-shadow:0 0 0 3px #67ef42,0 2px 8px #0009;border-color:#fff}.explorer-pattern-dots button span{position:absolute;top:31px;left:50%;transform:translateX(-50%);font-size:6px;font-weight:900;color:#cbd8d2;white-space:nowrap;opacity:0}.explorer-pattern-dots button:hover span,.explorer-pattern-dots button.active span{opacity:1}
.explorer-pattern-dots [data-explorer-pattern=zebra]{background:repeating-linear-gradient(65deg,#f3f0df 0 5px,#202321 5px 9px)}
.explorer-pattern-dots [data-explorer-pattern=giraffe]{background:#d8a64b;background-image:radial-gradient(#744925 35%,transparent 38%);background-size:11px 11px}
.explorer-pattern-dots [data-explorer-pattern=leopard]{background:#d7a23e;background-image:radial-gradient(circle,#30231c 0 22%,transparent 25%);background-size:9px 9px}
.explorer-pattern-dots [data-explorer-pattern=tiger]{background:repeating-linear-gradient(75deg,#df852c 0 7px,#2b211c 7px 10px,#df852c 10px 16px)}
.explorer-pattern-dots [data-explorer-pattern=panda]{background:radial-gradient(circle at 28% 28%,#202321 0 17%,transparent 19%),radial-gradient(circle at 72% 28%,#202321 0 17%,transparent 19%),#eee}
.iq-person[data-pattern=zebra]{--skin:#eee}.iq-person[data-pattern=giraffe]{--skin:#d8a64b}.iq-person[data-pattern=leopard]{--skin:#d7a23e}.iq-person[data-pattern=tiger]{--skin:#df852c}.iq-person[data-pattern=panda]{--skin:#eee}
.iq-person[data-pattern=zebra] .iq-head,.iq-person[data-pattern=zebra] .iq-neck,.iq-person[data-pattern=zebra] .iq-arm:after{background:repeating-linear-gradient(70deg,#eee 0 8px,#303331 8px 11px)}
.iq-person[data-pattern=giraffe] .iq-head,.iq-person[data-pattern=giraffe] .iq-neck,.iq-person[data-pattern=giraffe] .iq-arm:after{background-color:#d8a64b;background-image:radial-gradient(#754923 28%,transparent 32%);background-size:15px 15px}
.iq-person[data-pattern=leopard] .iq-head,.iq-person[data-pattern=leopard] .iq-neck,.iq-person[data-pattern=leopard] .iq-arm:after{background-color:#d7a23e;background-image:radial-gradient(circle,#34251d 0 18%,transparent 21%);background-size:11px 11px}
.iq-person[data-pattern=tiger] .iq-head,.iq-person[data-pattern=tiger] .iq-neck,.iq-person[data-pattern=tiger] .iq-arm:after{background:repeating-linear-gradient(75deg,#df852c 0 10px,#33241c 10px 13px,#df852c 13px 20px)}
.iq-person[data-pattern=panda] .iq-head{background:radial-gradient(circle at 28% 35%,#202321 0 11%,transparent 13%),radial-gradient(circle at 72% 35%,#202321 0 11%,transparent 13%),#eee}.iq-person[data-pattern=panda] .iq-neck,.iq-person[data-pattern=panda] .iq-arm:after{background:#eee}
.creator-controls section:first-child{display:none}

/* v135 — creature heads + reliable touch wardrobe */
.explorer-creatures{margin:-18px auto 13px;width:min(100%,290px);position:relative;z-index:15}.creature-tabs{display:grid;grid-template-columns:5fr 3fr 5fr;gap:4px;margin-bottom:5px}.creature-tabs span{font-size:6px;font-weight:1000;letter-spacing:1px;color:#8da69b;text-align:center}.creature-grid{display:grid;grid-template-columns:repeat(7,32px);justify-content:center;gap:6px}.creature-grid button{touch-action:manipulation;position:relative;width:32px;height:32px;min-width:32px;padding:0;border:1px solid #ffffff33;border-radius:10px;background:#102019;cursor:pointer}.creature-grid button.active{border-color:#8ff35d;box-shadow:0 0 0 2px #54d92d66}.creature-grid button i{display:block;position:absolute;inset:4px;border-radius:48% 48% 42% 42%;background:#d5a45a}.creature-grid button span{display:none}
.creature-zebra i{background:repeating-linear-gradient(70deg,#eee 0 5px,#292d2a 5px 8px)}.creature-giraffe i{background:#d8a64b;background-image:radial-gradient(#754923 30%,transparent 34%);background-size:9px 9px}.creature-leopard i{background:#d7a23e;background-image:radial-gradient(#33241d 0 19%,transparent 22%);background-size:7px 7px}.creature-tiger i{background:repeating-linear-gradient(75deg,#df852c 0 6px,#33241c 6px 8px,#df852c 8px 12px)}.creature-panda i{background:radial-gradient(circle at 27% 32%,#222 0 14%,transparent 17%),radial-gradient(circle at 73% 32%,#222 0 14%,transparent 17%),#eee}
.creature-eagle i{background:linear-gradient(#f5f1db 0 42%,#70472c 43%);clip-path:polygon(8% 18%,30% 4%,50% 17%,70% 4%,92% 18%,84% 90%,16% 90%)}.creature-owl i{background:radial-gradient(circle at 31% 43%,#f0c94f 0 13%,#30271f 15% 23%,transparent 25%),radial-gradient(circle at 69% 43%,#f0c94f 0 13%,#30271f 15% 23%,transparent 25%),#9b7444}.creature-parrot i{background:linear-gradient(135deg,#de4940 0 45%,#2e9a63 46% 70%,#e3bf3f 71%)}
.creature-shark i{background:#668d9b;clip-path:polygon(3% 50%,25% 17%,72% 24%,98% 5%,88% 50%,98% 95%,72% 76%,25% 83%)}.creature-octopus i{background:#9b5a9e;border-radius:50% 50% 35% 35%;box-shadow:-7px 12px 0 -5px #9b5a9e,0 13px 0 -5px #9b5a9e,7px 12px 0 -5px #9b5a9e}.creature-dolphin i{background:#72a9b8;clip-path:polygon(3% 60%,26% 30%,65% 25%,95% 7%,82% 42%,96% 65%,62% 58%,25% 76%)}.creature-whale i{background:#4e7184;border-radius:55% 45% 48% 52%;clip-path:polygon(0 28%,78% 20%,100% 0,92% 40%,100% 74%,77% 58%,20% 78%)}.creature-turtle i{background:radial-gradient(ellipse,#658452 0 50%,#3f5c38 52% 66%,transparent 68%),linear-gradient(90deg,transparent 0 10%,#66895b 11% 90%,transparent 91%)}
.iq-person[data-pattern=eagle]{--skin:#e7ddbd}.iq-person[data-pattern=owl]{--skin:#9b7444}.iq-person[data-pattern=parrot]{--skin:#de6150}.iq-person[data-pattern=shark]{--skin:#668d9b}.iq-person[data-pattern=octopus]{--skin:#9b5a9e}.iq-person[data-pattern=dolphin]{--skin:#72a9b8}.iq-person[data-pattern=whale]{--skin:#4e7184}.iq-person[data-pattern=turtle]{--skin:#658452}
.explorer-workshop-modal button[data-explorer-part],.explorer-workshop-modal button[data-explorer-pattern]{touch-action:manipulation;-webkit-tap-highlight-color:transparent;pointer-events:auto!important}
@media(max-width:700px){.creature-grid{grid-template-columns:repeat(7,30px);gap:5px}.creature-grid button{width:30px;height:30px;min-width:30px}.explorer-workshop-shell .creator-controls button{pointer-events:auto!important;touch-action:manipulation;position:relative;z-index:3}}

/* v136 — larger recognizable creature cards on desktop */
@media(min-width:701px){
 .explorer-creatures{width:100%;max-width:310px;margin:-12px auto 18px}
 .creature-tabs{grid-template-columns:5fr 3fr 5fr;margin-bottom:7px}
 .creature-tabs span{font-size:7px;letter-spacing:1.4px}
 .creature-grid{grid-template-columns:repeat(5,48px);gap:8px;justify-content:center}
 .creature-grid button{width:48px;height:52px;min-width:48px;border-radius:12px}
 .creature-grid button i{inset:5px 7px 13px}
 .creature-grid button span{display:block;position:absolute;left:2px;right:2px;bottom:3px;font-size:5.5px;line-height:1;color:#d9e5df;font-weight:900;text-align:center;white-space:nowrap;overflow:hidden}
}
@media(max-width:700px){
 .explorer-creatures{width:100%;max-width:300px;margin:-12px auto 16px}
 .creature-grid{grid-template-columns:repeat(5,42px);gap:7px}
 .creature-grid button{width:42px;height:45px;min-width:42px;border-radius:11px}
 .creature-grid button i{inset:4px 6px 11px}
 .creature-grid button span{display:block;position:absolute;left:1px;right:1px;bottom:2px;font-size:5px;color:#d9e5df;font-weight:900;white-space:nowrap;overflow:hidden}
}

/* v138 — interactive 3D Explorer preview */
.explorer-3d{position:relative;width:100%;height:285px;margin:8px auto 4px;border-radius:18px;background:radial-gradient(circle at 50% 35%,#254037 0,#12241f 45%,#09120f 78%);overflow:hidden;touch-action:none;cursor:grab;border:1px solid #ffffff12}.explorer-3d:active{cursor:grabbing}.explorer-3d canvas{display:block;width:100%!important;height:100%!important}.explorer-3d-help{position:absolute;z-index:3;left:0;right:0;bottom:7px;text-align:center;font-size:7px;letter-spacing:1px;font-weight:900;color:#a7bdb3;pointer-events:none}.explorer-2d-fallback{display:none}.explorer-3d.no-webgl{display:none}.explorer-3d.no-webgl+.explorer-2d-fallback{display:block}.explorer-3d.no-webgl+.explorer-2d-fallback .iq-person{margin-top:12px}
@media(min-width:701px){.creator-preview{padding-top:14px}.explorer-3d{height:300px}.explorer-creatures{margin:4px auto 18px}}
@media(max-width:700px){.explorer-3d{height:240px}.explorer-creatures{margin:4px auto 16px}}

/* v146 Mission Control Weekly Quest hub — no long-scroll tools */
.weekly-hub{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 18px}.weekly-hub button{border:1px solid #ffffff20;background:#07120dbd;color:#b8c4bd;border-radius:999px;padding:10px 15px;font-weight:900;letter-spacing:.06em}.weekly-hub button.active{border-color:#e8b52e;color:#ffd25b;background:#332b0e}
.weekly-popup{display:none!important;position:fixed!important;inset:0!important;z-index:250!important;background:#020806b8!important;backdrop-filter:blur(8px);padding:clamp(18px,5vw,70px)!important;margin:0!important;overflow:auto!important;box-sizing:border-box}
.weekly-popup.open{display:block!important}.weekly-popup>*{max-width:900px;margin-left:auto;margin-right:auto}.weekly-popup>small,.weekly-popup>h3,.weekly-popup>p,.weekly-popup>.mc-week-row,.weekly-popup>.extra-grid,.weekly-popup>#mcExtraPublish,.weekly-popup>#mcExtraStatus,.weekly-popup>.weekly-plan-grid,.weekly-popup>#mcWeeklySave,.weekly-popup>#mcWeeklyPlanStatus{position:relative;display:block}
.weekly-popup:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(940px,calc(100% - 36px));height:min(720px,calc(100% - 36px));background:#081711f5;border:1px solid #d7a92c88;border-radius:24px;box-shadow:0 30px 80px #000b}
.weekly-popup-close{position:relative!important;z-index:2;float:right;width:44px;height:44px;border-radius:50%;border:1px solid #ffffff35;background:#0c1915;color:#fff;font-size:25px}
.weekly-plan-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:13px;clear:both}.weekly-plan-grid label{display:grid;gap:6px;font-size:11px;font-weight:900;color:#f0c541}.weekly-plan-grid .wide{grid-column:1/-1}.weekly-plan-grid input,.weekly-plan-grid textarea{width:100%;box-sizing:border-box;background:#07120d;color:#fff;border:1px solid #ffffff25;border-radius:11px;padding:11px;font:inherit}.weekly-popup h3{font-size:28px;margin-top:8px}.weekly-popup p{color:#c6d1cb}
#mcWeeklySave{margin-top:14px;padding:12px 18px;border-radius:11px;font-weight:900}
#mcReviewView{overflow:hidden}.mc-week-controls:not(.open),.extra-credit:not(.open){display:none!important}
@media(max-width:700px){.weekly-hub{display:grid;grid-template-columns:1fr 1fr}.weekly-hub button{font-size:10px;padding:9px}.weekly-popup{padding:18px!important}.weekly-popup:before{width:calc(100% - 18px);height:calc(100% - 18px)}.weekly-plan-grid{grid-template-columns:1fr}.weekly-plan-grid .wide{grid-column:auto}}

/* v147 Weekly Plan control panel */
.weekly-plan-intro{font-size:17px!important;line-height:1.45}.weekly-source-bar{position:relative;display:flex!important;align-items:center;gap:16px;max-width:900px!important;margin:18px auto!important;padding:12px 14px;background:#0c1b15;border:1px solid #ffffff1f;border-radius:14px}.weekly-upload{cursor:pointer;background:#e7b62e;color:#07120d;padding:11px 15px;border-radius:10px;font-weight:1000;font-size:13px}.weekly-upload input{display:none}.weekly-source-bar span{font-size:14px;color:#c5d0ca}.weekly-plan-top{position:relative;max-width:900px!important;margin:0 auto 14px!important}.weekly-plan-top label,.weekly-subject-panel label{display:grid;gap:8px;color:#ffd14c;font-size:13px;font-weight:1000;letter-spacing:.03em}.weekly-plan-top input,.weekly-subject-panel textarea{width:100%;box-sizing:border-box;background:#07120d;color:#fff;border:1px solid #ffffff2c;border-radius:12px;padding:14px;font:600 16px/1.4 inherit}.weekly-subject-tabs{position:relative;display:grid!important;grid-template-columns:repeat(6,1fr);gap:8px;max-width:900px!important;margin:14px auto!important}.weekly-subject-tabs button{min-height:52px;border:1px solid #ffffff22;border-radius:12px;background:#0b1813;color:#c3cec8;font-size:12px;font-weight:1000}.weekly-subject-tabs button.active{border-color:#e7b62e;background:#332b0e;color:#ffd14c}.weekly-subject-panel{position:relative;display:none!important;max-width:900px!important;margin:0 auto!important;padding:18px;background:#0a1812;border:1px solid #ffffff18;border-radius:16px}.weekly-subject-panel.active{display:block!important}.weekly-subject-panel textarea{min-height:150px;resize:vertical}.weekly-plan-actions{position:relative;display:flex!important;justify-content:flex-end;gap:12px;max-width:900px!important;margin:16px auto 0!important}.weekly-plan-actions button{padding:13px 18px;border-radius:11px;font-size:14px;font-weight:1000}.weekly-plan-actions #mcWeeklyPublish{background:#e7b62e;color:#07120d;border-color:#e7b62e}
@media(max-width:850px){.weekly-subject-tabs{grid-template-columns:repeat(3,1fr)}}@media(max-width:520px){.weekly-subject-tabs{grid-template-columns:repeat(2,1fr)}.weekly-source-bar{align-items:flex-start;flex-direction:column}.weekly-plan-actions{flex-direction:column}.weekly-plan-actions button{width:100%}}

/* Weekly Control: compact, explicit two-action flow */
.weekly-control-intro{max-width:760px}.weekly-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.weekly-control-card{border:1px solid rgba(255,214,70,.28);border-radius:18px;padding:20px;background:rgba(3,22,15,.72);display:grid;gap:12px;align-content:start}.weekly-control-card h4{font-size:22px;margin:0;color:#fff}.weekly-control-card small{color:#ffd84c;font-weight:900;letter-spacing:.08em}.weekly-control-card label{display:grid;gap:6px;font-size:12px;font-weight:800}.weekly-control-card input{min-height:46px;border-radius:10px}.coin-balance-line{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.055)}.coin-balance-line b{font-size:22px;color:#ffd84c}.weekly-control-actions{display:flex;gap:10px}.weekly-control-actions button{flex:1;min-height:48px}.control-help{font-size:12px;opacity:.72;margin:0}.danger-card{border-color:rgba(219,105,58,.55)}.danger-card #mcResetWeek{background:#8f3e27;color:#fff;min-height:48px}.mc-week-controls.weekly-popup{max-width:860px!important;min-height:0!important;height:auto!important;padding-bottom:28px!important}@media(max-width:760px){.weekly-control-grid{grid-template-columns:1fr}.weekly-control-actions{flex-direction:column}}

/* v154 — Weekly Control popup card must stay behind its controls */
.mc-week-controls.weekly-popup{max-width:none!important;height:100%!important;min-height:100%!important;padding:clamp(24px,5vw,70px)!important;overflow:auto!important}
.mc-week-controls.weekly-popup:before{z-index:0!important;height:auto!important;min-height:460px!important;top:50%!important}
.mc-week-controls.weekly-popup.open>*{position:relative!important;z-index:2!important}
.mc-week-controls .weekly-control-grid{position:relative!important;z-index:2!important;clear:both;max-width:900px!important;margin:18px auto 0!important}
.mc-week-controls #mcWeekStatus{position:relative!important;z-index:2!important;max-width:900px!important;margin:14px auto 0!important}
@media(min-width:761px){.mc-week-controls.weekly-popup:before{width:min(940px,calc(100% - 36px))!important}}

/* v155 — Weekly Control: remove inherited pseudo-card that was covering content */
.mc-week-controls.weekly-popup:before{display:none!important;content:none!important}
.mc-week-controls.weekly-popup{background:#020806e8!important;padding:clamp(24px,5vw,64px)!important}
.mc-week-controls.weekly-popup.open>*{position:relative!important;z-index:auto!important;max-width:900px!important;margin-left:auto!important;margin-right:auto!important}
.mc-week-controls.weekly-popup>.weekly-popup-close{position:fixed!important;right:clamp(20px,5vw,70px)!important;top:clamp(20px,4vw,54px)!important;z-index:5!important;margin:0!important}
.mc-week-controls .weekly-control-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;background:#081711f5;border:1px solid #d7a92c88;border-radius:20px;padding:18px!important;box-sizing:border-box}
.mc-week-controls .weekly-control-card{position:relative!important;z-index:1!important;opacity:1!important}
@media(max-width:760px){.mc-week-controls .weekly-control-grid{grid-template-columns:1fr!important}}

/* v156 — explicit Weekly Control layout; no inherited popup overlay */
.mc-week-controls.weekly-popup.open{display:block!important;position:fixed!important;inset:0!important;z-index:10020!important;background:rgba(0,8,5,.97)!important;padding:clamp(28px,5vw,64px)!important;box-sizing:border-box!important;overflow:auto!important;color:#f4f5f2!important}
.mc-week-controls.weekly-popup.open:before,.mc-week-controls.weekly-popup.open:after{display:none!important;content:none!important}
.mc-week-controls.weekly-popup.open>small,.mc-week-controls.weekly-popup.open>h3,.mc-week-controls.weekly-popup.open>.weekly-control-intro,.mc-week-controls.weekly-popup.open>.weekly-control-grid,.mc-week-controls.weekly-popup.open>#mcWeekStatus{position:relative!important;z-index:2!important;display:block!important;visibility:visible!important;opacity:1!important;max-width:900px!important;margin-left:auto!important;margin-right:auto!important}
.mc-week-controls.weekly-popup.open>.weekly-control-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;margin-top:22px!important;padding:0!important;background:transparent!important;border:0!important}
.mc-week-controls.weekly-popup.open .weekly-control-card{display:flex!important;flex-direction:column!important;gap:12px!important;visibility:visible!important;opacity:1!important;min-height:310px!important;padding:22px!important;background:#0a1b14!important;border:1px solid rgba(255,211,62,.38)!important;border-radius:18px!important;box-sizing:border-box!important;color:#f4f5f2!important}
.mc-week-controls.weekly-popup.open .weekly-control-card>*{visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important}
.mc-week-controls.weekly-popup.open .weekly-control-card input{display:block!important;background:#07120d!important;color:#fff!important;border:1px solid #ffffff35!important}
.mc-week-controls.weekly-popup.open .weekly-control-card button{display:block!important;visibility:visible!important;opacity:1!important}
@media(max-width:760px){.mc-week-controls.weekly-popup.open>.weekly-control-grid{grid-template-columns:1fr!important}}

/* v157 readability + weekly spelling sentence coach */
.escape-letters{gap:10px!important}.escape-letters button{min-width:52px!important;min-height:52px!important;font-size:22px!important;font-weight:1000!important}.escape-word span{font-size:clamp(28px,4vw,48px)!important;min-width:30px!important}.escape-spell input,.escape-context textarea{font-size:20px!important}.school-prompt{font-size:clamp(22px,2.5vw,34px)!important}.math-expression{display:flex;align-items:center;justify-content:center;gap:16px;font-size:clamp(30px,5vw,58px);font-weight:1000;margin:18px 0}.math-expression input{width:180px;max-width:34vw;font:inherit;text-align:center;background:#07140e;color:#fff;border:2px solid #f5b536;border-radius:14px;padding:8px}.math-keypad{display:grid!important;grid-template-columns:repeat(3,minmax(58px,92px))!important;justify-content:center!important;gap:9px!important}.math-keypad button{font-size:24px!important;min-height:54px!important}.sentence-coach{display:grid;gap:7px;margin:12px 0;padding:14px;border:1px solid #ffffff22;border-radius:14px;background:#07150f}.sentence-coach b{color:#f5c43d}.sentence-coach span{font-size:15px;opacity:.65}.sentence-coach span.done{opacity:1;color:#86ee9c}.escape-context button:disabled{opacity:.4;cursor:not-allowed}

/* v159: clean Main Stage + focused Weekly Mission */
.world-actions{display:none!important}.weekend-view.mission-active .weekly-hub{display:none!important}.mission-focus-head{margin:0 0 12px;padding:10px 14px;border:1px solid #f5b53655;border-radius:14px;background:#0b1714}.mission-focus-head small{color:#f5b536;font-weight:900;letter-spacing:.12em}.mission-focus-head p{margin:4px 0 0;font-size:14px;color:#dce7df}.weekly-mission:not([hidden]){display:block!important}.weekly-mission .school-prompt,.weekly-mission .math-expression{font-size:clamp(24px,3vw,42px)}

/* v160: Weekly Quest is a true two-screen flow. The chooser can never coexist with an active mission. */
.weekend-view.mission-active #weeklyHub,.weekend-view.mission-active .weekly-hub,.weekend-view.mission-active .weekly-doors{display:none!important;visibility:hidden!important}.weekend-view.mission-active #weeklyMission{display:block!important}.weekend-view:not(.mission-active) #weeklyMission{display:none!important}
