:root {
  --ink: #d8f7ff;
  --night: #03080d;
  --cream: #061018;
  --paper: #0a1720;
  --red: #ff4f6f;
  --gold: #ffcc66;
  --sea: #4db8ff;
  --sea-deep: #7c5cff;
  --land: #7fffd4;
  --line: rgba(77, 184, 255, .18);
  --panel: rgba(4, 14, 22, .78);
  --panel-soft: rgba(8, 27, 39, .68);
  --glass-border: rgba(77, 184, 255, .26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
}

/* ===== GAME SHELL ===== */
.game-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(400px, 1fr) auto auto;
  background: radial-gradient(circle at 20% 10%, rgba(77, 184, 255, .14), transparent 34%), radial-gradient(circle at 80% 0%, rgba(255, 184, 77, .08), transparent 28%), var(--cream);
}

/* ===== TOPBAR ===== */
.topbar {
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 22px;
  color: white;
  background: linear-gradient(90deg, rgba(2, 8, 13, .96), rgba(5, 20, 30, .9));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 0 28px rgba(77, 184, 255, .12), 0 12px 28px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 240px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #001117;
  background: radial-gradient(circle, #b9fbff, var(--sea));
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  font-size: 24px;
  transform: rotate(-8deg);
  box-shadow: 0 0 28px rgba(77, 184, 255, .42);
}

.brand strong {
  display: block;
  font-size: 23px;
  letter-spacing: -.5px;
}

.brand small,
.flight-stats small {
  display: block;
  margin-top: 2px;
  color: #88a8ba;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.flight-stats {
  margin-left: auto;
  display: flex;
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
}

.flight-stats strong {
  display: block;
  max-width: 170px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
  font-size: 14px;
}

.flight-stats b {
  color: var(--gold);
}

/* ===== BUTTONS ===== */
.icon-button {
  width: 40px;
  height: 40px;
  color: #d8fbff;
  background: rgba(77, 184, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: inset 0 0 14px rgba(77, 184, 255, .06);
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(77, 184, 255, .14);
  border-color: rgba(77, 184, 255, .55);
}

.weather-status {
  display: none;
}

/* ===== THERMAL HUD ===== */
.thermal-hud {
  --thermal-level: 42%;
  --thermal-color: #5dd8c8;
  min-width: 220px;
  max-width: 310px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  color: #dffaf6;
  background: rgba(77, 184, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(77, 184, 255, .07);
}

.thermal-ring {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 9, 14, .92) 47%, transparent 49%), conic-gradient(var(--thermal-color) var(--thermal-level), rgba(255, 255, 255, .1) 0);
  box-shadow: 0 0 18px rgba(93, 216, 200, .25);
  font-size: 14px;
  font-weight: 950;
}

.thermal-hud strong {
  display: block;
  color: white;
  font-size: 11px;
  letter-spacing: .12em;
}

.thermal-hud small {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #88a8ba;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thermal-hud[data-state="warm"] {
  --thermal-color: #ffcc66;
}

.thermal-hud[data-state="cool"] {
  --thermal-color: #5dd8c8;
}

.thermal-hud[data-state="cold"] {
  --thermal-color: #4db8ff;
}

.thermal-hud[data-state="freezing"] {
  --thermal-color: #9bd5ff;
  animation: thermal-alert 1.4s ease-in-out infinite alternate;
}

@keyframes thermal-alert {
  to {
    box-shadow: 0 0 24px rgba(155, 213, 255, .3), inset 0 0 24px rgba(155, 213, 255, .12);
  }
}

/* ===== GAME LAYOUT ===== */
.game-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100%;
}

.game-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background: var(--sea);
  grid-column: 1;
}

.game-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 155;
  pointer-events: none;
  background: linear-gradient(rgba(77, 184, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 184, 255, .025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .38;
  mix-blend-mode: screen;
}

.game-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 156;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 90px rgba(77, 184, 255, .08), inset 0 0 130px rgba(0, 0, 0, .52);
  opacity: .42;
}

#map {
  width: 100% !important;
  height: 100% !important;
}

/* ===== STARTUP VEIL ===== */
.startup-veil {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  color: #edf7ff;
  background: radial-gradient(circle at center, rgba(77, 184, 255, .20), rgba(9, 14, 28, .82) 32%, #000 58%);
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}

.startup-loader {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  letter-spacing: .04em;
}

.startup-loader strong {
  font-size: clamp(18px, 3vw, 30px);
}

.startup-loader small {
  color: #8fb0c0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.startup-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1b8, var(--gold) 42%, rgba(124, 92, 255, .4) 68%);
  box-shadow: 0 0 0 0 rgba(255, 204, 102, .42);
  animation: startup-pulse 1.35s ease-out infinite;
}

@keyframes startup-pulse {
  70% {
    box-shadow: 0 0 0 28px rgba(255, 191, 91, 0);
    transform: scale(1.06);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 191, 91, 0);
    transform: scale(1);
  }
}

body:not(.startup-loading) .startup-veil {
  opacity: 0;
  visibility: hidden;
}

body.startup-loading .game-shell {
  grid-template-rows: minmax(100vh, 1fr);
}

body.startup-loading .topbar,
body.startup-loading .control-deck,
body.startup-loading footer {
  display: none;
}

body.startup-loading .map-guide,
body.startup-loading .pulse-feed,
body.startup-loading .hud-overlay,
body.startup-loading .layer-brief,
body.startup-loading .leaflet-control-container {
  opacity: 0;
  pointer-events: none;
}

/* ===== WEATHER OVERLAY ===== */
.weather-overlay {
  position: absolute;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  transition: background .35s ease, backdrop-filter .35s ease;
}

.weather-overlay.rainy {
  background: rgba(11, 33, 57, 0.18);
  backdrop-filter: blur(1px);
}

.weather-overlay.stormy {
  background: rgba(8, 15, 37, 0.35);
  backdrop-filter: blur(1.5px);
}

.weather-overlay.cloudy {
  background: rgba(8, 15, 37, 0.12);
}

.weather-overlay.foggy,
.weather-overlay.hazy {
  background: rgba(15, 23, 34, 0.32);
  backdrop-filter: blur(2px);
}

.weather-overlay.snowy {
  background: rgba(245, 250, 255, 0.08);
}

/* ===== TARGET PIN ===== */
.delivery-target {
  width: 28px !important;
  height: 28px !important;
}

.delivery-target .target-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(248, 198, 77, 0.95);
  color: #071927;
  border: 2px solid white;
  box-shadow: 0 0 0 5px rgba(248, 198, 77, 0.16);
  font-size: 14px;
}

.delivery-target.delivering {
  width: 24px !important;
  height: 24px !important;
}

.delivery-target.delivering .target-pin {
  width: 22px;
  height: 22px;
  font-size: 12px;
  animation: target-pulse 1.05s ease-out infinite;
  box-shadow: 0 0 0 3px rgba(248, 198, 77, .18);
}

@keyframes target-pulse {
  0% {
    transform: scale(.94);
    box-shadow: 0 0 0 0 rgba(248, 198, 77, .48);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(248, 198, 77, 0);
  }

  100% {
    transform: scale(.94);
    box-shadow: 0 0 0 0 rgba(248, 198, 77, 0);
  }
}

/* ===== DESTINATION INFO ===== */
.destination-info {
  color: #c0d9e9;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

.target-forecast {
  margin-top: 8px;
  width: min(100%, 580px);
  color: #d8e7ef;
}

.target-forecast[hidden] {
  display: none;
}

.forecast-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forecast-heading span {
  color: #7895a7;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
}

.forecast-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.forecast-card {
  min-width: 72px;
  padding: 7px 6px;
  border: 1px solid rgba(136, 202, 208, .2);
  border-radius: 6px;
  background: rgba(7, 25, 39, .82);
  text-align: center;
}

.forecast-card time,
.forecast-card small {
  display: block;
  color: #86a4b5;
  font-size: 9px;
}

.forecast-card strong {
  display: block;
  margin: 3px 0 1px;
  color: white;
  font-size: 13px;
}

.forecast-icon {
  font-size: 17px;
  line-height: 1.15;
}

.forecast-loading,
.forecast-error {
  padding: 8px;
  border-radius: 6px;
  background: rgba(7, 25, 39, .72);
  color: #86a4b5;
  font-size: 10px;
}

.forecast-error {
  color: #f4c785;
}

/* ===== QUEUE LIST ===== */
.queue-list {
  margin-top: 8px;
  color: #c0d9e9;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.queue-list .item {
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.queue-list .count {
  background: rgba(248, 198, 77, 0.12);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 900;
}

.queued-target .queued-pin {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: rgba(136, 202, 208, 0.95);
  color: white;
  border-radius: 50%;
  font-size: 10px;
}

/* ===== PIN MODE ROW ===== */
.pin-mode-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8aa5b3;
  font-size: 10px;
}

.pin-mode-button {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-weight: 900;
}

.pin-mode-button.active {
  color: #07111d;
  background: linear-gradient(135deg, var(--gold), #00d084);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(0, 208, 132, .14);
}

.cancel-pin-button {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #ffd4d4;
  background: rgba(255, 95, 120, .13);
  cursor: pointer;
  font-weight: 900;
}

.cancel-pin-button:hover,
.cancel-pin-button:focus-visible {
  color: white;
  border-color: rgba(255, 132, 132, .55);
  background: rgba(255, 95, 120, .22);
}

/* ===== LAYER TOGGLES ===== */
.layer-toggles {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 620px;
}

.layer-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #bdd5df;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.layer-toggles input {
  accent-color: var(--sea);
  width: 12px;
  height: 12px;
  margin: 0;
}

.layer-note {
  margin-top: 8px;
  color: #80a0af;
  font-size: 10px;
  line-height: 1.4;
}

/* ===== LAYER BRIEF ===== */
.layer-brief {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(77, 184, 255, .06);
  color: #bdd5df;
  box-shadow: inset 0 0 18px rgba(77, 184, 255, .04);
  pointer-events: none;
}

.layer-brief.in-panel {
  position: static;
  pointer-events: auto;
}

.layer-brief strong {
  display: block;
  color: white;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.layer-brief span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.layer-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.layer-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  color: #dffaf6;
  background: rgba(93, 216, 200, .08);
  border: 1px solid rgba(93, 216, 200, .22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.layer-chip.muted {
  color: #8fa4b1;
  border-style: dashed;
}

.layer-chip.toggle-chip {
  cursor: pointer;
  margin: 0 4px 4px 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

.layer-chip.toggle-chip:hover {
  transform: translateY(-1px);
}

.layer-chip.toggle-chip.active {
  color: #04211c;
  background: #5dd8c8;
  border-color: #5dd8c8;
  box-shadow: 0 0 14px rgba(93, 216, 200, .35);
}

.layer-chip.toggle-chip.muted {
  background: rgba(143, 164, 177, .06);
}

/* ===== MAP MARKERS ===== */
.quake-marker {
  width: auto !important;
  height: auto !important;
}

.quake-dot {
  width: var(--quake-size, 16px);
  height: var(--quake-size, 16px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07111d;
  background: #ff8c42;
  border: 2px solid rgba(255, 255, 255, .9);
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(255, 140, 66, .14), 0 8px 18px rgba(0, 0, 0, .34);
}

.traffic-node {
  width: auto !important;
  height: auto !important;
}

.traffic-pill {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 95, 87, .88);
  color: white;
  border: 1px solid rgba(255, 255, 255, .46);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.plate-line {
  stroke-dasharray: 8 9;
  filter: drop-shadow(0 0 5px rgba(255, 200, 87, .36));
}

.wind-grid-marker {
  width: auto !important;
  height: auto !important;
  color: #a8f5ed;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}

.wind-arrow {
  font-size: 16px;
  line-height: 1;
  transform: rotate(var(--wind-rotation, 0deg));
  filter: drop-shadow(0 0 5px rgba(93, 216, 200, .65));
}

.wind-grid-marker small {
  display: block;
  margin-top: -1px;
  color: #d9fffb;
  font-size: 8px;
  font-weight: 900;
}

.zoom-blip-marker {
  width: auto !important;
  height: auto !important;
}

.zoom-blip-marker span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #dffaf6;
  background: rgba(93, 216, 200, .12);
  border: 1px solid rgba(93, 216, 200, .35);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 14px rgba(93, 216, 200, .16);
  transition: transform 0.15s ease;
}

.zoom-blip-marker span:hover {
  transform: scale(1.2);
}

.zoom-blip-marker.stormy span {
  background: linear-gradient(135deg, #ff6b35, #ff2d2d);
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 0 20px rgba(255, 107, 53, .4);
  animation: storm-pulse 1.2s ease-in-out infinite;
}

@keyframes storm-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 107, 53, .3);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(255, 107, 53, .5);
  }
}

.zoom-blip-marker.rainy span {
  background: linear-gradient(135deg, #4a90d9, #2c5aa0);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 16px rgba(74, 144, 217, .35);
}

.zoom-blip-marker.snowy span {
  background: linear-gradient(135deg, #e8f0fe, #b8d4e8);
  color: #1a2a3a;
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 0 16px rgba(200, 220, 240, .3);
}

.zoom-blip-marker.foggy span {
  background: rgba(180, 200, 210, .3);
  border-color: rgba(200, 220, 230, .4);
  box-shadow: 0 0 20px rgba(200, 220, 230, .15);
  animation: fog-float 3s ease-in-out infinite;
}

@keyframes fog-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.zoom-blip-marker.cafe span {
  background: rgba(139, 69, 19, 0.25);
  border-color: rgba(139, 69, 19, 0.5);
  box-shadow: 0 0 12px rgba(139, 69, 19, 0.15);
}

.zoom-blip-marker.park span {
  background: rgba(46, 139, 87, 0.25);
  border-color: rgba(46, 139, 87, 0.5);
  box-shadow: 0 0 12px rgba(46, 139, 87, 0.15);
  animation: park-sway 2s ease-in-out infinite;
}

@keyframes park-sway {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

.zoom-blip-marker.station span {
  background: rgba(70, 130, 180, 0.25);
  border-color: rgba(70, 130, 180, 0.5);
  box-shadow: 0 0 12px rgba(70, 130, 180, 0.15);
}

.zoom-blip-marker.shopping span {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
}

.zoom-blip-marker.culture span {
  background: rgba(148, 0, 211, 0.2);
  border-color: rgba(148, 0, 211, 0.4);
  box-shadow: 0 0 16px rgba(148, 0, 211, 0.12);
}

.zoom-blip-marker.nightlife span {
  background: rgba(75, 0, 130, 0.25);
  border-color: rgba(75, 0, 130, 0.5);
  box-shadow: 0 0 16px rgba(75, 0, 130, 0.15);
  animation: night-pulse 1.5s ease-in-out infinite;
}

@keyframes night-pulse {

  0%,
  100% {
    box-shadow: 0 0 16px rgba(75, 0, 130, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.3);
  }
}

.zoom-blip-marker.pulse span {
  background: rgba(255, 95, 151, 0.2);
  border-color: rgba(255, 95, 151, 0.4);
  box-shadow: 0 0 16px rgba(255, 95, 151, 0.15);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 16px rgba(255, 95, 151, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 95, 151, 0.3);
  }
}

.zoom-blip-marker.traffic span {
  background: rgba(255, 107, 53, 0.2);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.12);
}

.zoom-blip-marker.windy span {
  background: rgba(93, 216, 200, 0.15);
  border-color: rgba(93, 216, 200, 0.4);
  box-shadow: 0 0 16px rgba(93, 216, 200, 0.12);
  animation: wind-shake 1.2s ease-in-out infinite;
}

@keyframes wind-shake {

  0%,
  100% {
    transform: translateX(0) rotate(0);
  }

  25% {
    transform: translateX(3px) rotate(5deg);
  }

  75% {
    transform: translateX(-3px) rotate(-5deg);
  }
}

.zoom-blip-marker.quake span {
  background: rgba(255, 140, 66, 0.25);
  border-color: rgba(255, 140, 66, 0.5);
  box-shadow: 0 0 20px rgba(255, 140, 66, 0.2);
  animation: quake-shake 0.3s ease-in-out infinite alternate;
}

@keyframes quake-shake {
  0% {
    transform: translateX(-2px) translateY(-2px);
  }

  100% {
    transform: translateX(2px) translateY(2px);
  }
}

.zoom-blip-marker.plane-dot span {
  background: rgba(155, 213, 255, 0.2);
  border-color: rgba(155, 213, 255, 0.5);
  box-shadow: 0 0 16px rgba(155, 213, 255, 0.15);
}

.zoom-blip-marker.marine span {
  background: rgba(0, 150, 200, 0.15);
  border-color: rgba(0, 150, 200, 0.3);
  box-shadow: 0 0 16px rgba(0, 150, 200, 0.1);
  animation: marine-wave 2.5s ease-in-out infinite;
}

@keyframes marine-wave {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

.weather-station {
  width: 20px !important;
  height: 20px !important;
}

.weather-station .station-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: rgba(99, 178, 189, .92);
  color: #061a29;
  font-size: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.city-weather-badge {
  width: auto !important;
  height: auto !important;
}

.city-weather-badge .city-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  background: rgba(7, 25, 39, .88);
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .32);
}

.city-weather-badge .city-badge small {
  color: #88cad0;
  font-size: 9px;
  font-weight: 800;
}

.drop-emoji {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.drop-marker {
  width: 100% !important;
}

.aircraft-marker {
  width: auto !important;
  height: auto !important;
}

.aircraft-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #06111d;
  background: #9bd5ff;
  border: 2px solid white;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
  transform: rotate(var(--aircraft-heading, 0deg));
}

.pulse-marker {
  width: auto !important;
  height: auto !important;
}

.pulse-orb {
  width: var(--pulse-size, 24px);
  height: var(--pulse-size, 24px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle, rgba(255, 140, 66, .82), rgba(255, 47, 125, .82));
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 16px rgba(255, 95, 151, .48), 0 0 0 0 rgba(255, 95, 151, .46);
  animation: pulse-orb 1.4s ease-out infinite;
}

@keyframes pulse-orb {
  70% {
    box-shadow: 0 0 0 18px rgba(255, 95, 151, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 151, 0);
  }
}

.my-location-marker {
  width: 26px !important;
  height: 26px !important;
  position: relative;
}

.my-location-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #2f9bff;
  border: 2px solid #eaf6ff;
  box-shadow: 0 0 10px rgba(47, 155, 255, .75), 0 4px 10px rgba(0, 0, 0, .35);
}

.my-location-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(47, 155, 255, .55);
  animation: my-location-ping 1.8s ease-out infinite;
}

@keyframes my-location-ping {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ===== STORM ALERTS ===== */
.storm-alerts {
  position: absolute;
  z-index: 650;
  top: 18px;
  left: 50%;
  width: min(330px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.storm-alerts[hidden] {
  display: none;
}

.storm-alert {
  padding: 9px 11px;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: rgba(7, 25, 39, .92);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
}

.storm-alert strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.storm-alert span {
  display: block;
  color: #c0d9e9;
  font-size: 10px;
  line-height: 1.35;
}

/* ===== PLANE ===== */
.plane {
  position: absolute;
  z-index: 500;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transition: transform .18s, opacity .25s ease;
  pointer-events: none;
  left: 0;
  top: 0;
  opacity: 0;
}

.plane.visible {
  opacity: 1;
}

.plane span {
  color: white;
  font-size: 48px;
  line-height: 1;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 4px rgba(6, 25, 41, .4));
}

.plane i {
  position: absolute;
  right: 48px;
  width: 58px;
  height: 10px;
  opacity: .55;
  background: linear-gradient(90deg, transparent, white);
  filter: blur(4px);
}

.plane.boost span {
  transform: rotate(8deg) scale(1.12);
}

.plane.paused span {
  animation: idle 1s ease-in-out infinite alternate;
}

@keyframes idle {
  to {
    transform: rotate(8deg) translateY(-4px);
  }
}

/* ===== WEATHER PARTICLES ===== */
.weather-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 410;
  overflow: hidden;
}

body.startup-loading .weather-particles {
  display: none;
}

.particle {
  position: absolute;
  font-size: 18px;
  opacity: 0.72;
  filter: drop-shadow(0 0 8px rgba(77, 184, 255, .45));
}

.particle.rain {
  animation: fall-rain 0.8s linear forwards;
}

.particle.snow {
  animation: fall-snow 1.2s linear forwards;
  opacity: 0.5;
}

.particle.fog {
  animation: float-fog 2.8s ease-in-out forwards;
  opacity: 0.4;
}

@keyframes fall-rain {
  to {
    transform: translateY(100vh) translateX(-20px);
    opacity: 0;
  }
}

@keyframes fall-snow {
  to {
    transform: translateY(100vh) translateX(40px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes float-fog {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(20px) translateX(10px);
    opacity: 0.25;
  }

  100% {
    transform: translateY(40px) translateX(20px);
    opacity: 0;
  }
}

/* ===== TOAST ===== */
.toast {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 16px;
  padding: 10px 16px;
  color: white;
  background: var(--night);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  transform: translate(-50%, -20px);
  opacity: 0;
  transition: .25s;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ===== LEAFLET OVERRIDES ===== */
.leaflet-control {
  background: transparent !important;
}

.leaflet-control a {
  color: #d7f7ff !important;
}

.leaflet-control-attribution {
  background: rgba(30, 30, 30, 0.7) !important;
  font-size: 10px !important;
}

.leaflet-top.leaflet-left {
  left: unset !important;
  right: 500px;
  bottom: 30px !important;
  top: unset !important;
  z-index: 640;
}

.leaflet-control-zoom {
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .36), inset 0 0 14px rgba(77, 184, 255, .05);
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  width: 34px !important;
  height: 34px !important;
  line-height: 31px !important;
  background: linear-gradient(145deg, rgba(2, 9, 14, .92), rgba(6, 22, 32, .82)) !important;
  color: #d7f7ff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(77, 184, 255, .18) !important;
  font-weight: 900;
}

.leaflet-control-zoom-out {
  border-bottom: 0 !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background: rgba(77, 184, 255, .16) !important;
  color: white !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: #d7f7ff;
  background: linear-gradient(145deg, rgba(2, 9, 14, .96), rgba(6, 22, 32, .9)) !important;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), inset 0 0 18px rgba(77, 184, 255, .05);
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: #d7f7ff;
  font-size: 12px;
  line-height: 1.4;
}

.leaflet-popup-content strong {
  color: white;
}

.leaflet-popup-content small,
.leaflet-popup-content .popup-time {
  color: #91aab8;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #b8ccd7;
}

.leaflet-control-layers {
  display: none !important;
}

/* ===== CONTROL DECK ===== */
.control-deck {
  position: absolute;
  right: 22px;
  bottom: 34px;
  z-index: 520;
  width: min(430px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(145deg, rgba(2, 10, 16, .94), rgba(3, 24, 36, .88));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .46), inset 0 0 22px rgba(77, 184, 255, .055);
  backdrop-filter: blur(18px);
  transition: width .25s ease, padding .25s ease, transform .25s ease;
}

.deck-toggle {
  position: absolute;
  right: 12px;
  top: -34px;
  z-index: 20;
  padding: 8px 12px;
  color: #dffaf6;
  background: rgba(7, 17, 29, .92);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.mission-copy {
  display: block;
  padding-right: 138px;
}

.eyebrow {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.mission-copy p {
  margin: 0;
  color: #8aa5b3;
  font-size: 11px;
  line-height: 1.5;
}

.mood-toolbar {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 0;
}

.mood-picker-toggle {
  padding: 9px 12px;
  color: #07111d;
  background: #dffaf6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.emotion-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(430px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(10, minmax(34px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 12px;
  overflow: visible;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: radial-gradient(circle at 22% 0%, rgba(77, 184, 255, .18), transparent 32%), linear-gradient(145deg, rgba(2, 9, 14, .98), rgba(6, 22, 32, .94));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .56), 0 0 0 1px rgba(89, 214, 255, .08), inset 0 0 24px rgba(77, 184, 255, .045);
  backdrop-filter: blur(18px);
}

.emotion-panel:not(.picker-open) .emotion-picker {
  display: none;
}

.emotion {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 6px 3px;
  color: #bfd3dc;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0;
  font-weight: 800;
  transition: .18s;
}

.emotion span {
  display: block;
  margin-bottom: 0;
  font-size: 22px;
  filter: grayscale(.25);
}

.emotion kbd {
  position: absolute;
  right: 3px;
  top: 3px;
  color: #a4aaa9;
  font-size: 7px;
}

.emotion:hover {
  transform: translateY(-2px);
}

.emotion.active {
  color: white;
  border-color: rgba(255, 200, 87, .8);
  background: rgba(255, 200, 87, .12);
  box-shadow: 0 0 0 2px rgba(255, 200, 87, .12);
}

.emotion.active span {
  filter: none;
}

.drop-button {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 12px;
  color: #07111d;
  background: linear-gradient(135deg, var(--gold), #ff7b72);
  border: 0;
  border-bottom: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: .8px;
  box-shadow: 0 12px 24px rgba(255, 95, 87, .18);
}

.emotion-panel .drop-button {
  width: 54px;
  min-height: 38px;
  padding: 8px;
  gap: 0;
  border-radius: 12px;
  font-size: 18px;
}

.drop-button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.drop-button small {
  display: none;
}

.drop-button.disabled {
  opacity: 0.55;
  filter: grayscale(.25);
  cursor: default;
}

.drop-button.cancel-mode {
  color: #fff;
  background: linear-gradient(135deg, #ff5f57, #7b2cff);
  box-shadow: 0 12px 24px rgba(255, 95, 87, .22);
}

.drop-button.cancel-mode small {
  color: #fff;
  background: rgba(0, 0, 0, .2);
}

.drop-composer {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) 46px;
  gap: 8px;
  align-items: stretch;
}

.drop-composer .cancel-pin-button {
  display: none;
}

.drop-composer.is-pinning {
  grid-template-columns: auto auto minmax(130px, 1fr) 46px;
}

.drop-composer.is-pinning .cancel-pin-button {
  display: inline-flex;
}

.drop-composer input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  color: white;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  outline: 0;
}

.drop-composer input:focus {
  border-color: rgba(93, 216, 200, .58);
  box-shadow: 0 0 0 3px rgba(93, 216, 200, .1);
}

.drop-composer input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.drop-composer .pin-mode-button,
.drop-composer .cancel-pin-button {
  min-width: 96px;
  padding: 0 14px;
  border-radius: 12px;
}

.drop-composer {
  position: relative;
}

.composer-status {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 204, 102, .2), rgba(255, 138, 66, .14));
  border: 1px solid rgba(255, 204, 102, .42);
  color: #ffd88a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
  animation: composer-status-pulse 1.6s ease-in-out infinite;
}

.composer-status[hidden] {
  display: none;
}

@keyframes composer-status-pulse {

  0%,
  100% {
    opacity: .82;
  }

  50% {
    opacity: 1;
  }
}

.deck-pin {
  min-width: 104px;
  justify-content: center;
  border-color: rgba(255, 183, 77, .45);
  background: linear-gradient(135deg, rgba(255, 183, 77, .22), rgba(255, 94, 120, .14));
  color: #fff5d8;
  box-shadow: 0 8px 20px rgba(255, 183, 77, .1);
}

.deck-pin.active {
  color: #081622;
  background: linear-gradient(135deg, #ffbf5b, #1dd6b4);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(29, 214, 180, .13), 0 16px 32px rgba(29, 214, 180, .16);
}

/* ===== PAN PAD ===== */
.pan-controls {
  display: none !important;
}

.pan-pad {
  margin-top: 10px;
  display: grid !important;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  width: max-content;
  gap: 5px;
}

.pan-pad #panUp {
  grid-column: 2;
  grid-row: 1;
}

.pan-pad #panLeftAlt {
  grid-column: 1;
  grid-row: 2;
}

.pan-pad #panHome {
  grid-column: 2;
  grid-row: 2;
}

.pan-pad #panRightAlt {
  grid-column: 3;
  grid-row: 2;
}

.pan-pad #panDown {
  grid-column: 2;
  grid-row: 3;
}

/* ===== HUD PANELS ===== */
.map-guide,
.pulse-feed,
.pulse-modal,
.happenings-feed,
.api-feeds-panel {
  position: absolute;
  z-index: 660;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(2, 9, 14, .92), rgba(6, 22, 32, .82));
  color: #d7f7ff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .46), inset 0 0 24px rgba(77, 184, 255, .045);
  backdrop-filter: blur(18px);
  transition: width .2s ease, padding .2s ease, transform .2s ease;
}

.map-guide {
  left: 18px;
  bottom: 84px;
  width: 280px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 14px;
}

.pulse-feed {
  right: 18px;
  top: 30px;
  width: min(360px, calc(50% - 28px));
  padding: 22px 16px 16px;
  transition: width .2s ease, padding .2s ease, transform .2s ease;
}

.happenings-feed {
  left: 18px;
  top: 36px;
  width: 340px;
  max-height: calc(100vh - 220px);
  padding: 22px 16px 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .08em;
}

.panel-head.subhead {
  margin-top: 10px;
  margin-bottom: 10px;
  opacity: .82;
}

.ghost-button,
.pulse-tabs button {
  color: #8fa4b1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.legend-list {
  display: grid;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
}

.legend-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .05);
}

.legend-dot.mylocation {
  background: #2f9bff;
  box-shadow: 0 0 0 5px rgba(47, 155, 255, .18);
}

.legend-dot.mood {
  background: #ff5f97;
}

.legend-dot.unheard {
  background: #00d084;
}

.legend-dot.weather {
  background: var(--sea);
}

.legend-dot.quake {
  background: #ff8c42;
}

.legend-dot.traffic {
  background: var(--red);
}

.legend-dot.plane-dot {
  background: #9bd5ff;
}

.legend-line {
  width: 18px;
  height: 0;
  display: inline-block;
  border-top: 2px dashed var(--gold);
}

.map-guide small {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #879ca9;
  font-size: 10px;
  line-height: 1.45;
}

/* ===== PULSE FEED ===== */
.pulse-feed input,
.pulse-composer input,
.pulse-modal textarea {
  width: 100%;
  color: white;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  outline: 0;
}

.pulse-feed input {
  padding: 12px 13px;
  font-size: 12px;
  border-radius: 12px;
}

.pulse-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pulse-tabs button {
  padding: 7px 9px;
  border-radius: 999px;
}

.pulse-tabs button:hover,
.pulse-tabs button:focus-visible {
  color: white;
  outline: 1px solid rgba(255, 255, 255, .55);
  outline-offset: 3px;
}

.pulse-tabs .active {
  color: #07111d;
  background: #dffaf6;
  border-bottom: 0;
}

.pulse-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}

.pulse-item {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #dcebf3;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.pulse-item:hover,
.pulse-item:focus-within {
  border-color: rgba(93, 216, 200, .55);
  background: rgba(93, 216, 200, .1);
}

.pulse-open {
  flex: 1;
  min-width: 0;
  padding: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.pulse-open strong {
  display: block;
  color: white;
  font-size: 13px;
  line-height: 1.35;
}

.pulse-open small {
  display: block;
  margin-top: 7px;
  color: #8fa4b1;
  font-size: 10px;
  text-transform: uppercase;
}

.pulse-heart {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dcebf3;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.pulse-heart:hover {
  transform: translateY(-1px);
}

.pulse-heart.active {
  background: rgba(255, 95, 151, .16);
  border-color: rgba(255, 95, 151, .5);
  color: #ff8fb3;
}

.pulse-heart span {
  font-variant-numeric: tabular-nums;
}

.pulse-empty {
  padding: 16px;
  color: #8fa4b1;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
}

/* ===== PULSE COMPOSER ===== */
.pulse-composer {
  position: absolute;
  z-index: 670;
  left: 50%;
  bottom: 22px;
  width: min(520px, calc(100% - 36px));
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(9, 13, 20, .9);
  border: 1px solid var(--glass-border);
  transform: translateX(-50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .4);
}

.pulse-composer.map-composer {
  display: none;
}

.pulse-composer input {
  padding: 11px 13px;
}

.pulse-composer button,
.pulse-modal button:not(.pulse-close):not(.pulse-heart) {
  color: #07111d;
  background: linear-gradient(135deg, #2f7cff, #00d084);
  border: 0;
  border-radius: 10px;
  font-weight: 950;
  cursor: pointer;
}

.pulse-composer button {
  min-width: 86px;
}

/* ===== PULSE MODAL ===== */
.pulse-modal {
  left: 50%;
  top: 50%;
  width: min(430px, calc(100% - 32px));
  padding: 18px;
  transform: translate(-50%, -50%);
  cursor: grab;
}

.pulse-modal.opening {
  animation: modal-pop .2s ease-out both;
}

.pulse-modal.dragging {
  cursor: grabbing;
  user-select: none;
}

.pulse-modal[hidden] {
  display: none;
}

.pulse-close {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #9aaeba;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pulse-modal small {
  color: #879ca9;
  font-size: 9px;
  letter-spacing: .08em;
}

.pulse-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.pulse-modal-head .pulse-heart {
  margin-right: 0;
}

.pulse-modal p {
  margin: 16px 0;
  padding: 6px 10px;
  color: white;
  font-size: 15px;
  line-height: 1.45;
  font-style: normal;
  background: linear-gradient(45deg, #1331338f, #050f15);
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 16px 10px 16px 10px;
}

.pulse-modal textarea {
  width: calc(100% - 72px);
  min-height: 50px;
  padding: 6px 12px;
  resize: vertical;
  border-radius: 14px;
  font-size: 13px;
}

.pulse-modal button:not(.pulse-close):not(.pulse-heart) {
  width: 62px;
  min-height: 50px;
  margin: 0;
  padding: 10px;
  float: right;
  border-radius: 16px 10px
}

.pulse-replies {
  margin: 10px 0 14px;
  display: grid;
  gap: 8px;
  color: #d7e4eb;
  font-size: 12px;
}

.pulse-replies span {
  width: fit-content;
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 13px 13px 4px 13px;
  justify-self: end;
  background: rgba(93, 216, 200, .16);
  border: 1px solid rgba(93, 216, 200, .2);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== HAPPENINGS FEED ===== */
.happening-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.happening-kpis span {
  padding: 9px 10px;
  border: 1px solid rgba(93, 216, 200, .18);
  border-radius: 12px;
  background: rgba(93, 216, 200, .06);
}

.happening-kpis small {
  display: block;
  color: #86a4b5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.happening-kpis strong {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 18px;
  line-height: 1;
}

.happening-chart {
  min-height: 86px;
  margin-bottom: 12px;
  padding: 8px 0 3px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.happening-bars {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  align-items: end;
}

.happening-bar {
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--bar-color, #5dd8c8), rgba(93, 216, 200, .18));
  box-shadow: 0 0 16px rgba(93, 216, 200, .18);
  position: relative;
}

.happening-bar::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -15px;
  color: #7f9baa;
  font-size: 8px;
  font-weight: 900;
  transform: translateX(-50%);
}

.happening-list {
  display: grid;
  gap: 8px;
  max-height: 178px;
  overflow: auto;
  padding: 2px 8px 2px 2px;
}

.happening-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.happening-item i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 204, 102, .12);
  font-style: normal;
}

.happening-item strong {
  display: block;
  color: white;
  font-size: 11px;
  line-height: 1.25;
}

.happening-item small {
  display: block;
  margin-top: 4px;
  color: #8fa4b1;
  font-size: 9px;
  text-transform: uppercase;
}

.happening-item em {
  color: #5dd8c8;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== HUD COLLAPSE PATTERNS ===== */
.map-guide.collapsed,
.happenings-feed.collapsed,
.pulse-feed.collapsed,
.control-deck.collapsed {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.map-guide.collapsed {
  top: auto;
  bottom: 82px;
  left: unset;
}

.happenings-feed.collapsed {
  left: 0;
  top: 60px;
  bottom: auto;
}

.pulse-feed.collapsed {
  right: 0;
  top: 118px;
  bottom: auto;
}

.control-deck.collapsed {
  right: 0;
  top: auto;
  bottom: 138px;
}

.map-guide.collapsed .panel-head,
.happenings-feed.collapsed .panel-head,
.pulse-feed.collapsed .panel-head {
  min-height: 116px;
  min-width: 46px;
  margin: 0;
  padding: 12px 9px;
  gap: 9px;
  writing-mode: vertical-rl;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(2, 9, 14, .96), rgba(6, 22, 32, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 0 0 22px rgba(77, 184, 255, .05);
  backdrop-filter: blur(16px);
}

.map-guide.collapsed .panel-head,
.happenings-feed.collapsed .panel-head {
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.pulse-feed.collapsed .panel-head {
  border-right: 0;
  border-radius: 16px 0 0 16px;
}

.map-guide.collapsed .panel-head strong,
.happenings-feed.collapsed .panel-head strong,
.pulse-feed.collapsed .panel-head strong {
  letter-spacing: .16em;
  font-size: 10px;
}

.map-guide.collapsed .ghost-button,
.happenings-feed.collapsed .ghost-button,
.pulse-feed.collapsed .ghost-button {
  writing-mode: horizontal-tb;
  font-size: 0;
}

.map-guide.collapsed .ghost-button::after,
.happenings-feed.collapsed .ghost-button::after {
  content: "▶";
  font-size: 13px;
}

.pulse-feed.collapsed .ghost-button::after,
.api-feeds-panel.collapsed .ghost-button::after {
  content: "◀";
  font-size: 13px;
}

.pulse-feed.collapsed #pulseCount,
.happenings-feed.collapsed #happeningCount,
.api-feeds-panel.collapsed #apiFeedCount {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 4px 0;
  color: #06111a;
  background: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 204, 102, .45);
}

.pulse-feed:not(.collapsed) #pulseCount,
.api-feeds-panel:not(.collapsed) #apiFeedCount
 {
  position: absolute;
  left: -13px;
  top: -13px;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  color: #06111a;
  background: linear-gradient(135deg, var(--gold), #5dd8c8);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(2, 9, 14, .9), 0 0 18px rgba(93, 216, 200, .35);
}

.happenings-feed:not(.collapsed) #happeningCount {
  position: absolute;
  left: -13px;
  top: -13px;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 33px;
  padding: 0 8px;
  color: #06111a;
  background: linear-gradient(135deg, var(--gold), #5dd8c8);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(2, 9, 14, .9), 0 0 18px rgba(93, 216, 200, .35);
}

.map-guide.collapsed .legend-list,
.map-guide.collapsed small,
.map-guide.collapsed .layer-brief,
.map-guide.collapsed .subhead,
.happenings-feed.collapsed .happening-kpis,
.happenings-feed.collapsed .happening-chart,
.happenings-feed.collapsed .happening-list,
.pulse-feed.collapsed input,
.pulse-feed.collapsed .pulse-tabs,
.pulse-feed.collapsed .pulse-list {
  display: none;
}

.control-deck.collapsed .deck-toggle {
  min-height: 116px;
  min-width: 46px;
  padding: 12px 9px;
  writing-mode: vertical-rl;
  border: 1px solid var(--glass-border);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(145deg, rgba(2, 9, 14, .96), rgba(6, 22, 32, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 0 0 22px rgba(77, 184, 255, .05);
  backdrop-filter: blur(16px);
}

.control-deck.collapsed .mission-copy,
.control-deck.collapsed .emotion-panel,
.control-deck.collapsed .navigation-panel {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.control-deck.collapsed {
  right: 0;
  bottom: 126px;
  width: 58px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--glass-border);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(145deg, rgba(2, 9, 14, .92), rgba(6, 22, 32, .82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .4), inset 0 0 22px rgba(77, 184, 255, .045);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.control-deck.collapsed .deck-toggle {
  position: static;
  width: 100%;
  padding: 0;
  color: #d7f7ff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
}

body.left-hud-collapsed .leaflet-top.leaflet-left {
  left: 72px;
}

/* ===== EMOTION TOOLTIP ===== */
.emotion-tooltip {
  background: rgba(8, 18, 30, 0.96);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 8px 10px;
  color: #c0d9e9;
  font-size: 11px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.tooltip-content {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.tooltip-emoji {
  font-size: 24px;
  line-height: 1;
}

.tooltip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tooltip-label {
  font-weight: 700;
  color: white;
}

.tooltip-stats {
  color: var(--gold);
  font-size: 10px;
}

.tooltip-note {
  color: #88cad0;
  font-size: 9px;
  font-style: italic;
}

/* ===== TIME DISPLAY ===== */
.time-stat-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-stat-container small {
  display: block;
  color: #88a8ba;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.time-stat-container strong {
  display: block;
  color: white;
  font-size: 14px;
}

.time-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #88a8ba;
  cursor: pointer;
  font-size: 9px;
  padding: 2px 6px;
  transition: all 0.2s ease;
}

.time-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.time-toggle-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.time-expanded {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  width: 320px;
  padding: 14px 16px;
  margin-top: 6px;
  background: linear-gradient(145deg, rgba(2, 9, 14, .96), rgba(6, 22, 32, .92));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46);
  backdrop-filter: blur(18px);
}

.time-expanded.hidden {
  display: none;
}

.time-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.time-detail .time-label {
  color: #88a8ba;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-detail .time-value {
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.time-detail .time-sub {
  color: #6a8a9a;
  font-size: 9px;
}

/* ===== FLOATING MY LOCATION BUTTON ===== */
.my-location-float {
  position: absolute;
  right:calc(100% - 50%);
  bottom: 60px;
  z-index: 650;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(2, 9, 14, 0.92);
  border: 2px solid rgba(77, 184, 255, 0.35);
  color: #4db8ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(77, 184, 255, 0.08);
  transition: all 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.my-location-float:hover {
  transform: scale(1.08);
  background: rgba(77, 184, 255, 0.18);
  border-color: rgba(77, 184, 255, 0.7);
  box-shadow: 0 4px 30px rgba(77, 184, 255, 0.25);
}

.my-location-float:active {
  transform: scale(0.90);
}

.my-location-float svg {
  color: #4db8ff;
  width: 26px;
  height: 26px;
  transition: color 0.25s ease;
}

.my-location-float:hover svg {
  color: #7ccbff;
}

.my-location-float .pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(77, 184, 255, 0.3);
  animation: location-pulse-ring 2s ease-out forwards;
  pointer-events: none;
}

@keyframes location-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
    border-width: 2px;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
    border-width: 1px;
  }
}

.my-location-float .loc-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f9bff;
  border: 2px solid rgba(2, 9, 14, 0.9);
  box-shadow: 0 0 12px rgba(47, 155, 255, 0.5);
  transition: all 0.3s ease;
}

.my-location-float .loc-dot.hidden {
  opacity: 0;
  transform: scale(0.5);
}

/* ===== MISC UI ===== */
.navigation-panel {
  display: none;
  text-align: left;
}

.navigation-panel p {
  margin: 0;
  color: #61717b;
  font-size: 11px;
  line-height: 1.5;
}

.stats-mini {
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}

.stats-mini strong {
  color: var(--gold);
  display: block;
  font-size: 16px;
}

.map-hint {
  color: #88cad0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.event-flash {
  position: absolute;
  inset: 0;
  z-index: 620;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 200, 87, .24), transparent 42%);
  transition: opacity .25s ease;
}

.event-flash.show {
  opacity: 1;
}

.event-pulse-circle {
  animation: map-event-pulse 1.6s ease-out forwards;
}

@keyframes map-event-pulse {
  0% {
    stroke-opacity: .85;
    fill-opacity: .12;
    stroke-width: 2;
  }

  100% {
    stroke-opacity: 0;
    fill-opacity: 0;
    stroke-width: 7;
  }
}

.world-grid,
.region,
.route-line,
.map-key,
.map-sidebar {
  display: none;
}

.steering-panel,
.steering-grid {
  display: none;
}

/* ===== FOOTER ===== */
footer {
  min-height: 26px;
  padding: 5px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(154, 176, 189, .64);
  background: rgba(3, 8, 13, .82);
  font-size: 8px;
  letter-spacing: .7px;
}

footer>span {
  color: var(--gold);
  font-weight: 900;
}

footer p {
  margin: 0;
}

footer strong {
  color: white;
}

footer button {
  margin-left: auto;
  color: #9ab0bd;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .game-shell {
    grid-template-rows: auto minmax(390px, 1fr) auto auto;
  }

  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .flight-stats span:nth-child(3),
  .flight-stats span:nth-child(4) {
    display: none;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .control-deck {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mission-copy {
    text-align: center;
  }

  .steering-panel {
    display: none;
  }

  .hud-overlay {
    top: auto;
    bottom: 10px;
    left: 10px;
  }

  .layer-brief {
    right: 10px;
    bottom: 10px;
    width: min(260px, calc(100% - 20px));
  }

  .map-guide,
  .pulse-feed {
    transform: scale(.92);
    transform-origin: top left;
  }

  .pulse-feed {
    transform-origin: top right;
  }

  .pulse-composer {
    bottom: 10px;
  }

  .thermal-hud {
    min-width: 46px;
    padding: 6px;
  }

  .thermal-hud div {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .flight-stats {
    gap: 10px;
  }

  .flight-stats span:nth-child(2),
  .flight-stats span:nth-child(6) {
    display: none;
  }

  .emotion-picker {
    gap: 4px;
  }

  .emotion {
    min-width: 0;
    font-size: 0;
  }

  .emotion span {
    font-size: 24px;
  }

  .region-label {
    display: none;
  }

  .layer-brief {
    display: none;
  }

  .drop-composer {
    flex-direction: column;
  }

  .deck-pin {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* ===== API FEEDS PANEL ===== */

.apiFeedsPanel:not(.collapsed) #apiFeedCount{
  position: absolute;
  left: -13px;
  top: -13px;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  color: #06111a;
  background: linear-gradient(135deg, var(--gold), #5dd8c8);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(2, 9, 14, .9), 0 0 18px rgba(93, 216, 200, .35);
}

.api-feeds-panel {
  right: 18px;
  bottom: 180px;
  width: min(360px, calc(50% - 28px));
  padding: 22px 16px 16px;
  transition: width .2s ease, padding .2s ease, transform .2s ease;
}

.api-feeds-panel.collapsed {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.api-feeds-panel.collapsed .panel-head {
  min-height: 116px;
  min-width: 46px;
  margin: 0;
  padding: 12px 9px;
  gap: 9px;
  writing-mode: vertical-rl;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(145deg, rgba(2, 9, 14, .96), rgba(6, 22, 32, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 0 0 22px rgba(77, 184, 255, .05);
  backdrop-filter: blur(16px);
}

.api-feeds-panel.collapsed .api-feed-status,
.api-feeds-panel.collapsed .api-feed-list,
.api-feeds-panel.collapsed .api-feed-actions {
  display: none;
}

.api-feed-status {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.feed-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-badge.online {
  border-color: rgba(93, 216, 200, 0.4);
  color: #5dd8c8;
}

.feed-badge.offline {
  border-color: rgba(255, 95, 87, 0.3);
  color: #ff5f57;
}

.api-feed-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding-right: 4px;
}

.feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.feed-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-content strong {
  display: block;
  color: white;
  font-size: 11px;
  line-height: 1.3;
}

.feed-content small {
  display: block;
  margin-top: 3px;
  color: #8fa4b1;
  font-size: 9px;
}

.feed-link {
  display: inline-block;
  margin-top: 4px;
  color: #4db8ff;
  font-size: 9px;
  text-decoration: none;
}

.feed-link:hover {
  text-decoration: underline;
}

.feed-empty,
.feed-loading,
.feed-error {
  padding: 20px;
  text-align: center;
  color: #8fa4b1;
  font-size: 11px;
}

.feed-error {
  color: #ff5f57;
}

.feed-refresh-btn {
  width: 100%;
  padding: 8px;
  color: #d7f7ff;
  background: rgba(77, 184, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.feed-refresh-btn:hover {
  background: rgba(77, 184, 255, 0.2);
  border-color: rgba(77, 184, 255, 0.4);
}

.feed-item.weather .feed-icon {
  color: #4db8ff;
}

.feed-item.news .feed-icon {
  color: #ffcc66;
}

.feed-item.forecast .feed-icon {
  color: #5dd8c8;
}

.feed-item.alert .feed-icon {
  color: #ff5f57;
}

.feed-item.quake .feed-icon {
  color: #ff8c42;
}