/* The approved recruit papers share one 1280px logical stage with the game.
   Their original component dimensions scale together at every resolution. */
#game-container #modal-root > .modal-backdrop:has(.recruit-modal-shell) {
  width:var(--popup-design-width,1280px);
  height:var(--popup-design-height,720px);
  padding:0;
  transform:translate(-50%,-50%) scale(var(--popup-design-scale,1));
  background:rgba(20,35,31,.16);
  backdrop-filter:none;
}
#game-container .recruit-modal-shell {
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);scale:1;
  width:962px;height:654px;
  border:20px solid transparent;
  border-image:none;
  border-radius:13px;background:#fffdf4;
  box-shadow:0 4px 10px #1b211c50;
  overflow:visible;color:#655c50;color-scheme:light;
  font-family:Arial,sans-serif;
  background-image:url('/assets/recruit-synthesis/reference-v1/ui/paper-frame-nine-slice.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box;}
#game-container .recruit-modal-shell:is([data-recruit-shell="school"],[data-recruit-shell="scroll-house"]) {
  width:820px;height:552px;top:54%;
}
#game-container .recruit-live-modal {
  position:relative;width:100%;height:100%;
  padding:0;margin:0;overflow:visible;
}
#game-container .recruit-live-modal :is(button,input,select) {font-family:inherit;}
#game-container .recruit-modal-close {
  position:absolute;right:-25px;top:-28px;z-index:12;
  width:46px;height:46px;padding:0;border:0;
  background:transparent url('/assets/equipment/reference-v2/ui/close-orange.svg') center/contain no-repeat;
  box-shadow:none;
}
#game-container .recruit-modal-shell:is([data-recruit-shell="school"],[data-recruit-shell="scroll-house"]) .recruit-modal-close {
  width:39px;height:39px;
}
#game-container .recruit-modal-close:focus-visible {
  outline:2px solid #228bc6;outline-offset:3px;
}
#game-container .recruit-live-modal :is(svg,img) {pointer-events:none;}
/* Override the old game's general heading clamps with the approved ink sizes. */
#game-container .rs-saga .rs-saga-header {font-size:29px;}
#game-container .rs-saga .rs-saga-name {font-size:16px;}
#game-container .rs-saga .rs-saga-name.long-name {font-size:14px;}
#game-container .rs-saga .rs-saga-filters > h3 {font-size:24px;}
#game-container .rs-school-header > h3 {font-size:16px;}
#game-container .recruit-modal-shell[data-recruit-shell="unique"] {
  width:852px;height:526px;top:50%;
  border-image:none;
  background:transparent url('/assets/recruit-synthesis/reference-v1/ui/synthesis-frame-nine-slice.svg') center/100% 100% no-repeat;
  background-origin:border-box;background-clip:border-box;
}
#game-container .recruit-live-modal > [data-recruit-view="unique"] {position:relative;width:100%;height:100%;}
#game-container [data-recruit-view="unique"][aria-busy="true"] .uks-view {pointer-events:none;opacity:.7;}
