.pet385{--pet-border:#4c7162;color:#edf5e6}.pet-intro{margin-top:0;color:#b9cfc0}.pet-tabs,.pet-select,.pet-actions,.pet-shop-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pet-tabs{border-bottom:1px solid #426354;padding-bottom:14px}.pet-tabs button{min-height:40px;padding:10px 14px;font-size:14px}.pet385 button{white-space:normal}.pet385 button:disabled{opacity:.48;cursor:default}.pet-layout,.pet-profile{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.15fr);gap:24px;align-items:center}.pet-preview{background:radial-gradient(ellipse at 50% 25%,#568c78 0,#244e41 60%,#1a3a30 100%);border:1px solid #668b72;border-radius:24px;overflow:hidden;text-align:center}.pet-preview canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}.pet-preview small{display:block;padding:4px 8px 15px;color:#d2e3d0;font-size:12px}.pet-profile h3{font-size:30px;margin:6px 0}.pet-fields{display:grid;gap:12px;margin:14px 0}.pet-fields label,.pet-shop-head label{display:grid;gap:5px;color:#c2d5c7;font-size:14px}.pet385 input,.pet385 select{width:100%;min-height:44px;border:1px solid #648471;border-radius:12px;background:#17382e;color:#f0f7ec;padding:10px 12px;font:inherit}.pet-meters{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}.pet-meters label{font-size:13px;color:#d2dfcf}.pet-meters strong{float:right;margin-left:5px}.pet-meters meter{display:block;width:100%;height:12px;accent-color:#b5f183}.pet-price{font-size:24px;color:#d6f6b6;font-weight:800}.pet-price small{display:block;font-size:13px;font-weight:400;color:#b5ccbc}.pet-note{background:#23493b80;border-radius:12px;padding:12px 14px;color:#c6d7c7;font-size:14px;line-height:1.6}.pet-empty{text-align:center;padding:30px 15px}.pet-empty>span{font-size:64px}.pet-shop-head{display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap}.pet-goods{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.pet-goods article{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #4b6b59;border-radius:16px;background:#24473880;min-width:0}.pet-goods article>div{flex:1;min-width:0}.pet-goods strong,.pet-goods small,.pet-goods b{display:block}.pet-goods strong{font-size:15px}.pet-goods small{font-size:12px;color:#c0cfbe;margin:4px 0}.pet-goods b{font-size:14px;color:#e8d59a}.pet-goods-icon{font-size:28px}.pet-goods button{padding:8px 12px;min-height:40px;font-size:13px}.pet-memories{padding-left:24px;line-height:2}.pet-actions button{min-height:44px}.pet-shop-links button{font-size:14px}.pet-walk-key{position:absolute;left:50%;bottom:calc(var(--safe-bottom,0px) + 120px);transform:translateX(-50%);padding:10px 16px;border-radius:18px;min-height:44px;background:#193d30ed;border:1px solid #a7dc8e;color:#edffe6;font-weight:750;pointer-events:auto}.pet-walk-key[hidden]{display:none!important}.walking-actions384{position:absolute;left:calc(100% + 8px);bottom:6px;display:flex;align-items:center;gap:6px}.walking-actions384 #touch-run{position:static;inset:auto;flex:none}.walking-actions384 #pedestrian-recovery{position:static;inset:auto;flex:none;width:50px;min-width:50px;height:42px;min-height:42px;padding:5px;font-size:9px;line-height:1.1;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.walking-actions384 #pedestrian-recovery svg{width:17px;height:17px}.left-mode .walking-actions384{left:auto;right:calc(100% + 8px);flex-direction:row-reverse}@media(max-width:620px){.pet-layout,.pet-profile{grid-template-columns:1fr;gap:15px}.pet-preview{max-width:290px;width:100%;margin:auto}.pet-preview canvas{max-height:190px;object-fit:contain}.pet-goods{grid-template-columns:1fr}.pet-tabs{gap:6px}.pet-tabs button{font-size:12px;min-height:40px;padding:8px 10px}.pet-profile h3{font-size:25px}.pet-actions button{font-size:14px;padding:10px 13px}.pet-walk-key{bottom:calc(var(--safe-bottom,0px) + 144px);font-size:13px}}

#dialog.pets-dialog{width:min(900px,calc(100vw - 32px))}.pet-layout{align-items:start}.pet-layout .pet-fields{grid-template-columns:1fr 1fr}.pet-layout .pet-fields label:first-child{grid-column:1 / -1}.pet-layout p{font-size:14px;line-height:1.55}.pet-layout .pet-preview{position:sticky;top:0}@media(max-width:620px){#dialog.pets-dialog{width:calc(100vw - 20px)}.pet-layout .pet-fields{grid-template-columns:1fr 1fr}.pet-layout .pet-preview{position:static}}

#dialog-layer.pets-layer{position:fixed;inset:0;width:100vw;height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-sizing:border-box}#dialog.pets-dialog{max-height:calc(100dvh - 28px);max-width:100%;min-height:0}.pets-dialog #dialog-content{min-height:0;overflow:auto}

/* Independent, editable pet control next to Jump. */
#app #hud #pet-walk-key{left:auto;right:calc(var(--right) + 69px * var(--hud-controls-scale,1) + 8px);bottom:var(--bottom);width:54px;height:46px;min-height:44px;min-width:44px;padding:5px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:15px;font-size:10px;line-height:1.1;transform:scale(var(--hud-controls-scale,1));transform-origin:bottom right;touch-action:none;z-index:5}
#pet-walk-key svg{width:19px;height:19px;fill:#c1f19c}#app #hud #pet-walk-key[hidden]{display:none!important}
.pet-preview-tools{display:flex;gap:5px;justify-content:center;padding:0 8px 12px}.pet-preview-tools button{min-height:34px;padding:7px 10px;font-size:12px}.pet-mood{display:inline-block;font-size:12px;color:#d1eaa8;background:#355744;padding:5px 10px;border-radius:12px}.pet385 progress{display:block;width:100%;height:8px;margin:8px 0;accent-color:#b8e68b}.pet-goods article>div:last-child>button{display:block;margin:4px 0}.pet385 input,.pet385 select{max-width:100%}

#app #hud #pet-walk-key{transform:none;width:clamp(44px,calc(54px * var(--hud-controls-scale,1)),62px);height:44px}
