:root {
  --bg: #000;
  --panel: rgba(7, 9, 14, 0.86);
  --panel-strong: rgba(8, 10, 16, 0.95);
  --text: #f5f7fb;
  --muted: #a9b0bd;
  --accent: #ff9b7a;
  --link: #9cc9ff;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

button,
a {
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.page-shell {
  padding: 28px 20px 36px;
}

.hero,
.feed-section {
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.feed-section h2 {
  margin: 0;
  color: #fff;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.hero-copy,
.feed-copy,
.callout-copy,
.popup-date {
  color: var(--muted);
}

.hero-copy {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.globe-panel {
  position: relative;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(35, 42, 58, 0.65), rgba(0, 0, 0, 0.98) 52%), #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

#globe {
  display: block;
  margin: 0 auto;
  cursor: grab;
}

.globe-callout,
.incident-popup,
.globe-hint,
.zoom-button,
.card-button {
  backdrop-filter: blur(12px);
}

.globe-callout {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  max-width: 360px;
  padding: 14px 16px;
  line-height: 1.4;
  border: 1px solid rgba(255, 120, 80, 0.26);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.callout-label {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.callout-title {
  font-size: 13px;
  color: #f2f2f5;
}

.callout-copy {
  margin-top: 4px;
  font-size: 12px;
}

.incident-popup {
  position: absolute;
  top: 96px;
  left: 16px;
  z-index: 7;
  width: min(380px, calc(100% - 32px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 120, 80, 0.38);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.popup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.popup-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff2ed;
}

.popup-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #ffb59b;
}

.popup-date {
  margin-top: 10px;
  font-size: 12px;
}

.popup-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #d7dbe6;
}

.popup-link {
  display: inline-block;
  margin-top: 12px;
  color: #8fc0ff;
  text-decoration: none;
  font-size: 12px;
}

.popup-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c9ceda;
  cursor: pointer;
}

.zoom-controls {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(10, 10, 12, 0.9);
  color: #e6e8ee;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.globe-hint {
  position: absolute;
  bottom: 18px;
  left: 20px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 9, 14, 0.78);
  color: #8d95a3;
  font-size: 12px;
}

.feed-section {
  margin-top: 24px;
  padding: 0 4px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.feed-section h2 {
  font-size: 24px;
  color: #f2f2f5;
}

.feed-copy {
  font-size: 13px;
}

.incident-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.continent-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.continent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.continent-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.continent-title {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.continent-count {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #9da2af;
  font-size: 12px;
}

.continent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.incident-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98), rgba(8, 10, 16, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  color: #e9ebf0;
}

.incident-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--incident-color), transparent 70%);
  opacity: 0.9;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c0cc;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--incident-color);
  box-shadow: 0 0 14px var(--incident-color);
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  color: #fff4ee;
}

.card-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: #ffb59b;
}

.card-date {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #9da2af;
}

.card-description {
  margin: 12px 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #d7dbe6;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-button,
.card-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.card-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f2f5;
  cursor: pointer;
}

.card-link {
  background: rgba(120, 170, 255, 0.12);
  color: var(--link);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 12px 26px;
  }

  .globe-panel {
    min-height: 560px;
    border-radius: 20px;
  }

  .globe-callout {
    max-width: calc(100% - 32px);
  }

  .globe-hint {
    max-width: calc(100% - 96px);
    white-space: normal;
  }
}
