/* Shared Combat HUD chrome for prototypes 03-08.
   Imported via <style is:global> in each prototype's <head>. */

:root {
  --void: #02050a;
  --void-2: #050a14;
  --hull: #0a1018;
  --hull-up: #0e1722;
  --steel: #1a2233;
  --edge: #2a3548;

  --cyan: #00fff0;
  --cyan-deep: #0ad3c8;
  --cyan-dim: rgba(0,255,240,0.35);
  --amber: #ff9b1f;
  --amber-deep: #d27000;
  --threat: #ff2147;
  --threat-deep: #b8001f;
  --plasma: #7c5cff;
  --plasma-deep: #4d2db5;
  --ghost: #f0fbff;
  --mute: rgba(240,251,255,0.5);
  --faint: rgba(240,251,255,0.2);

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Rajdhani', 'Bahnschrift Condensed', 'Eurostile', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--void);
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: hidden;
  position: relative;
  line-height: 1.4;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 35%, rgba(0,255,240,0.05), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,33,71,0.03), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 100%);
  pointer-events: none;
  z-index: -3;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,240,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: -2;
  animation: grid-drift 90s linear infinite;
}
@keyframes grid-drift { to { background-position: 28px 28px, 28px 28px; } }
.slashes {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 60px, rgba(0,255,240,0.015) 60px, rgba(0,255,240,0.015) 62px);
}

/* TOP HUD */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; height: 36px;
  background: rgba(2,5,10,0.92);
  border-bottom: 1px solid var(--cyan-dim);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; padding: 0 18px; gap: 18px;
  z-index: 100; backdrop-filter: blur(12px);
}
.hud-top .left, .hud-top .right {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hud-top .right { color: var(--mute); }
.hud-top .center {
  text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.45em; color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-dim);
}
.threat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--threat); padding: 3px 10px;
  background: rgba(255,33,71,0.1); border: 1px solid rgba(255,33,71,0.4);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-weight: 700;
}
.threat-pill::before {
  content: ''; width: 7px; height: 7px;
  background: var(--threat); box-shadow: 0 0 10px var(--threat);
  animation: threat-blink 0.7s steps(2, end) infinite;
}
@keyframes threat-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.2; } }

/* BOTTOM HUD */
.hud-bot {
  position: fixed; bottom: 0; left: 0; right: 0; height: 28px;
  background: rgba(2,5,10,0.92);
  border-top: 1px solid var(--cyan-dim);
  display: flex; align-items: center; padding: 0 18px; gap: 24px;
  z-index: 100; backdrop-filter: blur(12px);
  font-size: 10px; color: var(--mute);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hud-bot .ticker {
  flex: 1; overflow: hidden; color: var(--cyan-dim); white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.hud-bot .ticker > div { display: inline-block; animation: ticker 60s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* CORNERS */
.corner {
  position: fixed; width: 36px; height: 36px;
  border: 2px solid var(--cyan); box-shadow: 0 0 14px var(--cyan-dim);
  pointer-events: none; z-index: 99;
}
.corner.tl { top: 44px; left: 12px; border-right: none; border-bottom: none; }
.corner.tr { top: 44px; right: 12px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 36px; left: 12px; border-right: none; border-top: none; }
.corner.br { bottom: 36px; right: 12px; border-left: none; border-top: none; }

/* MAIN */
main {
  padding: 60px 24px;
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

/* Section title */
.kicker {
  font-family: var(--mono); font-size: 10px;
  color: var(--mute); letter-spacing: 0.32em;
  text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ''; width: 32px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.title-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 18px; border-bottom: 1px solid var(--cyan-dim);
}
.title-row h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: 0.04em; line-height: 0.95;
  text-transform: uppercase; color: var(--ghost);
}
.title-row h1 .stress {
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-dim);
}
.title-row .meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--mute); letter-spacing: 0.18em;
  text-transform: uppercase; text-align: right;
}
.title-row .meta b { color: var(--cyan); }

/* CALLOUT — generic, used by all heroes */
.callout {
  position: absolute;
  font-family: var(--mono); font-size: 10px;
  color: var(--cyan); letter-spacing: 0.12em;
  text-transform: uppercase; pointer-events: none;
  animation: callout-fade 4s ease-in-out infinite;
}
.callout::before {
  content: ''; position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.callout .k { color: var(--mute); display: block; font-size: 9px; letter-spacing: 0.18em; }
.callout .v {
  display: block;
  color: var(--cyan); font-family: var(--display); font-size: 18px;
  font-weight: 700; letter-spacing: 0.02em;
  text-shadow: 0 0 12px var(--cyan-dim);
}
.callout.warn .v { color: var(--amber); text-shadow: 0 0 12px rgba(255,155,31,0.4); }
.callout.crit .v { color: var(--threat); text-shadow: 0 0 12px rgba(255,33,71,0.4); }
@keyframes callout-fade {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .corner { display: none; }
  .title-row { grid-template-columns: 1fr; }
  .title-row .meta { text-align: left; }
}
