/* Crisp battlefield; archival portraits retain their original photography. */
/* Rapid button taps are clicks, not browser double-tap zoom. Keep pinch zoom. */
button{touch-action:manipulation}
#summon{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#game-screen{position:relative}
.quick-upgrades{position:absolute;z-index:8;right:12px;bottom:116px;width:min(440px,calc(100% - 24px));padding:12px;background:#101f2ef5;border:1px solid #bca471;box-shadow:0 8px 30px #0008}
.quick-upgrades header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.quick-upgrades header small{color:#abc3bd;font-size:12px;font-weight:400;margin-left:8px}.quick-upgrades header button{width:44px;height:44px;font-size:24px}
#quick-upgrade-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#quick-upgrade-list button{min-height:58px;padding:8px 4px;border-top:2px solid var(--tier)}#quick-upgrade-list b{display:block;font-size:14px;color:var(--tier)}#quick-upgrade-list small{display:block;font-size:12px;margin-top:6px}
.credit-item{border-bottom:1px solid #445463;padding:12px 0}.credit-item h3{font-size:16px;margin:0 0 4px}
@media(max-width:750px)and(orientation:portrait){
 #game-screen{min-height:0}.game-layout{min-height:240px}.arena{min-height:200px}.sidebar{height:84px}.side-section{padding:8px}
 .commandbar{height:auto;min-height:168px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:26px 58px 44px;gap:6px;flex-shrink:0}
 .resources{grid-column:1/-1;grid-row:1;display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%;min-width:0}.resources .relic{width:auto}.resources strong{font-size:21px}
 .commandbar #summon{grid-row:2;grid-column:1}.commandbar #merge{grid-row:2;grid-column:2}.commandbar [data-panel="upgrades"]{grid-row:2;grid-column:3}
 .commandbar [data-panel="recipes"]{grid-row:3;grid-column:1}.commandbar [data-panel="recruit"]{grid-row:3;grid-column:2}.commandbar #save{display:block;grid-row:3;grid-column:3}
 .commandbar .command,.commandbar .summon-button,.commandbar #save{min-width:0;width:100%;height:100%;padding:4px}.commandbar .command b,.commandbar .summon-button b{font-size:14px}.commandbar .command>span{display:none}.commandbar .summon-button small{font-size:12px}.commandbar #summon b::after{content:' · 꾹';font-size:12px;font-weight:400}
 .quick-upgrades{bottom:calc(174px + env(safe-area-inset-bottom));right:10px;width:calc(100% - 20px)}
}
@media(max-height:560px)and(orientation:landscape){.quick-upgrades{bottom:74px}}
#battlefield{image-rendering:pixelated;touch-action:none;cursor:crosshair}
.menu-art{background-image:linear-gradient(90deg,#0b1720 20%,#0b172044 80%),url('./sprites/science-1.png');background-color:#16302f;background-size:cover,850px 638px;background-position:center,right -50px top -5px;background-repeat:no-repeat}
.portrait-credit{padding-left:16px;padding-right:16px}
.arena{background:#15272a}.arena::after{box-shadow:inset 0 0 0 3px #536156; border:0}
.arena-label,.arena-bottom span{background:#101e29e8;border-radius:0}
.battle-hud,.sidebar,.commandbar{background:#152431}
button,.summon-button,.material-chip{border-radius:0;box-shadow:inset 0 -3px #0003}
.summon-button{background:#e6c386;border:2px solid #fff0bb}
.difficulty-choice{display:flex;flex-direction:column;gap:8px;width:min(330px,84vw);margin:20px 0 16px}
.difficulty-choice label{font-size:14px;color:#d4dddf}
.difficulty-choice select{padding:12px;background:#142732;color:#f4e5c0;border:1px solid #b19465;font-size:16px}
.portrait-credit{font-size:12px!important;line-height:1.6!important;color:#b3c1ca!important;padding:8px 0;margin:0 0 12px;overflow-wrap:anywhere}
.portrait-credit a{color:#e4c68e;text-decoration:underline}
.inspector-hero{min-height:200px;align-items:center;gap:14px}
.inspector-hero img{width:130px!important;height:184px!important;object-fit:contain!important;background:#0b1720;border:1px solid #6c705e;image-rendering:auto}
.unit-art .unit-portrait{object-fit:contain;background:#0b1720;image-rendering:auto}
.live-stats span{font-size:14px}.live-stats b{font-size:19px}
.inspection-section p{font-size:14px}.inspection-section h3{font-size:16px}
@media(max-width:750px){.difficulty-choice{margin:10px 0}.difficulty-choice select{padding:9px}.inspector-hero{min-height:160px;float:none;width:auto;height:auto}.inspector-hero img{width:110px!important;height:150px!important}.live-stats{margin:8px 12px;grid-template-columns:repeat(3,1fr)}.portrait-credit{font-size:12px!important}.menu-art{opacity:.4}}
@media(max-height:650px)and(orientation:landscape){.menu-content{margin-top:16px}.difficulty-choice{grid-column:2;margin:0}.difficulty-choice label{display:none}.menu-actions{margin-top:0}}
