/* Explicit physical offsets also work when an older base sheet is cached.
   Keep this screen-owned repair last in index.html. */
#home .melee-heading,#home .melee-nav{top:auto;right:auto;bottom:auto;left:auto}
@media(max-width:599px) and (orientation:portrait){
 #home{display:flex;flex-direction:column;justify-content:flex-start;gap:18px;padding:58px 7% max(20px,env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #home .melee-heading{position:relative;flex:0 0 auto;margin:0;padding:0 0 12px;gap:12px}
 #home .melee-heading>span{font-size:clamp(30px,9vw,40px)}
 #home .menu-wordmark{width:70px;height:48px;flex:0 0 70px}
 #home .melee-nav{position:relative;align-self:stretch;flex:0 0 auto;justify-content:flex-start;width:100%;max-width:100%;height:auto;max-height:none;transform:none;margin:12px 0 0;gap:12px}
 #home .melee-option:nth-child(n){flex:0 0 auto;width:100%;min-height:56px;height:64px;margin:0;padding:8px 12px;gap:12px;transform:none;translate:none;border-radius:0}
 #home .melee-option>*{transform:none}
 #home .melee-option b{font-size:clamp(29px,8vw,38px);white-space:normal;line-height:1.05}
 #home .menu-medal{transform:none;width:35px;height:35px;flex:0 0 35px}
 #home .melee-option.selected{translate:none;box-shadow:none;outline:2px solid var(--paper);outline-offset:3px}
 #home .melee-description{position:relative;flex:0 0 auto;top:auto;right:auto;bottom:auto;left:auto;margin:4px 0 0;padding:14px 0 0;min-height:0}
 #home .melee-description p{font-size:12px;line-height:1.5}
 #home .melee-description>span,#home .melee-submenu{display:none}
 #home .menu-feature{pointer-events:none;opacity:.12;z-index:0}
}

/* Missing decoration must never expose Safari's failed-image rectangle. */
#titleScreen .title-fighter[hidden]{display:none}
/* One cast, one floor line. Crop only the transparent canvas padding in
   screen-owned slots; the source artwork and every other menu stay intact. */
#titleScreen .title-field{--cast-height:min(82dvh,35vw);inset:4% 2% max(52px,env(safe-area-inset-bottom)) 49%;display:flex;align-items:flex-end;justify-content:center;gap:clamp(4px,.7vw,14px);min-width:0;min-height:0}
#titleScreen .title-slot{position:relative;display:block;flex:0 0 auto;inset:auto;height:min(100%,var(--cast-height));width:auto;max-height:100%;aspect-ratio:var(--ink-width) / var(--ink-height);overflow:hidden;isolation:isolate}
#titleScreen .title-slot-threadguy{order:1}
#titleScreen .title-slot-mika{order:3}
#titleScreen .title-slot-nub{order:2;height:calc(var(--cast-height) * .34);max-height:34%}
#titleScreen .title-slot .title-fighter{position:absolute;display:block;inset:auto;left:calc(-100% * var(--ink-left) / var(--ink-width));top:calc(-100% * var(--ink-top) / var(--ink-height));right:auto;bottom:auto;width:calc(100% * var(--canvas-width) / var(--ink-width));height:calc(100% * var(--canvas-height) / var(--ink-height));object-fit:fill;object-position:center;max-width:none;opacity:1;transform:none;border:0;font-size:0;z-index:auto}
@media(max-width:599px) and (orientation:portrait){
 #titleScreen .title-field{inset:54% 2% max(34px,env(safe-area-inset-bottom));--cast-height:min(39dvh,68vw);min-width:0;min-height:0}
}
