:root{color-scheme:light;--bg:#edf1ef;--ink:#53635b;--muted:#96a499;--accent:#aebfa8;--lavender:#b8a6c9;--paper:#f7f8f4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,g[role=button]:focus-visible{outline:2px solid #9e8bb4;outline-offset:6px}a{color:inherit;text-decoration:none}p,h1,h2,h3{margin:0}.icon{width:23px;height:23px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.game{height:100dvh;min-height:560px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 47%,#f6f7ef 0,#edf1ef 70%)}.world-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:28px 40px;z-index:5;pointer-events:none}.world-header>*{pointer-events:auto}.brand{font-size:1.4rem;letter-spacing:-.07em;font-weight:600;color:#7e8d82;display:flex;gap:5px;align-items:baseline}.brand-dot{width:5px;height:5px;background:#c1a482;border-radius:50%}.header-tools{display:flex;gap:10px;align-items:center}.round-button{width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;border:0;background:#dfe7df77;border-radius:50%;color:#75877b;transition:transform .18s,background .18s}.round-button:hover{background:#d5dfd4;transform:translateY(-2px)}.round-button .icon{width:23px;height:23px}.round-button.primary{background:#b4c6aa;color:#4f674e;box-shadow:0 6px 18px #a1b79d22}.round-button.primary:hover{background:#a2ba98}.round-button:disabled:hover{transform:none}.pet-name{position:absolute;left:50%;top:11%;transform:translateX(-50%);z-index:3;text-align:center}.name-button{font-size:1.4rem;letter-spacing:-.035em;font-weight:500;color:#687b6a;background:none;border:0;padding:5px 12px;white-space:nowrap}.world-container{position:absolute;inset:9% 0 9%;display:flex;justify-content:center;align-items:center;transition:opacity .35s,filter .35s}.island-svg{width:100%;height:100%;max-width:1100px;overflow:visible}.world-object,.world-pet{cursor:pointer;outline:none;transform-box:fill-box;transition:filter .2s}.world-object:hover{filter:brightness(1.05) drop-shadow(0 6px 5px #82978430)}.world-object:focus-visible,.world-pet:focus-visible{filter:drop-shadow(0 0 8px #9a80bd)}.world-pet:hover{filter:brightness(1.05)}.world-status{position:absolute;left:50%;bottom:10%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:14px;z-index:3}.needs{display:flex;align-items:center;justify-content:center;gap:23px}.need{display:flex;flex-direction:column;align-items:center;gap:10px}.need>.icon{width:19px;height:19px;color:#96a59a;stroke-width:1.45}.need-track{display:block;height:3px;width:37px;border-radius:4px;background:#dce4da;overflow:hidden}.need-track i{height:100%;display:block;border-radius:4px;transition:width .3s}.world-status .round-button{width:33px;height:33px}.world-status .round-button .icon{width:17px;height:17px}.amulet{color:#c0a46b}.amulet .icon{width:20px;height:20px}.pet-art{width:100%;height:100%;overflow:visible}.pet-breathe{transform-origin:165px 160px;animation:breathe 4s ease-in-out infinite}.away .world-container{filter:blur(5px);opacity:.36}.away .pet-name,.away .world-status{opacity:0;pointer-events:none}.overlay-shade{position:absolute;inset:0;background:#edf1ef66;z-index:6}.world-overlay{position:absolute;z-index:7;width:min(600px,calc(100vw - 48px));max-height:calc(100dvh - 120px);left:50%;top:50%;transform:translate(-50%,-50%);overflow:auto;background:#f7f8f3f5;border:1px solid #fff9;border-radius:32px;padding:22px 26px 28px;box-shadow:0 30px 90px #667b6b12;scrollbar-width:thin;scrollbar-color:#c3cfbe transparent}.overlay-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.overlay-top .round-button{background:none;width:36px;height:36px}.overlay-top .round-button .icon{width:20px;height:20px}.overlay-body{padding:8px 0}.sheet-name{font-size:1.1rem;font-weight:500;letter-spacing:-.025em;text-align:center;color:#697d6b}.sheet-subname{font-size:.9rem;text-align:center;color:#93a28f;margin-top:9px}.sheet-actions{display:flex;justify-content:center;align-items:center;gap:25px;margin-top:28px}.sheet-actions .primary{width:55px;height:55px}.sheet-actions .primary .icon{width:25px;height:25px}.care-pet{width:230px;height:170px;margin:0 auto 4px}.care-actions{display:flex;justify-content:center;gap:18px;margin-top:30px}.care-choice{width:55px;height:55px;background:#e9e8e0}.care-choice:first-child{background:#eee2d3;color:#b99a76}.care-choice:nth-child(2){background:#e9e0ed;color:#aa8cb5}.care-choice:nth-child(3){background:#dfebeb;color:#8aaeb5}.care-choice:nth-child(4){background:#e1e8dc;color:#93a385}.modal-inner>.needs{margin-top:24px}.healing{color:#bd948e}.enemy-selector{display:flex;gap:9px;justify-content:center;padding:5px 0}.enemy-mini{width:70px;height:60px;border:1px solid transparent;border-radius:17px;background:transparent;padding:4px;opacity:.55}.enemy-mini.selected{border-color:#c4cfbc;background:#e4eadf;opacity:1}.enemy-mini .monster-art{width:100%;height:100%}.monster-art{width:100%;height:100%;overflow:visible}.expedition-stage{height:260px;max-width:440px;margin:10px auto;position:relative}.expedition-stage>svg{width:100%;height:100%;overflow:visible}.expedition-monster{position:absolute;width:210px;height:165px;left:50%;top:50%;transform:translate(-50%,-54%)}.enemy-symbols{display:flex;align-items:center;justify-content:center;gap:18px;color:#94a38d;margin:13px 0}.enemy-symbols>.icon{width:21px;height:21px}.symbol-dots{display:flex;gap:4px}.symbol-dots i{width:4px;height:4px;border-radius:50%;background:#a6b19d}.team-symbols{display:flex;gap:3px}.team-symbols .icon{width:12px;height:12px}.combat-comparison{display:flex;gap:12px;align-items:center;justify-content:center;color:#b4bbaa}.combat-comparison>.icon{width:15px;height:15px}.combat-comparison>span{width:65px;height:4px;background:linear-gradient(to right,#a6ba9d var(--fill),#e2e7dc var(--fill));border-radius:6px}.combat-comparison>span:last-child{background:linear-gradient(to right,#b8aaa4 var(--fill),#e2e7dc var(--fill))}.battle-pair{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:20px}.battle-pair>div{width:140px;height:120px}.battle-pair>.icon{color:#aeb9a4;width:19px;height:19px}.battle-readiness{display:flex;justify-content:center;gap:9px;color:#99b18e;margin-top:23px}.battle-readiness.danger{color:#c69d8c}.battle-readiness .icon{width:20px;height:20px}.result-symbol{width:90px;height:90px;margin:30px auto 20px;display:grid;place-items:center;border-radius:50%;background:#eee9d9;color:#c0a46f}.result-symbol>.icon{width:40px;height:40px;stroke-width:1.3}.result-symbol.lost{background:#efdfdb;color:#b49089}.reward-drops{display:flex;gap:9px;justify-content:center;color:#97b7ad;margin:20px 0}.reward-drops .icon{width:19px;height:19px}.empty-symbol{min-height:150px;display:flex;align-items:center;justify-content:center;color:#c2ccbd}.empty-symbol>.icon{width:45px;height:45px;stroke-width:1}.lineage-seal{display:flex;justify-content:center;margin:8px 0 30px;color:#a1b098}.lineage-seal>.icon{width:35px;height:35px;stroke-width:1.2}.lineage-seal.gold{color:#c3ab7f}.lineage-tree{display:flex;flex-direction:column;gap:30px;align-items:center;position:relative}.generation{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;position:relative}.generation+.generation:before{content:"";position:absolute;top:-30px;left:50%;width:1px;height:29px;background:#cbd4c3}.ancestor{width:130px;text-align:center}.ancestor-pet{height:105px;width:130px}.ancestor-name{font-size:.85rem;color:#7e8c78;margin-top:6px}.memory{opacity:.4}.ranking-list{display:flex;flex-direction:column;gap:8px}.rank-row{display:flex;align-items:center;gap:15px;border:0;background:transparent;padding:13px 15px;width:100%;border-radius:15px}.rank-row:hover{background:#edf0e7}.rank-row.mine{background:#e8eddf}.rank-medal{color:#b9aa88}.rank-medal>.icon{width:19px;height:19px}.rank-family{font-size:.95rem;color:#78876e;text-align:left;flex:1}.rank-progress{width:80px;height:4px;border-radius:4px;background:#e0e6d8;overflow:hidden}.rank-progress i{display:block;height:100%;background:#bac6a7;border-radius:4px}.friend-list{display:flex;flex-direction:column;gap:30px}.friend-name{font-size:.9rem;color:#a4b09a;margin:10px 0}.friend-pet{display:flex;align-items:center;gap:10px;margin-top:13px}.friend-portrait{width:125px;height:105px}.friend-pet-details{flex:1;min-width:0}.friend-pet-details .sheet-name{text-align:left;font-size:1rem}.relationship{display:flex;gap:5px;margin-top:13px}.relationship .icon{width:15px;height:15px;color:#dce0d3}.relationship .filled .icon{color:#c4a0aa;fill:#c4a0aa33}.invite-form{display:flex;gap:12px;align-items:center;margin-top:25px;padding-top:10px}.invite-form>.icon-field{flex:1}.birth-eggs{display:flex;gap:12px;justify-content:center;margin:28px 0}.birth-eggs i{width:26px;height:33px;border-radius:55% 55% 45% 45%;background:#e0d6e8;box-shadow:inset -5px -4px 0 #b8aac633}.visual-parties{display:flex;flex-direction:column;gap:27px}.visual-party{padding-bottom:24px;border-bottom:1px solid #e5e9df}.visual-party:last-child{border:0;padding-bottom:0}.group-enemy{width:105px;height:80px;margin:auto}.group-pets{display:flex;justify-content:center;gap:5px}.group-pets>div{width:80px;height:75px}.empty-slot{display:grid;place-items:center;color:#c1cbbb}.empty-slot .icon{width:20px;height:20px}.visual-events{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.event-tile{display:flex;align-items:center;justify-content:center;gap:8px;padding:20px 5px;background:#edf0e7;border-radius:16px;color:#9aab8f}.event-mark .icon{width:13px;height:13px;stroke-width:1.5}.pet-choices{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.pet-choice{border:0;background:none;border-radius:18px;padding:10px;color:#7d8d75}.pet-choice:hover{background:#edf0e7}.pet-choice>div{width:120px;height:90px}.pet-choice>span{font-size:.9rem}#toast{position:fixed;left:50%;bottom:35px;transform:translate(-50%,10px);background:#d6e2d1;color:#6d8a62;border-radius:50%;width:45px;height:45px;display:grid;place-items:center;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 25px #839b7b22}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#efdcd6;color:#b08075}#toast .icon{width:20px;height:20px}dialog{padding:0;border:1px solid #fff9;border-radius:30px;background:#f7f8f4;color:var(--ink);width:min(420px,calc(100vw - 40px));max-height:90dvh;box-shadow:0 30px 100px #69806822}dialog::backdrop{background:#dbe4db88;backdrop-filter:blur(7px)}.modal-inner{padding:22px 27px 32px}.modal-head{display:flex;justify-content:flex-end;margin-bottom:6px}.modal-head .round-button{width:32px;height:32px;background:none}.modal-head .icon{width:20px;height:20px}.auth-pet{width:185px;height:130px;margin:0 auto 8px}.icon-field{display:flex;align-items:center;gap:14px;border-bottom:1px solid #dce3d7;padding:10px 2px;margin-top:12px}.icon-field>.icon{width:19px;height:19px;color:#acb8a4}.input{border:0;background:transparent;min-width:0;width:100%;padding:8px 0;color:#77856e;outline:none;font-size:1rem;border-radius:0}.input::placeholder{color:#c1c9b8}.input:focus-visible{outline:none}.icon-field:focus-within{border-color:#a1b195}.form-error{height:15px;display:flex;justify-content:center;color:#bd948a;margin-top:15px}.form-error .icon{width:17px;height:17px}.busy-indicator{position:fixed;right:30px;bottom:30px;width:7px;height:7px;background:#a3b995;border-radius:50%;z-index:90;animation:pulse .9s ease-in-out infinite}.pet-breathe{animation:breathe 4s ease-in-out infinite}.tag,.wardrobe-info,.battle-summary,.rank-note,.footer,.auth-note{display:none!important}
@keyframes breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes pulse{0%,100%{opacity:.3}50%{opacity:1}}
@media(min-width:1300px){.world-container{inset:5% 0 5%}.world-status{bottom:7%}.pet-name{top:8%}}
@media(max-width:600px){.world-header{padding:21px 23px}.brand{font-size:1.23rem}.round-button{width:39px;height:39px}.round-button .icon{width:21px;height:21px}.pet-name{top:15%}.name-button{font-size:1.22rem}.world-container{inset:10% -8% 8%}.world-status{bottom:16%}.needs{gap:20px}.need-track{width:29px}.need>.icon{width:18px;height:18px}.world-overlay{width:calc(100vw - 28px);padding:15px 17px 25px;max-height:calc(100dvh - 95px);border-radius:26px}.enemy-mini{width:56px;height:49px;padding:3px;border-radius:13px}.enemy-selector{gap:5px}.expedition-stage{height:215px;margin:5px auto}.expedition-monster{width:180px;height:140px}.world-overlay .sheet-actions{margin-top:23px}.friend-portrait{width:90px;height:85px}.friend-pet{gap:9px}.friend-pet-details .sheet-name{font-size:.9rem}.relationship{gap:3px}.relationship .icon{width:12px;height:12px}.friend-pet>.round-button{width:36px;height:36px}.ancestor{width:112px}.ancestor-pet{width:112px;height:95px}.generation{gap:8px}.rank-progress{width:57px}.rank-row{gap:12px;padding:13px 10px}.rank-family{font-size:.88rem}dialog{width:calc(100vw - 36px)}.modal-inner{padding:17px 22px 28px}.care-actions{gap:16px}.care-choice{width:51px;height:51px}.care-pet{width:210px;height:160px}.world-pet{filter:drop-shadow(0 0 1px #ffffff33)}.sheet-name{font-size:1rem}.group-pets>div{width:67px;height:65px}.birth-eggs{gap:10px}.birth-eggs i{width:24px;height:31px}#toast{bottom:40px}}
@media(max-height:650px){.pet-name{top:10%}.world-status{bottom:6%}.world-container{inset:3% 0 2%}.world-header{padding-top:16px}.game{min-height:450px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body.paused .pet-breathe{animation-play-state:paused}
/* Soft geometry with clear edges, contact shadows, and an autonomous isometric walk. */
.world-pet{animation:wander 22s linear infinite;transform-origin:400px 390px}.pet-direction{transform-origin:400px 360px;animation:turn 22s step-end infinite}.world-pet .pet-breathe{animation:step-bob .7s ease-in-out infinite}.pet-tail{transform-origin:190px 165px;animation:tail-sway 4s ease-in-out infinite}.pet-wings{transform-origin:180px 140px;animation:wing-twitch 7s ease-in-out infinite}.pet-ears{transform-origin:135px 119px;animation:ear-twitch 9s ease-in-out infinite}.paw-front{animation:paw-step .7s ease-in-out infinite}.paw-back{animation:paw-step .7s ease-in-out -.35s infinite}.away .world-pet,body.paused .world-pet,body.paused .pet-direction,body.paused .pet-tail,body.paused .pet-wings,body.paused .pet-ears,body.paused .paw-front,body.paused .paw-back{animation-play-state:paused}.island-svg{filter:drop-shadow(0 18px 16px #7287780d)}.world-object{filter:drop-shadow(3px 7px 3px #4a625b12)}.need>.icon{color:#7e8e81}.need-track{background:#d4ded0}.name-button{color:#536d58}.brand{color:#6c8070}
@keyframes wander{0%,8%{transform:translate(0,0)}27%,34%{transform:translate(33px,19px)}63%,72%{transform:translate(-25px,-14px)}94%,100%{transform:translate(0,0)}}
@keyframes turn{0%,34%{transform:scaleX(-1)}35%,72%{transform:scaleX(1)}73%,100%{transform:scaleX(-1)}}
@keyframes step-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes tail-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg)}}
@keyframes wing-twitch{0%,75%,100%{transform:rotate(0)}80%{transform:rotate(-3deg)}86%{transform:rotate(2deg)}}
@keyframes ear-twitch{0%,80%,100%{transform:rotate(0)}83%{transform:rotate(3deg)}86%{transform:rotate(-2deg)}}
@keyframes paw-step{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.world-pet,.pet-direction,.pet-tail,.pet-wings,.pet-ears,.paw-front,.paw-back,.pet-breathe{animation:none!important}}
.world-canvas{display:block;width:100%;height:100%;touch-action:manipulation;outline:0}.world-container{filter:none}.away .world-container{filter:blur(4px);opacity:.32}.render-error{width:36px;height:36px;color:#bc9b8c}.world-accessibility{pointer-events:none}
.enemy-3d-preview{height:270px;width:100%;position:relative}.enemy-3d-preview .world-canvas{width:100%;height:100%}@media(max-width:600px){.enemy-3d-preview{height:225px}}
@media(max-width:600px){.world-container{inset:10% 0 8%}}
.auth-symbol{display:flex;justify-content:center;margin:20px 0 25px;color:#b0bca5}.auth-symbol>.icon{width:38px;height:38px;stroke-width:1.2}
:root{--sky-top:#edf1ef;--sky-bottom:#edf1ef;--world-ink:#536d58;--world-panel:#f7f8f3;--world-button:#dfe7df;--world-track:#d4ded0}html,body{background:var(--sky-bottom)}.game{background:linear-gradient(180deg,var(--sky-top),var(--sky-bottom));transition:background 2s}.name-button,.brand,.need>.icon{color:var(--world-ink)}.round-button{background:var(--world-button);color:var(--world-ink)}.need-track{background:var(--world-track)}.world-overlay,dialog{background:var(--world-panel);border-color:color-mix(in srgb,var(--world-ink) 15%,transparent)}.overlay-shade{background:color-mix(in srgb,var(--sky-bottom) 65%,transparent)}.sheet-name,.sheet-subname,.input,.friend-name,.rank-family,.ancestor-name{color:var(--world-ink)}.world-overlay .round-button{color:var(--world-ink)}
/* Larger planet, with room around the full sphere and the celestial orbit. */
.world-container{inset:6% 0 1%}.pet-name{top:8%}.world-status{bottom:3%}@media(max-width:600px){.world-container{inset:8% 0 1%}.pet-name{top:12%}.world-status{bottom:7%}}
.dew-balance{display:inline-flex;align-items:center;gap:6px;color:var(--world-ink);font-size:.85rem;font-variant-numeric:tabular-nums;white-space:nowrap}.dew-balance>.icon{width:18px;height:18px;color:#9cbeb8}.care-dew{display:flex;justify-content:center;margin-top:21px}#toast.dew-feedback{width:auto;min-width:110px;max-width:calc(100vw - 32px);height:48px;padding:10px 19px;border-radius:25px;display:flex;align-items:center;justify-content:center;gap:11px;font-size:1rem;box-shadow:0 8px 28px #1a253c28}#toast.dew-feedback time{font-variant-numeric:tabular-nums;letter-spacing:.04em;font-size:.96rem;font-weight:550}#toast.dew-feedback strong{font-weight:600}#toast.dew-feedback .icon{width:21px;height:21px}
