.wind-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 60px;
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
}

.section-subtitle {
  margin: 0;
  color: #cfd8ff;
  font-size: 1rem;
}

.wind-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: min(96vw, 620px);
  height: 300px;
  margin-top: 20px;
}

.wind-source-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wind-source-icon {
  position: relative;
  width: 56px;
  height: 56px;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.wind-source-wrap.active .wind-source-icon {
  opacity: 1;
}

.wind-source-icon > div {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wind-puffs {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wind-source-wrap.active .wind-puffs {
  opacity: 1;
}

.puff {
  width: 16px;
  height: 3px;
  background: rgba(203, 213, 225, 0.85);
  border-radius: 2px;
  opacity: 0;
  animation-name: puff-move;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.puff:nth-child(2) {
  animation-delay: 0.33s;
}

.puff:nth-child(3) {
  animation-delay: 0.66s;
}

@keyframes puff-move {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateX(26px);
    opacity: 0;
  }
}

/* Wind source icon shapes (shared by button icons and the large source display) */
.src-cloud {
  position: relative;
}

.src-cloud span {
  position: absolute;
  border-radius: 50%;
  background: #e2e8f0;
}

.src-cloud span:nth-child(1) {
  width: 50%;
  height: 50%;
  left: 8%;
  top: 32%;
}

.src-cloud span:nth-child(2) {
  width: 64%;
  height: 64%;
  left: 28%;
  top: 8%;
}

.src-cloud span:nth-child(3) {
  width: 44%;
  height: 44%;
  left: 54%;
  top: 34%;
}

.src-mouth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.src-mouth .lip-outer {
  width: 82%;
  height: 56%;
  background: #f0a9a9;
  border-radius: 50% 50% 55% 55% / 65% 65% 35% 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.src-mouth .lip-inner {
  width: 42%;
  height: 42%;
  background: #7a2f2f;
  border-radius: 50%;
}

.src-dryer {
  position: relative;
}

.src-dryer .dryer-barrel {
  position: absolute;
  left: 6%;
  top: 32%;
  width: 56%;
  height: 30%;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-radius: 40% 60% 60% 40%;
}

.src-dryer .dryer-handle {
  position: absolute;
  left: 16%;
  top: 55%;
  width: 22%;
  height: 42%;
  background: #94a3b8;
  border-radius: 30%;
  transform: rotate(20deg);
  transform-origin: top center;
}

.src-fan {
  position: relative;
}

.src-fan .fan-cage {
  position: absolute;
  left: 4%;
  top: 4%;
  width: 92%;
  height: 92%;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  box-sizing: border-box;
}

.src-fan .fan-blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12%;
  height: 40%;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border-radius: 50% 50% 40% 40%;
  transform-origin: 50% 0%;
}

.src-fan .fan-blade:nth-child(2) {
  transform: rotate(0deg);
}

.src-fan .fan-blade:nth-child(3) {
  transform: rotate(120deg);
}

.src-fan .fan-blade:nth-child(4) {
  transform: rotate(240deg);
}

.src-fan .fan-hub {
  position: absolute;
  left: 44%;
  top: 44%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: #f1f5f9;
}

.src-storm {
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(148, 163, 184, 0.15),
    rgba(226, 232, 240, 0.9) 30%,
    rgba(148, 163, 184, 0.15) 55%,
    rgba(226, 232, 240, 0.7) 80%,
    rgba(148, 163, 184, 0.15)
  );
  animation-name: spin;
  animation-duration: 2.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.wind-btn-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
}

.turbine {
  position: relative;
  width: 160px;
  height: 260px;
}

.turbine-pole {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 220px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  border-radius: 4px;
  transform: translateX(-50%);
}

.turbine-hub {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #94a3b8;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.propeller {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 0;
  height: 0;
  animation-name: spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.blade {
  position: absolute;
  top: 0;
  left: -7px;
  width: 14px;
  height: 78px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border-radius: 50% 50% 8px 8px;
  transform-origin: 7px 0px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.blade:nth-child(1) {
  transform: rotate(0deg);
}

.blade:nth-child(2) {
  transform: rotate(120deg);
}

.blade:nth-child(3) {
  transform: rotate(240deg);
}

.power-wire {
  width: 60px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 6px, transparent 6px 10px);
  margin-bottom: 24px;
}

.bulb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.bulb-wrap[hidden],
.subway-wrap[hidden],
.ferris-wrap[hidden],
.fountain-wrap[hidden],
.robot-wrap[hidden] {
  display: none;
}

.bulb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
  border: 2px solid rgba(226, 232, 240, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bulb-filament {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bulb-base {
  width: 22px;
  height: 12px;
  margin-top: -2px;
  background: repeating-linear-gradient(180deg, #94a3b8 0 2px, #64748b 2px 4px);
  border-radius: 0 0 4px 4px;
}

.device-area {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.subway-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 24px;
}

.subway-rail-outer,
.subway-rail-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.subway-rail-outer {
  width: 200px;
  height: 200px;
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.subway-rail-inner {
  width: 160px;
  height: 160px;
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.subway-ties {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.subway-tie-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.subway-tie {
  position: absolute;
  left: 76px;
  top: -3px;
  width: 28px;
  height: 6px;
  background: linear-gradient(180deg, #92764f, #6b5636);
  border-radius: 1px;
}

.subway-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation-name: spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.subway-train-anchor {
  position: absolute;
  left: 61px;
  top: -12px;
}

.subway-train {
  position: relative;
  width: 58px;
  height: 24px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa 50%, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(90deg);
}

.subway-train::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.subway-window {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.ferris-wrap {
  position: relative;
  width: 220px;
  height: 250px;
  margin-bottom: 0;
}

.ferris-rim {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 4px solid #cbd5e1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5), inset 0 0 0 1px rgba(15, 23, 42, 0.3);
}

.ferris-hub {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #94a3b8;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.ferris-spokes,
.ferris-orbit {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 0;
  height: 0;
}

.ferris-orbit {
  animation-name: spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.ferris-spoke-wrap,
.ferris-gondola-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.ferris-spoke {
  position: absolute;
  left: 0;
  top: -1px;
  width: 90px;
  height: 2px;
  background: rgba(203, 213, 225, 0.6);
  transform-origin: 0 50%;
}

.ferris-gondola-anchor {
  position: absolute;
  left: 90px;
  top: -8px;
}

.ferris-gondola {
  width: 20px;
  height: 16px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation-name: counter-spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

@keyframes counter-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.ferris-stand-left,
.ferris-stand-right {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 92px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 3px;
  transform-origin: bottom center;
}

.ferris-stand-left {
  transform: translateX(calc(-50% - 22px)) rotate(-16deg);
}

.ferris-stand-right {
  transform: translateX(calc(-50% + 22px)) rotate(16deg);
}

.fountain-wrap {
  position: relative;
  width: 160px;
  height: 200px;
  margin-bottom: 0;
}

.fountain-pool {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 150px;
  height: 34px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0.5));
  border: 2px solid rgba(203, 213, 225, 0.6);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 4px 8px rgba(15, 23, 42, 0.4);
}

.fountain-jet {
  position: absolute;
  bottom: 26px;
  width: 7px;
  height: 4px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(147, 197, 253, 0.5));
  transform-origin: bottom center;
  animation-name: fountain-pulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.fountain-jet.jet-a {
  left: 56px;
}

.fountain-jet.jet-b {
  left: 76px;
}

.fountain-jet.jet-c {
  left: 96px;
}

.fountain-cap {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 16px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  transform: translateX(-50%);
  border-radius: 50%;
}

@keyframes fountain-pulse {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.8;
  }
  50% {
    transform: scaleY(1.25);
    opacity: 1;
  }
}

.robot-wrap {
  position: relative;
  width: 120px;
  height: 190px;
  margin-bottom: 0;
}

.robot-antenna {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #94a3b8;
  transform: translateX(-50%);
}

.robot-antenna-light {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  transform: translateX(-50%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.robot-head {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 60px;
  height: 50px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.robot-eye {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.robot-body {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 70px;
  height: 60px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-radius: 14px;
  transform: translateX(-50%);
}

.robot-arm {
  position: absolute;
  top: 70px;
  width: 10px;
  height: 44px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 6px;
  transform-origin: top center;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.robot-arm-left {
  left: 12px;
  animation-name: arm-wave-left;
}

.robot-arm-right {
  right: 12px;
  animation-name: arm-wave-right;
}

@keyframes arm-wave-left {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(20deg);
  }
}

@keyframes arm-wave-right {
  0%,
  100% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-20deg);
  }
}

.robot-leg {
  position: absolute;
  top: 124px;
  width: 14px;
  height: 30px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 4px;
}

.robot-leg-left {
  left: 36px;
}

.robot-leg-right {
  right: 36px;
}

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

.device-label {
  color: #cfd8ff;
  font-size: 0.9rem;
  margin-right: 4px;
}

.device-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.device-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.device-btn.active {
  background: linear-gradient(90deg, #ffd166, #ef476f);
  color: #1b1035;
  border-color: transparent;
  font-weight: bold;
}

.wind-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.wind-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wind-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.wind-btn.active {
  background: linear-gradient(90deg, #06d6a0, #4d7cff);
  color: #1b1035;
  border-color: transparent;
  font-weight: bold;
}
