/* Weather preview — layered viewport (scene + screen-space weather overlay). */

.wp-app .de-main {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  background: #0a0e14;
}

.wp-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  overflow: hidden;
  margin: 8px 12px 0;
  border-radius: 4px;
  border: 1px solid #2a3140;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}

.wp-viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#wp-scene-canvas {
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#wp-weather-canvas {
  z-index: 2;
  pointer-events: none;
}

.wp-hud {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 8px 12px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #8b95a8;
  border-top: 1px solid #2a3140;
  background: #10131a;
}

.wp-hud strong {
  color: #dce4f0;
  font-weight: 600;
}

.wp-hud__stat--warn strong {
  color: #e8c478;
}

.wp-weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wp-weather-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid #2a3140;
  border-radius: 6px;
  background: #161b24;
  color: #c8d0dc;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wp-weather-btn:hover {
  border-color: #4a6080;
  background: #1c2330;
}

.wp-weather-btn.is-active {
  border-color: #6a9af0;
  background: #1a2840;
  box-shadow: 0 0 0 1px rgba(106, 154, 240, 0.25);
}

.wp-weather-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.wp-weather-btn__label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

.wp-biome-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-note {
  margin: 0 0 8px;
  font-size: 11px;
  color: #6b7588;
  line-height: 1.45;
}

.wp-suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.wp-suggest-chip {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #3a4558;
  background: #141820;
  color: #9aa8c0;
  font-size: 10px;
  cursor: pointer;
}

.wp-suggest-chip:hover {
  border-color: #6a9af0;
  color: #dce4f0;
}

.de-section__body .de-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.de-section__body .de-btn {
  padding: 6px 10px;
  border: 1px solid #3a4558;
  border-radius: 4px;
  background: #161b24;
  color: #c8d0dc;
  font-size: 11px;
  cursor: pointer;
}

.de-section__body .de-btn:hover {
  border-color: #6a9af0;
}

.de-section__body .de-btn.is-active {
  border-color: #6a9af0;
  background: #1a2840;
}
