/* One visible 16:9 frame from the home menu through the entire round. */
:root{--game-frame-width:min(100vw,calc(100svh * 16 / 9));--game-frame-height:min(56.25vw,100svh);--game-letterbox:#000;background:var(--game-letterbox)}
body:has(#home-stage),body:has(.selection-stage),body.game-flow{margin:0;height:100svh;min-height:100svh;background:var(--game-letterbox);overflow:clip}
#home-stage,.selection-stage,.game-flow .stage-frame{width:var(--game-frame-width);height:var(--game-frame-height);aspect-ratio:16/9;flex:none;border:0;box-shadow:none}
.game-flow main{height:100svh;max-width:none;padding:0;display:flex;align-items:center;justify-content:center}
#intro-film{background:var(--game-letterbox)}

/* Preserve the 16:10 PSD's foreground proportions inside the shared 16:9
   frame. Only the decorative backdrop is recropped to its wider format. */
:is(#combat-loading,.intro-loading-entry #game-boot){background:var(--game-letterbox)}
:is(#combat-loading,.intro-loading-entry #game-boot):before{width:var(--game-frame-width);height:var(--game-frame-height);background-color:#f1f2eb;background-size:100% auto;background-position:center 67.7%}
.combat-load-board{width:min(90vw,160svh);height:var(--game-frame-height);aspect-ratio:3168/1980;background:transparent}

