:root {
  color-scheme: dark;
  --bg: #050b13;
  --surface: rgba(12, 25, 42, .94);
  --surface-2: rgba(17, 35, 57, .9);
  --line: rgba(91, 185, 255, .25);
  --blue: #39a9ff;
  --cyan: #58e6ff;
  --amber: #ffbd4a;
  --red: #ff5d66;
  --text: #f3f8ff;
  --muted: #9bb0c6;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 130, 211, .22), transparent 42rem),
    linear-gradient(155deg, #07111f 0%, #03070d 75%);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.5;
}

.hud-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(79, 180, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 180, 255, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.briefing-shell {
  position: relative;
  width: min(100% - 24px, 920px);
  margin: 0 auto;
  padding: 22px 0 30px;
}

.mission-header,
.panel,
footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .03);
}

.mission-header {
  overflow: hidden;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
}

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(36, 139, 219, .13), transparent);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--blue);
  background: rgba(57, 169, 255, .1);
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: -.08em;
  clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 { margin: 1px 0 0; font-size: clamp(1.1rem, 3vw, 1.45rem); text-transform: uppercase; letter-spacing: .05em; }

.live-indicator { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.live-indicator span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #48e39b; box-shadow: 0 0 12px #48e39b; }

.mission-title-block { padding: 24px 22px 22px; }
.mission-title-block h2 { margin: 0 0 16px; font-size: clamp(1.1rem, 3vw, 1.45rem); line-height: 1.2; letter-spacing: .05em; overflow-wrap: anywhere; text-transform: uppercase; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.mission-meta strong { margin-right: 7px; color: var(--blue); font-size: .72rem; letter-spacing: .1em; }

.priority-grid,
.information-grid { display: grid; gap: 12px; margin-top: 12px; }
.priority-grid { grid-template-columns: 1.6fr 1fr; }
.information-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel { min-width: 0; padding: 18px 20px 20px; border-radius: var(--radius); }
.panel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--blue); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.panel-objective { border-left: 3px solid var(--cyan); }
.panel-threats { border-left: 3px solid var(--red); background: linear-gradient(135deg, rgba(74, 18, 27, .35), var(--surface)); }
.panel-threats h3 { color: #ff8790; }
.field-content { min-height: 1.5em; color: #dfeaf6; font-size: clamp(1rem, 2.4vw, 1.13rem); white-space: pre-line; overflow-wrap: anywhere; }
.lead-copy { color: white; font-size: clamp(1.1rem, 2.8vw, 1.3rem); }

.section-number { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); color: var(--cyan); font-size: .64rem; }
.icon { display: inline-grid; width: 24px; height: 24px; place-items: center; }
.target-icon { border: 2px solid var(--cyan); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 6px var(--cyan); }
.warning-icon { color: var(--red); border: 1px solid var(--red); font-weight: 900; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 4px; }

.error-banner { margin-top: 12px; padding: 12px 16px; border: 1px solid rgba(255, 93, 102, .5); border-radius: 9px; background: rgba(98, 23, 30, .72); color: #ffd9dc; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius); color: var(--muted); font-size: .75rem; }
.data-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--cyan); }
button { border: 1px solid var(--blue); border-radius: 7px; padding: 8px 12px; color: var(--text); background: rgba(57, 169, 255, .12); font: inherit; font-weight: 700; cursor: pointer; }
button:hover, button:focus-visible { background: rgba(57, 169, 255, .25); outline: none; box-shadow: 0 0 0 3px rgba(57, 169, 255, .18); }
button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 650px) {
  .briefing-shell { width: min(100% - 14px, 920px); padding-top: 7px; }
  .priority-grid, .information-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .brand-row { padding: 12px 14px; }
  .brand-mark { width: 42px; height: 42px; }
  .live-indicator { display: none; }
  .mission-title-block, .panel { padding: 16px; }
  footer { margin-top: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .live-indicator span { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .38; box-shadow: 0 0 4px #48e39b; } }
}
