:root {
  --bg: #0b1220;
  --bg2: #101a30;
  --text: #eef4ff;
  --muted: #b6c3dc;
  --card: rgba(9, 16, 30, 0.72);
  --card-strong: rgba(12, 21, 39, 0.88);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(125, 211, 252, 0.24);
  --accent: #7dd3fc;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.30);
}

.radar-wrap {
  padding: 14px;
}

.radar-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.tb-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 54px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.tb-head {
  min-width: 0;
}

.tb-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: var(--text);
}

.tb-head p {
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 62ch;
}

.tb-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.live {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
}

.dot.ok {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.dot.bad {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.controls {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(15, 26, 47, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  border-color: rgba(125, 211, 252, 0.35);
}

#timeSlider {
  width: 100%;
  min-width: 0;
}

.meta {
  min-width: 170px;
  text-align: right;
}

#timeLabel {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.muted,
#sourceLabel {
  color: var(--muted);
  font-size: 12px;
}

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.tg {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.tg input {
  accent-color: var(--accent);
}

.tg-risk {
  background: rgba(124, 58, 237, 0.08);
}

.opabox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

#tempOpacity,
#cloudsOpacity {
  width: 128px;
}

.radar-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 14px;
}

.radar-mapwrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.radar-map {
  height: clamp(440px, 72vh, 860px);
  min-height: 440px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0d1425;
}

.map-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-clickHint {
  position: absolute;
  top: 14px;
  left: 82px;
  z-index: 450;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 16, 32, 0.88), rgba(13, 24, 44, 0.84));
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
  color: #f8fafc;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.map-clickHint strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.map-clickHint span {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.92);
}

.radar-side {
  width: 360px;
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.side-card h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.leg-note {
  margin: 10px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.swatch.rain {
  background: #2578ff;
}

.swatch.snow {
  background: #ec4899;
}

.swatch.temp {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 35%, #22c55e 58%, #f59e0b 78%, #ef4444 100%);
}

.swatch.clouds {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.48) 100%);
}

.swatch.lightning {
  background: radial-gradient(circle at 50% 50%, #fff8b8 0%, #ffd64a 58%, #f59e0b 100%);
  border-radius: 50%;
}

.swatch.storm-helper {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.18) 0%, rgba(245, 158, 11, 0.48) 100%);
  overflow: visible;
}

.swatch.storm-helper__bolt {
  position: absolute;
  inset: -3px;
  display: block;
}

.swatch.storm-helper__bolt::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  clip-path: polygon(56% 0%, 20% 50%, 44% 50%, 32% 100%, 84% 38%, 58% 38%);
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.75));
  animation: stormBoltFlash 1.5s infinite ease-in-out;
}

.swatch.risk1 {
  background: #ca8a04;
}

.swatch.risk2 {
  background: #ea580c;
}

.swatch.risk3 {
  background: #b91c1c;
}

.legend-cloudbar,
.tempbar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.legend-cloudbar {
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.62) 100%);
}

.cloud-labels,
.temp-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.tempbar {
  margin-top: 14px;
  background: linear-gradient(90deg,
    #2563eb 0%,
    #1d4ed8 18%,
    #7c3aed 34%,
    #22c55e 52%,
    #eab308 70%,
    #f97316 84%,
    #ef4444 100%
  );
}

.risk-help {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.risk-help__title {
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.risk-help__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.risk-help__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Popup: ryzyko burz */
.risk-leaflet-popup .leaflet-popup-content {
  margin: 12px 14px;
}

.risk-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
  background: #ffffff;
}

.risk-leaflet-popup .leaflet-popup-tip {
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
}

.risk-leaflet-popup .leaflet-popup-close-button {
  color: #0f172a !important;
}

.risk-pop {
  width: clamp(320px, 46vw, 560px);
  min-width: 320px;
  max-width: 560px;
  max-height: min(60vh, 460px);
  color: #0b1220;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.risk-pop::-webkit-scrollbar {
  width: 8px;
}

.risk-pop::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.risk-pop::-webkit-scrollbar-track {
  background: transparent;
}

.risk-pop__bar {
  height: 6px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #334155;
}

.risk-pop__bar.risk1 {
  background: #b45309;
}

.risk-pop__bar.risk2 {
  background: #c2410c;
}

.risk-pop__bar.risk3 {
  background: #991b1b;
}

.risk-pop__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.risk-pop__icon {
  min-width: 64px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.risk-pop__titles {
  line-height: 1.1;
}

.risk-pop__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.risk-pop__subtitle {
  font-size: 18px;
  font-weight: 900;
  color: #0b1220;
}

.risk-pop__badge {
  margin-left: auto;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(2, 6, 23, 0.04);
}

.risk-pop__badge.risk1 {
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.25);
}

.risk-pop__badge.risk2 {
  background: rgba(194, 65, 12, 0.12);
  border-color: rgba(194, 65, 12, 0.25);
}

.risk-pop__badge.risk3 {
  background: rgba(153, 27, 27, 0.12);
  border-color: rgba(153, 27, 27, 0.25);
}

.risk-pop__metaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.risk-pop__metaTag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #7c2d12;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 237, 213, 0.98));
  border: 1px solid rgba(251, 146, 60, 0.28);
}

.risk-pop__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, 0.9fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.risk-pop__main,
.risk-pop__side {
  min-width: 0;
}

.risk-pop__side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.risk-pop__scale {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px 0;
}

.risk-pop__scaleTitle {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  opacity: 0.85;
}

.risk-pop__scaleBar {
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f6f8;
}

.risk-pop__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
  min-width: 72px;
}

.risk-pop__seg.on {
  color: #111;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.25);
}

.risk-pop__seg.lvl1 {
  background: rgba(245, 158, 11, 0.30);
}

.risk-pop__seg.lvl2 {
  background: rgba(249, 115, 22, 0.32);
}

.risk-pop__seg.lvl3 {
  background: rgba(239, 68, 68, 0.32);
}

.risk-pop__desc {
  color: #0f172a;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.risk-pop__section {
  margin: 10px 0 2px;
}

.risk-pop__sectionTitle {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.risk-pop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.risk-pop__grid--stack {
  grid-template-columns: 1fr;
  margin: 0;
}

.risk-card {
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.10);
  border-radius: 12px;
  padding: 10px;
}

.risk-card__k {
  font-size: 12px;
  color: #0f172a;
  font-weight: 800;
}

.risk-card__v {
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.1;
  color: #0b1220;
}

.risk-card__v--sm {
  font-size: 16px;
  line-height: 1.25;
  word-break: break-word;
}

.risk-card__u {
  font-size: 12px;
  color: #334155;
  line-height: 1.25;
  margin-top: 4px;
}

.risk-card__d {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #475569;
}

.risk-pop__haz {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.risk-pop__hazItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.risk-pop__hazI {
  font-size: 11px;
  color: #b45309;
}

.risk-pop__advice {
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  padding-top: 10px;
  margin-top: 6px;
}

.risk-pop__adviceTitle {
  font-weight: 1000;
  margin-bottom: 6px;
  color: #0b1220;
}

.risk-pop__adviceList {
  margin: 0;
  padding-left: 18px;
}

.risk-pop__adviceList li {
  margin: 4px 0;
}

.risk-pop__foot {
  margin-top: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}

.risk-pop__sourceBox {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.risk-pop__sourceLabel {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

/* Fallback lightning markers inside model polygons */
.storm-lightning-marker {
  background: transparent;
  border: 0;
}

.storm-bolt {
  --bolt-color: #facc15;
  --bolt-scale: 1;
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  color: var(--bolt-color);
  font-size: 14px;
  font-weight: 900;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.75));
  text-shadow:
    0 0 6px rgba(250, 204, 21, 0.95),
    0 0 12px rgba(250, 204, 21, 0.65),
    0 0 18px rgba(250, 204, 21, 0.38);
  animation: stormBoltFlash 1.55s infinite ease-in-out, stormBoltDrift 2.8s infinite ease-in-out;
}

.storm-bolt::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.36) 0%, rgba(245, 158, 11, 0.06) 70%, transparent 100%);
  animation: stormAuraPulse 2.2s infinite ease-in-out;
}

.storm-bolt svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.75));
}

.storm-bolt.lvl1 {
  --bolt-color: #fde047;
  --bolt-scale: 0.9;
  opacity: 0.72;
}

.storm-bolt.lvl2 {
  --bolt-color: #facc15;
  --bolt-scale: 1;
  opacity: 0.86;
}

.storm-bolt.lvl3 {
  --bolt-color: #f59e0b;
  --bolt-scale: 1.08;
  opacity: 0.98;
}

.storm-bolt.official {
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95));
}

.storm-bolt.official::before {
  inset: -7px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 244, 140, 0.48) 0%, rgba(245, 158, 11, 0.16) 68%, transparent 100%);
}

.storm-bolt.model {
  filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.72));
}

@keyframes stormBoltFlash {
  0%, 58%, 100% {
    opacity: 0.14;
  }
  7% {
    opacity: 0.92;
  }
  10% {
    opacity: 0.28;
  }
  14% {
    opacity: 1;
  }
  22% {
    opacity: 0.22;
  }
  34% {
    opacity: 0.78;
  }
}

@keyframes stormBoltDrift {
  0%, 100% {
    transform: translateY(0) scale(var(--bolt-scale));
  }
  50% {
    transform: translateY(-1px) scale(calc(var(--bolt-scale) * 1.07));
  }
}

@keyframes stormAuraPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storm-bolt,
  .swatch.storm-helper .storm-helper__bolt::before {
    animation: none;
    opacity: 0.82;
  }

  .storm-bolt::before {
    animation: none;
    opacity: 0.55;
  }
}

@media (min-width: 1100px) {
  .radar-side {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .radar-side::-webkit-scrollbar {
    width: 10px;
  }

  .radar-side::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
  }

  .radar-side::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 1180px) {
  .radar-topbar {
    grid-template-columns: 1fr;
  }

  .tb-right {
    width: 100%;
  }

  .radar-body {
    flex-direction: column;
  }

  .radar-side {
    width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 860px) {
  .radar-wrap {
    padding: 12px;
  }

  .tb-head h1 {
    font-size: 26px;
  }

  .controls {
    grid-template-columns: auto 1fr;
  }

  .meta {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }

  .live,
  .toggles {
    justify-content: flex-start;
  }

  .radar-map {
    height: 60vh;
    min-height: 400px;
  }
}

@media (max-width: 620px) {
  .radar-topbar {
    padding: 14px;
    gap: 14px;
  }

  .tb-left {
    flex-direction: column;
    gap: 10px;
  }

  .tb-head h1 {
    font-size: 24px;
  }

  .tb-head p {
    font-size: 13px;
    line-height: 1.45;
  }

  .controls {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .btn {
    width: 38px;
    height: 38px;
  }

  .toggles {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .toggles::-webkit-scrollbar {
    display: none;
  }

  .tg,
  .opabox {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  #tempOpacity,
  #cloudsOpacity {
    width: 92px;
  }

  .radar-map {
    height: 56vh;
    min-height: 340px;
    border-radius: 16px;
  }

  .side-card {
    padding: 12px;
    border-radius: 16px;
  }

  .map-clickHint {
    top: 12px;
    left: 70px;
    right: 12px;
    padding: 9px 12px;
    border-radius: 12px;
  }

  .map-clickHint strong {
    font-size: 12px;
  }

  .map-clickHint span {
    font-size: 10px;
  }

  .risk-pop {
    width: min(92vw, 92vw);
    min-width: 280px;
    max-width: 92vw;
    max-height: 70vh;
  }

  .risk-pop__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .risk-pop__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .risk-pop__grid--stack {
    grid-template-columns: 1fr;
  }

  .risk-pop__scale {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .radar-wrap {
    padding: 10px;
  }

  .radar-topbar {
    padding: 12px;
    border-radius: 16px;
  }

  .toggles {
    gap: 6px;
  }

  .opabox {
    width: 100%;
    justify-content: space-between;
  }

  #tempOpacity,
  #cloudsOpacity {
    width: 100%;
    max-width: 140px;
  }

  .radar-map {
    height: 50vh;
    min-height: 300px;
  }

  .map-clickHint {
    left: 62px;
    right: 10px;
    top: 10px;
    padding: 8px 10px;
  }

  .map-note {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* 2026-03-17 Stage 2 polish */
@media (max-width: 620px) {
  .radar-map {
    height: min(56dvh, 420px);
  }

  .risk-pop {
    min-width: 0;
    width: min(92vw, 360px);
  }
}

@media (max-width: 480px) {
  .radar-map {
    height: min(50dvh, 360px);
    min-height: 280px;
  }

  .tb-head p,
  .map-note,
  .leg-note {
    overflow-wrap: anywhere;
  }
}
