@font-face{font-family:Fredoka;src:url("./assets/fredoka.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:Nunito;src:url("./assets/nunito.woff2") format("woff2");font-style:normal;font-weight:400 900;font-display:swap}
:root{color-scheme:light;--bg:#f7f4ff;--white:#fff;--ink:#392654;--sub:#625579;--purple:#6943c5;--purple-dark:#5934b4;--lavender:#eee5ff;--line:#e8ddf5;--mint:#d8f3e6;--mint-ink:#17644e;--rose:#ffe3ed;--rose-ink:#8b3a63;--sun:#ffedbd;--sun-ink:#754800;--shadow:0 5px 16px #5030820b;--heading:Fredoka,"Trebuchet MS",sans-serif;--body:Nunito,system-ui,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%;scroll-padding:1rem}
body{margin:0;min-width:300px;min-height:100vh;background:radial-gradient(ellipse at 50% 220px,#fdfbff 0%,transparent 69%),var(--bg);color:var(--ink);font:600 1.01rem/1.5 var(--body);overflow-wrap:anywhere}
button,input,select,textarea{font:inherit}
button{color:inherit;cursor:pointer}
button:disabled{cursor:default}
a{color:var(--purple-dark)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #8d5de9;outline-offset:3px}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-family:var(--heading);font-weight:590;line-height:1.1;letter-spacing:.006em}
h1{font-size:clamp(2rem,4.6vw,3rem)} h2{font-size:clamp(1.5rem,3.4vw,2.12rem)} h3{font-size:1.35rem} h4{font-size:1.13rem}
p{color:var(--sub)}
img{display:block;max-width:100%}
progress{appearance:none;display:block;width:100%;height:9px;border:0;border-radius:100px;background:#eae0fa;overflow:hidden}
progress::-webkit-progress-bar{background:#eae0fa;border-radius:100px}
progress::-webkit-progress-value{background:#9569e4;border-radius:100px}
progress::-moz-progress-bar{background:#9569e4;border-radius:100px}
.icon{width:23px;height:23px;flex:0 0 auto;vertical-align:middle}
.skip-link{position:fixed;z-index:50;top:.4rem;left:.4rem;padding:.7rem 1rem;background:white;border-radius:10px;transform:translateY(-120%)}
.skip-link:focus{transform:none}
.main:focus{outline:none}
.top{background:#ffffffed;border-bottom:1px solid #eee6f9}
.top-inner{max-width:1240px;padding:13px 32px;margin:auto;min-height:73px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-align:left;padding:0;background:none;border:0;min-height:46px;color:#5b39a9;flex-shrink:0}
.brand img{width:43px;height:43px;box-shadow:0 3px 7px #6847a634;border-radius:12px}
.brand-name{display:grid;line-height:.95;white-space:nowrap}
.brand-name strong{font:650 1.32rem/1.05 var(--heading);letter-spacing:.005em}
.brand-name small{margin-top:4px;font-size:.63rem;letter-spacing:.21em;color:#7452a9;font-weight:900}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.player-chip{background:#f8f3ff;border:1px solid #e9ddf9;border-radius:17px;padding:4px 10px 4px 5px;display:inline-flex;min-height:46px;align-items:center;gap:8px;line-height:1;text-align:left;font-weight:850;white-space:nowrap}
.player-chip:hover,.round-btn:hover{background:#f0e7ff}
.player-chip .tile-icon{width:34px;height:34px;border-radius:11px}
.player-chip .tile-icon .icon{width:20px;height:20px}
.player-chip .chev{width:16px;height:16px;color:#7558a7}
.player-name{display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.player-caption{color:#745f92;font-size:.73rem;letter-spacing:.01em;font-weight:800;display:block;margin-top:4px}
.round-btn{background:#fff;border:1px solid var(--line);padding:0;min-width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:var(--purple-dark)}
.round-btn .icon{width:20px;height:20px}
.main{max-width:1240px;margin:auto;padding:28px 32px max(110px,calc(94px + env(safe-area-inset-bottom)))}
.main.narrow{max-width:950px}
.welcome-row{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 0 22px}
.welcome-row h1{font-size:clamp(2rem,4.5vw,2.9rem)}
.welcome-row h1 .icon{color:#e6a63d;width:.58em;height:.58em;margin-left:4px;vertical-align:.12em}
.welcome-row p{margin-top:3px}
.progress-card{display:flex;align-items:center;gap:12px;padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);min-width:300px}
.progress-card .tile-icon{width:42px;height:42px;border-radius:13px;flex-shrink:0}
.progress-card .tile-icon .icon{width:22px;height:22px}
.progress-stats{flex:1;min-width:104px}
.progress-stats strong{display:block;color:var(--ink);font-family:var(--heading);font-weight:560;line-height:1.1}
.progress-stats progress{margin-top:6px}
.coin-badge{display:inline-flex;align-items:center;gap:6px;text-align:left;font-weight:900;font-size:.88rem;letter-spacing:.01em;white-space:nowrap;color:#6b4709}
.coin-symbol{display:inline-grid;place-items:center;width:25px;height:25px;background:#ffdb77;border:1px solid #d99a29;border-radius:50%;box-shadow:inset 0 0 0 2px #ffe79a;color:#8e5405}
.coin-symbol .icon{width:14px;height:14px;stroke-width:2}
.hero{position:relative;isolation:isolate;min-height:320px;display:flex;align-items:center;overflow:hidden;border-radius:28px;background:#ece0ff;border:1px solid #dfd0f8;box-shadow:0 8px 24px #58348113}
.hero-art{position:absolute;z-index:-3;right:0;top:0;height:100%;width:72%;object-fit:cover;object-position:69% 58%}
.hero::before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#eee4ff 0%,#eee4ff 31%,#eee3ffed 37%,#eee3ff88 45%,#eee3ff00 58%);pointer-events:none}
.hero::after{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 4% 9%,#fff9 0 2px,transparent 3px),radial-gradient(circle at 38% 12%,#fff9 0 2px,transparent 3px),radial-gradient(circle at 34% 89%,#fff9 0 2px,transparent 3px);pointer-events:none}
.hero-copy{padding:26px 0 30px clamp(24px,4.8vw,63px);width:48%}
.mission-label{display:inline-flex;align-items:center;gap:6px;border-radius:40px;background:#fff9;color:#633da4;padding:5px 10px;line-height:1.2;font-size:.75rem;font-weight:950;letter-spacing:.085em;text-transform:uppercase;margin-bottom:10px}
.mission-label .icon{width:15px;height:15px;color:#7d4acb}
.hero h2{font-size:clamp(2.4rem,4.8vw,4.04rem);line-height:.99;color:#432b73;font-weight:620;max-width:520px}
.hero h2 span{color:#724cb8}
.hero p{margin:13px 0 18px;font-size:1.03rem;line-height:1.36;color:#534267;max-width:340px}
.world-section{margin-top:26px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.section-head h2{display:flex;align-items:center;gap:9px}
.section-head h2 .icon{color:#8562bd;width:26px;height:26px}
.section-head > p{font-size:.89rem}
.world-grid,.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.world-card{position:relative;padding:0;display:flex;flex-direction:column;min-width:0;min-height:0;text-align:left;border-radius:19px;border:1px solid var(--line);background:white;box-shadow:var(--shadow);overflow:hidden;transition:transform .18s,box-shadow .18s}
.world-card:not(.soon):hover{transform:translateY(-3px);box-shadow:0 9px 21px #5030821e}
.world-art{position:relative;display:block;aspect-ratio:2.83;background:#e6dbf9;width:100%;overflow:hidden}
.world-art img{width:100%;height:100%;object-fit:cover;object-position:50% 54%}
.world-card.soon{cursor:default}
.world-card.soon img{filter:saturate(.74)}
.world-caption{display:flex;align-items:center;gap:9px;padding:10px 11px;min-height:63px;width:100%}
.world-caption .tile-icon{flex-shrink:0}
.world-caption h3{font-size:clamp(1.07rem,2.25vw,1.39rem);line-height:1.1}
.world-caption p{margin-top:3px;font-size:.84rem;line-height:1.2}
.world-more{margin-left:auto;width:19px;height:19px;color:#8d71b5}
.world-label{position:absolute;right:8px;top:8px;display:flex;align-items:center;gap:4px;background:#fff8ffed;padding:4px 8px;border-radius:50px;color:#5e4b7e;font-weight:900;font-size:.73rem;line-height:1.2}
.world-label .icon{width:13px;height:13px}
.bottom{position:fixed;z-index:15;bottom:14px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 24px));display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#fff;border:1px solid #e9dff6;box-shadow:0 4px 28px #4e347c28;padding:6px;border-radius:21px}
.bottom button{height:52px;border:0;background:transparent;border-radius:14px;color:#655681;font-weight:850;font-size:.76rem;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}
.bottom button .icon{width:22px;height:22px}
.bottom button[aria-current]{background:#efe6ff;color:#6235b6}
.bottom button:hover{background:#f3ecff}
.tile-icon{display:inline-grid;flex:0 0 auto;place-items:center;width:40px;height:40px;background:#eee5ff;color:#6f44bf;border-radius:13px}
.tile-icon.mint,.pill.mint{background:var(--mint);color:var(--mint-ink)}
.tile-icon.rose,.pill.rose{background:var(--rose);color:var(--rose-ink)}
.tile-icon.sun,.pill.sun{background:var(--sun);color:var(--sun-ink)}
.btn{min-height:46px;padding:9px 17px;border-radius:13px;display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid transparent;font-weight:900;text-align:center;line-height:1.15;transition:background .16s,transform .14s}
.btn .icon{width:19px;height:19px}
.btn.primary{background:#7046cb;color:#fff;border-color:#6841be;box-shadow:0 3px 0 #522989}
.btn.primary:hover:not(:disabled){background:#6138ba;transform:translateY(-1px)}
.btn.secondary{color:#603bb0;background:#f0e7ff;border-color:#e4d7fb}
.btn.secondary:hover:not(:disabled){background:#e9daff}
.btn.quiet{color:#60458d;background:#fff;border-color:#e4d8f2}
.btn.quiet:hover:not(:disabled){background:#f8f1ff}
.btn.danger{background:#8a3656;color:white}
.btn:disabled{background:#eeeaf4;color:#716684;border-color:#e4dfed;box-shadow:none;opacity:.88}
.btn.small{min-height:40px;padding:7px 12px;font-size:.9rem}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.actions.stack{align-items:stretch;flex-direction:column}
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:50px;background:#eee5ff;color:#6541a4;font-size:.83rem;font-weight:900;line-height:1.2;padding:5px 9px;white-space:nowrap}
.pill .icon{width:16px;height:16px}
.page-head{margin-bottom:18px}
.back-link{background:transparent;border:none;padding:8px 10px 8px 2px;color:#604298;font-weight:900;display:inline-flex;align-items:center;gap:3px;min-height:44px}
.back-link .icon{width:17px;height:17px}
.page-title{display:flex;gap:12px;align-items:center;margin-top:3px}
.page-title > .tile-icon{width:56px;height:56px;border-radius:17px}
.page-title > .tile-icon .icon{height:29px;width:29px}
.page-title > .round-btn,.page-title > .btn{margin-left:auto}
.page-title p{margin-top:4px}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:clamp(14px,3vw,25px);min-width:0}
.panel + .panel.spaced,.spaced{margin-top:15px}
.two-col{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:15px;align-items:start}
.grid-stack{display:grid;gap:14px}
.panel-heading{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.panel-heading p{font-size:.92rem;margin-top:3px}
.panel-heading > .tile-icon{height:43px;width:43px}
.empty{display:grid;justify-items:center;text-align:center;padding:35px 14px}
.empty .tile-icon{width:60px;height:60px;border-radius:18px;margin:0 0 12px}
.empty .tile-icon .icon{width:32px;height:32px}
.empty p{max-width:37ch;margin:7px 0 13px}
.empty .actions{justify-content:center}
.muted{color:var(--sub)}
.small-note{font-size:.88rem;color:var(--sub)}
.notice{background:#f5efff;border:1px solid #e0d0fd;border-radius:13px;color:#554174;padding:10px 12px;font-weight:800}
.notice.good{background:#e6f7ee;border-color:#c7e7d8;color:#225c50}
.notice.warm{background:#fff5dc;border-color:#f4ddb1;color:#78541d}
.error-text{color:#903052;font-weight:850}
.progress-head,.panel-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.stack-list{display:grid;gap:8px}
.sheet-row{display:flex;align-items:center;gap:10px;background:#faf7ff;border:1px solid var(--line);border-radius:15px;padding:9px 11px}
.sheet-row > div:first-of-type{flex:1;min-width:0}
.sheet-row p{font-size:.87rem;line-height:1.3;margin-top:3px}
.sheet-row .actions{margin-left:auto}
.profile-choice{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid #e4d9f4;background:#faf6ff;border-radius:16px;width:100%;text-align:left;margin-top:7px;min-height:58px}
.profile-choice:hover{background:#f0e6ff}
.profile-choice .child-pick-meta{flex:1}
.profile-choice strong{display:block;font-family:var(--heading);font-size:1.17rem;line-height:1.1}
.profile-choice small{color:var(--sub);font-size:.87rem}
.profile-choice .icon:last-child:not(.tile-icon .icon){color:#8359c6}
.hub-intro{position:relative;overflow:hidden;min-height:205px;display:flex;align-items:center;background:#eee2fc;border:1px solid #e7d8f6;border-radius:22px;margin-bottom:17px}
.hub-intro img{position:absolute;inset:0 0 0 auto;width:52%;height:100%;object-fit:cover}
.hub-intro::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#eee2fc 45%,#eee2fca5 58%,transparent 73%);pointer-events:none}
.hub-intro > div{position:relative;z-index:1;max-width:66%;padding:20px clamp(15px,3vw,30px)}
.hub-intro p{margin:8px 0 13px}
.field{display:grid;gap:5px;font-weight:850;min-width:0}
.field span{font-size:.92rem}
.field input:not([type="range"],[type="checkbox"],[type="color"]),.field textarea,.field select{border:1px solid #d9caeb;border-radius:11px;background:#fff;color:var(--ink);padding:8px 11px;min-height:46px;min-width:0;width:100%}
.field textarea{min-height:80px;resize:vertical}
.field input[type="color"]{background:white;border:1px solid #dcccf1;padding:4px;min-width:44px;height:44px;border-radius:10px}
.field input[type="range"]{width:100%;accent-color:#7449c9;min-height:29px}
.field select{appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#704cac 50%),linear-gradient(135deg,#704cac 50%,transparent 50%);background-position:calc(100% - 16px) 20px,calc(100% - 11px) 20px;background-size:5px 5px;background-repeat:no-repeat}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.field.full{grid-column:1/-1}
.check-field{min-height:44px;display:flex;gap:9px;align-items:center;font-weight:850}
.check-field input{width:20px;height:20px;accent-color:var(--purple);flex-shrink:0}
.form-panel{display:grid;gap:12px}
.form-panel p{font-size:.92rem}
.level-bar{display:flex;gap:10px;align-items:center}
.level-bar > div{flex:1}
.level-bar progress{margin:7px 0 2px}
.level-bar small{color:var(--sub);font-weight:800}
.level-bar .tile-icon{width:49px;height:49px}
.avatar-palette{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 12px}
.avatar-palette button{padding:2px;border:2px solid transparent;border-radius:15px;background:none;min-height:46px;min-width:46px}
.avatar-palette button[aria-pressed="true"]{border-color:#9368db}
.art-card{overflow:hidden;padding:0}
.art-card > button{width:100%;display:block;border:0;background:#f3effb;padding:0;aspect-ratio:1.5;overflow:hidden}
.art-card img{height:100%;width:100%;object-fit:contain}
.art-card .art-info{padding:11px 13px}
.art-info p{font-size:.84rem;margin-top:2px}
.art-paper{background-color:#fff;background-image:radial-gradient(#d4c6e9 1px,transparent 1px);background-size:16px 16px}
.art-view{width:100%;display:grid;justify-items:center;border-radius:17px;overflow:hidden;min-height:120px}
.art-view img{max-height:540px;object-fit:contain}
.hero-preview{background:radial-gradient(circle at 50% 46%,#fff 0,#f1e6ff 55%,#e2d5f7);position:relative;min-height:220px;border-radius:15px;display:grid;place-items:center;overflow:hidden}
.hero-preview img{width:70%;max-width:240px;height:225px;object-fit:contain;filter:drop-shadow(0 6px 2px #644d8c37)}
.hero-preview .twinkle{position:absolute;color:#aa87dc;width:25px;height:25px;top:23%;left:19%}
.hero-preview .twinkle.right{top:57%;left:auto;right:18%;color:#bc91d9}
.style-grid .field{border-top:1px solid #eee5f7;padding-top:5px}
.pet-preview{background:#e5f5ef url("./assets/pets.webp") center/cover no-repeat;min-height:260px;display:grid;place-items:center;border-radius:16px;position:relative;overflow:hidden}
.pet-preview::before{content:"";position:absolute;inset:0;background:linear-gradient(#def8f08c,#e9fff2b8)}
.pet-preview img{position:relative;width:min(72%,220px);height:210px;object-fit:contain;filter:drop-shadow(0 7px 4px #3b59665e)}
.pet-preview .pet-bow{position:absolute;left:59%;top:34%;color:#9b42a1;background:#ffeaf8;border-radius:100%;padding:5px;width:36px;height:36px}
.egg-grid,.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.egg-choice{border:1px solid var(--line);background:#fbf7ff;border-radius:18px;text-align:center;padding:8px;color:var(--ink)}
.egg-choice:hover{background:#f1e7fc}
.egg-choice img{height:100px;width:100%;object-fit:contain}
.egg-choice p{font-size:.82rem;line-height:1.2;padding-top:4px}
.pet-animate{animation:petBounce .46s ease}
@keyframes petBounce{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-13px) scale(1.05)}}
.shop-item{display:grid;gap:8px;min-height:165px}
.shop-item .panel-row{align-self:end}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,235px);gap:13px;align-items:start}
.board-panel{padding:10px}
.board-actions{margin-top:9px}
.board-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 2px 8px}
.board-head .small-note{font-size:.8rem}
.history-tools{display:flex;gap:4px}
.history-tools button{border:1px solid var(--line);background:#faf6ff;border-radius:11px;height:44px;width:44px;display:grid;place-items:center;color:#6847a4}
.history-tools button:disabled{color:#a79bb8;background:#f8f6fa}
#drawing-board{width:100%;height:auto;display:block;aspect-ratio:1.5;border-radius:12px;border:1px solid #e7dbf3;touch-action:none;user-select:none;cursor:crosshair}
.draw-toolbar{display:grid;gap:10px;padding:11px}
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.tool-grid button{padding:6px 2px;min-height:52px;border:1px solid #e6dcf2;border-radius:10px;background:#fbf8ff;font-size:.71rem;font-weight:900;display:grid;gap:2px;justify-items:center;align-content:center}
.tool-grid button[aria-pressed="true"]{background:#e9dcff;border-color:#966ddb;color:#592ba7}
.tool-grid button .icon{width:20px;height:20px}
.swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.swatch{border:1px solid #c9bdd9;background:var(--swatch);width:100%;aspect-ratio:1;border-radius:9px;min-height:35px}
.swatch[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #fff;outline:2px solid #663eb5;outline-offset:0}
.color-brush{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:end}
.draw-actions{margin-top:12px;justify-content:space-between}
.import-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,290px);gap:13px;align-items:start}
.import-display{background:#f4eff9;display:grid;place-items:center;min-height:160px;border-radius:15px;overflow:hidden}
.import-display canvas{display:block;max-width:100%;max-height:540px;object-fit:contain}
.import-layout summary{cursor:pointer;font-weight:900;color:var(--purple-dark);padding:9px 0}
.adventure-layout{max-width:940px;margin:auto}
.quest-status{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 12px}
.quest-status span{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:5px 10px;color:#675780;font-size:.83rem;font-weight:850}
.quest-status [aria-current]{background:#eadcff;color:#59319d;border-color:#ddc8f7}
.quest-status .icon{width:17px;height:17px}
.scene{position:relative;isolation:isolate;width:100%;aspect-ratio:1.9;overflow:hidden;border:1px solid #b7dccc;border-radius:21px;background:#bfe6d4}
.scene-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.scene-light{position:absolute;inset:0;background:linear-gradient(transparent 70%,#4e9a8c45);pointer-events:none}
.scene-bubble{position:absolute;left:3%;top:6%;max-width:min(80%,270px);border:1px solid #e8d7f7;background:#fffef9ef;border-radius:15px;padding:7px 12px;font-size:.88rem;font-weight:900;box-shadow:0 3px 7px #32626835}
.scene-bridge{position:absolute;width:38%;left:31%;bottom:51%;height:32%;display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 3px 2px #334a7e8c)}
.scene-bridge img{width:100%;height:auto;max-height:100%;object-fit:fill;object-position:bottom;min-height:10px}
.scene-bridge .bridge-rail{position:absolute;bottom:0;inset-inline:0;height:5px;border-radius:30px;background:#fff3ad9c;box-shadow:0 0 7px #fff4bd;z-index:-1}
.scene-hero,.scene-pip,.scene-pet,.scene-lantern{position:absolute;transform:translateX(-50%);pointer-events:none}
.scene-hero{width:clamp(40px,13%,115px);height:34%;bottom:var(--ground,24%);left:var(--hero-x,15%);z-index:4;transition:left .48s ease-in-out,bottom .45s ease;filter:drop-shadow(0 4px 2px #34395a57);object-fit:contain;object-position:bottom}
.scene-hero.walk{animation:walk .5s ease}
@keyframes walk{0%,100%{transform:translate(-50%,0)}35%{transform:translate(-50%,-8%)}67%{transform:translate(-50%,-4%)}}
.scene-pip{width:13%;height:27%;left:88%;bottom:50%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 2px #425a765f)}
.scene-pip.pip-home{left:16%}
.scene-pip.pip-cross{animation:pipCross 2.35s ease-in-out both}
@keyframes pipCross{0%{left:88%;bottom:50%}21%{left:71%;bottom:52%}42%{left:59%;bottom:62%}64%{left:43%;bottom:62%}85%{left:29%;bottom:52%}100%{left:16%;bottom:50%}}
.scene-pet{width:9%;height:17%;left:calc(var(--hero-x,15%) - 5.2%);bottom:calc(var(--ground,24%) + 1%);z-index:3;object-fit:contain;object-position:bottom;transition:left .54s,bottom .52s}
.scene-lantern{width:6%;height:12%;left:77%;bottom:50%;color:#a8670c;fill:#ffe47e;filter:drop-shadow(0 0 8px #fff9ad)}
.mission-panel{margin-top:12px}
.mission-panel p{margin:5px 0 10px}
.bridge-picks{display:flex;gap:7px;overflow:auto;margin:8px 0 9px;padding:2px 2px 6px}
.bridge-picks button{min-width:100px;max-width:140px;border:1px solid #e1d4f3;background:#fbf7ff;border-radius:11px;padding:4px;font-weight:850;font-size:.79rem;line-height:1.2}
.bridge-picks img{width:100%;height:50px;object-fit:contain}
.bridge-picks button[aria-pressed="true"]{border:2px solid #8b59d4;background:#f2e7ff}
.puzzle-image{font:580 clamp(2rem,7vw,3rem)/1.2 var(--heading);letter-spacing:.04em;color:#6944bd;text-align:center;padding:12px 6px;background:#f1e6ff;border-radius:14px;margin:10px 0}
.puzzle-options{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.puzzle-options button{min-width:60px;min-height:57px;font-size:1.19rem}
.puzzle-options .icon{width:28px;height:28px}
dialog{border:1px solid #e5d7f3;padding:0;border-radius:21px;color:var(--ink);background:#fff;box-shadow:0 10px 45px #39275455;width:min(440px,calc(100% - 28px));max-height:calc(100% - 40px);overflow:auto}
dialog::backdrop{background:#2e194a65}
.dialog-inner{padding:21px}
.dialog-inner p,.dialog-inner .field{margin:9px 0 10px}
.dialog-inner .actions{justify-content:flex-end;margin-top:14px}
.toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,8px);z-index:24;max-width:min(540px,calc(100% - 24px));width:max-content;pointer-events:none;background:#49316b;color:white;border-radius:13px;padding:9px 13px;opacity:0;transition:opacity .18s,transform .18s;font-weight:850;box-shadow:0 4px 15px #3b24523b}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.error{background:#7c2c4f}
.loading{text-align:center;padding:14vh 12px}
.loading p{margin-top:10px}
.loading-star{background:#eadbff;color:#7043c9;width:62px;height:62px;font-size:34px;line-height:62px;border-radius:20px;margin:0 auto 15px}
.parent-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.report{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:0;margin:9px 0}
.report div{padding:5px 0;border-bottom:1px solid var(--line)}
.report dt{font-size:.84rem;color:var(--sub)}
.report dd{margin:0;font-weight:900}
.activity{list-style:none;margin:0;padding:0}
.activity li{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:.86rem}
.activity time{color:var(--sub);white-space:nowrap}
.file-preview{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.reduced *, .reduced *::before, .reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (max-width:800px){
  .top-inner,.main{padding-left:19px;padding-right:19px}
  .hero{min-height:294px}
  .hero-copy{width:55%}
  .hero-art{width:73%;object-position:70% 54%}
  .hero::before{background:linear-gradient(90deg,#eee4ff 0%,#eee4ff 31%,#eee3ffe2 41%,#eee3ff00 63%)}
  .world-caption{gap:7px;padding:8px}
  .world-caption .tile-icon{width:35px;height:35px;border-radius:10px}
  .world-caption .tile-icon .icon{width:20px;height:20px}
  .world-more{display:none}
}
@media (max-width:610px){
  h1{font-size:2rem}
  .top-inner{padding:9px 12px;min-height:62px;gap:6px}
  .brand{gap:6px}.brand img{width:34px;height:34px;border-radius:9px}.brand-name strong{font-size:1.01rem}.brand-name small{font-size:.52rem;letter-spacing:.17em}
  .header-actions{gap:5px}.round-btn{min-width:44px;height:44px;border-radius:13px}
  .player-chip{min-height:44px;padding:3px 5px 3px 3px;gap:5px;border-radius:12px}
  .player-chip .tile-icon{width:30px;height:30px;border-radius:9px}
  .player-name{font-size:.86rem;max-width:57px}.player-caption{font-size:.63rem}.player-chip .chev{width:13px;height:13px}
  .main{padding:16px 12px calc(86px + env(safe-area-inset-bottom))}
  .welcome-row{align-items:start;gap:7px;margin-bottom:12px}
  .welcome-row h1{font-size:clamp(1.72rem,6.7vw,2.45rem)}
  .welcome-row p{font-size:.88rem;line-height:1.27;max-width:19ch}
  .progress-card{gap:6px;padding:6px 7px;border-radius:13px;min-width:0;align-self:center}
  .progress-card > .tile-icon{display:none}
  .progress-stats{min-width:53px}
  .progress-stats strong{font-size:.9rem;white-space:nowrap}
  .progress-stats progress{height:6px;margin-top:4px}
  .coin-badge{font-size:.79rem;gap:3px}.coin-symbol{width:20px;height:20px}.coin-symbol .icon{width:11px;height:11px}.progress-card .coin-label{display:none}
  .hero{min-height:0;border-radius:19px;align-items:end;padding-top:148px}
  .hero-art{width:100%;height:66%;object-position:71% 44%}
  .hero::before{background:linear-gradient(0deg,#eee4ff 0%,#eee4ff 40%,#eee3ffee 48%,#eee3ff65 58%,transparent 71%)}
  .hero-copy{width:100%;padding:5px 14px 15px}
  .hero h2{font-size:clamp(1.96rem,8.3vw,2.38rem);max-width:13ch}
  .hero p{margin:7px 0 9px;font-size:.91rem;line-height:1.25}
  .mission-label{font-size:.66rem;margin-bottom:6px;padding:4px 8px}
  .hero .btn{min-height:44px;padding:8px 12px}
  .world-section{margin-top:17px}
  .section-head{margin-bottom:8px}.section-head > p{font-size:.79rem}
  .section-head h2 .icon{width:21px;height:21px}
  .world-grid,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .world-card{border-radius:14px}.world-art{aspect-ratio:2.04}
  .world-caption{gap:6px;min-height:53px;padding:7px 5px}
  .world-caption .tile-icon{width:29px;height:29px;border-radius:9px}.world-caption .tile-icon .icon{width:17px;height:17px}
  .world-caption h3{font-size:clamp(.94rem,4vw,1.24rem)}
  .world-caption p{font-size:.72rem}
  .world-label{right:5px;top:5px;font-size:.63rem}
  .bottom{width:100%;bottom:0;border-radius:17px 17px 0 0;padding:5px 7px max(5px,env(safe-area-inset-bottom));gap:5px}
  .bottom button{height:49px}
  .page-head{margin-bottom:13px}
  .page-title{gap:8px}.page-title p{font-size:.91rem;line-height:1.3}
  .page-title > .tile-icon{width:43px;height:43px;border-radius:13px}.page-title > .tile-icon .icon{width:24px;height:24px}
  .two-col,.parent-summary,.import-layout{grid-template-columns:1fr}
  .studio-layout{grid-template-columns:1fr;gap:8px}
  .tool-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .draw-toolbar{gap:7px;border-radius:15px;padding:7px}
  .swatches{grid-template-columns:repeat(5,minmax(0,1fr))}
  .swatch{min-height:44px;aspect-ratio:auto;border-radius:9px}
  .draw-actions{margin-top:8px}
  .egg-grid,.shop-grid{gap:7px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .egg-choice img{height:78px}.egg-choice h3{font-size:1.08rem}
  .shop-item{padding:10px}.shop-item .panel-row{flex-wrap:wrap}
  .hub-intro{min-height:190px}
  .scene{aspect-ratio:1.54;border-radius:17px}.scene-bubble{padding:4px 7px;font-size:.74rem;max-width:67%}
  .mission-panel .btn{padding-left:11px;padding-right:11px}
  .sheet-row{flex-wrap:wrap}.sheet-row > div:first-of-type{min-width:110px}
}
@media (max-width:350px){
  .player-caption{display:none}.progress-stats{min-width:39px}.progress-card{padding:5px}
  .swatches{grid-template-columns:repeat(5,1fr)}.hero{padding-top:124px}
  .section-head > p{display:none}.world-caption .tile-icon{width:24px;height:24px}
}
