/* Iron Pilgrim / Storm Nomad — UI. Plain CSS, all classes prefixed ip-. */
:root {
  --ip-ink: #ede7db;
  --ip-dim: rgba(237, 231, 219, .62);
  --ip-faint: rgba(237, 231, 219, .34);
  --ip-line: rgba(237, 231, 219, .15);
  --ip-line2: rgba(237, 231, 219, .26);
  --ip-bg: rgba(13, 14, 15, .6);
  --ip-bg2: rgba(8, 9, 10, .8);
  --ip-accent: #ff9a3c;
  --ip-accent-hi: #ffc27e;
  --ip-accent-glow: rgba(255, 140, 50, .42);
  --ip-red: #e8553b;
  --ip-font: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --ip-num: 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ip-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ip-ease: cubic-bezier(.2, .8, .2, 1);
}
html, body { margin: 0; height: 100%; background: #0b0c0d; overflow: hidden; }
#app { position: fixed; inset: 0; }
#app canvas { display: block; }

.ip-ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-family: var(--ip-font); color: var(--ip-ink);
  user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ip-ui [hidden] { display: none !important; }
.ip-hud { position: absolute; inset: 0; transition: opacity .35s var(--ip-ease); }
.ip-hud.ip-hidden { opacity: 0; }

/* keycap */
.ip-key { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border: 1px solid rgba(237, 231, 219, .5);
  border-bottom-width: 2px; border-radius: 3px; font: 600 12px/15px var(--ip-num); text-align: center; color: var(--ip-ink);
  background: rgba(0, 0, 0, .32); letter-spacing: 0; }
.ip-key-lg { height: 28px; min-width: 28px; padding: 0 9px; font-size: 14px; line-height: 25px; }

/* ------------------------------------------------------------------ weapon slot bar */
.ip-slotbar { position: absolute; right: max(18px, 1.7vw); bottom: max(16px, 2.3vh); display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.ip-slotbar::before { content: ''; position: absolute; inset: -60px -40px -40px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 75% at 70% 78%, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 70%); }
.ip-slot-hint { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--ip-font); letter-spacing: .22em; color: var(--ip-faint); padding-right: 2px; }
.ip-slot-hint i { width: 1px; height: 12px; background: var(--ip-line2); margin: 0 6px; }
.ip-slot-hint .ip-key { min-width: 16px; height: 16px; font-size: 11px; line-height: 13px; color: var(--ip-dim); border-color: var(--ip-line2); }
.ip-mouse svg { width: 10px; height: 15px; display: block; color: var(--ip-dim); }
.ip-slots { display: flex; align-items: flex-end; gap: clamp(6px, .62vw, 11px); }

.ip-slot { --w: clamp(116px, min(10.6vw, 18.8vh), 320px); position: relative; width: var(--w); height: calc(var(--w) * .9); box-sizing: border-box;
  border: 1px solid var(--ip-line); border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 27, 29, .7) 0%, rgba(12, 13, 14, .78) 100%);
  backdrop-filter: blur(7px) saturate(1.08); -webkit-backdrop-filter: blur(7px) saturate(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(0) scale(1); transform-origin: 50% 100%;
  transition: transform .22s var(--ip-ease), border-color .22s, box-shadow .22s, background .22s; }
.ip-slot::after { /* fine top sheen + darker text band */ content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .28) 100%); }
.ip-slot-edge { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; transition: background .22s; }
.ip-slot-num { position: absolute; left: calc(var(--w) * .047); top: calc(var(--w) * .047); width: calc(var(--w) * .124); height: calc(var(--w) * .124); box-sizing: border-box;
  border: 1px solid rgba(237, 231, 219, .42); display: grid; place-items: center; border-radius: 2px; font: 700 calc(var(--w) * .077)/1 var(--ip-num); text-align: center; color: var(--ip-ink); background: rgba(0, 0, 0, .28); z-index: 2;
  transition: background .22s, color .22s, border-color .22s; }
.ip-slot-art { position: absolute; left: 6px; right: 6px; top: calc(var(--w) * .145); height: calc(var(--w) * .5); display: grid; place-items: center; }
.ip-slot-art > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.ip-slot-img { object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .55)) saturate(.9) brightness(.92); opacity: 0; transition: opacity .3s, filter .22s; }
.ip-has-icon .ip-slot-img { opacity: .9; }
.ip-has-icon .ip-slot-ph { display: none; }
.ip-slot-ph { opacity: .6; transition: opacity .22s; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.ip-sil { width: 100%; height: 100%; display: block; }
.ip-slot-text { position: absolute; left: 10px; right: 9px; bottom: calc(var(--w) * .062); }
.ip-slot-name { --fit: 1; font: 700 calc(var(--w) * .091 * var(--fit))/1.05 var(--ip-font); letter-spacing: .055em; text-transform: uppercase; color: var(--ip-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.ip-slot-cat { margin-top: 4px; font: 600 calc(var(--w) * .058)/1 var(--ip-font); letter-spacing: .17em; color: rgba(237, 231, 219, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-slot-ammo { position: absolute; right: 9px; top: 6px; display: flex; align-items: baseline; font-family: var(--ip-num); color: var(--ip-dim); z-index: 2; }
.ip-slot-ammo b { font-weight: 700; font-size: calc(var(--w) * .125); line-height: 1; color: var(--ip-ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ip-slot-ammo span { font-weight: 600; font-size: calc(var(--w) * .078); margin-left: 2px; white-space: pre; font-variant-numeric: tabular-nums; }
/* (v1.12) akimbo: the two guns' rounds, right | left, with a small x2 above */
.ip-slot-ammo.ip-akimbo { position: absolute; }
.ip-slot-ammo.ip-akimbo::before { content: 'x2'; position: absolute; right: 0; top: calc(var(--w) * -.06); font-size: calc(var(--w) * .055); font-weight: 700; letter-spacing: .08em; color: var(--ip-dim); }
.ip-slot-ammo .ip-ak-sep { font-style: normal; font-size: calc(var(--w) * .09); margin: 0 3px; color: var(--ip-dim); opacity: .7; }
.ip-slot-ammo .ip-x { font-size: calc(var(--w) * .08); margin: 0 2px 0 0; }
.ip-slot-ammo.ip-low b { color: var(--ip-accent-hi); }
.ip-slot-ammo.ip-empty-mag b { color: var(--ip-red); }
.ip-charge { top: 12px; }
.ip-charge-bar { display: block; width: calc(var(--w) * .28); height: 4px; background: rgba(237, 231, 219, .16); }
.ip-charge-bar i { display: block; height: 100%; background: var(--ip-ink); }
.ip-slot.ip-empty { opacity: .45; }
.ip-slot.ip-empty .ip-slot-name { position: absolute; bottom: 12px; left: 10px; color: var(--ip-faint); }

/* active slot: warm border + glow, raised, warmer backing */
.ip-slot.ip-active { transform: translateY(-9px) scale(1.035); border-color: var(--ip-accent);
  background: linear-gradient(180deg, rgba(64, 44, 25, .8) 0%, rgba(24, 17, 11, .86) 100%);
  box-shadow: 0 0 0 1px rgba(255, 154, 60, .85), 0 0 26px var(--ip-accent-glow), 0 14px 34px rgba(0, 0, 0, .45), inset 0 0 30px rgba(255, 140, 50, .12); }
.ip-slot.ip-active .ip-slot-edge { background: linear-gradient(90deg, rgba(255, 154, 60, 0), var(--ip-accent) 25%, var(--ip-accent-hi) 50%, var(--ip-accent) 75%, rgba(255, 154, 60, 0)); }
.ip-slot.ip-active .ip-slot-num { background: var(--ip-accent); color: #1a1109; border-color: var(--ip-accent); }
.ip-slot.ip-active .ip-slot-name { opacity: 1; color: #fff8ee; }
.ip-slot.ip-active .ip-slot-cat { color: rgba(255, 214, 170, .72); }
.ip-slot.ip-active .ip-slot-ph { opacity: .95; }
.ip-slot.ip-active .ip-slot-img { opacity: 1; filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .6)) saturate(1) brightness(1.04); }
.ip-slot.ip-active .ip-slot-ammo b { color: #fff; }
.ip-slot.ip-active .ip-slot-ammo.ip-low b { color: var(--ip-accent-hi); }
.ip-slot.ip-active .ip-slot-ammo.ip-empty-mag b { color: var(--ip-red); }

/* ------------------------------------------------------------------ vitals */
/* vitals box (bottom-left): air bubbles over five shield slots over a regenerating health tank */
.ip-vbox { --vw: clamp(132px, min(9.6vw, 17.5vh), 236px); --shc: #8fdcff; --shg: rgba(120, 210, 255, .5); --hpc: #d9412f; --hpc2: #ff7a4a;
  position: absolute; left: max(18px, 1.7vw); bottom: max(16px, 2.3vh); width: var(--vw); display: flex; flex-direction: column; gap: calc(var(--vw) * .05);
  transition: opacity .8s; }
.ip-vbox.ip-rest { opacity: .8; }
.ip-vb-frame { position: relative; border: 1px solid var(--ip-line); border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 27, 29, .7) 0%, rgba(12, 13, 14, .78) 100%);
  backdrop-filter: blur(7px) saturate(1.08); -webkit-backdrop-filter: blur(7px) saturate(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
/* air bubbles */
.ip-vb-bubbles { display: flex; gap: calc(var(--vw) * .05); height: calc(var(--vw) * .16); padding-left: 2px; opacity: 0; transform: translateY(6px);
  transition: opacity .35s, transform .35s var(--ip-ease); }
.ip-vb-bubbles.ip-show { opacity: 1; transform: none; }
.ip-vb-bub { --s: 1; position: relative; width: calc(var(--vw) * .16); height: calc(var(--vw) * .16); display: grid; place-items: center; }
.ip-vb-bub b { width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box; transform: scale(var(--s)); transition: transform .25s var(--ip-ease), opacity .2s;
  border: 1.5px solid rgba(215, 244, 255, .9); background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(190, 236, 255, .28) 13% 55%, rgba(120, 200, 240, .12) 56%);
  box-shadow: 0 0 8px rgba(150, 220, 255, .35), inset 0 0 4px rgba(255, 255, 255, .25); }
.ip-vb-bub:not(.ip-on) b { opacity: 0; }
.ip-vb-bub.ip-pop::before, .ip-vb-bub.ip-pop::after { content: ''; position: absolute; inset: -35%; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(220, 248, 255, .95) 8% 11%, transparent 11% 33%, rgba(220, 248, 255, .95) 33% 36%, transparent 36% 58%, rgba(220, 248, 255, .95) 58% 61%, transparent 61% 83%, rgba(220, 248, 255, .95) 83% 86%, transparent 86%);
  -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 43% 60%, transparent 61%); mask: radial-gradient(circle, transparent 0 42%, #000 43% 60%, transparent 61%);
  animation: ip-bubpop .5s ease-out forwards; }
.ip-vb-bub.ip-pop::after { animation-delay: .06s; transform: rotate(22deg); }
@keyframes ip-bubpop { from { opacity: 1; transform: scale(.55); } to { opacity: 0; transform: scale(1.35); } }
/* shield slots */
.ip-vb-shields { display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--vw) * .3); border-bottom: 1px solid var(--ip-line); }
.ip-vb-slot { position: relative; display: grid; place-items: center; overflow: visible; border-left: 1px solid var(--ip-line); }
.ip-vb-slot:first-child { border-left: 0; }
.ip-vb-sfill { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(0);
  background: linear-gradient(180deg, rgba(143, 220, 255, .34), rgba(80, 170, 235, .16)); transition: transform .2s ease-out; }
.ip-vb-sicon { position: relative; width: 68%; height: 78%; opacity: .16; transition: opacity .2s, filter .2s; }
.ip-vb-sicon svg { width: 100%; height: 100%; display: block; fill: none; stroke: var(--ip-ink); stroke-width: 1.6; }
.ip-vb-sicon .ip-sh-glint { stroke: none; fill: transparent; }
.ip-vb-slot.ip-on .ip-vb-sicon { opacity: .75; }
.ip-vb-slot.ip-full .ip-vb-sicon { opacity: 1; filter: drop-shadow(0 0 4px var(--shg)); }
.ip-vb-slot.ip-on .ip-vb-sicon svg { stroke: var(--shc); fill: rgba(143, 220, 255, .22); }
.ip-vb-slot.ip-full .ip-vb-sicon .ip-sh-glint { fill: rgba(235, 250, 255, .5); }
.ip-vb-slot.ip-chip .ip-vb-sicon { animation: ip-shchip .26s ease-out; }
@keyframes ip-shchip { 30% { transform: translateX(-2px); filter: brightness(2); } 60% { transform: translateX(2px); } }
.ip-vb-slot.ip-break .ip-vb-sicon { animation: ip-shbreak .7s ease-out; }
@keyframes ip-shbreak { 0% { opacity: 1; filter: brightness(3) drop-shadow(0 0 8px #bff0ff); transform: scale(1.15); } 25% { transform: scale(.9) rotate(-6deg); } 100% { opacity: .16; transform: none; } }
.ip-vb-burst { position: absolute; inset: -30%; pointer-events: none; opacity: 0; }
.ip-vb-slot.ip-break .ip-vb-burst { background: conic-gradient(from 10deg, transparent 0 6%, #d9f5ff 6% 9%, transparent 9% 22%, #d9f5ff 22% 25%, transparent 25% 47%, #d9f5ff 47% 50%, transparent 50% 68%, #d9f5ff 68% 71%, transparent 71% 88%, #d9f5ff 88% 91%, transparent 91%);
  -webkit-mask: radial-gradient(circle, transparent 0 38%, #000 39% 58%, transparent 59%); mask: radial-gradient(circle, transparent 0 38%, #000 39% 58%, transparent 59%);
  animation: ip-shburst .55s ease-out forwards; }
@keyframes ip-shburst { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.3); } }
.ip-vb-slot.ip-restore .ip-vb-sfill { animation: ip-shrestore .6s ease-out; }
@keyframes ip-shrestore { 0% { filter: brightness(2.6); } 100% { filter: none; } }
/* health tank */
.ip-vb-tank { position: relative; height: calc(var(--vw) * .86); overflow: hidden; }
.ip-vb-hfill, .ip-vb-ghost { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: 50% 100%; }
.ip-vb-hfill { background: repeating-linear-gradient(-48deg, rgba(0, 0, 0, 0) 0 7px, rgba(0, 0, 0, .09) 7px 10px), linear-gradient(0deg, #a92d22 0%, var(--hpc) 55%, var(--hpc2) 100%);
  transition: transform .2s ease-out; box-shadow: inset 0 1px 0 rgba(255, 190, 150, .6); }
.ip-vb-ghost { background: rgba(255, 225, 205, .38); transition: transform .8s ease-out; }
.ip-vb-wave { position: absolute; left: 0; right: 0; height: 2px; margin-bottom: -1px; background: rgba(255, 210, 180, .85); box-shadow: 0 0 8px rgba(255, 140, 90, .6); transition: bottom .2s ease-out; }
.ip-vb-heart { position: absolute; left: 50%; top: 46%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.ip-vb-heart svg { width: 100%; display: block; fill: var(--ip-ink); stroke: rgba(0, 0, 0, .35); stroke-width: .8; }
.ip-vb-num { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font: 700 calc(var(--vw) * .13)/1 var(--ip-num); color: var(--ip-ink);
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); letter-spacing: .02em; }
.ip-vb-tank.ip-hit { animation: ip-hphit .35s ease-out; }
@keyframes ip-hphit { 0% { box-shadow: inset 0 0 28px rgba(255, 90, 60, .9); } 100% { box-shadow: inset 0 0 0 rgba(255, 90, 60, 0); } }
.ip-vb-tank.ip-regen .ip-vb-hfill { filter: brightness(1.12); }
.ip-vb-tank.ip-regen .ip-vb-wave { animation: ip-hpregen 1.1s ease-in-out infinite; }
@keyframes ip-hpregen { 50% { box-shadow: 0 0 14px rgba(255, 200, 150, .95); background: #fff0e4; } }
.ip-vb-tank.ip-low .ip-vb-heart { animation: ip-hpbeat .85s ease-in-out infinite; }
.ip-vb-tank.ip-low { box-shadow: inset 0 0 18px rgba(232, 60, 40, .45); }
@keyframes ip-hpbeat { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 12% { transform: translate(-50%, -50%) scale(1.16); } 24% { transform: translate(-50%, -50%) scale(1.02); } 36% { transform: translate(-50%, -50%) scale(1.1); } }
.ip-vb-tank.ip-dead .ip-vb-heart svg { fill: rgba(237, 231, 219, .35); }

/* ------------------------------------------------------------------ crosshair */
.ip-cross { --gap: 6px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ip-cross i { position: absolute; background: rgba(245, 241, 232, .92); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .12s, transform .08s linear; }
.ip-c-t, .ip-c-b { width: 2px; height: 8px; left: -1px; }
.ip-c-l, .ip-c-r { width: 8px; height: 2px; top: -1px; }
.ip-c-t { top: calc(-1 * var(--gap) - 8px); } .ip-c-b { top: var(--gap); }
.ip-c-l { left: calc(-1 * var(--gap) - 8px); } .ip-c-r { left: var(--gap); }
.ip-c-dot { width: 3px; height: 3px; left: -1.5px; top: -1.5px; border-radius: 50%; }
.ip-c-arc { width: calc(var(--gap) * 2 + 8px); height: calc(var(--gap) * 2 + 8px); left: calc(-1 * var(--gap) - 4px); top: calc(-1 * var(--gap) - 4px);
  border-radius: 50%; background: none !important; box-shadow: none !important; border: 1.5px solid rgba(245, 241, 232, .55); box-sizing: border-box; }
.ip-cross[data-mode="dot"] .ip-c-dot,
.ip-cross[data-mode="rifle"] .ip-c-t, .ip-cross[data-mode="rifle"] .ip-c-b, .ip-cross[data-mode="rifle"] .ip-c-l, .ip-cross[data-mode="rifle"] .ip-c-r, .ip-cross[data-mode="rifle"] .ip-c-dot,
.ip-cross[data-mode="pistol"] .ip-c-dot, .ip-cross[data-mode="pistol"] .ip-c-arc { opacity: 1; }
.ip-cross.ip-blocked i { background: rgba(232, 128, 74, .95); }
.ip-cross.ip-blocked .ip-c-dot { transform: scale(1.6); }
.ip-cross[data-mode="melee"] .ip-c-arc { opacity: .75; width: 9px; height: 9px; left: -4.5px; top: -4.5px; border-radius: 1px; transform: rotate(45deg); }

/* ------------------------------------------------------------------ prompt / toast / mode */
.ip-prompt { position: absolute; left: 50%; bottom: max(23vh, calc(max(16px, 2.3vh) + clamp(116px, min(10.6vw, 18.8vh), 320px) * 0.9 + 56px)); display: flex; align-items: center; gap: 11px; transform: translate(-50%, 6px); opacity: 0;
  font: 600 17px/1 var(--ip-font); letter-spacing: .16em; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); transition: opacity .18s, transform .18s var(--ip-ease); }
.ip-prompt.ip-on { opacity: 1; transform: translate(-50%, 0); }
.ip-toast { position: absolute; left: 50%; top: 8.5vh; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; }
.ip-toast-item { padding: 9px 46px; font: 600 14px/1 var(--ip-font); letter-spacing: .26em; white-space: nowrap;
  background: linear-gradient(90deg, rgba(10, 10, 11, 0), rgba(10, 10, 11, .72) 22%, rgba(10, 10, 11, .72) 78%, rgba(10, 10, 11, 0));
  border-top: 1px solid rgba(255, 154, 60, .45); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ip-ease); }
.ip-toast-item.ip-on { opacity: 1; transform: none; }
.ip-mode { position: absolute; right: max(18px, 1.7vw); top: 16px; display: flex; align-items: center; gap: 9px; padding: 6px 12px;
  background: rgba(10, 10, 11, .55); border: 1px solid var(--ip-line); border-radius: 2px; font: 600 11px/1 var(--ip-font); letter-spacing: .22em; }
.ip-mode b { font-weight: 700; }
.ip-mode span { color: var(--ip-faint); }
.ip-mode-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ip-accent); box-shadow: 0 0 8px var(--ip-accent); animation: ip-pulse 1.6s ease-in-out infinite; }
.ip-mode[data-mode="showcase"] .ip-mode-dot { background: #8fd0c8; box-shadow: 0 0 8px #8fd0c8; }
@keyframes ip-pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ debug panels */
.ip-panel { position: absolute; top: 14px; padding: 9px 11px 10px; background: rgba(8, 9, 10, .76); border: 1px solid var(--ip-line);
  border-radius: 2px; font: 11.5px/1.5 var(--ip-mono); color: rgba(237, 231, 219, .9); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.ip-debug { left: 14px; width: 300px; }
.ip-graph { right: max(18px, 1.7vw); top: 52px; width: 250px; }
.ip-panel-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--ip-line);
  font: 700 12px/1 var(--ip-font); letter-spacing: .26em; }
.ip-panel-title b { color: var(--ip-accent); font-weight: 700; }
.ip-panel-title span { color: var(--ip-faint); font-weight: 600; }
.ip-dr { display: flex; justify-content: space-between; gap: 12px; }
.ip-dk { color: rgba(237, 231, 219, .55); white-space: nowrap; }
.ip-dv { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ip-sec { margin-top: 5px; color: var(--ip-accent-hi); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ip-yes { color: #9fd49a; } .ip-no { color: rgba(237, 231, 219, .45); }
.ip-wrow { align-items: center; }
.ip-wbar { flex: 1; height: 3px; background: rgba(237, 231, 219, .12); margin: 0 4px; position: relative; min-width: 40px; }
.ip-wbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ip-accent); }
.ip-gn { display: flex; align-items: center; gap: 8px; padding: 1px 0; font-size: 11px; }
.ip-gn.ip-gl { margin-top: 5px; font-weight: 700; color: var(--ip-accent-hi); letter-spacing: .08em; }
.ip-gn:not(.ip-gl)::before { content: ''; width: 5px; height: 1px; background: var(--ip-line2); margin-left: -9px; }
.ip-gn.ip-off { opacity: .4; }
.ip-gstate { margin-left: auto; color: #fff; font-weight: 600; }
.ip-gn .ip-wbar { max-width: 60px; }

/* ------------------------------------------------------------------ character select */
.ip-select { position: absolute; inset: 0; pointer-events: auto; opacity: 0; transition: opacity .45s var(--ip-ease);
  background: linear-gradient(90deg, rgba(7, 8, 9, .86) 0%, rgba(7, 8, 9, .5) 24%, rgba(7, 8, 9, 0) 36%, rgba(7, 8, 9, 0) 64%, rgba(7, 8, 9, .5) 76%, rgba(7, 8, 9, .86) 100%),
    linear-gradient(180deg, rgba(7, 8, 9, .6) 0%, rgba(7, 8, 9, 0) 20%, rgba(7, 8, 9, 0) 78%, rgba(7, 8, 9, .7) 100%); }
.ip-select.ip-on { opacity: 1; }
/* a menu open: everything else on the UI root (HUD, match bar, minimap, numbers, pings) steps back behind it */
.ip-ui.ip-selecting > :not(.ip-select):not(.ip-menu), .ip-ui.ip-paused > :not(.ip-menu) { opacity: 0 !important; transition: opacity .2s; pointer-events: none; }
.ip-select-head { position: absolute; top: 6.5vh; left: 0; right: 0; text-align: center; }
.ip-select-kicker { font: 600 12px/1 var(--ip-font); letter-spacing: .5em; color: var(--ip-accent); }
.ip-select-title { margin-top: 12px; font: 700 clamp(22px, 2.2vw, 34px)/1 var(--ip-font); letter-spacing: .32em; }
.ip-islands { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; }
.ip-islands-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: min(92vw, 980px); }
.ip-island { display: flex; align-items: center; gap: 8px; padding: 8px 13px; cursor: pointer; font: 600 12px/1 var(--ip-font); letter-spacing: .18em;
  color: var(--ip-dim); background: rgba(12, 13, 14, .5); border: 1px solid var(--ip-line); border-radius: 2px; outline: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .15s, border-color .15s, background .15s; }
.ip-island b { font: 700 11px/1 var(--ip-num); color: var(--ip-faint); }
.ip-island:hover, .ip-island:focus-visible { color: var(--ip-ink); border-color: var(--ip-line2); }
.ip-island.ip-on { color: #1a1109; background: var(--ip-accent); border-color: var(--ip-accent); }
.ip-island.ip-on b { color: #1a1109; }
.ip-island-blurb { min-height: 1.3em; font: 500 14px/1.3 var(--ip-font); letter-spacing: .04em; color: var(--ip-ink); text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .7); }
.ip-choice { position: absolute; top: calc(50% + 5vh); width: clamp(280px, 25vw, 420px); padding: 30px 30px 26px; box-sizing: border-box; text-align: left; cursor: pointer;
  font-family: var(--ip-font); color: var(--ip-ink); background: rgba(12, 13, 14, .5); border: 1px solid var(--ip-line); border-radius: 3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateY(-50%); outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s var(--ip-ease); }
.ip-choice-l { left: 5vw; } .ip-choice-r { right: 5vw; }
.ip-choice-num { display: flex; align-items: center; gap: 12px; font: 700 15px/1 var(--ip-num); letter-spacing: .1em; color: var(--ip-faint); }
.ip-choice-num i { flex: 1; height: 1px; background: var(--ip-line2); }
.ip-choice-name { margin-top: 18px; font: 700 clamp(34px, 3.3vw, 54px)/.95 var(--ip-font); letter-spacing: .05em; }
.ip-choice-line { margin-top: 14px; font: 500 17px/1.35 var(--ip-font); letter-spacing: .02em; color: var(--ip-dim); max-width: 34ch; }
.ip-choice-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ip-choice-tags span { padding: 4px 8px; border: 1px solid var(--ip-line2); font: 600 11px/1 var(--ip-font); letter-spacing: .2em; color: var(--ip-dim); }
.ip-choice-cta { display: flex; align-items: center; gap: 10px; margin-top: 24px; font: 600 13px/1 var(--ip-font); letter-spacing: .3em; color: var(--ip-faint); transition: color .25s; }
.ip-choice.ip-hot { border-color: var(--ip-accent); background: linear-gradient(180deg, rgba(60, 42, 24, .62), rgba(18, 13, 9, .7));
  box-shadow: 0 0 0 1px rgba(255, 154, 60, .8), 0 0 34px rgba(255, 140, 50, .28), 0 18px 40px rgba(0, 0, 0, .4); transform: translateY(calc(-50% - 4px)); }
.ip-choice.ip-hot .ip-choice-num { color: var(--ip-accent); }
.ip-choice.ip-hot .ip-choice-num i { background: linear-gradient(90deg, var(--ip-accent), rgba(255, 154, 60, 0)); }
.ip-choice.ip-hot .ip-choice-cta { color: var(--ip-ink); }
.ip-choice.ip-hot .ip-choice-cta .ip-key { background: var(--ip-accent); color: #1a1109; border-color: var(--ip-accent); }
.ip-choice.ip-picked { animation: ip-pick .4s ease-out; }
@keyframes ip-pick { 40% { box-shadow: 0 0 0 2px var(--ip-accent-hi), 0 0 60px rgba(255, 150, 60, .55); } }
@media (max-height: 780px) {
  .ip-select-head { top: 4.5vh; }
  .ip-islands { margin-top: 14px; gap: 7px; }
  .ip-island { padding: 7px 11px; }
  .ip-choice { padding: 22px 24px 20px; }
  .ip-choice-name { margin-top: 12px; font-size: clamp(30px, 3vw, 44px); }
  .ip-choice-line { font-size: 15px; margin-top: 10px; }
  .ip-choice-tags { margin-top: 12px; } .ip-choice-cta { margin-top: 16px; }
}
.ip-maps-dock { position: absolute; left: 0; right: 0; bottom: calc(6vh + 38px); margin: 0; gap: 8px; }
.ip-maps-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: min(94vw, 1180px); padding: 2px 4px 6px;
  scrollbar-width: thin; scrollbar-color: rgba(237, 231, 219, .25) transparent; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ip-maps-row .ip-island { flex: none; }
.ip-select-foot { position: absolute; left: 0; right: 0; bottom: 6vh; display: flex; justify-content: center; align-items: center; gap: 8px;
  font: 600 12px/1 var(--ip-font); letter-spacing: .3em; color: var(--ip-faint); }
.ip-select-foot i { width: 1px; height: 14px; background: var(--ip-line2); margin: 0 12px; }

/* ------------------------------------------------------------------ pause menu */
.ip-menu { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: start center; overflow-y: auto; padding: 12vh 0 4vh;   /* (from the top, so RESUME and the list stay put when a section opens) */ box-sizing: border-box; opacity: 0; transition: opacity .24s;
  background: radial-gradient(ellipse at 30% 40%, rgba(12, 12, 13, .62), rgba(5, 6, 7, .86));
  backdrop-filter: blur(7px) saturate(.75); -webkit-backdrop-filter: blur(7px) saturate(.75); }
.ip-menu.ip-on { opacity: 1; }
.ip-menu-inner { width: min(900px, 90vw); min-height: min(520px, 80vh); transform: translateY(8px); transition: transform .3s var(--ip-ease); }
.ip-menu.ip-on .ip-menu-inner { transform: none; }
.ip-menu-head { display: grid; gap: 22px; justify-items: start; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--ip-line); }
/* the way back (RESUME), as BACK is in the menus: small, top left, with the Esc key on it */
.ip-back { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 9px 0 8px; cursor: pointer; font: 700 11.5px/1 var(--ip-font); letter-spacing: .26em; color: var(--ip-dim);
  background: rgba(9, 10, 11, .6); border: 1px solid var(--ip-line2); border-radius: 0; transition: color .12s, border-color .12s, background .12s; }
.ip-back i { font-style: normal; font-size: 18px; line-height: 1; margin-top: -2px; color: var(--ip-accent); }
.ip-back .ip-key { font-size: 10px; }
.ip-back:hover, .ip-back:focus-visible { color: var(--ip-ink); border-color: var(--ip-ink); background: rgba(237, 231, 219, .1); outline: none; }
.ip-menu-title { font: 700 36px/1 var(--ip-font); letter-spacing: .14em; }
.ip-menu-body { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.ip-menu-nav { display: grid; gap: 4px; }
.ip-mbtn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 16px 11px 18px; cursor: pointer; text-align: left;
  font: 700 17px/1 var(--ip-font); letter-spacing: .14em; color: var(--ip-ink); background: transparent; border: 1px solid transparent; border-radius: 2px;
  transition: background .15s, border-color .15s; outline: none; }
.ip-mbtn small { font: 600 10.5px/1.3 var(--ip-font); letter-spacing: .18em; color: var(--ip-faint); }
.ip-mbtn small:empty { display: none; }
.ip-mbtn.ip-toggled { background: rgba(237, 231, 219, .06); border-color: var(--ip-line); }
.ip-mbtn.ip-toggled::before { background: var(--ip-accent); }
.ip-mbtn::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: transparent; transition: background .15s; }
.ip-mbtn:hover, .ip-mbtn:focus-visible { background: rgba(237, 231, 219, .06); border-color: var(--ip-line); }
.ip-mbtn:hover::before, .ip-mbtn:focus-visible::before { background: var(--ip-accent); }
.ip-mbtn.ip-toggled small { color: var(--ip-accent-hi); }
.ip-menu-panel { display: grid; gap: 26px; }
.ip-msec h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ip-line);
  font: 700 12px/1 var(--ip-font); letter-spacing: .34em; color: var(--ip-dim); }
.ip-segs { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-seg { padding: 9px 14px; cursor: pointer; font: 600 13px/1 var(--ip-font); letter-spacing: .16em; color: var(--ip-dim); background: rgba(237, 231, 219, .04);
  border: 1px solid var(--ip-line); border-radius: 2px; transition: all .15s; outline: none; }
.ip-seg:hover { color: var(--ip-ink); border-color: var(--ip-line2); }
.ip-seg.ip-on { color: #1a1109; background: var(--ip-accent); border-color: var(--ip-accent); }
.ip-mute { padding: 5px 10px; font-size: 11px; }
.ip-arow { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 14px; padding: 5px 0; font: 600 13px/1 var(--ip-font); letter-spacing: .18em; color: var(--ip-dim); }
.ip-msec-mouse .ip-arow { grid-template-columns: 168px 1fr 40px; }   /* (v1.12 #92: room for ADS SENSITIVITY) */
.ip-range-v { font: 600 14px/1 var(--ip-num); color: var(--ip-ink); text-align: right; font-variant-numeric: tabular-nums; }
.ip-range { --p: 80%; -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0; }
.ip-range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--ip-accent) var(--p), rgba(237, 231, 219, .16) var(--p)); }
.ip-range::-moz-range-track { height: 3px; background: rgba(237, 231, 219, .16); }
.ip-range::-moz-range-progress { height: 3px; background: var(--ip-accent); }
.ip-range::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 15px; margin-top: -6px; background: var(--ip-ink); border: none; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.ip-range::-moz-range-thumb { width: 11px; height: 15px; background: var(--ip-ink); border: none; border-radius: 1px; }
.ip-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 28px; }
.ip-crow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font: 500 14px/1.1 var(--ip-font); letter-spacing: .06em; color: var(--ip-dim); }
.ip-crow .ip-key { justify-self: start; font-size: 11px; }

@media (max-width: 1100px) {
  .ip-slot-hint { display: none; }
  .ip-menu-body { grid-template-columns: 1fr; gap: 20px; }
}

/* critical hit tag: small, under the reticle, quick fade */
.ip-crit { position: absolute; left: 50%; top: calc(50% + 26px); transform: translate(-50%, 4px); font: 700 11px/1 var(--ip-font); letter-spacing: .32em;
  color: #f0b46a; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.ip-crit.ip-on { opacity: .95; transform: translate(-50%, 0); transition: opacity .06s, transform .12s; }

/* hit marker: four diagonal ticks at the reticle */
.ip-hitmark { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ip-hitmark.ip-on { opacity: 1; transition: none; }
.ip-hitmark i { position: absolute; width: 2px; height: 7px; left: -1px; top: -3.5px; background: rgba(245, 241, 232, .95); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.ip-hitmark i:nth-child(1) { transform: rotate(45deg) translateY(-11px); } .ip-hitmark i:nth-child(2) { transform: rotate(135deg) translateY(-11px); }
.ip-hitmark i:nth-child(3) { transform: rotate(225deg) translateY(-11px); } .ip-hitmark i:nth-child(4) { transform: rotate(315deg) translateY(-11px); }
.ip-hitmark[data-kind="crit"] i { background: #f0b46a; } .ip-hitmark[data-kind="kill"] i { background: #e8584a; height: 9px; }
/* (v1.12 gunfeel) the marker lands: it pops in a little large and settles; a headshot pops bigger and its ticks are
   longer, a kill is a bold red X that springs out and holds (hud.js keeps it up longer) */
.ip-hitmark.ip-on { animation: ip-hm-pop .13s cubic-bezier(.2, .9, .3, 1); }
.ip-hitmark[data-kind="crit"].ip-on { animation-name: ip-hm-crit; animation-duration: .17s; }
.ip-hitmark[data-kind="crit"] i { height: 9px; top: -4.5px; }
.ip-hitmark[data-kind="kill"].ip-on { animation: ip-hm-kill .26s cubic-bezier(.2, 1.5, .4, 1) both; }
.ip-hitmark[data-kind="kill"] i { width: 3px; left: -1.5px; height: 12px; top: -6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 6px rgba(232, 88, 74, .55); }
@keyframes ip-hm-pop { from { transform: scale(1.45); } to { transform: scale(1); } }
@keyframes ip-hm-crit { from { transform: scale(1.9); } to { transform: scale(1.12); } }
@keyframes ip-hm-kill { from { transform: scale(.6) rotate(-12deg); } to { transform: scale(1.3) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .ip-hitmark.ip-on { animation: none !important; } }

/* rarity strip on weapon-bar cards */
.ip-slot-rar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rar, transparent); opacity: .9; }
.ip-slot.ip-rar-elite::before, .ip-slot.ip-rar-legendary::before { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--rar) 22%, transparent), transparent); }
/* loot card */
.ip-loot { --rar: #b8b5ad; position: absolute; left: 0; top: 0; min-width: 190px; max-width: 260px; padding: 10px 12px 11px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(20, 21, 23, .86), rgba(10, 11, 12, .9)); border: 1px solid var(--ip-line); border-left: 3px solid var(--rar);
  border-radius: 3px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); pointer-events: none; will-change: transform; }
.ip-loot-rar { font: 700 11px/1 var(--ip-font); letter-spacing: .28em; color: var(--rar); }
.ip-loot-name { margin-top: 6px; font: 700 18px/1.05 var(--ip-font); letter-spacing: .05em; color: var(--ip-ink); }
.ip-loot-cat { margin-top: 4px; font: 600 11px/1 var(--ip-font); letter-spacing: .18em; color: var(--ip-faint); }
.ip-loot-stats { margin-top: 8px; font: 600 12px/1.25 var(--ip-num); letter-spacing: .06em; color: var(--ip-dim); }
.ip-loot-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 12px/1 var(--ip-font); letter-spacing: .2em; color: var(--ip-ink); }
.ip-loot-key .ip-key { min-width: 18px; height: 18px; font-size: 12px; line-height: 15px; }
.ip-loot-key.ip-deny { color: rgba(232, 85, 59, .9); }
.ip-loot-progwrap { margin-top: 8px; height: 3px; background: rgba(237, 231, 219, .14); overflow: hidden; }
.ip-loot-prog { display: block; height: 100%; background: var(--rar); transform-origin: 0 50%; transform: scaleX(0); }

/* weapon ability badge (the staff's landing slam): a violet disc with a cooldown sweep; the key shows when it is ready */
.ip-ability { position: absolute; right: 8px; top: 6px; width: calc(var(--w) * .19); height: calc(var(--w) * .19); border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: rgba(24, 14, 38, .78); box-shadow: 0 0 0 1px rgba(168, 118, 255, .45) inset; overflow: hidden; }
.ip-ab-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(8, 5, 14, .82) calc(var(--cd) * 360deg), rgba(140, 80, 255, .28) 0); }
.ip-ab-key { position: relative; font-family: var(--ip-num); font-weight: 700; font-size: calc(var(--w) * .085); color: rgba(230, 214, 255, .72); letter-spacing: .02em; }
.ip-ability.ip-ab-ready { background: rgba(92, 44, 178, .62); box-shadow: 0 0 0 1px rgba(200, 160, 255, .9) inset, 0 0 12px rgba(150, 90, 255, .65); }
.ip-ability.ip-ab-ready .ip-ab-sweep { background: radial-gradient(circle, rgba(210, 170, 255, .35), transparent 70%); }
.ip-ability.ip-ab-ready .ip-ab-key { color: #f2e9ff; }

/* G / H packs (shield, health) stacked beside the weapon cards */
.ip-slotrow { display: flex; align-items: flex-end; gap: clamp(6px, .62vw, 11px); }
.ip-packs { --w: clamp(116px, min(10.6vw, 18.8vh), 320px); display: grid; grid-template-columns: repeat(2, auto); grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: clamp(4px, .45vw, 8px); }
.ip-pack { position: relative; width: calc(var(--w) * .43); height: calc(var(--w) * .43); box-sizing: border-box; border: 1px solid var(--ip-line); border-radius: 3px;
  background: linear-gradient(180deg, rgba(26, 27, 29, .7), rgba(12, 13, 14, .78)); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); overflow: hidden; }
.ip-pack-img { position: absolute; inset: 6% 8% 22% 8%; width: 84%; height: 72%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.ip-pack-n { position: absolute; right: 6px; bottom: 3px; font-family: var(--ip-num); font-weight: 700; font-size: calc(var(--w) * .1); color: var(--ip-ink); font-variant-numeric: tabular-nums; }
.ip-pack-key { position: absolute; left: 5px; bottom: 5px; min-width: 15px; height: 15px; font-size: 10px; line-height: 13px; }
.ip-pack-empty .ip-pack-img { opacity: .28; filter: grayscale(1); }
.ip-pack-empty .ip-pack-n { color: var(--ip-red); }

/* ---- combat HUD: damage numbers, hit rim, compass ---- */
.ip-dmg-layer { position: absolute; inset: 0; overflow: hidden; }
.ip-dmg { position: absolute; left: 0; top: 0; font: 800 26px/1 var(--ip-num); letter-spacing: .01em; color: #fbfbf7; will-change: transform, opacity;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .45); -webkit-text-stroke: 1px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.ip-dmg-shield { color: #7cc4ff; }
.ip-dmg-head { color: #ffcf3f; font-size: 30px; }
.ip-dmg-kill { color: #ff4a3d; font-size: 32px; }
.ip-dmg-burn { color: #c79bff; font-size: 20px; }
.ip-hitrim { position: absolute; left: 50%; top: 50%; width: min(58vh, 520px); height: min(58vh, 520px); transform: translate(-50%, -50%); }
.ip-hitrim svg { width: 100%; height: 100%; overflow: visible; }
.ip-rim-arc { fill: rgba(255, 58, 42, .92); filter: drop-shadow(0 0 5px rgba(255, 40, 20, .75)); }
.ip-rim-arc.ip-rim-shield { fill: rgba(96, 178, 255, .92); filter: drop-shadow(0 0 5px rgba(80, 160, 255, .8)); }
.ip-compass { --dpx: 3.4px; position: absolute; left: 50%; top: 14px; width: min(46vw, 640px); height: 38px; transform: translateX(-50%); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.ip-compass::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: linear-gradient(180deg, rgba(10, 11, 12, .55), rgba(10, 11, 12, .25)); border-bottom: 1px solid rgba(237, 231, 219, .22); }
.ip-compass-strip { position: absolute; left: 0; top: 0; height: 24px; will-change: transform; }
.ip-cmp-tick { position: absolute; top: 17px; width: 1px; height: 6px; background: rgba(237, 231, 219, .45); }
.ip-cmp-tick.ip-cmp-major { height: 8px; top: 15px; background: rgba(237, 231, 219, .75); }
.ip-cmp-label, .ip-cmp-num { position: absolute; top: 2px; transform: translateX(-50%); font: 700 12px/13px var(--ip-num); letter-spacing: .06em; color: rgba(237, 231, 219, .72); }
.ip-cmp-num { font-weight: 600; font-size: 10px; color: rgba(237, 231, 219, .48); }
.ip-cmp-card { color: #fbf6ea; font-size: 14px; }
.ip-compass-caret { position: absolute; left: 50%; top: 22px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fbf6ea; transform: translateX(-50%); }
.ip-compass-deg { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); font: 700 10px/11px var(--ip-num); color: rgba(237, 231, 219, .8); letter-spacing: .08em; }
.ip-compass-marks { position: absolute; left: 0; top: 0; height: 24px; width: 100%; }
.ip-cmp-mark { --mk: #f2c14e; position: absolute; left: 0; top: 3px; transition: opacity .2s; }
.ip-cmp-mark i { position: absolute; left: -5px; top: 0; width: 10px; height: 10px; background: var(--mk); transform: rotate(45deg); box-shadow: 0 0 6px var(--mk); }
.ip-cmp-mark span { position: absolute; left: 0; top: 12px; transform: translateX(-50%); white-space: nowrap; font: 700 9px/10px var(--ip-num); letter-spacing: .08em; color: var(--mk); }
.ip-cmp-mark::after { content: attr(data-d); position: absolute; left: 0; top: -1px; transform: translateX(8px); font: 600 9px/10px var(--ip-num); color: rgba(237, 231, 219, .6); }
.ip-cmp-mini span { opacity: 0; }
.ip-cmp-mini i { transform: rotate(45deg) scale(.7); opacity: .75; }
.ip-cmp-mark span { transition: opacity .15s; }
.ip-cmp-objective { --mk: #ffffff; }
.ip-cmp-storm { --mk: #b068ff; }
.ip-cmp-enemy { --mk: #ff4a3d; }
.ip-cmp-ping { --mk: #4be3ff; }

.ip-killfeed { position: absolute; right: 16px; top: 214px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ip-kf { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(10, 11, 12, .55); border-left: 2px solid rgba(237, 231, 219, .35); font: 700 13px/16px var(--ip-font); letter-spacing: .04em; color: #efe9dc; transition: opacity .5s, transform .5s; }
.ip-kf-mine { border-left-color: #ffcf3f; } .ip-kf-me { border-left-color: #ff4a3d; }
.ip-kf .ip-kf-ally { color: #7cc4ff; } .ip-kf .ip-kf-foe { color: #ff7a6b; }      /* (v1.12 #95) a team mode's sides, as the minimap's */
.ip-kf-w { font: 600 10px/12px var(--ip-num); color: rgba(237, 231, 219, .6); letter-spacing: .08em; text-transform: uppercase; }
.ip-kf-h { color: #ffcf3f; font-size: 11px; }
.ip-kf-out { opacity: 0; transform: translateX(20px); }
.ip-elim { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; opacity: 0; pointer-events: none; }
.ip-elim small { display: block; font: 700 12px/14px var(--ip-num); letter-spacing: .32em; color: #ffcf3f; }
.ip-elim b { display: block; font: 800 30px/34px var(--ip-font); letter-spacing: .06em; color: #fbf6ea; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); text-transform: uppercase; }
.ip-elim-on { animation: ip-elim 1.8s ease-out forwards; }
@keyframes ip-elim { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

/* ---- match HUD ---- */
.ip-mbar { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); display: flex; align-items: stretch; gap: 2px; font-family: var(--ip-num); }
.ip-mb-side { min-width: 64px; display: grid; place-items: center; padding: 3px 12px; }
.ip-mb-side b { font-size: 24px; font-weight: 800; line-height: 26px; color: #fff; }
.ip-mb-a { background: linear-gradient(180deg, rgba(58, 130, 230, .78), rgba(30, 80, 160, .7)); }
.ip-mb-b { background: linear-gradient(180deg, rgba(230, 70, 55, .78), rgba(150, 36, 28, .7)); }
.ip-mb-ffa .ip-mb-a { background: rgba(20, 22, 24, .7); } .ip-mb-ffa .ip-mb-b { background: rgba(120, 90, 20, .7); }
.ip-mb-mid { min-width: 110px; background: rgba(10, 11, 12, .72); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 10px; }
.ip-mb-mode { font: 700 9px/11px var(--ip-num); letter-spacing: .22em; color: rgba(237, 231, 219, .6); }
.ip-mb-clock { font: 700 18px/20px var(--ip-num); color: #fbf6ea; font-variant-numeric: tabular-nums; }
.ip-mchips { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); display: flex; gap: 6px; }
/* Swap Streak (v1.12 #29): the gun in hand, the next, a pip per gun on the ladder (ui/match_hud.js swapPanel) */
.ip-swap { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 0; }   /* (v1.12 #55: clear of the score bar; one panel) */
.ip-sw-top { display: flex; align-items: stretch; gap: 2px; background: var(--ip-bg2); border: 1px solid var(--ip-line); border-bottom: 0; border-top: 2px solid var(--ip-accent); padding: 4px; }
.ip-sw-n { display: flex; align-items: baseline; gap: 3px; padding: 0 8px; background: rgba(255, 154, 60, .2); }
.ip-sw-n b { font: 800 26px/30px var(--ip-num); color: var(--ip-accent-hi); } .ip-sw-n i { font: 700 13px/1 var(--ip-num); font-style: normal; color: var(--ip-dim); }
.ip-sw-gun, .ip-sw-next { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 110px; }
.ip-sw-gun i, .ip-sw-next i { font: 700 9px/11px var(--ip-num); font-style: normal; letter-spacing: .22em; color: var(--ip-faint); }
.ip-sw-gun b { font: 800 19px/21px var(--ip-font); letter-spacing: .05em; color: #fbf6ea; white-space: nowrap; }
.ip-sw-next b { font: 700 14px/17px var(--ip-font); letter-spacing: .05em; color: var(--ip-dim); white-space: nowrap; }
.ip-sw-pips { display: flex; justify-content: center; gap: 3px; padding: 5px 8px 7px; background: var(--ip-bg2); border: 1px solid var(--ip-line); border-top: 0; }
.ip-sw-pips u { flex: 0 1 9px; height: 6px; background: rgba(237, 231, 219, .34); }
.ip-sw-pips u.ip-sw-done { background: var(--ip-accent); }
.ip-sw-pips u.ip-sw-cur { background: #fff3dc; box-shadow: 0 0 8px var(--ip-accent-glow); transform: scaleY(1.5); }
.ip-sw-pips u.ip-sw-last { flex-basis: 13px; background: rgba(255, 207, 63, .35); } .ip-sw-pips u.ip-sw-last.ip-sw-cur { background: #ffcf3f; }
.ip-mcenter b.ip-sw-up { font-size: 40px; line-height: 46px; color: var(--ip-accent-hi); }
.ip-mcenter b.ip-mwait { font-size: 30px; line-height: 36px; letter-spacing: .08em; }
.ip-mcenter b.ip-sw-down { font-size: 40px; line-height: 46px; color: #ff8a78; } .ip-mcenter small.ip-sw-dn { color: #ff6a5a; }
@media (max-width: 640px) { .ip-sw-gun, .ip-sw-next { min-width: 0; padding: 0 6px; } .ip-sw-pips u { width: 5px; } }
.ip-chip { --c: rgba(237, 231, 219, .85); position: relative; display: grid; place-items: center; width: 30px; height: 30px; font: 800 15px/1 var(--ip-font); font-style: normal; color: #fff;
  background: rgba(10, 11, 12, .6); border: 2px solid var(--c); border-radius: 50%; overflow: hidden; }
.ip-chip-f { --c: #4ea8ff; background: rgba(40, 110, 210, .55); } .ip-chip-e { --c: #ff5a4a; background: rgba(200, 50, 40, .55); }
.ip-chip-cap::after { content: ''; position: absolute; inset: 0; background: conic-gradient(var(--cc, #fff) calc(var(--p) * 360deg), transparent 0); opacity: .45; }
.ip-chip-cf { --cc: #4ea8ff; } .ip-chip-ce { --cc: #ff5a4a; }
.ip-chip-x { animation: ip-chipx .5s infinite alternate; } @keyframes ip-chipx { to { border-color: #ffcf3f; } }
.ip-chip-nx { width: 120px; height: 12px; border-radius: 2px; border-width: 1px; }
.ip-chip-nx u { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); opacity: .8; }
.ip-chip-nx s { position: absolute; left: 0; top: 0; height: 3px; background: #9fd8ff; }
.ip-mmarks { position: absolute; inset: 0; }
.ip-mmark { --c: #efe9dc; position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; transition: opacity .15s; }
.ip-mmark b { min-width: 24px; padding: 3px 6px; background: rgba(10, 11, 12, .72); border: 1.5px solid var(--c); border-radius: 3px; font: 800 14px/15px var(--ip-font); color: var(--c); text-align: center; letter-spacing: .06em; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }   /* (v1.12 #107: larger, darker backing) */
.ip-mmark span { font: 700 10.5px/12px var(--ip-num); color: rgba(237, 231, 219, .92); margin-top: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .6); }
.ip-mm-f { --c: #6db8ff; } .ip-mm-e { --c: #ff6a5a; } .ip-mm-cap b { animation: ip-chipx .4s infinite alternate; }
.ip-mcenter { position: absolute; left: 50%; top: max(22%, 226px); transform: translate(-50%, -50%); text-align: center; max-width: min(640px, 90vw); }   /* (v1.12 sweep: the upper third, clear of the reticle and the target) */
.ip-net-cut { position: absolute; inset: 0; z-index: 60; background: #0a0908; opacity: 0; pointer-events: none; display: grid; place-items: center; }
.ip-net-cut b { font: 800 44px/1 var(--ip-font); letter-spacing: .14em; color: #f3e6c8; }
.ip-mcenter.ip-mlounge { top: 15%; }
.ip-mcenter.ip-mlounge b { font-size: 30px; line-height: 36px; letter-spacing: .06em; }
.ip-mcenter small { display: block; font: 700 13px/16px var(--ip-num); letter-spacing: .3em; color: #ffcf3f; }
.ip-mcenter b { display: block; font: 800 56px/60px var(--ip-font); color: #fbf6ea; text-shadow: 0 3px 14px rgba(0, 0, 0, .6); }
.ip-mcenter em { display: block; font: 500 13px/17px var(--ip-font); font-style: normal; color: rgba(237, 231, 219, .8); letter-spacing: .04em; }
.ip-go { color: #ffcf3f !important; animation: ip-go .9s ease-out; } @keyframes ip-go { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ip-mboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 460px; padding: 14px 18px 16px; background: rgba(10, 11, 12, .88); border: 1px solid rgba(237, 231, 219, .18); border-top: 2px solid var(--ip-accent); }
.ip-mboard table { width: 100%; border-collapse: collapse; font: 600 14px/26px var(--ip-num); color: #e9e4d8; }
.ip-mboard th { text-align: left; font: 700 10px/22px var(--ip-font); letter-spacing: .3em; color: rgba(237, 231, 219, .55); } .ip-mboard td + td, .ip-mboard th + th { text-align: right; width: 56px; }
.ip-mboard tr + tr td { border-top: 1px solid rgba(237, 231, 219, .08); }
.ip-tf td:first-child { border-left: 3px solid #4ea8ff; padding-left: 8px; } .ip-te td:first-child { border-left: 3px solid #ff5a4a; padding-left: 8px; } .ip-tn td:first-child { padding-left: 8px; }
.ip-me { background: rgba(255, 154, 60, .14); color: #fff; }
.ip-sb-who { display: flex; align-items: center; gap: 8px; }
.ip-sb-who .ip-sb-rank { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.ip-sb-who .ip-sb-rank svg { width: 100%; height: 100%; display: block; }
.ip-sb-who em { width: 18px; font: 700 13px/1 var(--ip-num); font-style: normal; text-align: right; color: rgba(237, 231, 219, .6); }
.ip-sb-who u { width: 20px; height: 20px; flex: none; background: center / contain no-repeat; text-decoration: none; }
.ip-sb-who b { font: 600 15px/1 var(--ip-font); letter-spacing: .04em; }
.ip-minimap { position: absolute; right: 16px; top: 14px; width: 188px; height: 188px; border: 1px solid rgba(237, 231, 219, .34); border-radius: 6px; overflow: hidden; background: #0d0f11;
  box-shadow: 0 0 0 3px rgba(10, 12, 14, .5), 0 12px 26px rgba(0, 0, 0, .5);
  /* v1.12 #42: a table map seen from the player's side, tilted a little away (no per-frame cost: one composited layer) */
  transform: perspective(560px) rotateX(14deg); transform-origin: 50% 100%; }
.ip-minimap canvas { display: block; width: 100%; height: 100%; }
/* (v1.13) the Battle Royale's whole map, with Tab: left of the middle, the scoreboard beside it */
.ip-bigmap { position: absolute; left: 3.5vw; top: 50%; transform: translateY(-50%); width: min(76vh, 46vw); aspect-ratio: 1; z-index: 6; pointer-events: none;
  border: 1px solid rgba(237, 231, 219, .34); border-radius: 8px; overflow: hidden; background: #0d0f11; box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.ip-bigmap canvas { display: block; width: 100%; height: 100%; }
.ip-mboard.ip-mboard-side { left: auto; right: 16px; top: 268px; transform: none; max-width: calc(96vw - min(76vh, 46vw) - 7vw); max-height: calc(100vh - 290px); overflow: hidden; }   /* (below the minimap and its bar) */
.ip-minimap::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .5); }
.ip-brbar { position: absolute; right: 16px; top: 210px; width: 188px; display: flex; justify-content: space-between; font: 700 12px/16px var(--ip-num); color: #efe9dc; letter-spacing: .08em; }
.ip-brbar b { font-size: 16px; } .ip-brbar i { font-style: normal; color: rgba(237, 231, 219, .6); font-size: 10px; margin-left: 3px; }
.ip-brstorm { position: absolute; right: 16px; top: 232px; width: 188px; padding: 4px 8px; box-sizing: border-box; background: rgba(60, 24, 110, .55); border-left: 3px solid #b068ff; font: 700 11px/14px var(--ip-num); color: #efe3ff; letter-spacing: .1em; }
.ip-brstorm.ip-out { background: rgba(160, 40, 200, .75); animation: ip-chipx .5s infinite alternate; }
.ip-stormveil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(90, 30, 160, 0) 40%, rgba(90, 30, 160, .55) 100%); opacity: 0; transition: opacity .4s; }
.ip-place { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); text-align: center; }
.ip-place b { display: block; font: 800 64px/66px var(--ip-font); color: #fbf6ea; text-shadow: 0 3px 14px rgba(0, 0, 0, .6); }
.ip-place small { display: block; font: 700 13px/16px var(--ip-num); letter-spacing: .3em; color: #ffcf3f; }

.ip-plates { position: absolute; inset: 0; }
.ip-plate { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; transform-origin: 50% 100%; }
.ip-pl-name { font: 700 12px/14px var(--ip-font); letter-spacing: .06em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.ip-pl-ally .ip-pl-name { color: #8cc8ff; } .ip-pl-enemy .ip-pl-name { color: #ff8a7a; }
.ip-pl-bars { display: none; width: 64px; }
.ip-pl-bars-on .ip-pl-bars { display: block; }
.ip-pl-bars i { display: block; height: 4px; margin-top: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.ip-pl-sh { background: linear-gradient(90deg, #6cc0ff, #6cc0ff) no-repeat !important; }
.ip-pl-hp { background: linear-gradient(90deg, #f4efe4, #f4efe4) no-repeat !important; }
.ip-pl-enemy .ip-pl-hp { background: linear-gradient(90deg, #ff6a5a, #ff6a5a) no-repeat !important; }

.ip-forge { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); min-width: 280px; padding: 12px 14px; background: rgba(18, 12, 8, .86); border: 1px solid rgba(255, 170, 90, .45); border-radius: 4px; font: 600 13px/22px var(--ip-font); color: #f2e6d6; letter-spacing: .05em; }
.ip-forge h4 { margin: 0 0 6px; font: 800 13px/16px var(--ip-num); letter-spacing: .2em; color: #ffb36a; display: flex; justify-content: space-between; }
.ip-forge h4 b { color: #fff; }
.ip-forge div { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; }
.ip-forge div i { font-style: normal; color: #ffcf8a; font-family: var(--ip-num); }
.ip-forge .ip-forge-no { opacity: .4; }
.ip-forge em { display: block; margin-top: 6px; font: 600 10px/12px var(--ip-num); font-style: normal; color: rgba(242, 230, 214, .55); letter-spacing: .18em; }
.ip-forge u { display: block; height: 6px; background: linear-gradient(90deg, #ff8a40, #ffcf8a); margin: 6px 0; }

/* pings: a diamond, the name above and the distance below; clamped to the screen edge when off-screen */
.ip-pings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ip-ping { --pc: #4be3ff; position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.ip-ping i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--pc); background: color-mix(in srgb, var(--pc) 30%, transparent); transform: rotate(45deg); box-shadow: 0 0 10px var(--pc); }
.ip-ping b { position: absolute; left: 0; top: -32px; transform: translateX(-50%); white-space: nowrap; font: 700 12px/14px var(--ip-font); letter-spacing: .07em; color: var(--pc); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.ip-ping small { position: absolute; left: 0; top: 13px; transform: translateX(-50%); white-space: nowrap; font: 600 11px/12px var(--ip-num); color: #efe9dc; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.ip-ping-enemy i { animation: ip-ping-pulse .55s ease-in-out infinite alternate; }
.ip-ping-edge b { display: none; }
@keyframes ip-ping-pulse { from { box-shadow: 0 0 3px var(--pc); } to { box-shadow: 0 0 16px var(--pc); } }

/* pause: quit sits apart, in a warning tone */
.ip-mbtn.ip-quit { margin-top: 10px; border-color: rgba(255, 106, 90, .35); }
.ip-mbtn.ip-quit span { color: #ff8a78; }
.ip-mbtn.ip-quit:hover { border-color: #ff6a5a; background: rgba(255, 106, 90, .12); }

/* menu: the controls legend, top left */
.ip-legend { position: absolute; left: 24px; top: 20px; z-index: 3; display: grid; gap: 4px; padding: 9px 12px; background: rgba(10, 11, 12, .55); border: 1px solid var(--ip-line); border-radius: 3px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: default; pointer-events: auto; }
.ip-legend h4 { margin: 0; font: 700 10px/1 var(--ip-font); letter-spacing: .38em; color: var(--ip-accent); }
.ip-legend h4::after { content: '  ▸'; letter-spacing: 0; color: var(--ip-faint); }
/* a tab until hovered (the full list would cover the character and mode buttons) */
.ip-legend .ip-legend-row { display: none; }
.ip-legend:hover { min-width: 230px; padding: 12px 14px; }
.ip-legend:hover h4 { margin-bottom: 4px; }
.ip-legend:hover h4::after { content: ''; }
.ip-legend:hover .ip-legend-row { display: grid; }
.ip-legend-row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: baseline; font: 500 11px/1.25 var(--ip-font); letter-spacing: .04em; color: var(--ip-dim); }
.ip-legend-row b { font: 700 10px/1.25 var(--ip-num); letter-spacing: .08em; color: var(--ip-ink); }

/* glider prompt: low and centred, between the vitals and the weapon row (Fortnite / Warzone): key, action, altitude */
.ip-fprompt { position: absolute; left: 50%; bottom: max(64px, 7.5vh);
  display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 11, 12, .78), rgba(10, 11, 12, .6)); border: 1px solid rgba(237, 231, 219, .16); border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: opacity .16s, transform .16s var(--ip-ease); }
.ip-fprompt.ip-on { opacity: 1; transform: translate(-50%, 0); }
.ip-prompt.ip-muted { opacity: 0 !important; }
.ip-fp-key { position: relative; overflow: hidden; min-width: 74px; height: 34px; display: grid; place-items: center; box-sizing: border-box;
  border: 2px solid rgba(251, 246, 234, .9); border-radius: 5px; background: rgba(251, 246, 234, .06); }
.ip-fp-key b { position: relative; font: 800 13px/1 var(--ip-num); letter-spacing: .12em; color: #fbf6ea; }
.ip-fp-fill { position: absolute; inset: 0; background: var(--ip-accent); transform-origin: left center; transform: scaleX(0); }
.ip-fprompt.ip-fp-holding .ip-fp-key b { color: #1a1109; mix-blend-mode: normal; }
.ip-fp-text { display: grid; gap: 3px; }
.ip-fp-hold { display: none; font: 700 10px/1 var(--ip-num); letter-spacing: .3em; color: var(--ip-accent); }
.ip-fprompt[data-act='cut'] .ip-fp-hold { display: block; }
.ip-fp-act { font: 800 17px/1 var(--ip-font); letter-spacing: .16em; color: #fbf6ea; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.ip-fp-alt { display: grid; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline; justify-items: start; padding-left: 14px; border-left: 1px solid rgba(237, 231, 219, .16); }
.ip-fp-alt b { font: 800 22px/1 var(--ip-num); color: #fbf6ea; min-width: 3ch; text-align: right; }
.ip-fp-alt small { font: 700 11px/1 var(--ip-num); color: var(--ip-dim); }
.ip-fp-alt em { grid-column: 1 / -1; font: 600 9px/1.4 var(--ip-num); letter-spacing: .14em; font-style: normal; color: var(--ip-faint); }

/* death: the collapse and rising camera, then the killcam (src/gameplay/death_cam.js) */
.ip-ui.ip-dying > :not(.ip-death):not(.ip-menu) { opacity: 0 !important; transition: opacity .18s; pointer-events: none; }
.ip-death { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.ip-death.ip-on { opacity: 1; }
.ip-death-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(40, 4, 2, .55) 100%); transition: backdrop-filter .5s, background .4s; }
.ip-death-body .ip-death-vig { backdrop-filter: grayscale(.75) contrast(1.06); }
.ip-death-kc .ip-death-vig { background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .45) 100%); backdrop-filter: saturate(.8); }
.ip-death-bars i { position: absolute; left: 0; right: 0; height: 0; background: #050607; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.ip-death-bars i:first-child { top: 0; } .ip-death-bars i:last-child { bottom: 0; }
.ip-death-kc .ip-death-bars i { height: 7.5vh; }
.ip-death-head { position: absolute; left: 0; right: 0; top: 30%; text-align: center; transform: translateY(8px); opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.ip-death-body .ip-death-head { opacity: 1; transform: none; }
.ip-death-title { font: 800 clamp(34px, 5.2vw, 64px)/1 var(--ip-font, system-ui); letter-spacing: .22em; color: #ff5a45; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); padding-left: .22em; }
.ip-death-sub { margin-top: 12px; font: 700 13px/1.2 var(--ip-font, system-ui); letter-spacing: .3em; color: var(--ip-ink); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.ip-kc { position: absolute; inset: 0; opacity: 0; transition: opacity .2s .05s; }
.ip-death-kc .ip-kc { opacity: 1; }
.ip-kc-tag { position: absolute; top: calc(7.5vh + 18px); left: 28px; display: flex; align-items: center; gap: 10px; font: 800 13px/1 var(--ip-font, system-ui); letter-spacing: .34em; color: var(--ip-ink); }
.ip-kc-tag i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: ip-kc-rec 1s steps(2) infinite; }
@keyframes ip-kc-rec { 50% { opacity: .2; } }
.ip-kc-card { position: absolute; left: 50%; bottom: calc(7.5vh + 22px); transform: translateX(-50%); min-width: 300px; padding: 12px 20px 14px; background: var(--ip-bg2); border: 1px solid var(--ip-line); border-left: 3px solid #ff5a45; display: grid; gap: 4px; text-align: left; }
.ip-kc-card small { font: 700 10px/1 var(--ip-font, system-ui); letter-spacing: .3em; color: var(--ip-dim); }
.ip-kc-card .fr-pc { --h: 46px; margin: 6px 0 5px; }
.ip-kc-card span { font: 600 12px/1.2 var(--ip-font, system-ui); letter-spacing: .2em; color: var(--ip-dim); }
.ip-kc-bars { display: grid; gap: 3px; margin-top: 6px; }
.ip-kc-bars i { display: block; height: 4px; background: #e9e4d8; transition: width .2s; }
.ip-kc-bars .ip-kc-sh { background: #4fa8ff; }
.ip-kc-skip { position: absolute; right: 28px; bottom: calc(7.5vh + 26px); display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--ip-font, system-ui); letter-spacing: .3em; color: var(--ip-ink); pointer-events: none; }
.ip-kc-prog { position: absolute; left: 0; right: 0; bottom: 7.5vh; height: 3px; background: rgba(255, 255, 255, .08); }
.ip-kc-prog i { display: block; height: 100%; background: #ff5a45; transform-origin: left; }
@media (max-width: 640px) { .ip-kc-card { min-width: 0; width: calc(100% - 32px); } .ip-kc-skip { right: 16px; } .ip-kc-tag { left: 16px; } }

/* reload: a bar over the weapon's card, and the warning under the crosshair */
.ip-slot-reload { position: absolute; left: 8px; right: 8px; top: calc(var(--w) * .36); z-index: 3; display: grid; gap: 4px; justify-items: center; opacity: 0; transition: opacity .12s; pointer-events: none; }
.ip-slot.ip-reloading .ip-slot-reload { opacity: 1; }
.ip-slot.ip-reloading .ip-slot-art { opacity: .35; }
.ip-slot-reload span { font: 700 calc(var(--w) * .07)/1 var(--ip-font); letter-spacing: .24em; color: var(--ip-ink); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.ip-slot-reload > i { display: block; width: 100%; height: 5px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18); }
.ip-slot-reload > i > i { display: block; height: 100%; background: var(--ip-accent-hi); transform-origin: left; transform: scaleX(0); }
.ip-awarn { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: 160px; opacity: 0; transition: opacity .12s; font: 700 13px/1 var(--ip-font); letter-spacing: .28em; text-shadow: 0 1px 6px rgba(0, 0, 0, .85); pointer-events: none; }
.ip-awarn.ip-on { opacity: 1; }
.ip-awarn .ip-key { font-size: 11px; }
.ip-aw-reload { color: var(--ip-accent-hi); animation: ip-aw-pulse .9s ease-in-out infinite; }
.ip-aw-empty { color: var(--ip-red); }
.ip-aw-empty .ip-key, .ip-aw-reloading .ip-key { display: none; }
.ip-aw-reloading { color: var(--ip-ink); }
.ip-awarn-bar { display: none; width: 100%; height: 3px; background: rgba(0, 0, 0, .5); }
.ip-aw-reloading .ip-awarn-bar { display: block; }
.ip-awarn-bar i { display: block; height: 100%; background: var(--ip-accent-hi); transform-origin: left; transform: scaleX(0); }
@keyframes ip-aw-pulse { 50% { opacity: .55; } }
/* free for all: small names under the two scores (you · the leader, or the runner-up while you lead) */
.ip-mb-side small { display: none; }
.ip-mb-ffa .ip-mb-side { flex-direction: column; justify-content: center; }
.ip-mb-ffa .ip-mb-side small { display: block; font: 700 9px/1 var(--ip-font); letter-spacing: .16em; color: rgba(255, 255, 255, .75); margin-top: 2px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-mb-ffa.ip-mb-lead .ip-mb-a { background: rgba(120, 90, 20, .8); } .ip-mb-ffa.ip-mb-lead .ip-mb-b { background: rgba(20, 22, 24, .7); }
/* the desync: scan lines and a flicker of white as the body breaks up */
.ip-death-body .ip-death-vig::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(200, 240, 255, .07) 3px 4px); animation: ip-desync 1s steps(8) .25s both; pointer-events: none; }
@keyframes ip-desync { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; background-color: rgba(220, 245, 255, .16); transform: translateX(-6px); } 25% { transform: translateX(4px); } 40% { background-color: transparent; transform: translateX(-2px); } 100% { opacity: .5; transform: none; } }

/* the scope in third person (hud.setScope): a round lens, black beyond it, a duplex reticle */
/* (the glass itself: the dark beyond the lens, its vignette, the colour fringes and warp at the rim and the dust are
   drawn in the frame's output pass, fx/look_post.js, with the same radius; this layer is the reticle) */
.ip-scope { --r: min(46vh, 46vw); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ip-scope-lens { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); border-radius: 50%; }
.ip-scope-lens svg { width: 100%; height: 100%; display: block; }
.ip-scoped .ip-cross { opacity: 0 !important; }
/* input check (src/ui/input_check.js) */
.ip-icheck { position: absolute; left: 16px; top: 16px; width: min(460px, calc(100vw - 32px)); padding: 10px 12px; background: rgba(6, 7, 8, .82); border: 1px solid var(--ip-line); font: 500 11px/1.45 var(--ip-mono); color: var(--ip-ink); z-index: 30; }
.ip-icheck b { display: block; font: 800 11px/1 var(--ip-font); letter-spacing: .3em; color: var(--ip-accent-hi); margin-bottom: 6px; }
.ip-icheck-live { white-space: pre-wrap; color: #bfe3ff; margin-bottom: 6px; }
.ip-icheck-log { margin: 0; white-space: pre-wrap; color: var(--ip-dim); max-height: 240px; overflow: hidden; }
/* places on the compass: quiet (a small dim tick; only the place straight ahead is named, softly) */
.ip-cmp-poi { --mk: rgba(237, 231, 219, .42); }
.ip-cmp-poi i { width: 6px; height: 6px; left: -3px; top: 2px; box-shadow: none; }
.ip-cmp-poi span { top: 10px; font-weight: 600; letter-spacing: .14em; color: rgba(237, 231, 219, .5); text-transform: uppercase; font-size: 8px; }
.ip-cmp-poi::after { content: none; }

/* ---- elemental weapons (data/elements.js): card chip and art glow, loot card line, frost while slowed, the staff's
   slam badge in its element ---- */
.ip-slot.ip-el .ip-slot-art { background: radial-gradient(ellipse 60% 55% at 50% 55%, color-mix(in srgb, var(--el) 24%, transparent), transparent 72%); }
.ip-slot.ip-el-power .ip-slot-art { background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(0, 0, 0, .6), rgba(255, 255, 255, .06) 58%, transparent 74%); }
.ip-slot-el { position: absolute; right: 8px; bottom: calc(var(--w) * .305); padding: 3px 5px 2px 6px; border-radius: 2px; z-index: 2;
  font: 800 calc(var(--w) * .054)/1 var(--ip-font); letter-spacing: .17em; color: var(--el-ink, #111); background: var(--el);
  box-shadow: 0 0 10px color-mix(in srgb, var(--el) 50%, transparent); }
.ip-slot.ip-el-power .ip-slot-el { background: #07070a; color: #f6f6f8; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 0 9px rgba(255, 255, 255, .35); }
.ip-loot-elname { color: var(--el); }
.ip-loot-el { margin-top: 6px; font: 700 11px/1 var(--ip-font); letter-spacing: .2em; color: var(--el); }
.ip-frost { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(ellipse 78% 72% at 50% 50%, transparent 60%, rgba(150, 215, 255, calc(.2 * var(--frost, 1))) 84%, rgba(222, 243, 255, calc(.42 * var(--frost, 1))) 100%);
  box-shadow: inset 0 0 80px rgba(170, 225, 255, .26); }
.ip-frost.ip-on { opacity: 1; transition: opacity .12s ease; }
.ip-vb-slow { display: none; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 7px 3px 7px; border-radius: 2px;
  background: rgba(8, 24, 36, .74); border: 1px solid rgba(143, 216, 255, .7); box-shadow: 0 0 12px rgba(120, 200, 255, .35);
  font: 700 calc(var(--vw) * .068)/1 var(--ip-font); letter-spacing: .22em; color: #c4ebff; }
.ip-vb-slow.ip-on { display: flex; }
.ip-vb-slow > i { display: block; width: calc(var(--vw) * .32); height: 3px; background: rgba(143, 216, 255, .2); overflow: hidden; }
.ip-vb-slow > i > i { display: block; height: 100%; background: #8fd8ff; transform-origin: 0 50%; }
.ip-vb-slow.ip-hit { animation: ip-slow-hit .3s ease-out; }
@keyframes ip-slow-hit { from { transform: scale(1.12); } to { transform: none; } }
.ip-ability.ip-ab-el { top: auto; right: auto; left: 8px; bottom: calc(var(--w) * .3);
  background: color-mix(in srgb, var(--abc) 12%, rgba(10, 10, 12, .82)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--abc) 55%, transparent) inset; }
.ip-ability.ip-ab-el .ip-ab-sweep { background: conic-gradient(rgba(6, 6, 8, .84) calc(var(--cd) * 360deg), color-mix(in srgb, var(--abc) 30%, transparent) 0); }
.ip-ability.ip-ab-el .ip-ab-key { color: color-mix(in srgb, var(--abc) 70%, #fff); }
.ip-ability.ip-ab-el.ip-ab-ready { background: color-mix(in srgb, var(--abc) 42%, rgba(10, 10, 12, .6)); box-shadow: 0 0 0 1px var(--abc) inset, 0 0 12px color-mix(in srgb, var(--abc) 60%, transparent); }
.ip-ability.ip-ab-el.ip-ab-ready .ip-ab-sweep { background: radial-gradient(circle, color-mix(in srgb, var(--abc) 40%, transparent), transparent 70%); }
.ip-ability.ip-ab-el.ip-ab-ready .ip-ab-key { color: #fff; }

/* ------------------------------------------------------------------ online: the connection banner (net/game_bridge.js) */
.ip-net-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; padding: 14px 28px; background: rgba(10, 11, 12, .86); border: 1px solid var(--ip-line2); border-top: 2px solid var(--ip-accent); z-index: 30; }
.ip-net-banner b { font: 700 20px/1 var(--ip-font); letter-spacing: .3em; margin-right: -.3em; }
.ip-net-banner span { font: 600 11px/1 var(--ip-font); letter-spacing: .26em; color: var(--ip-dim); text-transform: uppercase; }
/* the game is back but the browser kept the mouse (pause.js showClickHint): a quiet word in the middle; clicks pass
   through to the game, which takes the mouse on the next one */
.ip-click-resume { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); pointer-events: none; padding: 8px 14px;
  background: rgba(10, 14, 20, .62); border: 1px solid rgba(255, 255, 255, .14); border-radius: 3px; animation: ip-click-pulse 1.6s ease-in-out infinite; }
.ip-click-resume b { font: 700 12px/1 var(--ip-font); letter-spacing: .3em; color: #e8edf2; }
@keyframes ip-click-pulse { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }

/* ------------------------------------------------------------------ each mode's HUD set (v1.12 #54 #63 #67)
   src/modes/flow.js declares, per mode, a layout (body[data-hud]) and the pieces it does without (body.ip-hide-<piece>);
   ui/match_hud.js sets both when the mode changes. */
body.ip-hide-scorebar .ip-mbar, body.ip-hide-clock .ip-mb-clock, body.ip-hide-compass .ip-compass, body.ip-hide-chips .ip-mchips,
body.ip-hide-xp .xp-total, body.ip-hide-xp .xp-pop, body.ip-hide-xp .xp-lines, body.ip-hide-xp .xp-splash, body.ip-hide-xp .xp-swap,
body.ip-hide-streaks .ks-hud, body.ip-hide-streaks .ks-prompt, body.ip-hide-special .sp-badge, body.ip-hide-killfeed .ip-killfeed,
body.ip-hide-modechip .ip-mode { display: none !important; }
/* the Battle Royale: the kill feed under its alive / kills line and storm timer */
body[data-hud='br'] .ip-killfeed { top: 264px; }

/* ------------------------------------------------------------------ a match's opening (v1.12 #67, ui/intro.js)
   the flyover's title card in the lower third, letterbox bars, the rest of the HUD out of the way while it plays */
body.ip-cine .ip-ui > :not(.ip-intro), body.ip-cine .zm-hud { opacity: 0 !important; transition: opacity .3s; }
.ip-intro { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 17vh; text-align: center; }
.ip-intro::before, .ip-intro::after { content: ''; position: absolute; left: 0; right: 0; height: 8vh; background: #050506; transform: scaleY(0); transition: transform .5s var(--ip-ease); }
.ip-intro::before { top: 0; transform-origin: 50% 0; } .ip-intro::after { bottom: 0; transform-origin: 50% 100%; }
.ip-intro.ip-on::before, .ip-intro.ip-on::after { transform: scaleY(1); }
.ip-intro > * { opacity: 0; transform: translateY(10px); transition: opacity .5s .25s, transform .6s .25s var(--ip-ease); }
.ip-intro.ip-on > * { opacity: 1; transform: none; }
.ip-intro.ip-out > *, .ip-intro.ip-out::before, .ip-intro.ip-out::after { opacity: 0; transition-delay: 0s; }
.ip-intro small { font: 700 13px/16px var(--ip-num); letter-spacing: .34em; color: #ffcf3f; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.ip-intro b { font: 800 clamp(40px, 6vh, 72px)/1.05 var(--ip-font); letter-spacing: .06em; color: #fbf6ea; text-shadow: 0 3px 18px rgba(0, 0, 0, .7); }
.ip-intro i { display: block; width: 180px; height: 2px; margin: 8px 0 10px; background: linear-gradient(90deg, rgba(255, 154, 60, 0), var(--ip-accent), rgba(255, 154, 60, 0)); }
.ip-intro em { max-width: min(640px, 90vw); font: 500 15px/20px var(--ip-font); font-style: normal; letter-spacing: .04em; color: rgba(237, 231, 219, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
/* the title card alone (the Battle Royale's blimp): no letterbox, the HUD stays */
.ip-intro.ip-intro-card::before, .ip-intro.ip-intro-card::after { display: none; }
.ip-intro.ip-intro-card { justify-content: flex-start; padding: max(15vh, 120px) 0 0; }   /* (up top, where the hold's own line goes: clear of the prompts) */
/* zombies: darker, a vignette closing in, the map's name pale over a blood-red line */
.ip-intro.ip-intro-eerie { transition: box-shadow 1.2s ease, background-color 1.2s ease; }
.ip-intro.ip-intro-eerie.ip-on { box-shadow: inset 0 0 26vmax rgba(0, 0, 0, .92); background-color: rgba(20, 0, 2, .28); }
.ip-intro-eerie small { color: #d8322a; letter-spacing: .5em; }
.ip-intro-eerie b { color: #e9e2d6; letter-spacing: .14em; text-shadow: 0 0 24px rgba(216, 50, 42, .35), 0 3px 18px rgba(0, 0, 0, .9); }
.ip-intro-eerie i { background: linear-gradient(90deg, rgba(216, 50, 42, 0), #d8322a, rgba(216, 50, 42, 0)); }
.ip-intro-eerie > * { transition-duration: 1.4s; transition-delay: .6s; }
/* the per-map comic intro (v1.12 #71, ui/intro.js comicCard): panels in a strip low on screen over the live flyover,
   bubbles drawn by the page in the UI font; a thin letterbox and a small chip in place of the title card */
.ip-intro.ip-intro-comic::before, .ip-intro.ip-intro-comic::after { height: 5vh; }
.ip-intro.ip-intro-comic > .ip-cm-strip { opacity: 1; transform: none; transition: opacity .45s; }
.ip-intro.ip-intro-comic.ip-out > .ip-cm-strip { opacity: 0; }
.ip-cm-chip { position: absolute; top: calc(5vh + 16px); left: 3vw; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px 9px; background: rgba(9, 10, 11, .74); border-left: 3px solid var(--ip-accent); }
.ip-intro .ip-cm-chip small { font-size: 11px; line-height: 13px; letter-spacing: .3em; }
.ip-intro .ip-cm-chip b { font-size: clamp(20px, 3vh, 32px); letter-spacing: .08em; }
.ip-cm-strip { position: absolute; left: 3vw; right: 3vw; bottom: calc(5vh + 2.2vh); display: flex; justify-content: center; align-items: flex-end; gap: 1.4vw; }
.ip-cm-p { position: relative; margin: 0; flex: 0 0 auto; width: min(25vw, calc((94vw - (var(--n) - 1) * 1.4vw) / var(--n))); aspect-ratio: 3 / 2; background: #0b0c0d; border: 3px solid #0b0c0d;
  box-shadow: 0 0 0 1px rgba(255, 154, 60, .55), 0 10px 30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(26px) scale(.94) rotate(var(--r));
  transition: opacity .3s var(--d), transform .55s var(--d) cubic-bezier(.2, 1.35, .4, 1); }
.ip-intro-comic.ip-on .ip-cm-p { opacity: 1; transform: rotate(var(--r)); }
.ip-cm-p > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ip-cm-p::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 201, 138, .25), inset 0 -40px 60px -30px rgba(0, 0, 0, .45); }
.ip-cm-one .ip-cm-strip { justify-content: flex-end; }
.ip-cm-one .ip-cm-p { width: min(36vw, 560px); }
/* the bubbles: cream with an ink line, uppercase lettering; a shout in the accent; a caption is a narration box */
.ip-intro .ip-cm-b { position: absolute; z-index: 1; padding: .45em .7em .5em; background: #fbf6ea; border: 2px solid #0b0c0d; border-radius: 1.1em; color: #111214; text-align: left;
  font: 700 clamp(11px, 1.05vw, 18px)/1.15 var(--ip-font); letter-spacing: .03em; text-transform: uppercase; text-shadow: none; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.55); transform-origin: 20% 110%; transition: opacity .18s var(--d), transform .35s var(--d) cubic-bezier(.3, 1.6, .5, 1); }
.ip-intro-comic.ip-on .ip-cm-b { opacity: 1; transform: none; }
.ip-intro .ip-cm-b small { display: block; margin-bottom: .15em; font: 700 .68em/1 var(--ip-num); letter-spacing: .2em; color: #c25f10; text-shadow: none; }
.ip-intro .ip-cm-b span { display: block; }
.ip-cm-b::after { content: ''; position: absolute; width: .8em; height: .8em; background: inherit; border: inherit; border-width: 0 2px 2px 0; border-radius: 0 0 2px 0; }
.ip-cm-t-bl::after { bottom: -.47em; left: 18%; transform: rotate(45deg) skew(12deg, 12deg); }
.ip-cm-t-br::after { bottom: -.47em; right: 18%; transform: rotate(45deg) skew(12deg, 12deg); }
.ip-cm-t-tl::after { top: -.47em; left: 18%; transform: rotate(225deg) skew(12deg, 12deg); }
.ip-cm-t-tr::after { top: -.47em; right: 18%; transform: rotate(225deg) skew(12deg, 12deg); }
.ip-cm-t-none::after { display: none; }
.ip-intro .ip-cm-t-br { transform-origin: 80% 110%; } .ip-intro .ip-cm-t-tl { transform-origin: 20% -10%; } .ip-intro .ip-cm-t-tr { transform-origin: 80% -10%; }
.ip-intro .ip-cm-shout { background: #ffcf3f; border-width: 3px; border-radius: .5em; font-size: clamp(12px, 1.2vw, 20px); font-style: italic; }
.ip-intro .ip-cm-caption { background: var(--ip-accent); border-radius: 0; font-weight: 600; letter-spacing: .05em; }
.ip-cm-caption::after { display: none; }
.ip-cm-ph { position: absolute; top: calc(5vh + 16px); right: 3vw; padding: 4px 8px; background: #b3261e; color: #fff; font: 700 11px/1 var(--ip-num); letter-spacing: .2em; }
/* what a mode does without its shield pips (zombies: no shields, flow hud.hide 'shields') */
body.ip-hide-shields .ip-vb-shields, body.ip-hide-shields .ip-vb-bubbles { display: none !important; }

/* ------------------------------------------------------------------ the grenade danger indicator (v1.12 #81, ui/grenade_hud.js)
   a mark on a ring round the crosshair toward each live explosive in reach; larger and redder with the harm, pulsing
   when it would kill */
.ip-gren { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ip-gren-m { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; transform-origin: 17px 17px; --gc: var(--ip-accent); --gg: var(--ip-accent-glow); }
.ip-gren-m i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 9, 10, .62); box-shadow: 0 0 0 1.5px var(--gc), 0 0 12px var(--gg); }
.ip-gren-m svg { width: 22px; height: 22px; fill: var(--gc); stroke: none; }
.ip-gren-m svg .g { fill: none; stroke: rgba(8, 9, 10, .7); stroke-width: 1.4; }
.ip-gren-m u { position: absolute; left: 50%; top: -10px; margin-left: -6px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--gc); filter: drop-shadow(0 0 4px var(--gg)); }
.ip-gren-m.ip-gren-hi { --gc: #ff7a3c; --gg: rgba(255, 110, 50, .55); }
.ip-gren-m.ip-gren-kill { --gc: #ff3b2e; --gg: rgba(255, 50, 40, .7); }
.ip-gren-m.ip-gren-kill i { animation: ip-gren-pulse .45s ease-in-out infinite alternate; }
@keyframes ip-gren-pulse { to { box-shadow: 0 0 0 2.5px var(--gc), 0 0 22px var(--gg); background: rgba(70, 8, 4, .7); } }
/* the in-place pregame (v1.12 #96): a quiet line, not the big countdown */
.ip-mcenter b.ip-mstarts { font-size: 26px; line-height: 32px; letter-spacing: .1em; }
.ip-mcenter em.ip-mlocks { font: 600 11px/16px var(--ip-font); letter-spacing: .24em; color: rgba(237, 231, 219, .72); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6); }

