/* Keep the illustrated setup and story controls within a shared reading width on desktop. */
@media (min-width:701px) and (pointer:fine) {
  html:root body.is-character-creation .creation-card .creation-form {
    justify-self:center;
    box-sizing:border-box;
    max-width:880px;
    padding-inline:clamp(20px,2vw,38px);
  }
  html:root body.is-prologue .life-prologue > :is(.prologue-top,.prologue-scene,.prologue-controls) {
    width:100%;
    max-width:1440px;
    margin-inline:auto;
    box-sizing:border-box;
  }
  html:root body dialog#modal[open]:has(.birth-picker) {
    width:min(1160px,calc(var(--game-logical-width,100vw) - 56px))!important;
  }
  html:root body #modal .birth-picker .birth-option-grid {
    grid-template-columns:repeat(auto-fit,minmax(min(305px,100%),1fr))!important;
    gap:10px!important;
  }
  html:root body #modal .birth-picker .birth-option-grid .birth-option {
    grid-template-columns:clamp(78px,7vw,110px) minmax(0,1fr)!important;
    align-content:stretch;
    align-items:stretch;
    padding:10px 12px!important;
  }
  html:root body #modal .birth-picker .birth-option-grid .birth-option>img {
    width:100%!important;height:100%!important;min-height:76px;
    align-self:stretch;object-fit:cover;
  }
  html:root body #modal .birth-picker .birth-option-body {
    align-self:center;min-width:0;
  }
  html:root body #modal .birth-picker .birth-option-grid .birth-option-random {
    display:flex!important;flex-direction:column;justify-content:center;gap:4px!important;
  }
}
/* Short PC windows keep the portrait clear of the header and the decision within reach. */
@media (min-width:701px) and (max-height:600px) and (pointer:fine) {
 html:root:not([data-game-scale]) body .title-screen .main-menu {padding:14px 18px!important}
 html:root:not([data-game-scale]) body .title-screen .main-menu h2 {margin-bottom:9px!important;font-size:18px!important}
 html:root:not([data-game-scale]) body .title-screen .main-menu-options {gap:5px!important}
 html:root:not([data-game-scale]) body .title-screen .main-menu-options button {
   min-height:44px!important;grid-template-columns:30px 1fr 16px!important;gap:8px!important;padding:5px 9px!important;
 }
 html:root:not([data-game-scale]) body .title-screen .main-menu-options .menu-glyph {width:28px!important;height:30px!important;font-size:18px!important}
 html:root:not([data-game-scale]) body .title-screen .main-menu-options small {display:none}
 html:root:not([data-game-scale]) body .title-screen .main-menu-options strong {font-size:16px!important}
 html:root:not([data-game-scale]) body #title-screen #menu-opening {min-height:36px;margin-top:9px!important;padding:6px 8px!important}
 html:root:not([data-game-scale]) body.is-character-creation .creation-card .creation-portrait {padding:12px 16px}
 html:root:not([data-game-scale]) body.is-character-creation .creation-card .creation-seal,
 html:root:not([data-game-scale]) body.is-character-creation .creation-card .creation-portrait-caption {display:none}
 html:root:not([data-game-scale]) body.is-character-creation .creation-card .portrait-setup {margin:0;gap:8px}
 html:root:not([data-game-scale]) body.is-character-creation .creation-card #home-portrait-preview {
   width:auto;height:min(39dvh,240px);max-width:100%;aspect-ratio:4 / 5;
 }
 html:root body.is-character-creation .creation-card .creation-form {scroll-padding-bottom:66px}
 html:root body.is-character-creation .creation-card .creation-actions {
   position:sticky;bottom:0;z-index:2;box-sizing:border-box;margin-block:12px 0;padding-block:6px;
   background:#1e1c19;
 }
 html:root body.is-character-creation .creation-card .creation-actions button {min-height:42px!important}
}
