/* The HUD and inventory, on top of the prototype's gameplay-rebuild.css. */
#orbit-ui.menu-open:not(.dialog-over-game) #hud-viewport { display: none; }
#hud-stage .re-hud { background: transparent; }
.orbit-hud { --inset: 0px; }
.orbit-hud .re-minimap { left: calc(32px + var(--inset)); top: calc(39px + var(--inset)); }
.orbit-hud .re-counters { right: calc(38px + var(--inset)); top: calc(45px + var(--inset)); }
.orbit-hud .re-vitals { left: calc(40px + var(--inset)); bottom: calc(62px + var(--inset)); }
.orbit-hud .re-hotbar-anchor { bottom: calc(62px + var(--inset)); }
.orbit-hud .re-ammo { right: calc(38px + var(--inset)); bottom: calc(62px + var(--inset)); }
.orbit-hud .re-compass { top: calc(51px + var(--inset)); }

/* Minimap: the island photo, turned and moved under a fixed marker. */
.hud-minimap { background: rgba(9, 16, 27, .72); }
.mm-view { position: absolute; left: 18px; top: 20px; width: 321px; height: 226px; overflow: hidden; background: #0b1626; }
.mm-world { position: absolute; left: 0; top: 0; width: 1024px; height: 1024px; will-change: transform; }
.mm-world img { position: absolute; inset: 0; width: 1024px; height: 1024px; filter: saturate(.85) brightness(.9); }
.mm-over { position: absolute; inset: 0; width: 1024px; height: 1024px; overflow: visible; }
.mm-you { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid #f3f5fa; filter: drop-shadow(0 0 2px #0b101b) drop-shadow(0 0 1px #0b101b); }
.orbit-hud .re-map-key, .orbit-hud .re-storm { z-index: 2; }

/* Compass: a strip of bearings under a fixed centre. */
.hud-compass { height: 51px; overflow: hidden; display: block !important; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.cmp-strip { position: absolute; left: 0; top: 0; height: 51px; will-change: transform; }
.hud-compass .cmp-label { position: absolute; top: 13px; transform: translateX(-50%); white-space: nowrap; text-shadow: 0 1px 3px #000a; }
.hud-compass .cmp-label::before { display: none; }
.hud-compass .cmp-label.north { top: 11px; }
.hud-compass .cmp-label.north::after { top: -11px; }
.hud-compass .cmp-tick { position: absolute; top: 18px; height: 22px; border-left: 1px solid #69768b; }
.hud-compass .cmp-mark { position: absolute; left: 50%; top: 0; width: 2px; height: 9px; margin-left: -1px; background: #f3f5fa; }
.orbit-hud .re-compass small { text-align: center; }

/* Counters: lives join LEFT and ELIMS while respawns are on. */
.orbit-hud .re-counters .hud-lives { width: 165px; }
.orbit-hud .re-counters .hud-lives .icon { color: #ff8d7f; }

/* Kill feed, under the counters. */
.hud-feed { position: absolute; right: calc(38px + var(--inset)); top: calc(124px + var(--inset)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.feed-row { background: rgba(11, 20, 33, .82); border: 1px solid #3f4f66; border-right: 3px solid #8c9aaf; padding: 7px 14px; font: 15px var(--number); letter-spacing: .06em; color: #f3f5fa; text-transform: uppercase; transition: opacity .6s; }
.feed-row.you { border-right-color: #c5f277; }
.feed-row.fade { opacity: 0; }

/* Status line under the compass, and toasts below it. */
.hud-status { position: absolute; left: 50%; top: calc(112px + var(--inset)); transform: translateX(-50%); font: 15px var(--number); letter-spacing: .2em; text-transform: uppercase; color: #f3f5fa; text-shadow: 0 1px 3px #000c; white-space: nowrap; opacity: 0; transition: opacity .6s; }
.hud-status.on { opacity: 1; }
.hud-toast { position: absolute; left: 50%; top: calc(146px + var(--inset)); transform: translateX(-50%); background: #0b1421; border: 1px solid #657287; border-left: 3px solid #c5f277; padding: 12px 22px; font: 500 18px var(--ui); color: #f3f5fa; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.hud-toast.on { opacity: 1; }

/* Key hints at the left. */
.hud-hints { position: absolute; left: calc(40px + var(--inset)); top: 340px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .8s; }
.hud-hints.on { opacity: 1; }
.hud-hints > div { display: flex; align-items: center; gap: 6px; font: 15px var(--number); letter-spacing: .1em; text-transform: uppercase; color: #f3f5fa; text-shadow: 0 1px 3px #000c; }
.hud-hints .key { background: rgba(11, 16, 27, .7); font-size: 13px; min-width: 26px; }
.hud-hints > div > span:last-child { margin-left: 6px; }
.hud-hints .done { opacity: .35; }

/* The big centre line ("Back in 12"), the capture hint, prompts. */
.hud-center { position: absolute; left: 0; right: 0; top: 300px; text-align: center; font: 800 64px var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f3f5fa; text-shadow: 0 2px 10px #000c; opacity: 0; }
.hud-center.on { opacity: 1; }
.hud-capture { position: absolute; left: 50%; top: 600px; transform: translateX(-50%); background: rgba(11, 20, 33, .82); border: 1px solid #657287; padding: 10px 18px; font: 15px var(--number); letter-spacing: .14em; text-transform: uppercase; color: #f3f5fa; display: none; }
.hud-capture.on { display: block; }
.hud-prompt { position: absolute; left: 50%; top: 556px; transform: translateX(-50%); height: 54px; padding: 0 22px 0 14px; display: none; align-items: center; gap: 14px; background: rgba(11, 20, 33, .86); font: 600 18px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #f3f5fa; white-space: nowrap; }
.hud-prompt.on { display: flex; }
.hud-prompt .key { font: 500 17px var(--number); background: #0a101b; padding: 4px 10px; }
.hud-prompt #prompt-k { position: absolute; left: 12px; bottom: 6px; height: 3px; background: #c5f277; width: 0; max-width: calc(100% - 24px); }
.hud-drop { position: absolute; left: 0; right: 0; top: 600px; display: none; flex-direction: column; align-items: center; gap: 10px; text-shadow: 0 2px 8px #000c; }
.hud-drop.on { display: flex; }
.hud-drop strong { font: 800 44px var(--display); letter-spacing: .04em; color: #f3f5fa; }
.hud-drop > div { display: flex; align-items: center; gap: 12px; font: 600 18px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #f3f5fa; background: rgba(11, 20, 33, .7); padding: 8px 16px 8px 10px; }
.hud-drop .key { background: #f3f5fa; color: #0b101b; font: 500 15px var(--number); }
/* Aboard the dropship: who's still aboard, the countdown to the ramp opening,
   then the jump key and the auto-jump time. The rest of the HUD waits. */
.hud-drop small { font: 600 15px var(--number); letter-spacing: .22em; text-transform: uppercase; color: #c5f277; }
.hud-drop small:empty, .hud-drop em:empty { display: none; }
.hud-drop em { font: 500 14px var(--number); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #c3cad6; }
.hud-drop.locked > div { opacity: .45; }
.orbit-hud.aboard .hud-drop { top: calc(120px + var(--inset)); left: 50%; right: auto; transform: translateX(-50%); min-width: 360px; gap: 8px; padding: 14px 30px 16px; background: rgba(56, 72, 98, .42); border: 1px solid rgba(243, 245, 250, .35); border-top: 3px solid #c5f277; text-shadow: 0 1px 4px #0009; }
.orbit-hud.aboard .hud-drop > div { background: transparent; padding: 2px 0; }
.orbit-hud.aboard .hud-drop.locked { border-top-color: #657287; }
.orbit-hud.aboard > :not(#hud-drop):not(#hud-capture):not(#hud-toast):not(#hud-center) { display: none !important; }
.hud-heal { position: absolute; left: 50%; bottom: calc(198px + var(--inset)); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font: 15px var(--number); letter-spacing: .16em; text-transform: uppercase; color: #f3f5fa; text-shadow: 0 1px 3px #000c; }
.hud-heal.on { display: flex; }
.hud-heal > div { width: 280px; height: 6px; background: rgba(13, 22, 35, .85); border: 1px solid #53667c; }
.hud-heal i { display: block; height: 100%; width: 0; }

/* Vitals fill each segment in part. */
.orbit-hud .re-segments span { position: relative; overflow: hidden; background: #0d1623; }
.orbit-hud .re-segments span i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: currentColor; }
.orbit-hud .re-meter.cyan .re-segments span:not(.empty) { border-color: #9bdbee; }
.orbit-hud .re-meter.coral .re-segments span:not(.empty) { border-color: #f59287; }
.orbit-hud .re-meter strong.low { color: #ff8d7f; }

/* Hotbar: the game's item icons. */
.orbit-hud .re-slot .slot-art { position: absolute; inset: 0; }
.orbit-hud .re-slot .hud-item, .orbit-inventory .inv-icon { object-fit: contain; opacity: .78; }
.orbit-hud .re-slot.active .hud-item { opacity: 1; filter: drop-shadow(0 0 6px rgba(197, 242, 119, .35)); }
.orbit-hud .re-slot .slot-charge { position: absolute; left: 70px; right: 12px; bottom: 13px; height: 3px; background: #2a3a50; }
.orbit-hud .re-slot .slot-charge i { display: block; height: 100%; background: #b4bfd0; }
.orbit-hud .re-slot .slot-charge.ready i { background: #c5f277; }
.orbit-hud #ammo-mag.empty { color: #ff8d7f; }
.orbit-hud #ammo-name.reloading { color: #ffb45c; }
.orbit-hud .re-ammo.no-reserve .icon { opacity: .3; }

/* High contrast HUD: darker panels behind everything. */
.orbit-hud.high-contrast .re-minimap, .orbit-hud.high-contrast .re-counters > div, .orbit-hud.high-contrast .re-meter, .orbit-hud.high-contrast .re-slot, .orbit-hud.high-contrast .re-ammo { background: rgba(4, 7, 12, .92) !important; }

/* ---------------------------------------------------------------- inventory */

.orbit-inventory .empty-icon { display: flex; align-items: center; justify-content: center; font: 300 40px var(--display); color: #60718a; opacity: 1; }
.orbit-inventory .item-large { width: 100%; height: 100%; object-fit: contain; }
.orbit-inventory .item-render { width: 100%; height: 100%; object-fit: contain; }
.orbit-inventory .equipped-tag { position: absolute; right: 26px; top: 10px; font: 12px var(--number); letter-spacing: .16em; color: #c5f277; }
.orbit-inventory .move-target { outline: 1px dashed #c5f277; outline-offset: -6px; }
[data-settings-page="video-graphics"] .control-toggle .choice-trigger.toggle { width: 220px; min-width: 220px; }
.orbit-hud .re-slot .hud-item.wide, .orbit-inventory .inv-icon.wide { object-fit: cover; }
.orbit-inventory .item-render { position: absolute; inset: 0; background: #0e1724; }
.orbit-inventory .re-weapon-preview { background-image: linear-gradient(rgba(96,113,138,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(96,113,138,.14) 1px, transparent 1px); background-size: 22px 22px; }
.orbit-inventory .item-large { filter: drop-shadow(0 0 1px #f3f5fa); opacity: .95; }

/* QA round 2. */
.hud-compass .cmp-label { top: 0; }
.hud-compass .cmp-label.north { top: -2px; }
.hud-compass .cmp-label.north::after { display: none; }
.hud-compass .cmp-tick { top: 5px; border-left-color: #8a97ab; filter: drop-shadow(0 0 1px #000); }
.hud-compass .cmp-mark { top: -1px; width: 0; height: 0; margin-left: -7px; background: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid #c5f277; }
.hud-compass { overflow: visible; height: 51px; }
.hud-compass .cmp-strip { top: 10px; }
.hud-compass { top: calc(41px + var(--inset)) !important; height: 61px; overflow: hidden; }
.orbit-hud .hud-lives { position: absolute; right: calc(38px + var(--inset)); top: calc(117px + var(--inset)); width: 165px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; font: 17px var(--ui); background: rgba(9, 16, 27, .55); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.orbit-hud .hud-lives strong { font: 700 32px var(--display); }
.orbit-hud .hud-lives .icon { width: 26px; height: 26px; color: #ff8d7f; }
.hud-feed { top: calc(182px + var(--inset)); }
.hud-minimap { clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px) !important; }
.mm-you { border-bottom-color: #c5f277; }
.mm-world img { filter: saturate(.55) brightness(.7); }
.orbit-hud .re-storm, .orbit-hud .re-storm strong { text-align: center; }
.orbit-hud .re-counters > div, .orbit-hud .re-meter, .orbit-hud .re-ammo { background: rgba(9, 16, 27, .55); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.orbit-hud .re-slot .hud-item { transform: translate(-50%, calc(-50% - 6px)) scale(1.4); }
.orbit-hud .re-slot .hud-item.wide { transform: translate(-50%, calc(-50% - 6px)) scale(1.08); }
.orbit-hud .re-slot .slot-charge { left: 12px; right: auto; bottom: 11px; width: 52px; height: 5px; transform: skew(-20deg); background: #75859a; }
/* The active item: a lime icon, as in the design. */
.orbit-hud .re-slot.active .hud-item, .orbit-inventory .re-inventory-item.active .inv-icon { filter: brightness(0) saturate(100%) invert(91%) sepia(19%) saturate(1095%) hue-rotate(29deg) brightness(101%); opacity: 1; }
.orbit-inventory .inv-icon { transform: scale(1.3); }
.orbit-inventory .inv-icon.wide { transform: none; }
.orbit-inventory .re-weapon-preview { overflow: hidden; }
.orbit-inventory .re-weapon-preview .item-large { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%); }
.orbit-inventory .re-weapon-preview .item-large.wide { width: 470px; height: 470px; object-fit: contain; }
.orbit-inventory .re-weapon-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 604 245' preserveAspectRatio='none'%3E%3Cpath d='M1 13V1H13M591 1H603V13M603 232V244H591M13 244H1V232' fill='none' stroke='%23b4bfd0' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
#orbit-ui.dev-clean #hud-viewport { display: none !important; }

/* QA round 3 (HUD). */
/* Panel fills follow each frame's own cut-corner outline. */
.orbit-hud .re-counters > div, .orbit-hud .re-meter, .orbit-hud .re-ammo, .orbit-hud .hud-lives { background: none !important; clip-path: none !important; }
.orbit-hud .engineering-frame > path:first-child { fill: rgba(9, 15, 25, .9); }
.orbit-hud .re-slot .engineering-frame > path:first-child { fill: none; }
.hud-minimap { background: transparent !important; clip-path: none !important; }
.hud-minimap .engineering-frame > path:first-child { fill: rgba(9, 15, 25, .92); }
.mm-view { z-index: 1; width: 317px; }
.mm-view::after { content: ""; position: absolute; inset: 0; background: rgba(9, 15, 25, .35); pointer-events: none; }
.mm-world img { filter: saturate(.45) brightness(.55) contrast(1.05); }
.mm-you { z-index: 2; border-left-width: 12px; border-right-width: 12px; border-bottom-width: 23px; }
.mm-key2 { position: absolute; left: 50px; top: 22px; width: 9px; height: 31px; border: 1px solid #eef3fa; border-left: 0; z-index: 2; }
.mm-storm-rule { position: absolute; left: 241px; top: 23px; width: 94px; height: 1px; background: #8a97ab; z-index: 2; }
/* Compass: the caret on the prototype's centre; labels fade only at the ends. */
.hud-compass .cmp-mark { left: 313.5px; top: -3px; }
.hud-compass { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.orbit-hud .re-slot .hud-item.wide { transform: translate(-50%, calc(-50% - 6px)) scale(.98); }

/* QA round 3 (inventory). */
.orbit-inventory .re-weapon-preview { top: 182px !important; height: 222px !important; right: 42px !important; background-color: #0f1624; }
.orbit-inventory .re-weapon-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 598 222' preserveAspectRatio='none'%3E%3Cpath d='M1 0V16M597 0V16M1 198V222M597 198V222' fill='none' stroke='%23b4bfd0' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.orbit-inventory .re-weapon-preview .item-large.wide { width: 590px; height: 590px; }
.orbit-inventory .inv-icon { transform: none; max-height: 64px; align-self: center; }
.orbit-inventory .inv-icon.wide { width: 205px; max-height: none; margin-left: -7px; }

/* QA round 4 (HUD). The frames' fill sits under the panel contents: each
   framed panel is its own stacking context and the frame goes to the back. */
.orbit-hud .re-counters > div, .orbit-hud .re-meter, .orbit-hud .re-ammo, .orbit-hud .hud-lives, .orbit-hud .re-slot, .hud-minimap { isolation: isolate; }
.orbit-hud .engineering-frame { z-index: -1 !important; }
.hud-compass .cmp-mark { left: 313.5px; top: -6px; margin-left: -7px; border-left-width: 7px; border-right-width: 7px; border-top-width: 10px; }
.mm-storm-rule { top: 21px; }
.orbit-hud .re-slot.active .hud-item { filter: none; }
.mm-world img { filter: grayscale(1) sepia(.6) hue-rotate(180deg) saturate(1.4) brightness(.5); }
.mm-view { left: 22px; width: 313px; }
.mm-view::after { background: rgba(9, 15, 25, .25); }
.mm-you { width: 23px; height: 21px; border: 0; background: #c5f277; clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); filter: none; }
.orbit-hud .re-slot .slot-charge.ready i { background: #75859a; }
.orbit-hud .re-slot .slot-charge i { background: #75859a; }

/* QA round 4 (inventory). */
.orbit-inventory .inv-icon:not(.wide) { height: 62px; max-height: 66px; width: auto; max-width: 177px; object-fit: contain; }
.orbit-inventory .re-weapon-preview .item-large.wide { width: 650px; height: 650px; }
.orbit-inventory .re-weapon-preview { background-image: none; top: 184px !important; right: 37px !important; height: 221px !important; border-bottom: 1px solid #3b4a60; }
.orbit-inventory .re-weapon-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 603 221' preserveAspectRatio='none'%3E%3Cpath d='M2.5 0V16M600.5 0V16M2.5 197V221M600.5 197V221' fill='none' stroke='%23aab5c6' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
#orbit-ui.dev-clean #hud-stage, #orbit-ui.dev-clean .orbit-hud { display: none !important; }
/* The item SVGs carry wide margins: scale the drawing to the prototype's size. */
.orbit-inventory .inv-icon:not(.wide) { height: 64px; transform: scale(1.3); justify-self: center; }
.orbit-inventory .inv-icon[src$="tethercaster.svg"] { transform: scale(2); }
/* QA round 5 (HUD). The compass box starts 4 px higher so the caret isn't clipped. */
.hud-compass { top: calc(37px + var(--inset)) !important; height: 65px; }
.hud-compass .cmp-strip { top: 14px; }
.hud-compass .cmp-mark { top: 2px; }
.hud-compass .cmp-label.north { top: 0; }
.mm-view::after { background: rgba(9, 15, 25, .6); }
.mm-you { width: 25px; height: 24px; }
.orbit-hud .re-slot .hud-item, .orbit-hud .re-slot.active .hud-item { opacity: .78; filter: brightness(.85) sepia(.2) hue-rotate(185deg); }

/* QA round 5 (inventory). */
.orbit-inventory .re-weapon-preview { top: 182px !important; height: 220px !important; border-bottom: 0; }
.orbit-inventory .re-weapon-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 603 220' preserveAspectRatio='none'%3E%3Cpath d='M2.5 0V16M596.5 0V16M2.5 196V219.5H18M596.5 196V219.5H581' fill='none' stroke='%23aab5c6' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.orbit-inventory .re-weapon-preview .item-large { opacity: .7; }
.orbit-inventory .inv-icon:not(.wide) { max-height: 66px; }
.orbit-inventory .inv-icon[src$="field-patch.svg"], .orbit-inventory .inv-icon[src$="trauma-kit.svg"] { transform: scale(1.1); }
.orbit-inventory .inv-icon.wide { transform: scale(.92); }

/* Settings: the readability preview built from the real HUD parts. The HUD's
   own rules place these absolutely on the 1672 x 941 stage; here they flow in
   a column, scaled to the box and then by the HUD-scale setting. */
.settings-hud-preview { background: none !important; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #34445b; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); background-color: rgba(9, 15, 25, .6) !important; }
.hud-preview { position: relative !important; inset: auto !important; width: auto !important; height: auto !important; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; --requested-hud-scale: 1; --inset: 0px; transform: scale(calc(.62 * var(--preview-scale, 1))); transform-origin: center; }
.hud-preview-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hud-preview .re-vitals { position: relative !important; left: auto !important; bottom: auto !important; top: auto !important; }
.hud-preview .re-hotbar { position: relative !important; left: auto !important; bottom: auto !important; transform: none !important; }
.hud-preview-note { margin: 4px 0 0; font: 500 26px Barlow, sans-serif; color: #b4bfd0; letter-spacing: .02em; }
/* Slot icons: opacity alone tints them toward the navy (no hue shift, which
   turned the shield pack's blue cells orange). */
.orbit-hud .re-slot .hud-item, .orbit-hud .re-slot.active .hud-item { opacity: .78; filter: none; }
/* The settings preview at the prototype's size, with its lime corner marks. */
.hud-preview { transform: scale(calc(.74 * var(--preview-scale, 1))); }
.settings-hud-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 276' preserveAspectRatio='none'%3E%3Cpath d='M1 18V1H14M466 1H479V18M479 258V275H466' fill='none' stroke='%23c5f277' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.settings-hud-preview { clip-path: none; }
/* QA round 6 (HUD, passing; polish). */
.hud-compass .cmp-label, .hud-compass .cmp-label small { text-shadow: 0 0 2px #050a14, 0 1px 4px #000c; }
.mm-view { background: rgb(9, 15, 25); clip-path: inset(1px 0); }
.mm-view::after { background: rgba(8, 16, 30, .72); }
.mm-world img { filter: grayscale(1) sepia(.6) hue-rotate(180deg) saturate(.84) brightness(.5); }
/* QA round 6 (inventory, passing; polish). */
.orbit-inventory .re-weapon-preview .item-large { opacity: .42; }
.orbit-inventory .re-weapon-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 603 221' preserveAspectRatio='none'%3E%3Cpath d='M2 0V17M597 0V17M2 197V220H18M597 197V220H581' fill='none' stroke='%23aab5c6' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }

/* QA round 6 (readability preview). */
.hud-preview { transform: scale(calc(.7 * var(--preview-scale, 1))); }
.hud-preview .re-vitals { width: 496px !important; margin-bottom: 8px; }
.hud-preview-note { font-size: 30px; margin-top: 14px; }
.hud-compass .cmp-label, .hud-compass .cmp-label small { text-shadow: 0 0 1px rgba(4,8,16,.95), 0 1px 0 rgba(4,8,16,.9), 0 0 2px #050a14, 0 1px 4px #000c; }
.hud-compass .cmp-label small { font-weight: 500; }

/* QA round 7 (readability preview). */
.hud-preview .re-vitals { width: 525px !important; margin-top: -16px; margin-bottom: 8px; }
.hud-preview-note { font: 400 44px Barlow, sans-serif; color: #c9d1dc; letter-spacing: .06em; margin-top: 18px; }
.settings-hud-preview { border-color: rgb(40, 48, 62); }

/* QA round 8 (readability preview): a larger caption, content 10 px lower,
   bigger icons in the slots, the prototype's corner marks. */
.hud-preview { padding-top: 26px; }
.hud-preview-note { font-size: 70px; margin-top: 22px; letter-spacing: .04em; }
.hud-preview .re-slot .hud-item { transform: translate(-50%, calc(-50% - 6px)) scale(1.8); }
.hud-preview .re-slot .hud-item.wide { transform: translate(-50%, calc(-50% - 6px)) scale(1.27); }
.settings-hud-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 475 271' preserveAspectRatio='none'%3E%3Cpath d='M1 -2H14' stroke='%23c5f277' stroke-width='2'/%3E%3Cpath d='M461 -2H474V12' fill='none' stroke='%23c5f277' stroke-width='2'/%3E%3Cpath d='M474 250V267' stroke='%23c5f277' stroke-width='2'/%3E%3Cpath d='M1 255V267' stroke='%235e6b81' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; overflow: visible; }

/* The settings help panel forces its paragraphs to 20px; the preview caption is bigger. */
.settings-rebuilt .help .hud-preview-note { font: 400 31px Barlow, sans-serif !important; letter-spacing: .06em !important; color: #c9d1dc !important; line-height: 1 !important; }

/* QA round 9 (readability preview). */
.hud-preview { padding-top: 6px; }
.settings-rebuilt .help .hud-preview-note { font-size: 37px !important; color: #eef2f8 !important; }
.settings-hud-preview::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 475 271' preserveAspectRatio='none'%3E%3Cpath d='M1 15V1H15M460 1H474V15M474 256V270H460' fill='none' stroke='%23c5f277' stroke-width='2'/%3E%3Cpath d='M1 256V270H15' fill='none' stroke='%235e6b81' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }

/* Playtest 4: the heal readout sits just under the crosshair (it was behind
   the held item low in the middle), names the item, and shows "Hold … to use"
   while a heal is in hand. */
.hud-heal { top: calc(50% + 58px); bottom: auto; gap: 7px; font-size: 14px; }
.hud-heal > div { width: 220px; height: 5px; }
.hud-heal.hint { opacity: .82; }
.hud-heal.hint > div { display: none; }
.hud-heal.hint span { color: var(--heal); }

/* ---------------------------------------------------------------- Playtest 4
   HUD pass. Softer: panel fills at about 40% instead of 90%, dimmer outlines,
   and no square box behind the hotbar's octagons. Smaller: HUD scale (30-150%)
   scales every corner group from its own corner (it used to resize only some
   parts, so 75% still looked big). */
.orbit-hud { --hud-k: 1; }
.orbit-hud .engineering-frame { stroke: rgba(140, 154, 175, .5); }
.orbit-hud .engineering-frame .inner-line { stroke: rgba(81, 98, 121, .45); }
.orbit-hud .engineering-frame > path:first-child { fill: rgba(9, 15, 25, .42); }
.orbit-hud .hud-minimap .engineering-frame > path:first-child { fill: rgba(9, 15, 25, .5); }

/* Hotbar: only the octagon, no square behind it or around the selected one. */
.orbit-hud .re-slot { background: none !important; }
.orbit-hud .re-slot .engineering-frame > path:first-child { fill: rgba(9, 15, 25, .36); }
.orbit-hud .re-slot.active:after { display: none; }
.orbit-hud .re-slot.active > .engineering-frame { stroke: var(--lime); stroke-width: 2.2; }
.orbit-hud .re-slot.active .engineering-frame > path:first-child { fill: rgba(197, 242, 119, .07); }

/* Top left: minimap, with the storm timer beside it instead of over it. */
.orbit-hud .hud-tl { position: absolute; left: calc(32px + var(--inset)); top: calc(39px + var(--inset)); display: flex; align-items: flex-start; gap: 10px; transform: scale(var(--hud-k)); transform-origin: top left; }
.orbit-hud .hud-tl .re-minimap { position: relative; left: auto !important; top: auto !important; flex: none; }
.orbit-hud .hud-storm { position: relative; right: auto; top: auto; width: 112px; padding: 12px 8px 10px; background: none; border: 0; isolation: isolate; font: 15px var(--ui); color: #c9d3e2; }
.orbit-hud .hud-storm strong { color: #f3f5fa; }
/* The minimap in the island's real colours, a little subdued (it was nearly
   black). */
.orbit-hud .mm-world img { filter: saturate(.8) brightness(.88); }
.orbit-hud .mm-view::after { background: rgba(9, 15, 25, .18); }

/* Compass: scales from its middle. */
.orbit-hud .re-compass { transform: scale(var(--hud-k)); transform-origin: top center; }

/* Top right, two rows: lives and players left, then eliminations and damage. */
.orbit-hud .hud-tr { position: absolute; right: calc(38px + var(--inset)); top: calc(45px + var(--inset)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transform: scale(var(--hud-k)); transform-origin: top right; }
.orbit-hud .tr-row { display: flex; gap: 10px; }
.orbit-hud .tr-chip { position: relative; isolation: isolate; height: 54px; min-width: 148px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 16px var(--ui); color: #d9e0ea; }
.orbit-hud .tr-chip strong { font: 700 34px var(--display); color: #f3f5fa; }
.orbit-hud .tr-chip .icon { width: 26px; height: 26px; }
.orbit-hud .tr-chip.lives .icon { color: #ff8d7f; }
.orbit-hud .hud-feed { top: calc(45px + var(--inset) + 128px * var(--hud-k)); }

/* Bottom: shield and health bars a little taller with more room; the ammo
   panel only as wide as its numbers. */
.orbit-hud .re-vitals { transform: scale(var(--hud-k)) !important; transform-origin: bottom left; width: 380px; gap: 10px; }
.orbit-hud .re-meter { height: 60px; padding: 12px 20px; }
.orbit-hud .re-segments span { height: 26px; }
.orbit-hud .re-hotbar { transform: scale(var(--hud-k)) !important; transform-origin: bottom center; }
.orbit-hud .re-ammo { transform: scale(var(--hud-k)) !important; transform-origin: bottom right; width: auto; min-width: 200px; padding: 10px 22px; }
.orbit-hud .re-ammo > div { gap: 12px; }
.orbit-hud .re-ammo .icon { margin-left: 8px; }

/* Prompts: the cursor note goes above the crosshair (it covered the drop
   height); the heal readout sits between the crosshair and the interact
   prompt. */
.orbit-hud .hud-capture { top: 380px; }
.orbit-hud .hud-heal { top: 500px; }
/* The controls hint list: the prototype's centred-hints rule (translateX(-50%),
   full width) still applied and pushed it half off the left edge. */
.orbit-hud .hud-hints { transform: scale(var(--hud-k)); transform-origin: top left; width: auto; bottom: auto; text-align: left; }
/* High contrast HUD: near-opaque dark panels, bright outlines and outlined
   text (it changed only a background that the frames cover, so it did
   nothing). The settings preview follows it too. */
.orbit-hud.high-contrast .re-minimap, .orbit-hud.high-contrast .re-counters > div, .orbit-hud.high-contrast .re-meter, .orbit-hud.high-contrast .re-slot, .orbit-hud.high-contrast .re-ammo { background: none !important; }
.orbit-hud.high-contrast .engineering-frame > path:first-child, body.high-contrast .hud-preview .engineering-frame > path:first-child { fill: rgba(3, 6, 11, .92) !important; }
.orbit-hud.high-contrast .engineering-frame, body.high-contrast .hud-preview .engineering-frame { stroke: #dfe6f0; }
.orbit-hud.high-contrast, body.high-contrast .hud-preview { text-shadow: 0 0 2px #000, 0 1px 3px #000; }
.orbit-hud.high-contrast .mm-view::after { background: rgba(9, 15, 25, .05); }

/* Inventory over the game (Playtest 4): a dimmed, see-through backdrop instead
   of a solid one. Two other layouts to choose from: side (the panel on the
   right two thirds, the left of the view clear) and compact (smaller, centred). */
.orbit-inventory { background: radial-gradient(ellipse at 48% 45%, rgba(8, 17, 30, .5) 0, rgba(9, 15, 25, .72) 75%) !important; }
.orbit-inventory.layout-side { transform: scale(.68); transform-origin: right center; background: linear-gradient(90deg, rgba(9, 15, 25, 0) 0, rgba(9, 15, 25, .8) 14%) !important; overflow: visible; }
.orbit-inventory.layout-compact { transform: scale(.8); transform-origin: center; background: rgba(9, 15, 25, .62) !important; }
/* Inventory: compact, on the right (the user's pick), the left of the view
   clear. Dragging a card out of the panel drops it. */
.orbit-inventory.layout-compact-right { transform: scale(.66); transform-origin: right center; background: linear-gradient(90deg, rgba(9, 15, 25, 0) 0, rgba(9, 15, 25, .78) 10%) !important; overflow: visible; }
.inv-ghost { position: fixed; z-index: 9999; pointer-events: none; opacity: .95; background: #0e1724; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.inv-ghost.will-drop { opacity: .8; outline: 2px solid #ff8d7f; }
.inv-ghost.will-drop::after { content: "DROP"; position: absolute; right: 10px; top: 8px; font: 600 14px var(--number, monospace); color: #ff8d7f; letter-spacing: .14em; }
/* Playtest 6: the compact inventory, centred (it sat off to the right). */
.orbit-inventory.layout-compact-center { transform: scale(.68); transform-origin: center; background: radial-gradient(ellipse at center, rgba(9, 15, 25, .82) 0, rgba(9, 15, 25, .78) 55%, rgba(9, 15, 25, 0) 75%) !important; overflow: visible; }
/* Kill feed (Playtest 7): KILLER [weapon] VICTIM, right-aligned, no box.
   Oxanium bold caps, white with a soft shadow; your name lime when it's
   your kill, coral when you go down; a coral reticle for a headshot. */
.orbit-hud .hud-feed { gap: calc(6px * var(--hud-k, 1)); }
.orbit-hud .feed-row.kill { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: calc(16px * var(--hud-k, 1)); font: 700 calc(30px * var(--hud-k, 1)) var(--display, Oxanium, sans-serif); letter-spacing: .02em; color: #f3f5fa; text-shadow: 0 1px 2px #000, 0 0 8px #000a; white-space: nowrap; }
.orbit-hud .feed-row.kill b { font-weight: 700; }
.orbit-hud .feed-row.you-killer .feed-killer { color: #c5f277; }
.orbit-hud .feed-row.you-victim .feed-victim { color: #ff8d7f; }
.orbit-hud .feed-gun { height: calc(52px * var(--hud-k, 1)); width: auto; max-width: calc(170px * var(--hud-k, 1)); margin: calc(-10px * var(--hud-k, 1)) 0; filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px #0008); }
.orbit-hud .feed-icon { width: calc(32px * var(--hud-k, 1)); height: calc(32px * var(--hud-k, 1)); filter: drop-shadow(0 1px 2px #000); }
/* Headshot (Playtest 8: bolder): a thick bright-red reticle with a dark
   outline and a glow, a little larger than the text. */
.orbit-hud .feed-head .feed-icon { color: #ff3b30; stroke: #ff3b30; stroke-width: 12; width: calc(40px * var(--hud-k, 1)); height: calc(40px * var(--hud-k, 1)); filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 2px #000) drop-shadow(0 0 7px #ff3b30aa); }
.orbit-hud .feed-drown .feed-icon { color: #70d6ff; }
.orbit-hud .feed-car .feed-icon { color: #f2f4f8; }
.orbit-hud .feed-storm .feed-icon { color: #b99bff; stroke: #b99bff; }
.orbit-hud .feed-x { color: #b4bfd0; }
.orbit-hud .feed-row.feed-note { background: none; border: 0; padding: 0; font: 600 calc(15px * var(--hud-k, 1)) var(--number); letter-spacing: .12em; color: #d6dde8; text-shadow: 0 1px 2px #000; }

/* A gun's attachments in the inventory, each a chip that takes it off (Playtest 9). */
.orbit-inventory .re-parts{position:absolute;left:36px;right:36px;top:372px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;z-index:2}
.orbit-inventory .re-parts>span{width:100%;font:14px var(--number);letter-spacing:.12em;color:#b3bfd1}
.orbit-inventory .re-part{display:flex;align-items:center;gap:8px;padding:5px 12px;background:#101c2c;border:1px solid #7f8ea3;color:#dce6f3;font:600 16px var(--display);text-transform:uppercase;cursor:pointer}
.orbit-inventory .re-part img{width:34px;height:34px}
.orbit-inventory .re-part b{color:var(--coral);font-size:20px;margin-left:4px}
.orbit-inventory .re-part:hover,.orbit-inventory .re-part:focus-visible{border-color:var(--coral);outline:none}

/* Attachment stash (spare attachments, kept for a gun you don't carry yet) */
.orbit-inventory .re-stash{position:relative;margin:20px 20px 0;display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center}
.orbit-inventory .re-stash-title{font:14px var(--number);letter-spacing:.12em;color:#b3bfd1;line-height:1.5}
.orbit-inventory .re-stash-title b{display:block;font:700 26px var(--display);color:#f3f5fa;letter-spacing:.04em}
.orbit-inventory .re-stash-cells{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.orbit-inventory .re-stash-cell{position:relative;height:60px;border:1px dashed #5b6c86;background:rgba(16,28,44,.55);display:flex}
.orbit-inventory .re-stash-cell.filled{border:1px solid #7f8ea3;background:#101c2c}
.orbit-inventory .re-stash-cell.fits{border-color:#c5f277}
.orbit-inventory .re-stash-cell button{background:none;border:0;color:#dce6f3;font:600 12px var(--display);text-transform:uppercase;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:1;padding:2px;min-width:0}
.orbit-inventory .re-stash-cell button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.orbit-inventory .re-stash-cell button img{width:28px;height:28px}
.orbit-inventory .re-stash-cell button.x{position:absolute;right:0;top:0;flex:none;width:20px;height:20px;color:var(--coral);font-size:16px;padding:0}
.orbit-inventory .re-stash-cell button:hover{color:#c5f277}
.orbit-inventory .re-reserves{margin-top:20px;height:70px;padding-top:8px;padding-bottom:8px}
.orbit-inventory .re-inventory-actions{margin-top:10px;padding-top:8px;padding-bottom:8px}
i.rar{font-style:normal;font-weight:600}

/* Rarity: hotbar slots and inventory cards take the gun's tier colour */
.orbit-hud .re-slot.rar > .engineering-frame { stroke: var(--rar) !important; stroke-width: 3 !important; }
.orbit-hud .re-slot.rar .engineering-frame > path:first-child { fill: color-mix(in srgb, var(--rar) 10%, rgba(9, 15, 25, .36)) !important; }
.orbit-hud .re-slot.rar.active > .engineering-frame { stroke-width: 4.5 !important; }
.orbit-hud .re-slot.rar.active .engineering-frame > path:first-child { fill: color-mix(in srgb, var(--rar) 30%, rgba(9, 15, 25, .2)) !important; }
.orbit-hud .re-slot.rar.active { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rar) 70%, transparent)); }
.orbit-hud .re-slot.rar .re-slot-number { color: var(--rar) !important; }
.orbit-hud .re-slot.rar.active .hud-item { opacity: 1 !important; }
.orbit-inventory .re-inventory-item.rar .engineering-frame { stroke: var(--rar); stroke-width: 2.2; }
.orbit-inventory .re-inventory-item.rar { background: linear-gradient(90deg, color-mix(in srgb, var(--rar) 16%, transparent), transparent 70%); }
.orbit-inventory .re-inventory-item.rar.active { background: linear-gradient(90deg, color-mix(in srgb, var(--rar) 30%, transparent), color-mix(in srgb, var(--rar) 4%, transparent) 80%); box-shadow: 0 0 14px color-mix(in srgb, var(--rar) 40%, transparent); }
.orbit-inventory .re-inventory-item.rar .re-item-copy strong { color: color-mix(in srgb, var(--rar) 35%, #f3f5fa); }
.orbit-inventory .re-inventory-item .rar-tag { position: absolute; right: 150px; top: 11px; font: 600 11px var(--number); letter-spacing: .14em; font-style: normal; color: var(--rar); border: 1px solid var(--rar); padding: 2px 8px; }
.orbit-inventory .re-detail.weapon .engineering-frame { stroke: var(--sel-rar); }
.orbit-inventory .re-detail.weapon h2 { color: color-mix(in srgb, var(--sel-rar) 30%, #f3f5fa); }
.orbit-inventory i.rar { font-style: normal; font-weight: 600; }
/* Weapon detail (Playtest 10): no picture; the specs fill the panel, the optic under them */
.orbit-inventory .re-detail.weapon > p { display: none; }
.orbit-inventory .re-weapon-body { position: absolute; left: 36px; right: 36px; top: 128px; bottom: 16px; display: grid; grid-template-rows: 1fr auto; gap: 12px; z-index: 2; }
.orbit-inventory .re-parts-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid #3b4a60; padding-top: 10px; }
.orbit-inventory .re-parts-row > span:first-child { font: 15px var(--number); letter-spacing: .1em; color: #b3bfd1; margin-right: 6px; }
.orbit-inventory .re-parts-row .re-part { padding: 4px 10px; font-size: 15px; }
.orbit-inventory .re-parts-row .re-part img { width: 26px; height: 26px; }
.orbit-inventory .re-noparts { font: 17px var(--number); color: #7c8aa0; }
.orbit-inventory .re-specs { display: grid; grid-auto-rows: 1fr; align-content: stretch; min-width: 0; }
.orbit-inventory .re-specs-title { font: 15px var(--number); letter-spacing: .1em; color: #b3bfd1; align-self: center; }
.orbit-inventory .re-spec { display: grid; grid-template-columns: 1fr auto 84px; gap: 16px; align-items: center; font: 19px var(--number); border-bottom: 1px solid rgba(96,113,138,.25); }
.orbit-inventory .re-spec span { color: #9fb0c6; letter-spacing: .08em; }
.orbit-inventory .re-spec b { font: 700 30px var(--display); color: #f3f5fa; }
.orbit-inventory .re-spec i { font-style: normal; text-align: right; font-size: 19px; font-weight: 600; }
.orbit-inventory .re-spec i.up { color: #c5f277; }
.orbit-inventory .re-spec i.down { color: #ff8d7f; }
.orbit-inventory .re-spec i.flat { color: #5d6c82; }


.hud-zdev { position: absolute; left: 50%; top: 128px; transform: translateX(-50%); font: 600 13px var(--number); letter-spacing: .18em; color: #0b101b; background: #ffb45c; padding: 4px 12px; z-index: 5; white-space: nowrap; }
.hud-zdev span { letter-spacing: .06em; font-weight: 500; }
.hud-zdev b { font-weight: 700; }
.hud-god { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); font: 600 14px var(--number); letter-spacing: .18em; color: #ffb45c; border: 1px solid #ffb45c; padding: 4px 12px; background: rgba(9,16,27,.7); z-index: 5; }

.orbit-inventory .re-inventory-item.rar.active .inv-icon { filter: drop-shadow(0 0 4px var(--rar)) !important; }
.orbit-inventory .re-inventory-item.rar.active .re-inventory-number { color: var(--rar); }
/* A selected gun card uses its tier colour, not lime (Playtest 10) */
.orbit-inventory .re-inventory-item.rar.active { color: var(--rar); }
.orbit-inventory .re-inventory-item.rar.active > .engineering-frame { stroke: var(--rar); stroke-width: 3.5; }
.orbit-inventory .re-inventory-item.rar.active:before { background: var(--rar); }
.orbit-inventory .re-inventory-item.rar:before { background: var(--rar); }

/* The grenade slot (Playtest 10, the Apex way), above the ammo panel */
.orbit-hud .hud-gren { position: absolute; right: calc(38px + var(--inset)); bottom: calc(176px + var(--inset)); transform: scale(var(--hud-k, 1)); transform-origin: bottom right; display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-width: 150px; color: #e6ebf3; }
.orbit-hud .hud-gren .key { font: 600 13px var(--number); border: 1px solid #dbe4ef; padding: 2px 7px; }
.orbit-hud .hud-gren img { width: 34px; height: 34px; }
.orbit-hud .hud-gren b { font: 700 28px var(--display); }
.orbit-hud .hud-gren .gtypes { display: flex; gap: 4px; margin-left: auto; }
.orbit-hud .hud-gren .gtypes i { font: 600 12px var(--number); font-style: normal; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #60718a; color: #b3bfd1; }
.orbit-hud .hud-gren .gtypes i.on { border-color: #ffb45c; color: #ffb45c; }
.orbit-hud .hud-gren .gtypes i.out { opacity: .35; }
.orbit-hud .hud-gren.held .engineering-frame { stroke: #ffb45c; stroke-width: 2.5; }
.orbit-hud .hud-gren.none { opacity: .45; }
.orbit-hud .hud-gwheel { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 6; }
.orbit-hud .hud-gwheel .seg { position: absolute; left: 0; top: 0; width: 132px; padding: 10px; display: grid; justify-items: center; gap: 3px; background: rgba(9, 16, 27, .82); border: 1px solid #60718a; color: #e6ebf3; }
.orbit-hud .hud-gwheel .seg img { width: 44px; height: 44px; }
.orbit-hud .hud-gwheel .seg b { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.orbit-hud .hud-gwheel .seg span { font: 12px var(--number); color: #b3bfd1; }
.orbit-hud .hud-gwheel .seg.pick { border: 2px solid #ffb45c; box-shadow: 0 0 14px rgba(255, 180, 92, .45); }
.orbit-hud .hud-gwheel .seg.out { opacity: .4; }
.orbit-hud .hud-gwheel .hub { position: absolute; transform: translate(-50%, -50%); font: 600 14px var(--number); border: 1px solid #dbe4ef; padding: 3px 8px; background: rgba(9, 16, 27, .8); }

.orbit-inventory .re-gren-row { position: relative; margin: 14px 20px 0; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.orbit-inventory .re-gren-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.orbit-inventory .re-gren-cell { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 1px solid #5b6c86; background: #101c2c; color: #dce6f3; font: 600 14px var(--display); text-transform: uppercase; }
.orbit-inventory .re-gren-cell img { width: 30px; height: 30px; }
.orbit-inventory .re-gren-cell b { margin-left: auto; font: 600 15px var(--number); }
.orbit-inventory .re-gren-cell.on { border-color: #ffb45c; }
.orbit-inventory .re-gren-cell.out { opacity: .45; }
.orbit-inventory .re-stash { margin-top: 10px !important; }

/* Pings on the compass (Playtest 10) */
.hud-compass .cmp-pings { position: absolute; inset: 0; pointer-events: none; }
.hud-compass .cping { position: absolute; top: 2px; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; }
.hud-compass .cping i { width: 12px; height: 12px; background: var(--pc); transform: rotate(45deg); border: 1.5px solid #0b101b; box-shadow: 0 0 6px var(--pc); }
.hud-compass .cping b { font: 600 11px var(--number); color: var(--pc); text-shadow: 0 1px 2px #000; }

/* Spectating after you're eliminated (scripts/combat/spectator.gd). */
.hud-spec { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); min-width: 340px; padding: 10px 16px 12px; background: rgba(9,16,27,.78); border: 1px solid rgba(255,255,255,.14); border-top: 2px solid #ff5a4f; z-index: 5; font: 600 13px var(--number); letter-spacing: .12em; color: #e8ecf4; }
.hud-spec .sp-top { display: flex; align-items: baseline; gap: 10px; }
.hud-spec .sp-tag { color: #ff5a4f; font-size: 11px; letter-spacing: .22em; }
.hud-spec .sp-name { font-size: 20px; letter-spacing: .08em; flex: 1; }
.hud-spec .sp-kills { color: #9aa6bd; font-size: 12px; }
.hud-spec .sp-bars { display: grid; gap: 3px; margin: 8px 0 6px; }
.hud-spec .sp-bars i { display: block; height: 6px; background: rgba(255,255,255,.1); }
.hud-spec .sp-bars u { display: block; height: 100%; text-decoration: none; }
.hud-spec .sp-sh u { background: #6fb7ff; }
.hud-spec .sp-hp u { background: #ff6f61; }
.hud-spec .sp-sub { display: flex; justify-content: space-between; font-size: 11px; color: #9aa6bd; }
.hud-spec .sp-keys { margin-top: 8px; font-size: 11px; color: #9aa6bd; }
.hud-spec .sp-keys .key { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid rgba(255,255,255,.35); color: #e8ecf4; text-align: center; }

/* Caster mode: the match without you in it. */
.orbit-hud.caster .re-vitals, .orbit-hud.caster .re-hotbar-anchor, .orbit-hud.caster #hud-ammo, .orbit-hud.caster #hud-gren,
.orbit-hud.caster #hud-gwheel, .orbit-hud.caster #hud-hints, .orbit-hud.caster #hud-prompt, .orbit-hud.caster #hud-heal,
.orbit-hud.caster #hud-drop, .orbit-hud.caster #hud-lives, .orbit-hud.caster .hud-status { display: none !important; }
.orbit-hud.caster .hud-spec { top: auto; bottom: calc(28px + var(--inset, 0px)); border-top-color: #c5f277; }
.orbit-hud.caster .hud-spec .sp-tag { color: #c5f277; }
.hud-spec.free .sp-bars { display: none; }

/* Caster mode: live fights panel and alerts (scripts/combat/fight_tracker.gd). */
.hud-fights { position: absolute; right: calc(28px + var(--inset, 0px)); top: calc(330px + var(--inset, 0px)); width: 300px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; z-index: 6; }
.hud-fights .hf-title { margin: 0; padding: 4px 10px; background: rgba(9,16,27,.86); align-self: flex-start; font: 600 12px var(--number); letter-spacing: .2em; color: #c5f277; }
.hud-fights .hf-title span { color: #e8ecf4; margin-left: 6px; }
.hud-fights .hf-none { margin: 0; font: 500 12px var(--number); color: #9aa6bd; letter-spacing: .1em; }
.orbit-hud .hud-fights .hf-row { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; background: rgba(9,16,27,.86); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid #ff5a4f; padding: 7px 10px 8px; font: 600 12px var(--number); letter-spacing: .08em; color: #e8ecf4; }
.orbit-hud .hud-fights .hf-row:hover, .orbit-hud .hud-fights .hf-row:focus-visible { border-color: #c5f277; outline: none; }
.orbit-hud .hud-fights .hf-row.done { border-left-color: #6b778c; opacity: .7; }
.hf-head { display: flex; align-items: center; gap: 8px; }
.hf-head b { flex: 1; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hf-head .key { min-width: 16px; padding: 0 4px; border: 1px solid rgba(255,255,255,.35); text-align: center; font-size: 11px; }
.hf-time { color: #9aa6bd; font-size: 11px; }
.hf-heat { height: 3px; background: rgba(255,255,255,.08); margin: 6px 0; }
.hf-heat i { display: block; height: 100%; background: linear-gradient(90deg, #ffb45c, #ff5a4f); }
.hf-members { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.hf-members span { display: grid; gap: 2px; min-width: 0; }
.hf-members span.dead { opacity: .35; text-decoration: line-through; }
.hf-members em { font-style: normal; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-members u { display: block; height: 3px; background: rgba(255,255,255,.08); text-decoration: none; }
.hf-members u i { display: block; height: 100%; }
.hf-members i.sh { background: #6fb7ff; }
.hf-members i.hp { background: #ff6f61; }
.hf-members .more { color: #9aa6bd; font-size: 11px; align-self: center; }
.hf-won { margin: 6px 0 0; color: #c5f277; font-size: 11px; }
.hud-alert { position: absolute; left: 50%; top: 150px; transform: translate(-50%, -8px); opacity: 0; transition: opacity .25s, transform .25s; padding: 9px 22px; background: rgba(9,16,27,.86); border: 1px solid #ff5a4f; color: #ffd9d4; font: 700 18px var(--display, Oxanium, sans-serif); letter-spacing: .12em; z-index: 7; pointer-events: none; }
.hud-alert.show { opacity: 1; transform: translate(-50%, 0); }

/* Caster picture in picture: the frame and label over the game's corner window. */
.hud-pip { position: fixed; border: 2px solid #c5f277; box-shadow: 0 0 0 1px #0b101b; pointer-events: none; z-index: 6; box-sizing: border-box; }
.hud-pip > span { position: absolute; left: -2px; top: -26px; padding: 3px 10px; background: rgba(9,16,27,.9); font: 600 12px var(--number); letter-spacing: .1em; color: #e8ecf4; white-space: nowrap; }
.hud-pip > span b { color: #c5f277; text-transform: uppercase; }
.hud-pip > em { position: absolute; right: 4px; bottom: 4px; font: 600 10px var(--number); font-style: normal; letter-spacing: .1em; color: #e8ecf4; background: rgba(9,16,27,.75); padding: 2px 6px; }
.hud-pip .key { border: 1px solid rgba(255,255,255,.4); padding: 0 4px; }

/* Caster step 5: cinematic mode, speed, leaderboard, name tags. */
.orbit-hud.cine > * { visibility: hidden !important; }
.hud-pip.cine > span, .hud-pip.cine > em { display: none; }
.hud-safe { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.hud-safe::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 160vh); aspect-ratio: 16 / 9; max-height: 90vh; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,.55); }
.hud-speed { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); padding: 3px 12px; background: rgba(9,16,27,.86); border: 1px solid #ffb45c; color: #ffb45c; font: 700 14px var(--number); letter-spacing: .2em; z-index: 6; }
.hud-board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 520px; padding: 16px 20px; background: rgba(9,16,27,.92); border: 1px solid rgba(255,255,255,.18); border-top: 2px solid #c5f277; z-index: 7; font: 600 13px var(--number); color: #e8ecf4; }
.hud-board .hb-title { margin: 0 0 10px; color: #c5f277; letter-spacing: .2em; display: flex; justify-content: space-between; }
.hud-board .hb-title span { color: #9aa6bd; letter-spacing: .1em; font-size: 11px; }
.hud-board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hud-board th { text-align: left; font-size: 11px; color: #9aa6bd; letter-spacing: .14em; padding: 4px 8px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hud-board td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.06); letter-spacing: .06em; }
.hud-board td u { display: block; height: 3px; background: rgba(255,255,255,.1); margin-top: 3px; text-decoration: none; }
.hud-board td u i { display: block; height: 100%; background: #ff6f61; }
.hud-board tr.me td { color: #c5f277; }
.hud-tags { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.hud-tags .tag { position: absolute; transform: translate(-50%, -100%); display: grid; gap: 2px; min-width: 70px; padding: 2px 6px 3px; background: rgba(9,16,27,.7); font: 700 11px var(--number); letter-spacing: .08em; color: #e8ecf4; text-align: center; white-space: nowrap; }
.hud-tags .tag.me { color: #c5f277; outline: 1px solid #c5f277; }
.hud-tags .tag u { display: block; height: 3px; background: rgba(255,255,255,.12); text-decoration: none; }
.hud-tags .tag u i { display: block; height: 100%; }
.hud-tags .tag i.sh { background: #6fb7ff; }
.hud-tags .tag i.hp { background: #ff6f61; }
.hud-tags.cine { display: none; }

/* Caster step 6: replay bar, fight card, telestrator, match summary. */
.hud-replay { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); min-width: 420px; padding: 8px 14px 10px; background: rgba(9,16,27,.9); border: 1px solid #ffb45c; z-index: 7; font: 600 12px var(--number); letter-spacing: .1em; color: #e8ecf4; display: grid; gap: 6px; }
.hud-replay b { color: #ffb45c; letter-spacing: .3em; font-size: 14px; }
.hud-replay u { display: block; height: 4px; background: rgba(255,255,255,.12); text-decoration: none; }
.hud-replay u i { display: block; height: 100%; background: #ffb45c; }
.hud-replay em { font-style: normal; color: #9aa6bd; font-size: 11px; }
.hud-replay .key, .hud-tele-hint .key { border: 1px solid rgba(255,255,255,.4); padding: 0 4px; }
.hud-card { position: absolute; left: calc(28px + var(--inset, 0px)); top: 330px; width: 280px; padding: 12px 14px; background: rgba(9,16,27,.9); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid #c5f277; z-index: 6; opacity: 0; transform: translateX(-12px); transition: opacity .25s, transform .25s; pointer-events: none; font: 600 12px var(--number); color: #e8ecf4; }
.hud-card.show { opacity: 1; transform: none; }
.hud-card p { margin: 0; color: #9aa6bd; letter-spacing: .14em; font-size: 11px; }
.hud-card h3 { margin: 4px 0 8px; font: 700 18px var(--display, Oxanium, sans-serif); letter-spacing: .04em; color: #c5f277; }
.hud-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hud-card li { display: flex; justify-content: space-between; letter-spacing: .08em; }
.hud-tele { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9; cursor: crosshair; }
.hud-tele-hint { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 10; padding: 5px 14px; background: rgba(9,16,27,.9); border: 1px solid #c5f277; color: #c5f277; font: 600 12px var(--number, monospace); letter-spacing: .14em; pointer-events: none; }
.hud-summary { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 760px; max-width: 92%; padding: 22px 26px; background: rgba(9,16,27,.94); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid #c5f277; z-index: 7; color: #e8ecf4; font: 600 13px var(--number); }
.hud-summary .hs-kicker { margin: 0; color: #9aa6bd; letter-spacing: .24em; font-size: 12px; }
.hud-summary h2 { margin: 6px 0 16px; font: 700 34px var(--display, Oxanium, sans-serif); color: #c5f277; letter-spacing: .04em; }
.hud-summary .hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hud-summary h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .2em; color: #9aa6bd; }
.hud-summary ol, .hud-summary ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 3px; }
.hud-summary ul { list-style: none; padding: 0; }
.hud-summary li b { color: #c5f277; margin-left: 6px; }
.hud-summary p { margin: 0 0 6px; }
.hud-summary .hs-hint { margin-top: 10px; color: #9aa6bd; font-size: 11px; letter-spacing: .12em; }

/* Dead Orbit (docs/zombies-mode-plan.md): the round in red tally marks over
   the vitals, points over the ammo with each +10 floating off, zombies left,
   the place you're in, a banner as each round starts, power-up timers, and
   prices on the prompt. The battle royale's counters and storm timer go. */
.orbit-hud.zombies .hud-tr, .orbit-hud.zombies .hud-storm { display: none !important; }
/* Bottom right above the points (19 Oct: bottom left, it covered the F3 readout). */
.hud-z { position: absolute; right: calc(40px + var(--inset)); bottom: calc(306px + var(--inset)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; transform: scale(var(--bottom-scale)); transform-origin: bottom right; pointer-events: none; }
.z-round { min-height: 72px; display: flex; align-items: flex-end; justify-content: flex-end; }
.z-tally { height: 70px; overflow: visible; filter: drop-shadow(0 0 6px rgba(200, 20, 20, .55)) drop-shadow(0 2px 2px #000); }
.z-tally path { fill: none; stroke: #c8191c; stroke-width: 8.5; stroke-linecap: round; }
.z-round.new .z-tally path:last-child { stroke-dasharray: 90; stroke-dashoffset: 90; animation: z-draw .7s .25s ease-out forwards; }
.z-round.new { animation: z-flash 2.2s ease-out; }
@keyframes z-draw { to { stroke-dashoffset: 0; } }
@keyframes z-flash { 0%, 30% { filter: brightness(2.4) saturate(.3); } 100% { filter: none; } }
.z-num { font: 800 76px var(--display); line-height: .9; color: #c8191c; letter-spacing: .02em; text-shadow: 0 0 14px rgba(200, 20, 20, .6), 0 2px 2px #000; }
.z-sub { display: flex; align-items: center; gap: 14px; font: 15px var(--number); letter-spacing: .16em; color: #d9e0ea; text-shadow: 0 1px 3px #000c; }
.z-sub strong { font: 700 22px var(--display); color: #f3f5fa; margin-right: 2px; }
.z-left { display: flex; align-items: center; gap: 6px; }
.z-left i { width: 14px; height: 16px; background: #c8191c; clip-path: polygon(20% 0, 80% 0, 100% 30%, 100% 62%, 78% 72%, 74% 100%, 26% 100%, 22% 72%, 0 62%, 0 30%); }
.z-place { color: #9fb0c6; }
.z-perks { display: flex; gap: 6px; margin-top: 4px; }
.z-perk { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font: 700 15px var(--display); color: #0b101b; background: var(--pc, #c5f277); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); box-shadow: 0 0 10px var(--pc); }
.hud-zpts { position: absolute; right: calc(40px + var(--inset)); bottom: calc(244px + var(--inset)); display: flex; align-items: baseline; gap: 10px; transform: scale(var(--bottom-scale)); transform-origin: bottom right; pointer-events: none; text-shadow: 0 2px 4px #000c; }
.hud-zpts strong { font: 800 46px var(--display); color: #f3f5fa; letter-spacing: .02em; }
.hud-zpts > span { font: 14px var(--number); letter-spacing: .18em; color: #b3bfd0; }
.z-pops { position: absolute; right: 100%; bottom: 8px; width: 0; height: 0; }
.z-pop { position: absolute; right: 12px; bottom: 0; font: 700 22px var(--display); font-style: normal; white-space: nowrap; color: #ffd166; animation: z-pop 1s ease-out forwards; }
.z-pop.kill { color: #f3f5fa; font-size: 26px; }
.z-pop.head, .z-pop.knife { color: #ffb347; font-size: 28px; }
.z-pop.spend { color: #ff8d7f; }
.z-pop.board { color: #c5f277; }
@keyframes z-pop { 0% { opacity: 0; transform: translate(0, 6px) scale(.8); } 15% { opacity: 1; transform: translate(calc(var(--dx) * .3), -6px) scale(1.05); } 100% { opacity: 0; transform: translate(var(--dx), -54px) scale(.9); } }
.hud-zbreak { position: absolute; left: 50%; top: calc(150px + var(--inset)); transform: translateX(-50%); font: 15px var(--number); letter-spacing: .24em; color: #f3f5fa; text-shadow: 0 1px 3px #000c; opacity: 0; transition: opacity .5s; white-space: nowrap; }
.hud-zbreak b { font: 700 24px var(--display); color: #ff6b5e; }
.hud-zbreak.on { opacity: 1; }
.hud-zbanner { position: absolute; left: 0; right: 0; top: 230px; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; text-shadow: 0 0 24px rgba(200, 20, 20, .55), 0 3px 4px #000; }
.hud-zbanner small { font: 18px var(--number); letter-spacing: .5em; color: #e9d6d6; }
.hud-zbanner b { font: 800 120px var(--display); line-height: 1; color: #c8191c; }
.hud-zbanner.show { animation: z-banner 3.2s ease-out forwards; }
@keyframes z-banner { 0% { opacity: 0; transform: scale(1.25); filter: blur(4px); } 12% { opacity: 1; transform: scale(1); filter: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }
.hud-ztimers { position: absolute; left: 50%; bottom: calc(198px + var(--inset)); transform: translateX(-50%); display: flex; gap: 10px; pointer-events: none; }
.z-timer { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: rgba(11, 20, 33, .8); border-left: 3px solid #c5f277; font: 18px var(--number); color: #f3f5fa; letter-spacing: .1em; }
.z-timer b { font: 700 16px var(--display); letter-spacing: .12em; color: #c5f277; }
.z-timer.low { animation: z-blink .5s steps(2) infinite; }
@keyframes z-blink { 50% { opacity: .35; } }
.z-cost { margin-left: 6px; padding: 4px 12px; font: 700 20px var(--display); color: #0b101b; background: #ffb347; letter-spacing: .04em; }
.z-cost.no { background: #5a2a2a; color: #ffb3a8; }
.hud-zpick { position: absolute; left: 0; right: 0; top: 380px; text-align: center; font: 800 64px var(--display); letter-spacing: .06em; color: var(--pc, #ffd166); text-shadow: 0 0 22px var(--pc, #ffd166), 0 3px 4px #000; opacity: 0; pointer-events: none; }
.hud-zpick.show { animation: z-pick 2.4s ease-out forwards; }
@keyframes z-pick { 0% { opacity: 0; transform: scale(.7); } 10% { opacity: 1; transform: scale(1.08); } 20% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.hud-zboss { position: absolute; left: 50%; top: calc(108px + var(--inset)); transform: translateX(-50%); width: 560px; text-align: center; pointer-events: none; }
.hud-zboss b { display: block; font: 700 20px var(--display); letter-spacing: .3em; color: #c9b8ff; text-shadow: 0 0 12px rgba(138, 123, 255, .8), 0 2px 3px #000; margin-bottom: 6px; }
.hud-zboss u { display: block; height: 12px; background: rgba(11, 16, 27, .85); border: 1px solid #6b5fbf; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hud-zboss i { display: block; height: 100%; background: linear-gradient(90deg, #6b3cff, #c9b8ff); box-shadow: 0 0 10px #8a7bff; transition: width .2s; }
.orbit-hud.zstorm .z-round { filter: drop-shadow(0 0 10px rgba(110, 200, 255, .8)); }
.orbit-hud.zstorm .z-tally path { stroke: #6fe7ff; }
/* On a short window the round tally reaches up into the control hints: once the rounds are on, the hints give way. */
@media (max-height: 940px) { .orbit-hud.zombies.zlive .hud-hints { opacity: 0; } }
.orbit-hud.zstorm .z-num { color: #6fe7ff; }
.hud-zgoal { position: absolute; left: calc(40px + var(--inset)); top: calc(318px + var(--inset)); max-width: 380px; padding: 8px 14px 9px; background: rgba(11, 16, 27, .62); border-left: 3px solid #6fe7ff; pointer-events: none; transform: scale(var(--hud-k)); transform-origin: top left; }
.hud-zgoal p { font: 12px var(--number); letter-spacing: .22em; color: #6fe7ff; margin: 0 0 3px; }
.hud-zgoal span { font: 500 16px var(--ui); color: #e6ebf3; line-height: 1.3; }
.orbit-hud.zombies .hud-hints { top: 420px; }
