/* R37: local sans typography. No network fonts. Wordmark keeps its identity. */
@font-face{font-family:'Front Sans';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/front-sans-400.woff2') format('woff2')}
@font-face{font-family:'Front Sans';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/front-sans-600.woff2') format('woff2')}
@font-face{font-family:'Front Sans';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/front-sans-700.woff2') format('woff2')}
:root{--ui-font:'Front Sans','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;--fs:var(--ui-font);--ds:var(--ui-font)}
html,body{font-family:var(--ui-font)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit}
#overlay #brand h1,#brand h1 span{font-family:'KW Serif','Nanum Myeongjo',serif!important}
#overlay #mMain button{font-family:var(--ui-font)!important;font-size:17px!important;letter-spacing:-.015em!important;font-weight:600!important}
#overlay #mMain button small,#overlay #mMain button.pri small{font-family:var(--ui-font)!important;font-size:11.5px!important;font-weight:400;line-height:1.45}
/* Cancel the battle scene's outer scaling, not the user's whole UI setting.
   The panel stays 224–242 physical CSS px wide; coarse inputs keep 44px targets. */
/* R40: smaller command controls. Canvas messages reserve their own lower lane. */
#battleCommandMenu{width:176px;padding:6px;left:10px;top:62px;border-radius:5px;transform:scale(var(--bcu,1));transform-origin:top left;font:600 10px/1.3 var(--ui-font);box-shadow:0 2px 7px #0006;letter-spacing:0}
#battleCommandMenu .bm-heading{margin:0 1px 4px;gap:5px;align-items:center}
#battleCommandMenu .bm-heading strong{font-size:10px;font-weight:600}
#battleCommandMenu #bmShortcut{font-size:9px;font-weight:400;white-space:nowrap}
#battleCommandMenu .bm-modes{gap:4px}
#battleCommandMenu button{font:600 11px/1.25 var(--ui-font);min-height:28px;border-radius:3px;letter-spacing:-.02em}
#battleCommandMenu .bm-modes button{padding:5px 3px;min-width:0;white-space:nowrap}
#battleCommandMenu #bmAssist{margin-top:4px;padding:4px 2px;min-height:26px;font-size:9px;line-height:1.3;font-weight:400}
#battleCommandMenu button:focus-visible{outline-width:2px;outline-offset:2px}
@media(pointer:coarse){#battleCommandMenu{width:184px}#battleCommandMenu button{min-height:36px;font-size:11px}#battleCommandMenu #bmAssist{min-height:32px;font-size:10px}}
/* These selectors also cover cinematics whose own styles are inserted later. */
html body #commonOpening,html body #battleCinematic{font-family:var(--ui-font)}
html body #commonOpening h1{font-size:clamp(28px,4.6vw,52px);font-weight:700;letter-spacing:-.035em;line-height:1.2}
html body #commonOpening .co-caption{font-size:clamp(18px,1.6vw,22px);font-weight:400;line-height:1.8;letter-spacing:-.015em;max-width:46em}
html body #commonOpening .co-content{width:min(1040px,100%);padding:clamp(22px,4vw,56px)}
html body #commonOpening button{font-family:var(--ui-font);font-size:14px;min-height:44px;padding:10px 16px;font-weight:600}
html body #battleCinematic h2{font-size:clamp(27px,3.2vw,42px);font-weight:700;letter-spacing:-.03em;line-height:1.3;margin:12px 0 18px}
html body #battleCinematic .bc-caption{font-size:clamp(18px,1.6vw,22px);font-weight:400;letter-spacing:-.015em;line-height:1.8;max-width:46em}
html body #battleCinematic .bc-box{padding:clamp(22px,3.8vw,54px);padding-bottom:max(24px,env(safe-area-inset-bottom))}
html body #battleCinematic .bc-top,html body #battleCinematic .bc-operation{font-size:13px;line-height:1.6}
html body #battleCinematic button{font-family:var(--ui-font);font-size:14px;min-height:44px;padding:10px 16px;font-weight:600}
html body #battleCinematic .bc-small{font-size:12px;line-height:1.6}
html body #battleCinematic details{font-size:15px;line-height:1.75}
/* Landing operation: calmer title scale and more compact, readable copy. */
body.incheon-ui h1{font-family:var(--ui-font);font-size:clamp(50px,6.4vw,86px);font-weight:700;letter-spacing:-.055em}
body.incheon-ui h2{font-family:var(--ui-font);font-size:clamp(25px,2.8vw,34px);font-weight:700}
body.incheon-ui .subtitle,body.incheon-ui .description{font-size:15px;line-height:1.8}
body.incheon-ui .chapter>p:not(.eyebrow){font-size:18px;line-height:1.85;font-weight:400}
body.incheon-ui button{font-family:var(--ui-font);font-size:14px;font-weight:600}
body.incheon-ui .controls button{font-size:12px}
@media(max-width:600px){html body #commonOpening .co-caption,html body #battleCinematic .bc-caption{font-size:18px;line-height:1.75}html body #commonOpening .co-content,html body #battleCinematic .bc-box{padding:24px 22px max(24px,env(safe-area-inset-bottom))}body.incheon-ui h1{font-size:58px}body.incheon-ui .chapter>p:not(.eyebrow){font-size:16px;line-height:1.8}body.incheon-ui .controls button{font-size:10px}}
@media(max-height:520px) and (orientation:landscape){html body #commonOpening h1,html body #battleCinematic h2{font-size:27px;margin:6px 0 10px}html body #commonOpening .co-caption,html body #battleCinematic .bc-caption{font-size:17px;line-height:1.55;margin:6px 0 10px;min-height:0}html body #commonOpening .co-content,html body #battleCinematic .bc-box{padding:16px max(22px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}body.incheon-ui h1{font-size:48px}body.incheon-ui .chapter>p:not(.eyebrow){font-size:15px;line-height:1.65}}
