html{scroll-padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
body{min-height:100svh;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.machine,.cabinet,#grid,.battle-actions,.arcade-panel{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.battle-actions,.arcade-panel,#grid button{touch-action:none}
.machine img,.cabinet img{-webkit-user-drag:none}
.app,main{min-width:0;max-width:100%}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 48px - env(safe-area-inset-bottom,0px));overflow:auto}
#yona-save-notice{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 24px);overflow-wrap:anywhere}
@media(max-width:650px){body:has(.arcade-panel) main{height:auto;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}.arcade-panel{position:relative;bottom:auto}.deck{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}}

.night-goal,.night-records{margin:10px 0;padding:10px 12px;border:1px solid #805b9b;border-radius:10px;background:#21172e;color:#e7d6fa;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.night-records p{margin:3px 0}.night-records p:last-child{color:#a7eae1}button{touch-action:manipulation}
