/* Live strikes: the War Room's full-height layout with only its right-hand wire, here a timeline of each strike. */
:root { --missile: #ff4058; --airstrike: #fb923c; --drone: #facc15; --line: #26262b; --panel: #0b0b0c; }
.strikes-page { display: block; background: #050506; color: #f2f2f3; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.strikes { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: calc(100dvh - var(--header-h)); min-height: 560px; }
.strikes-map { position: relative; min-width: 0; background: #070708; }
.strikes-canvas { position: absolute; inset: 0; }
.strikes-legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 12px; border-radius: 999px; background: rgb(11 11 12 / .85); color: #c6c6cb; font-size: 12px; font-weight: 600; pointer-events: none; }
.strikes-legend span { display: inline-flex; align-items: center; gap: 5px; }
.strikes-legend .pulse-key { color: #9b9ba3; font-weight: 400; }
.strike-missile { --kind: var(--missile); } .strike-airstrike { --kind: var(--airstrike); } .strike-drone { --kind: var(--drone); }
.strikes-legend svg, .strike-icon { color: var(--kind); }

.strikes-timeline { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }
.timeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.timeline-head h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.timeline-sub { margin: 2px 0 0; color: #9b9ba3; font-size: 12px; }
.live-dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--missile); box-shadow: 0 0 0 0 #ff405880; animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 10px #ff405800; } }
.strike-filters { display: flex; gap: 4px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.strike-filter { flex: 1; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; background: none; color: #c6c6cb; font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.strike-filter b { display: block; color: var(--kind, #f2f2f3); font-size: 13px; }
.strike-filter[aria-pressed="true"] { background: #1d1d21; border-color: #36363d; color: #f2f2f3; }
.strike-filter:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.strike-list { flex: 1; min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.strike { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 16px 10px 14px; border-bottom: 1px solid #18181b; border-left: 3px solid var(--kind); cursor: pointer; }
.strike:hover, .strike.active { background: #141417; }
.strike-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--kind) 16%, transparent); }
.strike-meta { display: block; color: var(--kind); font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.strike a { display: block; margin: 2px 0; color: #f2f2f3; font-size: 13px; line-height: 1.35; text-decoration: none; }
.strike a:hover { text-decoration: underline; }
.strike-war { display: block; color: #6e6e76; font-size: 11px; }
.strike.new { animation: arrive 1.2s ease-out; }
@keyframes arrive { from { background: color-mix(in srgb, var(--kind) 30%, transparent); transform: translateX(16px); } }
.strike-empty { padding: 20px 16px; color: #9b9ba3; }
.strike[hidden] { display: none; }

/* Map markers: an icon in the strike's colour; strikes in the last three hours burn, new arrivals ripple out. MapLibre positions
   markers with position and transform, so neither is set here. */
.strike-marker { --kind: var(--missile); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #0b0b0c; color: var(--kind); box-shadow: 0 0 0 1.5px var(--kind), 0 0 10px color-mix(in srgb, var(--kind) 60%, transparent); cursor: pointer; }
.strike-marker.strike-airstrike { --kind: var(--airstrike); } .strike-marker.strike-drone { --kind: var(--drone); }
.strike-marker.old { opacity: .55; width: 16px; height: 16px; box-shadow: 0 0 0 1px var(--kind); }
.strike-marker.old svg { width: 10px; height: 10px; }
.strike-marker.ripple::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.strike-marker.ripple::after { border: 2px solid var(--kind); animation: ripple 1.6s ease-out 3; }
.strike-marker.active { z-index: 3; width: 30px; height: 30px; box-shadow: 0 0 0 2.5px var(--kind), 0 0 18px var(--kind); opacity: 1; }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.strike-pop .maplibregl-popup-content { padding: 9px 11px; border: 1px solid #36363d; border-radius: 10px; background: #0b0b0c; color: #f2f2f3; font-size: 12px; box-shadow: 0 10px 30px #000c; }
.strike-pop .maplibregl-popup-tip { display: none; }
.strike-pop a { color: #f2f2f3; } .strike-pop small { display: block; margin-top: 3px; color: #9b9ba3; }
.maplibregl-ctrl-attrib { font-size: 10px; }

@media (max-width: 900px) {
  .strikes { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; min-height: 0; }
  .strikes-map { min-height: 340px; }
  .strikes-timeline { border-left: 0; border-top: 1px solid var(--line); }
  .strike-list { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .strike.new, .strike-marker.ripple::after { animation: none; }
}
/* Coups page: the same layout, with countries shaded instead of strike markers. */
.coup-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.coup-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--kind); }
.coup-name { display: block; margin-top: 2px; color: #f2f2f3; font-size: 13px; }
.coup-filters .strike-filter { font-size: 11px; }
