.device,.title-screen{background-image:url("assets/design-device-v5/device-shell-v5-native.png")}
.device .room,#titlePet{left:calc(20 * var(--u));top:calc(76 * var(--u));width:calc(256 * var(--u));height:calc(192 * var(--u));aspect-ratio:4/3}
.device-label{top:calc(32 * var(--u));font-size:16px;line-height:20px}
.device .screen-top{left:calc(22 * var(--u));top:calc(54 * var(--u));width:calc(252 * var(--u))}
.device .state-line{left:calc(20 * var(--u));top:calc(278 * var(--u));width:calc(256 * var(--u))}
.device .stats,.device .egg-panel::before{top:calc(298 * var(--u))}
.device .egg-panel label{top:calc(300 * var(--u))}#hatch{top:calc(319 * var(--u))}#eggInfo{top:calc(326 * var(--u))}
.device .controls button{height:calc(60 * var(--u));padding-top:calc(44 * var(--u))}
.device .controls button::before{left:calc(4 * var(--u));width:calc(56 * var(--u));height:calc(40 * var(--u));background-image:url("assets/design-device-v5/ui-care-cap-v4-native.png");background-position:0 calc(var(--row) * -40 * var(--u))}
.device .controls .action-icon{left:calc(20 * var(--u));top:calc(8 * var(--u));width:calc(24 * var(--u));height:calc(24 * var(--u))}
.device .controls button:active .action-icon{top:calc(10 * var(--u))}.device .controls button:disabled .action-icon{top:calc(9 * var(--u))}
[data-action=eat],[data-action=play],[data-action=rest]{--y:350}
[data-action=sleep]{--x:80}[data-action=clean]{--x:152}
[data-action=pet]{--x:80;--y:350}[data-action=warm]{--x:152;--y:350}
.start-art{top:calc(360 * var(--u))}
#effect{position:absolute;left:78.125%;width:18.75%;height:25%;z-index:2;pointer-events:none}
#newGameDialog .dialog-buttons button.utility-art{border:0;background:none;box-shadow:none}
.utility-art:focus-visible{border-radius:24px;outline:3px solid var(--edge);outline-offset:2px}
#albumDialog{padding:0;overflow:hidden;max-height:85vh}
.album-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:var(--paper);position:sticky;top:0;z-index:1}
.album-heading h2{margin:0;font-size:20px}.album-heading button{min-width:64px;min-height:48px;flex-shrink:0}
.album-content{overflow:auto;max-height:calc(85vh - 84px);padding:0 16px 16px;overscroll-behavior:contain}
@media(min-width:700px){.device-label{font-size:24px;line-height:28px}.device .screen-top strong,.device .screen-top span,.device .controls button{font-size:20px}}
#effect{left:40.625%}
#rhythmBeats{flex-wrap:wrap}#rhythmBeats span{flex:0 0 calc((100% - 33px)/12)}
.difficulty-label{display:grid;gap:6px;font-size:14px}.difficulty-label select{font:inherit;min-height:44px;color:var(--ink);background:var(--paper);border:1px solid var(--edge);max-width:100%}

#albumDialog{max-width:480px}
.memory-card{min-height:140px;justify-content:flex-start;padding:10px 6px;gap:8px}
.memory-card img{width:96px;height:64px;aspect-ratio:3/2;object-fit:contain;flex-shrink:0}
.memory-card>span{line-height:20px;min-height:40px;max-width:100%;word-break:keep-all;overflow-wrap:anywhere}
@media(min-width:700px){.memory-card{min-height:198px}.memory-card img{width:192px;height:128px}}

#friendName{display:block;width:100%;min-height:48px;margin:8px 0 20px;padding:10px;border:2px solid var(--edge);background:var(--paper);font:inherit;color:var(--ink)}
#nameDialog .dialog-buttons button.utility-art{border:0;background:none;box-shadow:none}
#petName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#rhythmDialog .rhythm-meta button{flex-shrink:0;white-space:nowrap}#nameTitle{font-size:20px;word-break:keep-all}
