/* AGENT_TARGET: wand-weather-styles — raster weather veil and spell chooser */

.weather-wand-veil {
  position: fixed;
  inset: 0;
  z-index: 82;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.46;
}

.weather-wand-veil[hidden] {
  display: none;
}

.weather-wand-veil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weather-wand-veil[data-weather-mood="sunlit"] {
  opacity: 0.42;
  filter: saturate(1.05) sepia(0.12);
}

.weather-wand-veil[data-weather-mood="rainbow"] {
  opacity: 0.48;
  filter: saturate(1.45) hue-rotate(10deg);
}

.weather-wand-veil[data-weather-mood="snow"] {
  opacity: 0.4;
  filter: saturate(0.82) hue-rotate(170deg) brightness(1.08);
}

.weather-wand-modal {
  position: fixed;
  inset: 0;
  z-index: 10110;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.weather-wand-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 50, 0.56);
  backdrop-filter: blur(4px);
}

.weather-wand-shell {
  position: relative;
  width: min(780px, calc(100vw - 28px));
  max-height: min(86vh, 700px);
  overflow: auto;
  border: 3px solid #f0cf77;
  border-radius: 14px;
  background: #fffdf5;
  color: #263447;
  box-shadow: 0 20px 58px rgba(18, 20, 45, 0.34);
}

.weather-wand-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid rgba(38, 52, 71, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #7d2a68;
  font: 900 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.weather-wand-header {
  padding: 22px 70px 14px 24px;
  border-bottom: 1px solid rgba(38, 52, 71, 0.13);
}

.weather-wand-header span {
  display: block;
  color: #8a5b12;
  font:
    900 12px/1.2 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weather-wand-header h2 {
  margin: 4px 0;
  color: #263447;
  font:
    900 24px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}

.weather-wand-header p {
  margin: 0;
  color: #546474;
  font: 800 13px/1.35 "Trebuchet MS", Arial, sans-serif;
}

.weather-spell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.weather-spell-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 2px solid rgba(38, 52, 71, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #263447;
  text-align: left;
  cursor: pointer;
}

.weather-spell-card.active {
  border-color: #d9941e;
  background: #fff7df;
}

.weather-spell-card strong,
.weather-spell-card span {
  display: block;
}

.weather-spell-card strong {
  color: #7d2a68;
  font:
    900 17px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}

.weather-spell-card span {
  color: #546474;
  font: 800 13px/1.3 "Trebuchet MS", Arial, sans-serif;
}

@media (max-width: 540px) {
  .weather-wand-modal {
    padding: 10px;
  }
  .weather-wand-shell {
    width: calc(100vw - 16px);
    max-height: 92vh;
    border-radius: 10px;
  }
  .weather-wand-header {
    padding: 18px 62px 12px 16px;
  }
  .weather-spell-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .weather-spell-card {
    min-height: 88px;
  }
}
