.pet-page{max-width:1000px;margin:60px auto 90px}.pet-page h1{font-family:'XBAND Rough',monospace;font-size:clamp(48px,8vw,86px);margin:10px 0}.pet-intro{color:#aaa;max-width:620px}.pet-shell{border:1px solid #666;border-radius:38px;background:linear-gradient(130deg,#353638,#121315 40%,#292a2c);padding:30px;box-shadow:inset 0 2px 1px #999,0 20px 70px #000;margin-top:32px}.pet-screen{position:relative;min-height:310px;border:10px solid #101112;border-radius:14px;background:#b6bea2;color:#17251c;text-align:center;overflow:hidden;box-shadow:inset 0 0 30px #536346}.pet-screen:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(transparent 0 3px,#142a1710 3px 4px);pointer-events:none}.pet-screen h2{font:28px 'XBAND Rough',monospace;margin:24px 0 0;overflow-wrap:anywhere}.pet-display{width:150px;height:150px;margin:10px auto;animation:pet-bob 1.4s steps(2,end) infinite;transform-origin:center bottom}.pet-display svg{width:100%;height:100%;fill:currentColor;shape-rendering:crispEdges}.pet-display.sleeping{animation:pet-sleep 3s steps(2,end) infinite}.pet-display.celebrate{animation:pet-hop .35s steps(3,end) 3}.pet-speech{min-height:28px;margin:8px 12px 20px}.pet-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px 0}.pet-stat{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px}.pet-stat progress{width:100%;height:12px;accent-color:#bdc9a2}.pet-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.pet-page button{font:14px 'XBAND Rough',monospace;cursor:pointer;min-height:48px;padding:12px 16px;background:#e5e5df;color:#151515;border:2px outset #ddd;border-radius:8px}.pet-page button:disabled{opacity:.4;cursor:default}.pet-page button:focus-visible,.pet-page input:focus-visible{outline:3px solid #d0eaa7;outline-offset:4px}.pet-page input{font:16px monospace;padding:12px;max-width:100%;background:#101212;color:#fff;border:1px solid #777;border-radius:6px}.pet-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.pet-choices button{background:#1e2021;color:#c4cdb0;min-height:130px}.pet-choices svg{display:block;width:70px;height:70px;margin:auto;fill:currentColor;shape-rendering:crispEdges}.pet-choices [aria-pressed=true]{outline:3px solid #c4cdb0;background:#303831}.pet-adopt-row,.pet-rename{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.pet-notes{font-size:12px;color:#aaa;margin:28px 0}.pet-status{min-height:26px;color:#d3dfbe}.pet-meta{display:flex;justify-content:space-between;gap:12px;color:#aaa;font-size:11px;margin:20px 0}.pet-page [hidden]{display:none!important}@keyframes pet-bob{50%{transform:translateY(-7px) rotate(3deg)}}@keyframes pet-hop{50%{transform:translateY(-25px) rotate(-10deg)}}@keyframes pet-sleep{50%{transform:scaleY(.94)}}@media(max-width:600px){.pet-page{margin-top:32px}.pet-shell{padding:16px;border-radius:24px}.pet-actions{grid-template-columns:1fr 1fr}.pet-screen{min-height:280px}.pet-choices{gap:8px}.pet-choices button{padding:8px}.pet-adopt-row input{width:100%}}@media(prefers-reduced-motion:reduce){.pet-display,.pet-display.sleeping,.pet-display.celebrate{animation:none}}

.pet-display{width:240px;height:250px}.pet-display img{width:100%;height:100%;object-fit:contain}.pet-screen{background:radial-gradient(ellipse at center,#dce3ce,#8e9c7a);min-height:390px}.pet-choices img{display:block;width:100%;height:150px;object-fit:contain;margin:0 auto 12px}.pet-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:30px 0}.pet-preview figure{margin:0;padding:16px;background:#181a1c;border:1px solid #444;border-radius:16px;text-align:center}.pet-preview img{width:100%;height:220px;object-fit:contain}.pet-preview figcaption{font-family:'XBAND Rough',monospace;margin-top:12px}.pet-display.sleeping:after{content:'Z z z';position:absolute;top:10px;right:0;font:bold 24px monospace}.pet-rename{margin-top:16px}@media(max-width:600px){.pet-preview{gap:6px}.pet-preview figure{padding:8px}.pet-preview img{height:125px}.pet-choices img{height:120px}.pet-preview figcaption{font-size:13px}}
.pet-display{max-width:100%}

.pet-preview{grid-template-columns:repeat(4,minmax(0,1fr))}.pet-screen{background:#17191a;color:#eee}.pet-screen:after{opacity:.25}.pet-display{width:300px;height:300px}.pet-preview img{height:200px}@media(max-width:600px){.pet-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-preview img{height:170px}}

/* Deeper black fills; retain the original hand-drawn sprite files. */
.pet-display img,.pet-preview img,.pet-choices img{filter:contrast(1.35) brightness(.9)}

/* A private room stage, with the pet standing on the lit floor. */
.pet-screen{aspect-ratio:1.42;min-height:320px;background:#13191f url('assets--pets--room-pixel.png') center center/cover no-repeat;box-shadow:inset 0 0 36px #0008;isolation:isolate}
.pet-screen:after{display:none}
.pet-screen h2{position:absolute;top:14px;left:12px;right:12px;margin:0;z-index:3;color:#fff;text-shadow:0 2px 4px #000,0 0 12px #000}
.pet-screen .pet-display{position:absolute;left:0;right:0;bottom:9%;margin:0 auto;width:45%;height:49%;max-width:340px;z-index:2}
.pet-screen .pet-display:before{content:'';position:absolute;left:20%;right:20%;bottom:0;height:8%;border-radius:50%;background:#0008;filter:blur(5px);z-index:-1}
.pet-screen .pet-speech{position:absolute;bottom:8px;left:12px;right:12px;width:fit-content;max-width:calc(100% - 24px);margin:0 auto;padding:4px 12px;background:#000b;border-radius:4px;color:#fff;z-index:3}
@media(max-width:600px){.pet-screen .pet-display{width:65%;height:49%}.pet-screen h2{font-size:24px}}
@media(max-width:600px){.pet-screen{aspect-ratio:auto;width:100%;height:320px;min-width:0;box-sizing:border-box}}
