/* v2.59.4 — consistent title metadata, controls and formation presets */
.masthead .brand>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.masthead .brand strong{display:block;line-height:1.25}
.masthead .game-version-mark{position:static;display:block;margin:9px 0 0 2px;padding:3px 8px;align-self:flex-start;font-size:11px;max-width:100%;}
.training-advice{border:3px double #a68661;border-radius:2px;background:linear-gradient(145deg,#30223b,#1c152a);box-shadow:inset 0 0 0 3px #201528,4px 4px 0 #0c0913;padding:14px 18px}
/* Recommended training uses the same chamfered purple/gold button material as the other actions. */
.training-advice-summary .btn.recommended-train-button,
.action-batch-home .btn.recommended-train-button {
  --rpg-face:#35263f;
  --rpg-top:#655076;
  --rpg-low:#21162f;
  --rpg-rim:#dfb77c;
  color:#ffdfa1!important;
  font-family:var(--rpg-display)!important;
  border-radius:0!important;
}
.training-advice-summary .btn.recommended-train-button:hover:not(:disabled),
.action-batch-home .btn.recommended-train-button:hover:not(:disabled){filter:brightness(1.15)!important}
.formation-presets{margin:16px 0 3px;padding:14px;border:1px solid #866a82;background:#21182c}
.formation-presets-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin-bottom:11px}
.formation-presets-head strong{color:#f6d9a1}.formation-presets-head small,.formation-presets>.muted{font-size:12px;color:#c5b6cd}
.formation-presets-list{display:grid;gap:8px;margin-bottom:10px}
.formation-preset-row{display:grid;grid-template-columns:65px minmax(120px,1fr) 85px auto;align-items:center;gap:8px;background:#2d2139;border:1px solid #624d69;padding:9px}
.formation-preset-row label{white-space:nowrap;font-size:12px;color:#dbc9d9}
.formation-preset-row input{min-width:0;width:100%;background:#191324;border:1px solid #967859;border-radius:2px;padding:8px;color:#fff2d8;font-size:14px}
.formation-preset-count{font-size:12px;color:#d8c5d2;text-align:center}
.formation-preset-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.formation-preset-actions .btn{min-height:36px;padding:6px 10px;white-space:nowrap}
@media(max-width:800px){.formation-preset-row{grid-template-columns:64px minmax(0,1fr)}.formation-preset-count{grid-column:1;grid-row:2;text-align:left}.formation-preset-actions{grid-column:2;grid-row:2;justify-content:flex-start}}
@media(max-width:480px){.formation-preset-row{grid-template-columns:1fr}.formation-preset-count,.formation-preset-actions{grid-column:1;grid-row:auto}.masthead .game-version-mark{font-size:10px}}


/* The interview is an independent full-screen scene, not a dimmed dialog over the command room. */
/* Keep the current applicant artwork and choices; hide the entire inactive game interface. */
/* The game normally reserves a scrollbar gutter; an isolated scene must fill it. */
html:has(body.interview-screen){scrollbar-gutter:auto!important}

body.interview-screen #shell,
body.interview-screen > .scene-backdrop{display:none!important}

body.interview-screen #overlayRoot .overlay{
 inset:0;
 padding:0!important;
 margin:0;
 background:#18111f!important;
 backdrop-filter:none!important;
 overflow:hidden!important;
 align-items:stretch!important;
 justify-content:center!important;
}
body.interview-screen #overlayRoot .modal-window:has(.interview-shell){
 flex:1 1 auto;
 width:100%!important;
 min-width:0;
 max-width:100%!important;
 height:100dvh!important;
 min-height:100dvh!important;
 max-height:100dvh!important;
 margin:0!important;
 padding:clamp(12px,2vw,22px)!important;
 overflow-y:auto;
 overflow-x:hidden;
 border:0!important;
 border-radius:0!important;
 background:linear-gradient(180deg,#21172c,#140e1e)!important;
 box-shadow:none!important;
}
body.interview-screen #overlayRoot .modal-window:has(.interview-shell)::before,
body.interview-screen #overlayRoot .modal-window:has(.interview-shell)::after{display:none!important}
@media(min-width:701px){
 body.interview-screen .interview-shell{width:100%;max-width:1200px;margin:0 auto}
}
@media(max-width:700px){
 body.interview-screen #overlayRoot .modal-window:has(.interview-shell){
  padding:10px 9px 0!important;
  overflow:hidden!important;
 }
}

/* Mobile combat: the old 6px bar had no room left for its border/padding. */
@media(max-width:700px){
 #overlayRoot #battle-field .fighter-card .hpbar{
  display:block!important;box-sizing:border-box!important;
  width:100%;height:15px!important;min-height:15px!important;
  padding:0!important;border:2px solid #917758!important;
  margin:5px 0 4px!important;overflow:hidden!important;
  background:#180f20!important;
 }
 #overlayRoot #battle-field .fighter-card .hpbar i{
  display:block!important;height:100%!important;min-height:0;
  border:0!important;box-sizing:border-box!important;
 }
 #overlayRoot #battle-field .fighter-card .hptext{
  font-size:11px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;
 }
}
