/* Explorer Profile v1.1.1: filter the illustration alone; preserve the functional UI. */
body.explorer-view{background:#dce9df!important;color:#12385d;padding:0!important;overflow-y:auto!important;height:auto!important}
body.explorer-view::before,body.explorer-view::after{display:none!important}
body.explorer-view .shell{display:block!important;max-width:none!important;width:100%!important;min-height:100dvh;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important}
body.explorer-view #main{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;overflow:visible!important}
body.explorer-view #main::before,body.explorer-view #main::after,body.explorer-view .shell::before,body.explorer-view .shell::after{display:none!important}
body.explorer-view .shell>footer{display:none!important}
.explorer-scene{position:relative;isolation:isolate;box-sizing:border-box;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;gap:28px;padding:max(24px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(48px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}
.explorer-scene *{box-sizing:border-box}
.explorer-backdrop{position:absolute;inset:0;z-index:-2;pointer-events:none;background:url('assets/world/explorer-garden.webp') center/cover no-repeat;filter:saturate(.86) contrast(.95) brightness(1.025)}
.explorer-scene::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 40%,#f5fbff38 0%,#f5fbff0f 58%,transparent 90%),linear-gradient(180deg,#edf8ff12,#fff9ec08 68%,#e4efd90d)}
.explorer-heading{text-align:center;align-self:start;justify-self:center;max-width:100%;color:#153d69}
.explorer-logo{display:block;width:clamp(210px,18vw,300px);height:auto;margin:0 auto 10px}
.explorer-heading h1{font-size:clamp(30px,2.8vw,46px);line-height:1.15;margin:0 0 12px;font-weight:900;color:#fff;letter-spacing:-.8px;-webkit-text-stroke:3px #174473;paint-order:stroke fill;text-shadow:0 2px 0 #174473,0 4px 8px #173d6b26;overflow-wrap:anywhere}
.explorer-heading>p{display:inline-block;max-width:100%;margin:0;padding:8px 18px;border-radius:999px;background:#fffdf6e6;color:#254c70;font-size:clamp(14px,1.15vw,18px);font-weight:600;line-height:1.45}
.explorer-content{min-width:0;width:100%;align-self:center;justify-self:center}
.explorer-gallery{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:24px;width:100%;max-width:1120px;margin:auto}
.explorer-card{flex:0 1 340px;width:340px;max-width:100%;min-width:0;background:#fffdf7f7;border:1px solid #c4e6ee;border-radius:28px;padding:14px;box-shadow:0 5px 8px #36596d0d,0 14px 32px #23475c21;overflow:hidden}
.explorer-start{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;padding:0 0 4px;min-width:0;background:none;border:0;color:#123d6c;cursor:pointer;font:inherit}
.explorer-card-avatar{display:block;width:100%;height:clamp(210px,27vh,290px);object-fit:contain;border-radius:19px;background:linear-gradient(145deg,#d2f0f7,#b9e6ed)}
.explorer-card:nth-child(2n) .explorer-card-avatar{background:linear-gradient(145deg,#fcf0e5,#f1dfe4)}
.explorer-start h2{font:900 clamp(25px,2.1vw,34px)/1.2 ui-rounded,'Trebuchet MS',system-ui,sans-serif;margin:0;width:100%;overflow-wrap:anywhere}
.explorer-grade{background:#e1f1f6;color:#31546e;border-radius:50px;padding:5px 15px;font-size:15px;font-weight:700}
.explorer-play,.explorer-submit{display:block;width:100%;border:1px solid #278536;border-radius:18px;background:linear-gradient(180deg,#74c82e,#319d35);box-shadow:inset 0 2px 0 #edffc28c,0 3px 0 #287c3433;color:#fff;text-shadow:0 1px 1px #24602a66;font-weight:800;font-size:24px;line-height:1.2;padding:12px 16px;text-align:center}
.explorer-edit,.explorer-back{color:#26577c;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer;min-height:44px;padding:9px 18px}
.explorer-edit{display:block;min-width:64%;max-width:100%;margin:8px auto 0;border:1px solid #dde6e9;border-radius:999px;background:#fffdfb;box-shadow:0 2px 4px #26465b12;text-decoration:none}
.explorer-back{border:0;background:transparent;text-decoration:none}
.explorer-start:disabled{cursor:default;filter:saturate(.6)}
.explorer-lock-note{font:500 13px/1.5 system-ui,sans-serif;text-align:center;color:#535968;background:#fff6e4;border-radius:12px;padding:9px;margin:8px 0 0}
.explorer-guide{position:absolute;left:clamp(24px,7vw,140px);bottom:58px;display:flex;align-items:flex-start;gap:0;width:260px;max-width:22vw;pointer-events:none}
.explorer-robot{display:block;width:140px;max-width:54%;height:auto;align-self:end;filter:drop-shadow(0 5px 6px #2147601a)}
.explorer-speech{max-width:170px;min-width:0;margin:0 0 112px -8px;border:1px solid #c4deeb;border-radius:18px 18px 18px 4px;padding:12px;background:#fffef9f5;color:#23466d;box-shadow:0 5px 15px #27485b12;font:700 14px/1.4 ui-rounded,system-ui,sans-serif;overflow-wrap:anywhere}
.explorer-family-status{margin:4px 0 10px;padding:4px 8px;font:500 13px/1.5 system-ui,sans-serif;color:#536578;overflow-wrap:anywhere}
body.explorer-view .family-menu{position:absolute;top:max(16px,env(safe-area-inset-top));bottom:auto;left:auto;right:max(20px,env(safe-area-inset-right));z-index:170}
body.explorer-view .family-menu>summary{border:1px solid #e2edf1;box-shadow:0 4px 14px #23405e1f;font-size:14px;padding:13px 18px;min-height:48px}
body.explorer-view .family-menu-panel{top:calc(100% + 10px);bottom:auto;left:auto;right:0;width:260px;min-width:0;max-width:calc(100vw - 32px)}
.explorer-scene :focus-visible{outline:3px solid #1756bc;outline-offset:4px}
@media(hover:hover){.explorer-edit:hover{background:#f1f8f8}.explorer-start:not(:disabled):hover .explorer-play{background:linear-gradient(#65bc27,#278c2f)}}
@media(min-width:901px) and (max-height:800px){.explorer-scene{gap:20px;padding-top:20px;padding-bottom:30px}.explorer-logo{width:210px;margin-bottom:6px}.explorer-heading h1{font-size:34px;margin-bottom:8px}.explorer-heading>p{font-size:15px;padding:6px 16px}.explorer-card{flex-basis:310px;width:310px;padding:12px}.explorer-card-avatar{height:210px}.explorer-start{gap:8px}.explorer-start h2{font-size:28px}.explorer-guide{bottom:40px;width:210px;max-width:20vw}.explorer-robot{width:112px}.explorer-speech{font-size:13px;padding:10px;margin-bottom:92px}}
@media(max-width:1100px){.explorer-guide{position:relative;grid-row:3;justify-self:center;left:auto;bottom:auto;width:260px;max-width:100%;align-items:center}.explorer-robot{width:82px}.explorer-speech{max-width:180px;margin:0;padding:10px;font-size:13px}.explorer-scene{grid-template-rows:auto 1fr auto}.explorer-gallery{gap:18px}.explorer-card{flex-basis:300px;width:300px}}
@media(max-width:900px){.explorer-backdrop{background-image:url('assets/world/explorer-garden-portrait.webp')}.explorer-scene{gap:24px;padding:80px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.explorer-logo{width:220px;margin-bottom:8px}.explorer-heading h1{font-size:32px;letter-spacing:-.6px;margin-bottom:10px}.explorer-heading>p{font-size:14px;padding:8px 15px;max-width:420px}.explorer-card-avatar{height:240px}.explorer-guide{margin-top:0}body.explorer-view .family-menu{top:max(12px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right))}}
@media(max-width:600px){.explorer-scene{gap:20px;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}.explorer-logo{width:200px}.explorer-heading h1{font-size:29px}.explorer-heading>p{font-size:13px;max-width:330px;border-radius:18px}.explorer-gallery{flex-direction:column;align-items:center;gap:18px}.explorer-card{flex:0 0 auto;width:290px;border-radius:24px;padding:12px}.explorer-card-avatar{height:220px;border-radius:16px}.explorer-start h2{font-size:28px}.explorer-play{font-size:22px;min-height:48px}.explorer-grade{font-size:14px}.explorer-guide{width:240px}.explorer-robot{width:72px}.explorer-speech{font-size:12px;padding:9px 11px}.explorer-creating .explorer-guide{display:none}}
@media(max-width:360px){.explorer-scene{padding-top:74px}.explorer-logo{width:175px}.explorer-heading h1{font-size:26px}.explorer-card{width:270px}.explorer-card-avatar{height:200px}}
@media(prefers-reduced-motion:reduce){.explorer-scene *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.explorer-form{border:3px solid #d6edf3;border-radius:30px;background:#fffdf7fa;padding:24px;box-shadow:0 12px 24px #184f6229;display:grid;gap:12px;max-width:780px;margin:auto;color:#123a68;text-align:left}
.explorer-form>label,.explorer-avatar-picker legend{font-size:20px;font-weight:800;line-height:1.4}
.explorer-form input:not([type=radio]),.explorer-form select{width:100%;min-height:54px;padding:12px 16px;border:2px solid #c9dae6;background:#fff;border-radius:18px;color:#193b63;font:500 17px/1.4 system-ui,sans-serif;margin:0 0 6px;scroll-margin-block:24px}
.explorer-avatar-picker{min-width:0;border:0;padding:0;margin:0}
.explorer-avatar-picker legend{padding:0;margin-bottom:10px}
.explorer-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.explorer-avatar-choice{position:relative;display:block;cursor:pointer;min-width:0;background:linear-gradient(135deg,#d6f6fd,#eff7d5);border-radius:18px;overflow:hidden}
.explorer-avatar-choice:nth-child(3n){background:linear-gradient(135deg,#fff0c4,#ffecd5)}
.explorer-avatar-choice:nth-child(3n + 1){background:linear-gradient(135deg,#ccefff,#dae7ff)}
.explorer-avatar-choice img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.explorer-avatar-choice input{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:100%;margin:0;border:3px solid transparent;border-radius:18px;cursor:pointer;z-index:1;background:transparent}
.explorer-avatar-choice input:checked{border:4px solid #308515;box-shadow:inset 0 0 0 3px #fff}
.explorer-avatar-check{display:none;position:absolute;right:4px;top:4px;background:#247c13;color:white;border:2px solid #fff;border-radius:50%;width:26px;height:26px;place-items:center;font-weight:900;pointer-events:none}
.explorer-avatar-choice input:checked~.explorer-avatar-check{display:grid}
.explorer-submit{cursor:pointer;min-height:58px;margin-top:5px}
.explorer-submit:disabled{cursor:wait;filter:saturate(.4)}
.explorer-status{margin:0;font:600 15px/1.5 system-ui,sans-serif;color:#8d263d;overflow-wrap:anywhere}
.explorer-status:empty{display:none}
.explorer-scene :focus-visible{outline:3px solid #1756bc;outline-offset:4px}
.explorer-avatar-choice input:focus-visible{outline-offset:-6px}
.explorer-form .explorer-back{justify-self:start;padding-left:0}
/* Parent tools are refreshed each time the chooser renders, and hidden on learning routes. */
.explorer-family-tools{display:none}
body.explorer-view .explorer-family-tools{display:block}
.explorer-form{max-width:620px;border-width:1px;box-shadow:0 12px 28px #23475c1c}
.explorer-multiple{grid-template-rows:auto 1fr auto;gap:18px}
.explorer-multiple .explorer-guide{position:relative;grid-row:3;justify-self:start;left:auto;bottom:auto;width:260px;max-width:100%;align-items:center}
.explorer-multiple .explorer-robot{width:60px}
.explorer-multiple .explorer-speech{margin:0;max-width:190px;font-size:12px;padding:8px 10px}
@media(max-width:900px){.explorer-form{padding:20px;gap:12px}.explorer-avatar-grid{gap:8px}.explorer-form>label,.explorer-avatar-picker legend{font-size:18px}.explorer-multiple .explorer-guide{justify-self:center}}
@media(max-width:360px){.explorer-avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.explorer-form{padding:16px}}
/* Keep mobile content in natural document flow as Safari's toolbars resize it. */
@media(max-width:900px){
 .explorer-scene{grid-template-rows:auto auto auto;align-content:start;gap:16px;padding-top:calc(60px + env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .explorer-content{align-self:start}
 .explorer-heading{width:100%}
 .explorer-logo{width:190px;margin-bottom:5px}
 .explorer-heading h1{font-size:30px;margin-bottom:6px}
 .explorer-heading>p{font-size:14px;line-height:1.4;padding:6px 14px}
 .explorer-guide,.explorer-multiple .explorer-guide{justify-self:center;align-items:center;gap:6px;margin:0;width:auto;max-width:min(100%,290px)}
 .explorer-robot,.explorer-multiple .explorer-robot{width:64px;max-width:64px;flex-shrink:0}
 .explorer-speech,.explorer-multiple .explorer-speech{max-width:205px;min-width:0;margin:0;font-size:13px;padding:9px 12px}
 body.explorer-view .family-menu{top:calc(10px + env(safe-area-inset-top))}
 body.explorer-view .family-menu>summary{font-size:13px;min-height:44px;padding:11px 15px}
}
@media(max-width:600px){
 .explorer-scene{gap:14px;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
 .explorer-logo{width:clamp(152px,42vw,174px);margin-bottom:4px}
 .explorer-heading h1{font-size:clamp(25px,6.7vw,28px);line-height:1.16;letter-spacing:-.5px}
 .explorer-heading>p{max-width:330px;font-size:13px;line-height:1.4;padding:5px 12px;border-radius:16px}
 .explorer-card{width:100%;max-width:310px;padding:10px;border-radius:23px}
 .explorer-card-avatar{height:clamp(154px,23svh,184px);object-fit:contain;border-radius:15px}
 .explorer-start{gap:6px;padding-bottom:2px}
 .explorer-start h2{font-size:26px;line-height:1.16}
 .explorer-grade{font-size:14px;padding:4px 13px}
 .explorer-play{font-size:22px;min-height:48px;line-height:1.2;padding:10px 14px;border-radius:16px}
 .explorer-edit{min-height:44px;margin-top:6px;padding:9px 16px}
 .explorer-guide,.explorer-multiple .explorer-guide{max-width:270px}
 .explorer-robot,.explorer-multiple .explorer-robot{width:58px;max-width:58px}
 .explorer-speech,.explorer-multiple .explorer-speech{font-size:12px;padding:8px 10px}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:600px){
 .explorer-scene{padding-top:calc(60px + env(safe-area-inset-top));gap:12px}
 .explorer-logo{width:150px}
 .explorer-heading h1{font-size:26px}
 .explorer-heading>p{font-size:13px}
 .explorer-card-avatar{height:154px}
}
@media(min-width:1101px){.explorer-guide{width:280px;max-width:24vw}.explorer-robot{flex-shrink:0}.explorer-speech{min-width:140px}.explorer-multiple .explorer-guide{width:270px}.explorer-multiple .explorer-speech{min-width:0}}
