:root{font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:#292a29;background:#f5f5f2;font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;--gutter: clamp(24px, 2.65vw, 48px);--compact-layout: 0;--landscape-layout: 0}*{box-sizing:border-box}body{margin:0;width:100%;min-height:100svh;overflow:hidden}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #457e6a;outline-offset:6px}[hidden]{display:none!important}#scene{position:fixed;inset:0;touch-action:none}#scene canvas.hovering{cursor:grab}#scene canvas.grabbing{cursor:grabbing}#scene canvas{display:block;width:100%;height:100%}.page-header,.intro,.interaction-hint,.page-footer{position:fixed;z-index:2;pointer-events:none}.page-header{top:3.05vh;left:var(--gutter);right:var(--gutter);display:flex;align-items:center;justify-content:space-between}.wordmark{display:inline-flex;gap:16px;align-items:center;color:inherit;text-decoration:none;font-size:14px;letter-spacing:1.1px;pointer-events:auto}.wordmark svg{width:51px;height:26px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round}.page-header p,.page-footer p{margin:0;color:#767975;font-size:16px;letter-spacing:.6px}.intro{top:12.8vh;left:var(--gutter)}h1{margin:0;font-size:clamp(56px,6.1vw,102px);font-weight:650;line-height:1.18;letter-spacing:-5px}.intro p{margin:18px 0 0;font-size:clamp(17px,1.63vw,25px);line-height:1.6;color:#8a8d88;letter-spacing:.5px}.controls{position:fixed;z-index:3;top:25.9vh;right:var(--gutter);width:clamp(268px,21.65vw,340px);padding:25px;border:1px solid #d8d9d5;border-radius:22px;background:#fafaf88c}.controls h2{margin:0 0 22px;font-size:22px;font-weight:600;line-height:1.3}.color-control{margin:0 0 28px;padding:0;border:0}.color-control legend,.control-label{font-size:16px;line-height:1.4}.swatches{display:flex;gap:20px;margin:12px 0 0 39px}.swatch{width:46px;height:46px;flex:0 0 46px;border:1px solid rgb(0 0 0 / 6%);border-radius:50%;cursor:pointer;transition:transform .14s ease,outline-color .14s ease}.swatch:hover{transform:scale(1.06)}.swatch[aria-pressed=true]{outline:2px solid #8eb4a6;outline-offset:3px}.mint{background:#a1d9c3}.pink{background:#f4cbd2}.lavender{background:#d1bdef}.slider-control{margin:0 0 19px}.control-label{display:flex;justify-content:space-between;align-items:center}.control-label output{font-size:11px;font-variant-numeric:tabular-nums;color:#969b94}input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:calc(100% - 48px);height:24px;margin:-3px 0 0 48px;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:linear-gradient(to right,#3b3e3a var(--fill),#dcded9 var(--fill))}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:25px;height:25px;margin-top:-9.5px;border:1px solid #a3a8a0;border-radius:50%;background:#fff;box-shadow:0 2px 3px #00000014}input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:#dcded9}input[type=range]::-moz-range-progress{height:6px;border-radius:99px;background:#3b3e3a}input[type=range]::-moz-range-thumb{width:24px;height:24px;border:1px solid #a3a8a0;border-radius:50%;background:#fff}#poke{display:flex;width:100%;height:58px;align-items:center;justify-content:center;gap:19px;margin-top:25px;border:0;border-radius:99px;background:#30332f;color:#fff;font-size:21px;font-weight:500;letter-spacing:2px;cursor:pointer;transition:background .14s ease,transform .14s ease}#poke svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#poke:hover{background:#454b42}#poke:active{transform:scale(.975)}.interaction-hint{left:49.5%;bottom:12vh;transform:translate(-50%);margin:0;color:#898d85;font-size:18px;letter-spacing:1px;white-space:nowrap}.interaction-hint span{padding:0 7px}.page-footer{left:var(--gutter);right:var(--gutter);bottom:4.3vh;display:flex;align-items:center;justify-content:space-between}.runtime{display:flex;align-items:center;gap:9px;font-size:16px}.status-dot{width:10px;height:10px;border-radius:50%;background:#7ac74b}#fps{margin-left:7px;color:#94998f;font-size:11px;font-variant-numeric:tabular-nums}#loading,#support-message{position:fixed;z-index:4;top:53%;left:49%;transform:translate(-50%,-50%);max-width:min(420px,80vw);padding:18px 24px;border:1px solid #dce2d8;border-radius:15px;background:#fafbf8ed;color:#677263;font-size:15px;line-height:1.8;text-align:center;pointer-events:none}@media(max-width:1100px)and (min-width:761px){h1{font-size:66px}.intro p{font-size:18px}.controls{width:258px;padding:22px}.swatches{margin-left:10px;gap:18px}.interaction-hint{left:43%;font-size:15px}}@media(max-width:760px),(max-height:520px)and (orientation:landscape){:root{--compact-layout: 1;--gutter: clamp(16px, 4.65vw, 22px);--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--edge-left: max(var(--gutter), env(safe-area-inset-left, 0px));--edge-right: max(var(--gutter), env(safe-area-inset-right, 0px));--panel-bottom: calc(44px + var(--safe-bottom));--panel-height: 210px}html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{height:100dvh;min-height:0}.page-header{top:calc(7px + var(--safe-top));left:var(--edge-left);right:var(--edge-right)}.wordmark{min-height:44px;font-size:11px;gap:10px;letter-spacing:1px}.wordmark svg{width:34px;height:22px}.page-header p{font-size:11px;letter-spacing:0}.intro{top:calc(66px + var(--safe-top));left:var(--edge-left);right:var(--edge-right)}h1{font-size:clamp(34px,10vw,46px);letter-spacing:-1px;white-space:nowrap}.intro p{margin-top:8px;font-size:12px;letter-spacing:0}.controls{top:auto;bottom:var(--panel-bottom);left:var(--edge-left);right:var(--edge-right);width:auto;height:var(--panel-height);padding:14px;border-radius:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:44px 60px 60px;column-gap:16px;row-gap:8px;background:#fafaf8e0}.controls h2{align-self:center;margin:0;font-size:17px}.color-control{min-width:0;width:132px;justify-self:end;margin:0}.color-control legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.swatches{justify-content:flex-end;gap:0;margin:0}.swatch{position:relative;width:44px;height:44px;flex-basis:44px;padding:0;border:0;border-radius:12px;background:transparent;touch-action:manipulation}.swatch:before{content:"";position:absolute;inset:7px;border:1px solid rgb(0 0 0 / 6%);border-radius:50%}.swatch.mint:before{background:#a1d9c3}.swatch.pink:before{background:#f4cbd2}.swatch.lavender:before{background:#d1bdef}.swatch[aria-pressed=true]{outline:none}.swatch[aria-pressed=true]:before{outline:2px solid #8eb4a6;outline-offset:3px}.swatch:focus-visible{outline:2px solid #457e6a;outline-offset:1px}.slider-control{min-width:0;height:60px;margin:0}.volume-control{grid-column:1}.control-label{height:16px;font-size:13px;line-height:16px}input[type=range]{width:100%;height:44px;margin:0;touch-action:none}input[type=range]::-webkit-slider-runnable-track{height:4px}input[type=range]::-webkit-slider-thumb{width:24px;height:24px;margin-top:-10px}#poke{grid-column:2;align-self:end;min-height:44px;height:44px;margin:0;font-size:16px;gap:10px;touch-action:manipulation}#poke svg{width:21px;height:21px}.interaction-hint{left:50%;bottom:calc(var(--panel-bottom) + var(--panel-height) + 16px);font-size:12px;line-height:18px;letter-spacing:.3px}.interaction-hint span{padding:0 3px}.page-footer{left:var(--edge-left);right:var(--edge-right);bottom:calc(14px + var(--safe-bottom));gap:8px}.page-footer p{font-size:10px;letter-spacing:0;white-space:nowrap}.runtime{font-size:10px;gap:5px;white-space:nowrap}.status-dot{width:7px;height:7px}#fps{margin-left:3px;font-size:10px}#loading,#support-message{top:38%;left:50%;max-width:min(360px,calc(100vw - 48px));padding:12px 16px;font-size:13px}}@media(max-height:520px)and (orientation:landscape){:root{--landscape-layout: 1;--gutter: 20px;--landscape-panel-width: 282px}.page-header{right:calc(var(--edge-right) + var(--landscape-panel-width) + 20px)}.page-header p{max-width:112px;text-align:right}.intro{top:calc(53px + var(--safe-top));right:calc(var(--edge-right) + var(--landscape-panel-width) + 20px)}h1{font-size:clamp(29px,4.5vw,39px);line-height:1.15}.intro p{margin-top:6px;font-size:11px}.controls{left:auto;right:var(--edge-right);top:calc(12px + var(--safe-top));bottom:auto;width:var(--landscape-panel-width);height:auto;min-height:262px;padding:12px 15px;grid-template-columns:minmax(0,1fr) 132px;grid-template-rows:44px 44px 44px 44px 44px;gap:2px 10px}.controls h2{font-size:17px}.slider-control{grid-column:1 / -1;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;column-gap:12px;height:44px}.control-label{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;height:44px}.control-label output{font-size:10px}#poke{grid-column:1 / -1;align-self:center}.interaction-hint{left:var(--edge-left);right:calc(var(--edge-right) + var(--landscape-panel-width) + 20px);bottom:calc(35px + var(--safe-bottom));transform:none;text-align:center;font-size:11px}.page-footer{bottom:calc(11px + var(--safe-bottom))}#loading,#support-message{left:calc((100vw - var(--landscape-panel-width) - var(--edge-right)) / 2);top:55%;max-width:calc(100vw - var(--landscape-panel-width) - var(--edge-left) - var(--edge-right) - 32px)}}@media(prefers-reduced-motion:reduce){button{transition:none!important}}#poke:disabled{cursor:wait;opacity:.5}.asset-credit{margin-top:20px;color:#67756c;font-size:12px;line-height:1.6}.asset-credit a{color:inherit}.intro .eyebrow,.eyebrow{margin:0 0 10px;color:#648575;font-size:11px;letter-spacing:2px}.intro h1{font-size:clamp(52px,6vw,86px);letter-spacing:-2px}#pet-name{max-width:calc(100vw - var(--gutter) * 2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intro #pet-reaction{margin-top:12px;font-size:18px;color:#67756c}.companion-card{top:38%;padding:24px}.bond-heading{display:flex;justify-content:space-between;font-size:16px}#bond-value{color:#75857c;font-size:12px}progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:6px;margin:16px 0;overflow:hidden;background:#e1e8e2}progress::-webkit-progress-bar{background:#e1e8e2}progress::-webkit-progress-value{background:#608775;border-radius:6px}progress::-moz-progress-bar{background:#608775}#pet-memory{margin:0;min-height:42px;color:#7b847e;font-size:13px;line-height:1.65}.card-actions,.backup-actions{display:flex;gap:10px;margin-top:18px}.card-actions button,dialog button{min-height:44px;padding:10px 16px;border:1px solid #d7dfd7;border-radius:14px;background:#fafbf8;color:#34473b;cursor:pointer;font-size:14px}.card-actions button:first-child{flex:1;background:#34473b;color:#fff;border-color:#34473b}.quick-actions{display:flex;gap:10px;margin-top:16px}.quick-actions button{flex:1;min-height:44px;border:0;border-radius:14px;background:#e4ece5;color:#34473b;cursor:pointer}.quick-actions button:active{transform:scale(.97)}dialog{width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 48px - env(safe-area-inset-top));padding:28px;border:1px solid #d7dfd7;border-radius:26px;color:#34473b;background:#f7f8f3;box-shadow:0 20px 80px #24382924}dialog::backdrop{background:#23362c35;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}dialog h2{margin:0 0 24px;font-size:26px;font-weight:600}dialog h3{margin:24px 0 12px;font-size:15px}dialog .close-dialog{position:absolute;right:14px;top:14px;padding:0;width:44px;border:0;background:transparent;font-size:24px}.settings-content .color-control{margin-bottom:25px}.settings-content .swatches{margin-left:0;justify-content:flex-start;gap:10px}.settings-content .slider-control{display:block;height:auto;margin-bottom:15px}.settings-content .control-label{display:flex;flex-direction:row;height:auto}.settings-content input[type=range]{width:100%;margin:2px 0 0;height:44px}.settings-content #poke{margin:10px 0 16px;height:48px}.toggle{display:flex;justify-content:space-between;align-items:center;min-height:48px;gap:12px;font-size:14px}.toggle input{width:22px;height:22px;accent-color:#608775}.toggle small{display:block;margin-top:4px;color:#7b847e;font-size:11px}.name-row{display:flex;gap:8px;margin:8px 0 18px}.name-row input{min-width:0;width:100%;padding:10px 12px;border:1px solid #cdd9ce;border-radius:12px;background:#fff}.name-row button{flex-shrink:0}#pet-traits,#pet-stats,#profile-notice,#import-description{font-size:12px;line-height:1.7;color:#6e7e73}#memories,.growth-route{padding-left:20px;font-size:13px;line-height:1.8}#memories li{margin-bottom:10px}#memories time{display:block;color:#839087;font-size:11px}.growth-route strong{display:block}.growth-route li{padding:4px 0;color:#78857b}.growth-route li[data-reached=true]{color:#365a43;font-weight:600}#import-preview{padding:8px 0 0}#import-preview button{margin:6px 6px 0 0}#save-status[data-state=error],#save-status[data-state=recovery]{color:#a24c38}.page-footer:has(#save-status[role=alert]) .runtime{display:none}#save-status[role=alert]{white-space:normal;line-height:1.5}#scene canvas.hovering,#scene canvas.grabbing{cursor:pointer}[data-renderer=unavailable] .status-dot{background:#b8735d}@media(max-width:760px),(max-height:520px)and (orientation:landscape){:root{--panel-height: 210px}.intro .eyebrow{font-size:10px;margin-bottom:8px}.intro h1{font-size:44px}.intro #pet-reaction{font-size:14px;margin-top:8px}.companion-card{display:block;height:var(--panel-height);top:auto;padding:16px 18px}.bond-heading{font-size:14px}progress{margin:10px 0;height:4px}#pet-memory{font-size:11px;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-actions{margin-top:12px}.card-actions button{min-height:44px;padding:8px 14px;font-size:13px}.quick-actions{margin-top:9px}.quick-actions button{min-height:40px;font-size:13px}dialog{padding:24px}}@media(max-height:520px)and (orientation:landscape){.companion-card{top:calc(80px + var(--safe-top));min-height:170px}.intro h1{font-size:34px}}
