/* Input affordances remain separate from the simulation and generated art. */
#combat-status {position:absolute;left:30px;bottom:112px;width:182px;color:#bee6db;pointer-events:none;}
#combat-mode {font-size:8px;letter-spacing:1.2px;}
.heat-track {height:3px;background:#dcece51f;margin:8px 0;}
#heat-fill {display:block;height:100%;width:0;background:#e7c88c;transition:width .1s;}
#combat-status small {font-size:7px;letter-spacing:1.5px;color:#91a99f;}
#combat-status.overheated {color:#ffac8d;}
#combat-status.overheated #heat-fill {background:#ffac8d;}
#objective-status {position:absolute;left:30px;top:193px;display:flex;flex-direction:column;gap:7px;max-width:235px;border-left:1px solid #cba3e05e;padding-left:11px;text-shadow:0 1px 4px #000;}
#encounter-status {font-size:7px;letter-spacing:1.5px;color:#b2bfc8;}
#objective-status strong {font-size:10px;letter-spacing:1.1px;font-weight:500;color:#e3c8f8;}
#objective-status small {font-size:7px;letter-spacing:.7px;color:#a4b9ad;}
#focus-button,#seal-button {position:absolute;display:flex;align-items:center;justify-content:center;gap:9px;pointer-events:auto;min-height:48px;background:#142127e8;border:1px solid #a0d1c15e;color:#c1e4d6;padding:10px 13px;z-index:4;}
#focus-button {right:30px;bottom:185px;min-width:183px;}
#focus-button>span,#seal-button>span {font-size:22px;line-height:1;}
#focus-button>b,#seal-button>b {font-size:8px;font-weight:500;letter-spacing:1.2px;}
#focus-button.active {border-color:#efcf8d;background:#3b3022e6;color:#ffe2a9;}
#seal-button {bottom:32px;left:50%;transform:translateX(-50%);background:#281a36e8;border-color:#d9acfc88;min-width:190px;}
#seal-button.active {background:#203d34eb;border-color:#a4f2ce;color:#c5ffdf;}
.base-interact {min-height:48px;bottom:125px;}
.icon-button {min-width:44px;min-height:44px;}
#aim-zone {display:none;position:absolute;inset:200px 0 115px 51%;z-index:1;pointer-events:auto;touch-action:none;}
#touch-zone {inset:200px 51% 0 0;z-index:1;}
#aim-stick {position:fixed;width:100px;height:100px;border:1px solid #c2ecdc55;background:#0e242933;border-radius:50%;transform:translate(-50%,-50%);display:none;pointer-events:none;}
#aim-stick.active {display:grid;place-items:center;}
#aim-stick>i {width:40px;height:40px;border:1px solid #cceddf88;background:#98dbca44;border-radius:50%;}
.stick-hint {position:absolute;bottom:30px;left:50%;transform:translateX(-50%);font-size:7px;letter-spacing:1.3px;white-space:nowrap;color:#c0d4c15e;pointer-events:none;}
#aim-zone .stick-hint {bottom:15px;}
.hud-bottom {z-index:3;pointer-events:none;}
.abilities {pointer-events:auto;margin-left:auto;}
@media(pointer:coarse) {#aim-zone {display:block;}#focus-button kbd,#seal-button kbd {display:none;}#world {cursor:default;}}
html.touch-input #touch-zone,html.touch-input #aim-zone {display:block;}
html.touch-input .abilities kbd,html.touch-input #focus-button kbd,html.touch-input #seal-button kbd {display:none;}
/* Upgrade details remain in the workshop; keep secondary icons out of the
   sealing/ability controls when the battlefield is narrow. */
@media(max-width:1000px) {#loadout {display:none;}}
@media(pointer:fine) {#world {cursor:crosshair;}}
@media(max-width:700px) {
  #combat-status {left:15px;bottom:118px;width:140px;}
  #combat-mode {font-size:7px;letter-spacing:.7px;}
  #combat-status small {font-size:6px;letter-spacing:1px;}
  #objective-status {left:15px;top:185px;gap:6px;max-width:185px;padding-left:8px;}
  #objective-status strong {font-size:9px;}
  #objective-status small {font-size:6px;letter-spacing:.4px;}
  #focus-button {right:15px;bottom:208px;min-width:147px;min-height:48px;}
  .base-interact {bottom:151px;right:15px;min-height:48px;max-width:160px;padding:9px 10px;}
  #seal-button {bottom:45px;min-width:0;width:calc(50% - 23px);left:15px;transform:none;padding:10px 6px;gap:5px;}
  #seal-button>b {font-size:7px;letter-spacing:.6px;}
  #seal-button kbd {display:none;}
  #announcement {top:36%;}
  .hud-clock .eyebrow {max-width:108px;}
  .hud-vitals>div {width:88px;}
}
@media(max-height:540px) and (orientation:landscape) {
  #objective-status {left:16px;top:148px;max-width:170px;gap:4px;}
  #combat-status {left:16px;top:190px;bottom:auto;width:138px;}
  #focus-button {bottom:136px;right:20px;min-width:135px;min-height:48px;}
  .base-interact {bottom:80px;right:20px;min-height:48px;}
  #touch-zone {inset:95px 52% 0 0;}
  #aim-zone {inset:95px 0 76px 52%;}
  #seal-button {bottom:17px;min-width:0;width:150px;}
  #combat-status small {display:none;}
  #objective-status small {display:none;}
  .stick-hint {display:none;}
  #announcement {top:31%;}
}
/* Reserve the left column for combat feedback even when research is ready. */
@media(max-width:360px) {
  .base-interact {max-width:calc(50% - 23px);justify-content:center;}
  .base-interact b {min-width:0;overflow-wrap:anywhere;font-size:6.5px;letter-spacing:.6px;}
  .base-interact kbd {display:none;}
}
@media(pointer:coarse) {.base-interact kbd {display:none;}}
html.touch-input .base-interact kbd {display:none;}

/* Readable combat guidance shares a reserved HUD region at every viewport. */
#objective-status {gap:5px;max-width:255px;}
#encounter-status {font-size:10px;letter-spacing:.5px;line-height:1.3;}
#objective-status strong {font-size:12px;letter-spacing:.5px;line-height:1.3;}
#objective-status small {display:block;font-size:10px;letter-spacing:.2px;line-height:1.3;}
#combat-mode {font-size:10px;letter-spacing:.4px;}
#combat-status small {font-size:9px;letter-spacing:.5px;}
#announcement {top:275px;font-size:14px;line-height:1.4;max-width:min(620px,calc(100% - 40px));letter-spacing:1px;}
.controller-input button:focus,.controller-input summary:focus {outline:2px solid #b8fff0;outline-offset:3px;}
@media(max-width:700px) {
  #objective-status {top:185px;max-width:210px;gap:4px;}
  #announcement {top:254px;font-size:12px;max-width:calc(100% - 30px);}
  #combat-status {width:145px;}
}
@media(max-height:540px) and (orientation:landscape) {
  #objective-status {top:148px;max-width:180px;gap:3px;}
  #objective-status small {display:block;}
  #combat-status {top:226px;}
  #announcement {top:72px;max-width:calc(100% - 320px);font-size:11px;line-height:1.25;}
}
