:root{--paper:#f7f6f0;--ink:#22342a;--muted:#58655c;--line:#e1e4da;--warm:#e98254;--leaf:#21634e;--shade:#e9efe5;--white:#fffefa;color-scheme:light;font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;color:var(--ink);background:var(--paper)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.34}button:focus-visible,a:focus-visible,.scene:focus-visible{outline:3px solid #32886c;outline-offset:4px}a{color:inherit}
.symbols,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.shell{width:min(1160px,calc(100% - 72px));margin-inline:auto}.site-header{border-bottom:1px solid var(--line);background:#fcfbf6}.header-inner{height:65px;display:flex;align-items:center;justify-content:space-between;gap:16px}.logo{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:780;font-size:18px;letter-spacing:.025em}.logo-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#174f3d;color:#fff8e8;transform:rotate(-7deg)}.logo-mark .icon{width:21px;height:21px}.logo-en{display:block;font-weight:750;font-size:8px;letter-spacing:.22em;line-height:1.1;margin-top:2px}.header-actions{display:flex;gap:8px}.top-button,.round-button{display:inline-flex;gap:6px;align-items:center;justify-content:center;background:transparent;border:1px solid #dbe1d7;border-radius:999px;font-size:13px;font-weight:650;padding:7px 12px;min-height:36px;white-space:nowrap}.top-button:hover,.round-button:not(:disabled):hover{background:#e9eee5}.top-button .icon{width:16px;height:16px}.random-button{background:#e8efe4;border-color:#e3ebdf;color:#204d3d}.random-button:hover{background:#dbe7d8}
.intro{padding:33px 0 24px}.eyebrow,.shelf-kicker{color:#306450;font-size:10px;letter-spacing:.20em;font-weight:800;display:flex;align-items:center;gap:8px}.eyebrow>span,.camera-tag span,.profile-dot{width:7px;height:7px;border-radius:50%;background:#d17148;display:inline-block;flex:none}.eyebrow i{font-style:normal;opacity:.55}.intro h1{font-size:clamp(40px,5.2vw,69px);line-height:1.1;margin:8px 0 9px;font-weight:850;letter-spacing:-.064em}.intro h1 span{color:#cc6035}.intro p{color:var(--muted);font-size:15px;margin:0;letter-spacing:.035em}
.playground{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(246px,1fr);align-items:start;gap:18px}.pet-stage{min-width:0}.scene{position:relative;isolation:isolate;aspect-ratio:1.96;min-height:310px;overflow:hidden;border-radius:20px;background:radial-gradient(at 55% 55%,#93a074,#414b33);touch-action:none;user-select:none;cursor:grab;box-shadow:0 5px 20px #273a2512}.scene:active{cursor:grabbing}.dog-photo,#dog-motion,.scene-shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.dog-photo{object-fit:cover;object-position:50% 50%;color:#fff;transform-origin:50% 45%}.dog-photo[hidden],#dog-motion[hidden]{display:none}.scene-shade{background:linear-gradient(172deg,#101c16a0 0%,transparent 28%),linear-gradient(0deg,#121c143d,transparent 24%)}.camera-tag{position:absolute;top:16px;left:16px;display:flex;align-items:center;gap:8px;border:1px solid #ffffff59;border-radius:100px;background:#1c2b21a8;color:#fff;padding:7px 11px;font-size:11px;font-weight:650;letter-spacing:.08em}.camera-tag span{background:#c0da9e;box-shadow:0 0 8px #b3d48485}.scene-hint{position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);display:flex;gap:6px;align-items:center;white-space:nowrap;background:#172b20eb;border:1px solid #fffeea82;border-radius:999px;padding:7px 12px;font-size:12px;color:#fff;pointer-events:none;transition:opacity .24s}.scene-hint .icon{width:16px;height:16px}.scene-hint.is-gone{opacity:0}.touch-ring{--ring:56px;position:absolute;z-index:2;top:0;left:0;width:var(--ring);height:var(--ring);border:2px solid #f9f8e6db;box-shadow:0 0 0 3px #1e372f40,inset 0 0 20px #fff1;opacity:0;pointer-events:none;border-radius:50%;transform:translate(-50%,-50%);transition:opacity .18s, width .2s,height .2s}.touch-ring.active{opacity:.87}.touch-ring.ear{--ring:47px}.touch-ring.cheek{--ring:66px}.full-button{position:absolute;z-index:3;right:13px;bottom:13px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#fff;border:1px solid #ffffff61;background:#16251bbc}.full-button:hover{background:#10261e}.scene:fullscreen,.scene.sim-full{width:100%;height:100%;max-height:100%;border:0;border-radius:0;aspect-ratio:auto}.scene.sim-full{position:fixed;inset:0;z-index:10}.scene-error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#243c2f;color:#fff;padding:24px;line-height:1.8}.scene-error[hidden]{display:none}
.help{display:flex;align-items:center;gap:8px;color:#46584b;font-size:12px;min-height:39px;padding:7px 3px}.help>.icon{color:#30634f;width:17px;height:17px}.key-help{margin-left:auto;display:flex;align-items:center;gap:7px}kbd{font:700 10px "Segoe UI",sans-serif;padding:3px 6px;border:1px solid #cfd7ca;border-bottom-width:2px;border-radius:5px;background:var(--white)}
.profile{align-self:stretch;margin-bottom:39px;border:1px solid var(--line);border-radius:20px;background:var(--white);display:flex;flex-direction:column;padding:clamp(16px,2.25vw,28px);box-shadow:0 5px 20px #273a2507}.profile-heading{display:flex;align-items:center;gap:8px;font-size:12px;color:#516254;font-weight:700;white-space:nowrap}.profile-dot{background:#538870;width:6px;height:6px}.number{margin-left:auto;letter-spacing:.11em;font-size:10px;background:#edf2e9;padding:5px 7px;border-radius:6px;color:#355d4b}.profile-breed{padding:clamp(18px,3.55vw,42px) 0 21px}.breed-en{font-size:10px;letter-spacing:.14em;font-weight:800;color:#a4492d}.profile-breed h2{margin:5px 0 10px;font-size:clamp(24px,2.6vw,34px);line-height:1.2;letter-spacing:-.045em}.profile-breed p{margin:0;color:var(--muted);font-size:13px;line-height:1.65;min-height:43px}
.reaction{display:flex;align-items:center;gap:11px;padding:10px 11px;min-height:61px;background:#edf2e9;border-radius:12px;margin-top:auto}.reaction-icon{background:#dce9da;color:#295d49;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}.reaction-icon .icon{width:19px;height:19px}.reaction-icon.active .icon{fill:#bb5538;color:#bb5538;animation:pulse .32s ease-out}.reaction-label{display:block;color:#4e6456;font-size:10px;margin-bottom:2px}.reaction strong{font-size:13px;color:#244a3a}.profile-footer{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin-top:9px;color:#526052;white-space:nowrap}.profile-footer strong{font-size:19px;vertical-align:-1px;color:#214936;font-variant-numeric:tabular-nums}.pet-button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;min-height:38px;border:0;border-radius:999px;background:#1d624c;color:#fffaf0;font-size:13px;font-weight:750}.pet-button:hover{background:#154a39}.pet-button .icon{width:16px;height:16px}@keyframes pulse{50%{transform:scale(1.28)}}
.shelf{margin-top:16px}.shelf-header{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:11px}.shelf-kicker span{color:#b55836;font-size:13px;line-height:1}.shelf h2{font-size:25px;line-height:1.15;margin:4px 0 0;letter-spacing:-.035em}.shelf-nav{display:flex;align-items:center;gap:7px}.shelf-nav>span{font-size:12px;color:#566659;margin-right:4px}.round-button{width:33px;height:33px;min-height:0;padding:0}.round-button .icon{width:16px;height:16px}
.breed-list{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 70px)/8);gap:10px;overflow:auto;scrollbar-width:thin;scrollbar-color:#b0bdaf transparent;scroll-snap-type:x mandatory;padding:3px 3px 9px}.breed-card{display:block;text-align:left;min-width:0;position:relative;background:var(--white);border:1px solid #e2e4d9;border-radius:13px;padding:4px;scroll-snap-align:start;min-height:80px}.breed-card:hover{border-color:#799c86}.breed-card[aria-pressed="true"]{border-color:#34785e;box-shadow:0 0 0 1px #34785e;background:#e9f1e7}.breed-card img{display:block;width:100%;height:57px;object-fit:cover;border-radius:8px;background:#dde6d7;pointer-events:none}.breed-card strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 4px 3px}.breed-card .index{position:absolute;top:8px;left:8px;padding:2px 4px;background:#203c31e0;color:#fff;border-radius:4px;font-size:8px;letter-spacing:.05em;pointer-events:none}.site-footer{margin-top:22px;border-top:1px solid var(--line);padding:14px 0 18px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#566759;font-size:11px}.site-footer .icon{width:13px;height:13px}.site-footer button{background:none;border:0;padding:4px;color:#355e4b;font-size:11px}.site-footer button:hover{text-decoration:underline}
.credits{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:18px;width:min(520px,calc(100% - 32px));max-height:85dvh;box-shadow:0 8px 60px #1118;padding:22px}.credits::backdrop{background:#192921a0}.credits-header{display:flex;align-items:center;justify-content:space-between}.credits h2{margin:0}.credits p,.credits li{font-size:13px;line-height:1.65}.credits li+li{margin-top:8px}.credits a{color:#225a45}
@media(max-width:930px){.shell{width:calc(100% - 48px)}.breed-list{grid-auto-columns:calc((100% - 50px)/6)}.playground{grid-template-columns:minmax(0,2.4fr) minmax(220px,1fr)}}
@media(max-width:680px){.shell{width:calc(100% - 26px)}.header-inner{height:56px}.intro{padding:25px 0 18px}.top-button{min-height:34px;font-size:12px;padding:6px 8px}.logo{font-size:16px}.logo-mark{width:29px;height:29px}.intro p{font-size:13px}.playground{grid-template-columns:1fr;gap:9px}.scene{min-height:0;aspect-ratio:1.43;border-radius:16px}.scene:fullscreen,.scene.sim-full{aspect-ratio:auto}.profile{margin-bottom:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,.72fr);gap:5px 10px;padding:13px;border-radius:14px;align-items:start}.profile-heading{grid-column:1/-1}.profile-breed{padding:7px 0 1px}.profile-breed h2{margin:4px 0 5px}.profile-breed p{font-size:11px;min-height:0}.reaction{margin:4px 0 0;padding:7px 6px;min-height:50px;gap:6px}.reaction-icon{width:27px;height:27px}.reaction strong{font-size:12px}.profile-footer{grid-column:1/-1;min-height:34px;margin-top:2px}.pet-button{min-height:34px}.shelf{margin-top:21px}.breed-list{grid-auto-columns:calc((100% - 26px)/3.55)}.shelf h2{font-size:22px}}
@media(pointer:coarse){.key-help{display:none}}
.motion-fallback{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.motion-fallback[hidden]{display:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
