:root {
  color: #f1f1e8;
  background: #121719;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  --amber: #ffc872;
  --paper: #f0eee3;
  --muted: #b7c3c1;
  --tech: "IBM Plex Mono", "Cascadia Mono", "Consolas", monospace;
  --display: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", "Segoe UI", sans-serif;
  --gutter: clamp(21px, 4.1vw, 70px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #game { width: 100%; height: 100%; margin: 0; overflow: hidden; }
[hidden] { display: none !important; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .62; }
:focus-visible { outline: 2px solid #ffe0a8; outline-offset: 5px; }
#game { position: relative; isolation: isolate; }
#view, #lens, #damage, #front, #hud, .modal { position: absolute; inset: 0; }
#view { width: 100%; height: 100%; display: block; touch-action: none; }
#lens, #damage, #hud { pointer-events: none; }
#lens { background: radial-gradient(ellipse at 50% 45%, transparent 48%, #04070754 100%); }
#damage { opacity: 0; background: radial-gradient(ellipse, transparent 41%, #dc452756 83%, #da362779 100%); }

#front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4.5vh, 48px) var(--gutter);
  background:
    linear-gradient(90deg, #040808ee 0%, #060a0bc4 23%, #070b0c61 49%, transparent 72%),
    linear-gradient(0deg, #060909d9 0%, transparent 24%, transparent 84%, #05080861 100%);
}

.front-header, .front-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.front-actions { display: flex; align-items: center; gap: 8px; }
.front-actions a { display: inline-flex; align-items: center; text-decoration: none; }
#front-overline, #front-status-label { font-weight: inherit; }
.station { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); font: 700 12px/1.2 var(--tech); letter-spacing: .13em; }
.station b { color: #a9b8b2; font-weight: inherit; border-left: 1px solid #b4c1b25c; padding-left: 10px; }
.station-mark { position: relative; display: block; width: 29px; height: 23px; border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: skewX(-21deg) scale(.83); }
.station-mark::after { content: ""; position: absolute; width: 70%; top: 8px; left: 15%; border-top: 2px solid var(--amber); }
.brief { max-width: 770px; padding-bottom: 1.5vh; position: relative; }
.overline { color: var(--amber); font: 600 11px/1.5 var(--tech); letter-spacing: .19em; margin: 0; }
.brief .overline { display: flex; align-items: center; gap: 11px; }
.brief .overline span { width: 24px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--display); text-transform: uppercase; }
h1 { margin: 13px 0 12px -.055em; font-size: clamp(3rem, 10vw, 9.6rem); font-weight: 850; line-height: .89; letter-spacing: -.065em; color: var(--paper); text-shadow: 0 6px 27px #080b0b65; }
.desc { max-width: 34ch; margin: 23px 0 31px; color: #d4ded9; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.58; }
.primary { display: inline-flex; justify-content: space-between; gap: 18px; align-items: center; min-width: 210px; min-height: 54px; padding: 0 19px; border: 0; background: var(--amber); color: #201a13; font-weight: 780; font-size: 15px; box-shadow: 0 4px 28px #e09a4d25; }
.primary:hover:not(:disabled) { background: #ffe0a8; }
.primary span { font-size: 21px; font-weight: 450; }
.text-button { border: 1px solid #dbe4d941; background: #111819ac; color: var(--paper); min-height: 38px; padding: 0 14px; font: 550 11px/1.2 var(--tech); text-transform: uppercase; letter-spacing: .1em; }
.text-button:hover { background: #303c3b; border-color: #e4efdf80; }
#boot-status { position: absolute; margin: 12px 0 0; color: #cbd8d2; font: 11px/1.4 var(--tech); max-width: 40ch; }
.front-footer { border-top: 1px solid #adc0b342; padding-top: 15px; color: #b8c4bf; font: 10px/1.2 var(--tech); letter-spacing: .06em; }
.front-status { color: #ffcd85; white-space: nowrap; }
.front-status i { width: 6px; height: 6px; margin-right: 4px; display: inline-block; background: var(--amber); box-shadow: 0 0 12px #e59e60c8; }
.quick-controls { display: flex; gap: clamp(8px, 2.7vw, 31px); white-space: nowrap; }
kbd { padding: 3px 6px; border: 1px solid #d5e4db44; background: #101718cc; color: #f3f1e7; font: inherit; }
.quick-controls kbd { margin-right: 3px; }
.desktop-label { display: none; }

#hud { margin: clamp(12px, 2.6vw, 38px); color: var(--paper); font-family: var(--tech); text-shadow: 0 2px 5px #030506; }
.objective, .vitals, .charge { position: absolute; background: linear-gradient(110deg, #090e10d6, #090e1095 65%, #090e1070); }
.objective { top: 0; left: 0; display: grid; gap: 5px; min-width: 202px; padding: 13px 19px 15px 16px; border-left: 2px solid #e5b773; }
.objective strong { font: 730 17px/1.2 var(--display); letter-spacing: .025em; }
#objective-detail { font-size: 11px; color: #d5e2de; }
.hud-pause { position: absolute; right: 0; top: 0; pointer-events: auto; min-height: 32px; font-size: 10px; }
.vitals { left: 0; bottom: 0; min-width: clamp(128px, 16vw, 204px); padding: 11px 14px 12px; }
.vitals > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vitals span, #charge-label { font-size: 10px; letter-spacing: .13em; color: #dde4d8; }
.vitals output { font-size: 21px; color: #edf2e7; }
#armor-readout { display:flex; justify-content:space-between; align-items:baseline; margin-top:6px; color:#a9d8e2; }
#armor-readout output { font:600 14px/1 var(--tech); color:#a9d8e2; }
#stamina-readout { display:flex; gap:9px; align-items:center; margin-top:7px; }
#stamina-readout div { flex:1; height:2px; background:#ae945b40; }
#stamina-fill { display:block; height:100%; background:#dfc18b; transform-origin:left; }
.health-track, .recharge-track { height: 3px; width: 100%; background: #afbaad43; margin-top: 6px; }
.health-track i, .recharge-track i { display: block; width: 100%; height: 100%; background: #c8e7d6; transform-origin: left; }
.recharge-track i { background: var(--amber); }
.charge { right: 0; bottom: 0; padding: 7px 13px 11px; text-align: right; min-width: 114px; }
.charge strong { font: 750 36px/.98 var(--display); letter-spacing: .015em; }
.charge > div:first-child > span { color: #c2cbc3; font-size: 12px; }
.charge.empty strong { color: var(--amber); }
#armory-readout { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 7px; max-width: min(350px, 46vw); margin-top: 7px; color: #abb9ad; font: 10px/1.2 var(--tech); }
#armory-readout span { display: inline-flex; align-items: center; white-space: nowrap; gap: 3px; }
#armory-readout span[data-locked] { opacity:.37; }
#boss-readout { position:absolute; top:0; left:50%; width:min(380px,36vw); transform:translateX(-50%);
  background:#131b1ada; padding:10px 14px; font:10px/1.2 var(--tech); letter-spacing:.08em; }
#boss-readout > div:first-child { display:flex; justify-content:space-between; color:#f5d5ab; }
.boss-track { width:100%; height:4px; margin-top:7px; background:#6e56505e; }
#boss-fill { display:block; height:100%; background:#d49962; transform-origin:left; }
#armory-readout kbd { padding: 1px 2px; border-color: #9cafaa55; font-size: 9px; }
#armory-readout[data-selected="0"] span:nth-child(1), #armory-readout[data-selected="1"] span:nth-child(2), #armory-readout[data-selected="2"] span:nth-child(3), #armory-readout[data-selected="3"] span:nth-child(4), #armory-readout[data-selected="4"] span:nth-child(5), #armory-readout[data-selected="5"] span:nth-child(6), #armory-readout[data-selected="6"] span:nth-child(7) { color: #e2f0d7; }
#reticle, #hit, #threat, #warning { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#contact-readout { position:absolute; top:calc(50% + 29px); left:50%; transform:translateX(-50%); padding:3px 6px; text-align:center; font:600 10px/1.2 var(--tech); letter-spacing:.06em; color:#f7ddad; background:#152020ba; white-space:nowrap; }
#contact-readout i { display:block; height:2px; margin:3px auto 0; width:50px; background:#c7c1a83d; }
#contact-condition { display:block; height:100%; background:#e1bb82; transform-origin:left; }
#reticle { --gap: 7px; filter: drop-shadow(0 0 2px #192522) drop-shadow(0 0 2px #182220); }
#reticle::after { content: ""; position: absolute; left: -1px; top: -1px; width: 2px; height: 2px; background: #eeeedd; }
#reticle i, #reticle b, #reticle i::after, #reticle b::after { position: absolute; display: block; background: #eaf7efdb; }
#reticle i, #reticle i::after { width: 5px; height: 1px; }
#reticle b, #reticle b::after { width: 1px; height: 5px; }
#reticle i { left: var(--gap); }
#reticle i::after { content: ""; left: calc(-2 * var(--gap) - 5px); }
#reticle b { top: var(--gap); }
#reticle b::after { content: ""; top: calc(-2 * var(--gap) - 5px); }
#reticle.irons { opacity: 0; }
#hit { opacity: 0; transform: rotate(45deg); filter: drop-shadow(0 0 2px #2b2020); }
#hit i { position: absolute; background: linear-gradient(90deg, currentColor 27%, transparent 27%, transparent 73%, currentColor 73%); width: 30px; height: 2px; left: -15px; top: -1px; }
#hit i:last-child { transform: rotate(90deg); }
#hit.finisher { color: #ffc670; }
#hit.armored { color: #95c8f5; }
#threat, #warning { --angle: 0rad; opacity: 0; transform: rotate(var(--angle)); }
#threat i { position: absolute; width: 24px; height: 5px; bottom: 100px; left: -12px; border-top: 2px solid #ffab74; border-radius: 65%; filter: drop-shadow(0 0 4px #a62f1f); }
#warning i { position: absolute; width: 11px; height: 11px; bottom: 117px; left: -5.5px; border-top: 2px solid #ffd18a; border-left: 2px solid #ffd18a; transform: rotate(45deg); filter: drop-shadow(0 0 2px #4e2d15); }
#notice, #interact { position: absolute; text-align: center; left: 50%; transform: translateX(-50%); white-space: nowrap; }
#notice { bottom: 13%; max-width: 75vw; white-space: normal; color: #f8d8a1; font-size: 11px; line-height: 1.6; letter-spacing: .09em; }
#notice:not(:empty) { padding: 5px 10px; background: #090f11bb; }
#interact { top: calc(50% + 40px); font-size: 13px; padding: 9px 11px; background: #0b1214de; border: 1px solid #aabdb355; }
#interact kbd { margin-right: 6px; color: var(--amber); }
#waypoint { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); padding: 5px 8px; color: #ffe1a8; background: #0a1315d7; font-size: 10px; letter-spacing: .11em; }
#waypoint i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }
#waypoint.behind i { transform: rotate(calc(135deg + var(--waypoint-rotation, 0deg))); border-right: 0; border-bottom: 0; }

.modal { display: grid; place-items: center; background: #050a0bd4; padding: 20px; }
.modal.success { background: radial-gradient(ellipse, #05100fcd 7%, #050a0b82 66%, #050a0ba0); }
.modal-body { width: min(470px, 100%); padding: clamp(24px, 5vw, 50px); border-top: 2px solid var(--amber); background: #131b1ded; box-shadow: 0 18px 80px #0009; }
h2 { color: var(--paper); font-size: clamp(2rem, 5.3vw, 3.8rem); line-height: .95; letter-spacing: -.045em; margin: 8px 0 19px; }
#panel-desc { color: #c7d3cd; line-height: 1.5; margin: 0 0 25px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
dialog { color: var(--paper); padding: 0; max-width: min(490px, calc(100vw - 30px)); width: 100%; background: #182123; border: 1px solid #54625f; border-top: 2px solid var(--amber); box-shadow: 0 12px 80px #000a; overflow: auto; }
dialog::backdrop { background: #050a0bcc; }
dialog form { padding: clamp(17px, 3vw, 30px); }
.settings-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.settings-header h2 { font-size: 36px; margin: 0; }
dialog label { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #a5bbb233; font-size: 13px; }
dialog select { padding: 5px 8px; background: #293638; border: 1px solid #667571; color: var(--paper); }
dialog input[type="range"] { margin-left: auto; width: clamp(63px, 17vw, 130px); }
dialog input { accent-color: var(--amber); }
dialog output { color: var(--amber); font: 11px var(--tech); min-width: 37px; text-align: right; }
.control-guide { margin: 12px 0 0; color: #c5d1cb; font: 11px/1.7 var(--tech); }
.no-script { position: absolute; bottom: 0; left: var(--gutter); color: var(--amber); }
body.captured .hud-pause { visibility: hidden; }

#field-status { position: absolute; right: 0; top: 44px; width: 193px; background: #121b1ceb; box-shadow: 0 5px 22px #0a111655; border: 1px solid #c9d7c849; }
#field-compass, .radar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; color: #e2eee4; font-size: 10px; letter-spacing: .025em; }
#weather-status { color: #f1d4a6; }
#radar { display: block; width: 100%; height: auto; border-block: 1px solid #c9d7c835; }
.map-key { display: inline-grid; place-items: center; min-width: 22px; min-height: 20px; color: #eaf3e8; background: #1f2927; border: 1px solid #bdc9bc62; pointer-events: auto; }
.map-key:hover { border-color: #ffcc81; }
#map { position: absolute; inset: 0; display: grid; place-items: center; background: #0a1115d8; padding: 16px; }
.chart-panel { width: min(970px, 100%, calc(115dvh + 65px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #849c9147; border-top: 2px solid #e4ba79; background: #142224; padding: clamp(13px, 2.1vw, 24px); box-shadow: 0 25px 84px #010809ad; }
.chart-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 17px; }
.chart-header .overline { margin-bottom: 5px; }
.chart-header h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 3.3rem); }
.chart-header button { flex-shrink: 0; }
.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(156px, 24%, 220px); align-items: start; gap: clamp(12px, 2.25vw, 27px); }
#chart { display: block; width: 100%; height: auto; outline: 1px solid #a9c4b778; cursor: crosshair; }
#chart:focus-visible { outline: 2px solid #96e8f5; outline-offset: 3px; }
.chart-info { font: 12px/1.45 var(--tech); color: #dae5db; }
.chart-info ol { list-style: none; padding: 0; margin: 8px 0 9px; }
.chart-info ol li { border-bottom: 1px solid #c7d3c62f; }
.chart-info button { background: transparent; border: 0; color: inherit; text-align: left; }
.chart-info ol button, .chart-gate { display: flex; flex-wrap: wrap; gap: 3px 8px; width: 100%; align-items: center; justify-content: space-between; min-height: 35px; padding: 6px; }
.chart-info button:hover { background: #afdfcc18; }
.chart-info button[aria-pressed="true"] { background: #77d2e122; box-shadow: inset 2px 0 #87e8fa; }
.chart-info ol button span { font-size: 10px; color: #ffcc85; }
.chart-info li.online span { color: #a2eed6; }
.chart-info .chart-gate { color: #cad5c9; background: #899f9616; font-size: 11px; }
.chart-waypoint { padding: 14px 0 11px; margin-top: 12px; border-block: 1px solid #c7d3c62f; }
#map-pin-status { display: block; margin-top: 5px; color: #9ee8f0; overflow-wrap: anywhere; }
#chart-controls { color: #aebaaf; margin: 8px 0; font-size: 11px; }
#clear-pin { color: #d7e5d9; padding: 5px 7px; border: 1px solid #b2c6b746; font-size: 10px; }
#clear-pin:disabled { cursor: default; }
.chart-symbols { list-style: none; display: grid; grid-template-columns: max-content max-content; gap: 8px 12px; padding: 0; margin: 14px 0 0; font-size: 10px; color: #cbdac9; }
.chart-symbols li { display: flex; align-items: center; gap: 5px; }
.chart-symbols li::before { content: ""; width: 8px; height: 7px; background: currentColor; }
.chart-symbols [data-symbol="tower"]::before { color: #ffe0a5; clip-path: polygon(50% 0,100% 96%,0 96%); }
.chart-symbols [data-symbol="hideout"]::before { color: #dfbc90; clip-path: polygon(50% 0,100% 53%,100% 100%,0 100%,0 53%); }
.chart-symbols [data-symbol="warehouse"]::before { color: #a1b7ae; }
.chart-symbols [data-symbol="house"]::before { color: #aaa28b; }
.chart-symbols [data-symbol="cover"]::before { color: #ad9976; height: 4px; }
.chart-symbols [data-symbol="supply"]::before { color: #e0d6ad; clip-path: polygon(33% 0,67% 0,67% 33%,100% 33%,100% 67%,67% 67%,67% 100%,33% 100%,33% 67%,0 67%,0 33%,33% 33%); }
.chart-symbols [data-symbol="infantry"]::before { color: #ffc098; border-radius: 50%; }
.chart-symbols [data-symbol="machine"]::before { color: #ffc098; transform: rotate(45deg); width: 7px; }
.chart-contact-note { color: #aebaaf; font-size: 10px; line-height: 1.5; margin: 12px 0 0; }

@media (max-width: 630px), (max-height: 540px) {
  #field-status { width: 128px; }
  #field-compass, .radar-footer { padding-inline: 5px; font-size: 8px; }
}

@media (min-width: 541px) and (max-height: 570px) {
  .chart-panel { padding: 12px; }
  .chart-header { margin-bottom: 11px; }
  .chart-header h2 { font-size: clamp(1.7rem, 4.3dvh, 2.1rem); }
  .chart-info { font-size: 11px; line-height: 1.4; }
  .chart-info ol button, .chart-gate { min-height: 26px; padding-block: 3px; }
  .chart-info ol button span { font-size: 9px; }
  .chart-waypoint { padding-block: 9px; margin-top: 7px; }
  .chart-symbols { margin-top: 9px; gap: 6px 9px; }
}

@media (max-width: 540px) {
  .chart-layout { grid-template-columns: 1fr; }
  .chart-info { padding-inline: 1px; }
  .chart-symbols { grid-template-columns: repeat(3, max-content); }
}

@media (max-width: 760px) {
  #front { background: linear-gradient(90deg, #040808e9, #060a0b89 64%, #060a0b25), linear-gradient(0deg, #070b0bd9, transparent 50%); }
  .front-footer { flex-wrap: wrap; gap: 12px; }
  h1 { font-size: clamp(3rem, 14vw, 6rem); }
}

@media (max-width: 440px) {
  .quick-controls { flex: 1 0 100%; justify-content: space-between; gap: 4px; }
  .hud-pause { min-height: 29px; }
}

@media (max-height: 490px) {
  #front { padding-top: 14px; padding-bottom: 10px; }
  h1 { font-size: clamp(2.8rem, 16vh, 5.5rem); margin: 5px 0; }
  .desc { margin: 7px 0 12px; font-size: 13px; line-height: 1.4; }
  .primary { min-height: 41px; }
  .front-footer { padding-top: 8px; }
}

/* ---- Campaign: difficulty select, sector banners, end-of-run stats (CODE A P5) ---- */
#difficulty-pick { display: flex; gap: 8px; margin: 2px 0 18px; flex-wrap: wrap; }
#difficulty-pick button { display: grid; gap: 3px; min-width: 150px; padding: 9px 13px; text-align: left; border: 1px solid #dbe4d941;
  background: #0d1314b8; color: var(--muted); font: 10px/1.25 var(--tech); letter-spacing: .05em; cursor: pointer; }
#difficulty-pick button b { color: var(--paper); font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
#difficulty-pick button[aria-checked="true"] { border-color: var(--amber); background: #2a2214d9; box-shadow: inset 0 -2px 0 var(--amber); }
#difficulty-pick button[aria-checked="true"] b { color: var(--amber); }
#difficulty-pick button:hover { border-color: #ffe0a8; }
body:not(.breakwater) #difficulty-pick { display: none; }
#best-score { position: absolute; margin: 34px 0 0; color: var(--amber); font: 600 10px/1.4 var(--tech); letter-spacing: .14em; }
#banner { position: absolute; top: 19%; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px;
  min-width: min(520px, 80vw); padding: 12px 28px 14px; text-align: center; pointer-events: none;
  background: linear-gradient(90deg, #0a0f1000, #0a0f10d0 18%, #0a0f10d0 82%, #0a0f1000);
  border-top: 1px solid #ffc87255; border-bottom: 1px solid #ffc87255; animation: banner-in 3.4s ease-out both; }
#banner strong { font: 800 clamp(24px, 3.2vw, 40px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--paper); }
#banner span:last-child { color: #c9d4cf; font-size: 11px; letter-spacing: .08em; }
#banner span:last-child:empty { display: none; }
#banner.alert { border-color: #ff6b4a88; } #banner.alert .overline { color: #ff8b6a; }
#banner.good { border-color: #8fe4ce77; } #banner.good .overline { color: #8fe4ce; }
#banner.minor { top: 25%; min-width: 0; padding: 6px 18px; } #banner.minor strong { font-size: 18px; }
@keyframes banner-in { 0% { opacity: 0; transform: translate(-50%, -8px) scaleX(.92); } 8% { opacity: 1; transform: translate(-50%, 0) scaleX(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
#panel-stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0 20px; font: 12px/1.3 var(--tech); }
#panel-stats dt { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; align-self: center; }
#panel-stats dd { margin: 0; color: var(--paper); font-weight: 600; }
#panel-retry { margin-bottom: 10px; background: #8fe4ce; }
#panel-retry:hover { background: #bff3e4; }

/* P6: loading screen */
#loader { position: absolute; inset: 0; z-index: 40; display: grid; align-items: end; background: #07090a; color: var(--paper); font-family: var(--tech); transition: opacity .7s ease, visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-art { position: absolute; inset: 0; background: #07090a center / cover no-repeat; filter: saturate(.8) contrast(1.05); transform: scale(1.04); animation: loader-drift 24s ease-out forwards; }
.loader-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #050708f2 8%, #05070899 38%, #05070820 70%), radial-gradient(ellipse at center, transparent 50%, #000a 100%); }
@keyframes loader-drift { to { transform: scale(1.0); } }
.loader-body { position: relative; padding: 0 clamp(20px, 6vw, 84px) clamp(28px, 7vh, 72px); max-width: 720px; }
.loader-body h2 { margin: 4px 0 18px; font: 800 clamp(40px, 7vw, 82px)/.9 var(--display); letter-spacing: .06em; }
.loader-track { height: 3px; background: #ffffff1c; overflow: hidden; }
.loader-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c98a48, #f0c486); box-shadow: 0 0 12px #e5b77388; transition: width .35s ease; }
.loader-row { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #cfd8d0; }
.loader-tip { margin-top: 18px; min-height: 2.6em; font-size: 12px; line-height: 1.45; color: #a9b5ad; max-width: 560px; }
/* P6: HUD polish — compact weapon/ammo block clear of the viewmodel, tactical accents */
.charge { padding: 6px 11px 8px; min-width: 96px; border-right: 2px solid #e5b773; background: linear-gradient(250deg, #090e10d0, #090e1080 70%, #090e1040); }
.charge strong { font-size: 28px; }
.charge > div:first-child > span { font-size: 11px; }
#charge-label { font-size: 9px; }
#armory-readout { max-width: min(330px, 34vw); gap: 2px 5px; margin-top: 5px; font-size: 9px; }
#armory-readout kbd { font-size: 8px; padding: 0 2px; }
.vitals { padding: 8px 12px 9px; border-left: 2px solid #9fc7a0; min-width: clamp(120px, 13vw, 180px); }
.vitals output { font-size: 19px; }
.vitals.low { border-left-color: #e0583f; }
#hud { margin: clamp(10px, 1.8vw, 26px); }
