#local-resume{padding:0 0 .8rem;margin-bottom:.7rem;border-bottom:1px solid #665384}
#local-resume p{margin:.2rem 0 .7rem}
#player-name,#legacy-save{width:min(100%,24rem);background:#161126;color:#f6edff;border:1px solid #7964a2;border-radius:5px;padding:.65rem .8rem;margin:.35rem 0 .65rem}
#new-player>details{margin-top:1rem}
#rom-options summary{cursor:pointer;color:#e0ccff}
#play-shell{--pad-accent:#e2ceff}
.ive-controller-banner{display:flex;gap:.85rem;align-items:center;color:#f9efff;padding:.85rem 1rem;background:linear-gradient(115deg,#3c245b,#231b41);border:1px solid #8b6ab0;border-radius:.45rem;width:min(100%,50rem);box-sizing:border-box}
.ive-controller-banner svg{flex:none;color:var(--pad-accent);width:2.25rem}
.ive-controller-banner strong{display:block;font-size:clamp(1.03rem,3vw,1.4rem);line-height:1.2}
.ive-controller-banner small{display:block;color:#e0d2f7;font:inherit;font-size:.85rem;margin-top:.2rem}
#play-shell .ive-play-toolbar{margin-top:.65rem;width:min(100%,50rem)}
#play-shell #controls{padding:0;margin:.85rem 0 0;background:transparent;border:none;display:block}
#play-shell [hidden],#ive-holo[hidden]{display:none!important}
#key-settings{margin-top:.6rem;padding:.8rem 1rem;background:#211633;border:1px solid #81649b;border-radius:.45rem}
#key-settings h2{font-size:1.05rem;margin:0}
#key-settings p{font-size:.875rem;margin:.45rem 0 .7rem;color:#e0d2f7}
#key-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.35rem .6rem}
#key-list>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 .5rem;background:#302345;border-radius:.3rem}
#key-list button{min-height:36px;font:inherit;padding:.2rem .55rem}
#touch-gamepad{width:100%;display:flex;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
#touch-gamepad>div{display:flex;gap:.3rem;flex-wrap:wrap}
#touch-gamepad button{min-height:44px;min-width:44px;touch-action:none}
#touch-options{margin:.55rem 0}
@media (pointer:fine) {#touch-options{display:none}}
#play-shell:not([hidden]){display:flex;flex-direction:column;align-items:center;width:100%;margin-inline:auto}
#play-shell>#playbox{margin-left:auto;margin-right:auto}
@media (pointer:coarse),(any-pointer:coarse){#touch-options{display:block}}
#play-shell:is(:fullscreen,:-webkit-full-screen,.ive-fullscreen-fallback){
 justify-content:center;overflow:hidden;padding:clamp(5px,1.5vw,14px);
}
#play-shell:is(:fullscreen,:-webkit-full-screen,.ive-fullscreen-fallback) .ive-play-toolbar{
 position:absolute;z-index:4;top:max(.4rem,env(safe-area-inset-top));right:max(.4rem,env(safe-area-inset-right));
 width:auto;justify-content:flex-end;margin:0;
}
#play-shell:is(:fullscreen,:-webkit-full-screen,.ive-fullscreen-fallback) :is(.ive-controller-banner,#controls,.ive-play-toolbar > :not(#fullscreen)){display:none!important}
#play-shell:is(:fullscreen,:-webkit-full-screen,.ive-fullscreen-fallback) #playbox{
 width:min(100%,max(0px,calc((100dvh - 4.25rem) * 1.5)));margin:2rem auto 0;
}
.ive-speed-label{display:flex;align-items:center;gap:.45rem;color:#e6d5fa}
#ive-speed{font:inherit;color:#f3e9ff;background:#32254c;border:1px solid #8b74ae;border-radius:.35rem;min-height:42px;padding:.3rem .45rem}

.ive-run-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
#new-run,#new-run-cancel{background:#302343;color:#f0e1ff;border:1px solid #9076ad}
#new-run:hover:not(:disabled),#new-run-cancel:hover{background:#493360}
#new-run:disabled{opacity:.45}
#new-run-confirm{width:min(27rem,calc(100% - 2rem));padding:1.2rem;border:1px solid #986daf;border-radius:.8rem;background:#211633;color:#f5eaff;box-shadow:0 1rem 4rem #10091cbf}
#new-run-confirm::backdrop{background:#0e0918bf}
#new-run-title{margin:.1rem 0 .55rem;font-size:1.12rem}
#new-run-warning{font-size:.95rem;color:#e0cfeb}
#new-run-confirm .ive-run-actions{justify-content:flex-end;margin-top:.85rem}
#new-run-confirm button,#new-run{min-height:44px}
#new-run-confirm .ive-delete-run{background:#ffa7b4;color:#291018}
#new-run-confirm button:focus-visible,#new-run:focus-visible{outline:2px solid #f4dcff;outline-offset:3px}
