:root {
  color-scheme: dark;
  --ink: #f4fbff;
  --muted: #a9bcc7;
  --dim: #6f8794;
  --night: #081116;
  --deep: #0d1f27;
  --panel: rgba(11, 25, 32, 0.78);
  --panel-strong: rgba(12, 31, 40, 0.94);
  --line: rgba(193, 238, 255, 0.18);
  --aqua: #64d8d6;
  --mint: #95e8b6;
  --gold: #e2c66d;
  --coral: #ff8e7a;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: Optima, Candara, "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(149, 232, 182, 0.78);
  outline-offset: 3px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 36% 38%, rgba(130, 230, 224, 0.2), transparent 36%),
    radial-gradient(ellipse at 52% 72%, rgba(132, 171, 255, 0.13), transparent 34%),
    linear-gradient(140deg, #071115 0%, #10242b 48%, #0b181d 100%);
}

.immersive-exit {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 30;
  min-width: 72px;
  min-height: 40px;
  border: 1px solid rgba(193, 238, 255, 0.16);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(7, 17, 21, 0.54);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 850;
  transition: opacity 180ms ease, background 180ms ease;
}

.immersive-exit:hover,
.immersive-exit:focus-visible {
  color: var(--ink);
  background: rgba(7, 17, 21, 0.78);
}

.is-immersive .immersive-exit {
  opacity: 0.42;
  pointer-events: auto;
}

.is-immersive .immersive-exit:hover,
.is-immersive .immersive-exit:focus-visible {
  opacity: 1;
}

.cool-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(340px, 500px);
  gap: clamp(12px, 3vw, 48px);
  align-items: end;
  padding: clamp(14px, 3vw, 44px);
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(rgba(244, 251, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 251, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.window-view {
  display: none;
}

.window-view::before,
.window-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.window-view::before {
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(165, 255, 245, 0.26), rgba(165, 255, 245, 0) 62%);
  filter: blur(20px);
}

.window-view::after {
  left: 8%;
  right: 8%;
  bottom: 13%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100, 216, 214, 0.2), rgba(100, 216, 214, 0) 70%);
  filter: blur(18px);
}

.moon,
.building {
  display: none;
}

.fan-rig {
  position: relative;
  z-index: 2;
  width: min(66vw, 980px);
  min-width: 300px;
  height: min(92vh, 900px);
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 44px 42px rgba(0, 0, 0, 0.38));
}

.fan-rig::before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 12%;
  width: min(64vw, 720px);
  height: 38%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(169, 255, 238, 0.24), rgba(65, 177, 186, 0.1) 38%, transparent 72%);
  filter: blur(22px);
}

.fan-rig::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 10%;
  width: min(38vw, 420px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(198, 251, 255, 0.38), transparent);
  box-shadow: 0 0 26px rgba(100, 216, 214, 0.28);
}

.device-canvas {
  position: absolute;
  z-index: 3;
  width: min(62vmin, 520px);
  height: min(62vmin, 520px);
  opacity: 0;
  transition: opacity 260ms ease, transform 360ms ease, width 360ms ease, height 360ms ease;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 30px rgba(100, 216, 214, 0.12));
}

.weather-scene {
  position: absolute;
  z-index: 3;
  width: min(82vmin, 760px);
  height: min(58vmin, 540px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4%);
  transition: opacity 260ms ease, transform 360ms ease;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.rain-scene {
  background: linear-gradient(rgba(7, 17, 21, 0.04), rgba(7, 17, 21, 0.14)), url("./assets/rain-window.png") center / cover;
}

.snow-scene {
  background: linear-gradient(rgba(7, 17, 21, 0.03), rgba(7, 17, 21, 0.18)), url("./assets/snow-window.png") center / cover;
}

.rain-glass {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 226, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  box-shadow:
    inset 0 0 70px rgba(111, 167, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.3);
}

.snow-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 80%, rgba(235, 246, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(255, 220, 174, 0.08), transparent 28% 100%);
}

.rain-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(244, 251, 255, 0.18) 36%, transparent 39% 100%),
    linear-gradient(70deg, transparent 0 58%, rgba(141, 199, 255, 0.12) 60%, transparent 63% 100%);
}

.rain-glass::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201, 232, 255, 0.38), transparent);
  box-shadow: 0 0 34px rgba(111, 167, 255, 0.24);
}

.rain-drop {
  position: absolute;
  top: 9%;
  width: 4px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 251, 255, 0), rgba(188, 225, 255, 0.85), rgba(188, 225, 255, 0));
  opacity: 0.55;
  filter: blur(0.3px);
  animation: rainSlide 2.8s linear infinite;
}

.drop-one {
  left: 19%;
}

.drop-two {
  left: 34%;
  animation-delay: 0.5s;
  animation-duration: 3.4s;
}

.drop-three {
  left: 52%;
  animation-delay: 1.1s;
  animation-duration: 2.5s;
}

.drop-four {
  left: 67%;
  animation-delay: 1.7s;
  animation-duration: 3.1s;
}

.drop-five {
  left: 82%;
  animation-delay: 2.2s;
  animation-duration: 2.7s;
}

.snow-flake {
  position: absolute;
  top: -12%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.86);
  box-shadow: 0 0 12px rgba(240, 248, 255, 0.58);
  opacity: 0.72;
  animation: snowFall 7s linear infinite;
}

.flake-one {
  left: 16%;
}

.flake-two {
  left: 31%;
  width: 6px;
  animation-delay: 1.2s;
  animation-duration: 8.5s;
}

.flake-three {
  left: 54%;
  width: 11px;
  animation-delay: 2.4s;
  animation-duration: 6.8s;
}

.flake-four {
  left: 72%;
  width: 7px;
  animation-delay: 3.1s;
  animation-duration: 9s;
}

.flake-five {
  left: 88%;
  width: 10px;
  animation-delay: 4.3s;
  animation-duration: 7.6s;
}

.fan-motion {
  position: absolute;
  z-index: 4;
  width: min(49vmin, 470px);
  height: min(49vmin, 470px);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-11%);
  background:
    conic-gradient(from 0deg, rgba(181, 255, 242, 0.26), transparent 16%, rgba(181, 255, 242, 0.16) 33%, transparent 50%, rgba(181, 255, 242, 0.22) 66%, transparent 82%, rgba(181, 255, 242, 0.26)),
    radial-gradient(circle, transparent 0 18%, rgba(235, 255, 252, 0.12) 38%, transparent 62%);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.is-running[data-scene="fan"] .fan-motion {
  opacity: 0.62;
  animation: spin 0.38s linear infinite;
}

.speed-1.is-running[data-scene="fan"] .fan-motion {
  animation-duration: 0.68s;
}

.speed-2.is-running[data-scene="fan"] .fan-motion {
  animation-duration: 0.38s;
}

.speed-3.is-running[data-scene="fan"] .fan-motion {
  animation-duration: 0.2s;
  opacity: 0.78;
}

.assets-ready .device-canvas {
  opacity: 1;
}

[data-scene="rain"].assets-ready .device-canvas,
[data-scene="snow"].assets-ready .device-canvas {
  opacity: 0;
}

[data-scene="rain"] .rain-scene,
[data-scene="snow"] .snow-scene {
  opacity: 1;
  transform: translateY(-2%);
}

.assets-ready .fan-head,
.assets-ready .fan-neck,
.assets-ready .fan-base {
  opacity: 0;
}

.assets-ready[data-scene="fan"] .device-canvas {
  width: min(86vmin, 820px);
  height: min(86vmin, 820px);
  transform: translateY(3%);
}

.assets-ready[data-scene="ac"] .device-canvas,
.assets-ready[data-scene="rain"] .device-canvas {
  width: min(82vmin, 760px);
  height: min(48vmin, 440px);
  transform: translateY(-10%);
}

.is-running.assets-ready .device-canvas {
  animation: deviceDrift 5.5s ease-in-out infinite;
}

.is-running[data-scene="rain"] .rain-scene,
.is-running[data-scene="snow"] .snow-scene {
  animation: rainBreath 5.5s ease-in-out infinite;
}

.fan-head {
  position: relative;
  width: min(62vmin, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 251, 255, 0.08) 0 38%, transparent 39%),
    linear-gradient(145deg, rgba(229, 249, 255, 0.14), rgba(74, 123, 137, 0.08));
}

.fan-ring {
  position: absolute;
  inset: 0;
  border: 15px solid rgba(214, 245, 250, 0.32);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 38px rgba(100, 216, 214, 0.12);
}

.fan-cage {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -4deg, rgba(207, 244, 249, 0.22) 0 1.7deg, transparent 1.8deg 8deg),
    radial-gradient(circle, transparent 0 20%, rgba(207, 244, 249, 0.12) 20.5% 21%, transparent 21.5% 38%, rgba(207, 244, 249, 0.14) 38.5% 39%, transparent 39.5%);
}

.fan-blades {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
  animation-play-state: paused;
}

.is-running .fan-blades {
  animation-play-state: running;
}

.speed-1 .fan-blades {
  animation-duration: 1.55s;
}

.speed-2 .fan-blades {
  animation-duration: 0.92s;
}

.speed-3 .fan-blades {
  animation-duration: 0.48s;
}

.fan-blades span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 20%;
  border-radius: 100% 18% 100% 18%;
  background: linear-gradient(90deg, rgba(149, 232, 182, 0.85), rgba(100, 216, 214, 0.16));
  transform-origin: 0 50%;
}

.fan-blades span:nth-child(1) {
  transform: rotate(8deg) translateX(8%);
}

.fan-blades span:nth-child(2) {
  transform: rotate(128deg) translateX(8%);
}

.fan-blades span:nth-child(3) {
  transform: rotate(248deg) translateX(8%);
}

.fan-hub {
  position: absolute;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4fbff, #7fded7 45%, #235463 100%);
  box-shadow: 0 0 22px rgba(100, 216, 214, 0.32);
}

.fan-neck,
.fan-base {
  position: absolute;
  background: linear-gradient(90deg, rgba(161, 214, 220, 0.24), rgba(244, 251, 255, 0.58), rgba(80, 134, 146, 0.2));
}

.fan-neck {
  bottom: 14%;
  width: 34px;
  height: 26%;
  border-radius: 999px;
}

.fan-base {
  bottom: 6%;
  width: 42%;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.air-stream {
  position: absolute;
  left: 53%;
  width: min(34vw, 460px);
  height: 24px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(149, 232, 182, 0.22), rgba(100, 216, 214, 0));
  filter: blur(1px);
}

.air-one {
  top: 34%;
}

.air-two {
  top: 46%;
  animation-delay: 0.3s;
}

.air-three {
  top: 58%;
  animation-delay: 0.6s;
}

.is-running .air-stream {
  animation: breathe 2.4s ease-in-out infinite;
}

.mist-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mist-field span {
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.28;
  background: var(--aqua);
  box-shadow: 0 0 24px rgba(100, 216, 214, 0.7);
  animation: float 8s ease-in-out infinite;
}

.mist-field span:nth-child(1) {
  left: 12%;
  top: 62%;
}

.mist-field span:nth-child(2) {
  left: 38%;
  top: 20%;
  animation-delay: 1.6s;
}

.mist-field span:nth-child(3) {
  left: 58%;
  top: 70%;
  animation-delay: 2.8s;
}

.mist-field span:nth-child(4) {
  left: 82%;
  top: 28%;
  animation-delay: 4.2s;
}

.mist-field span:nth-child(5) {
  left: 24%;
  top: 82%;
  animation-delay: 5s;
}

.control-deck {
  position: relative;
  z-index: 4;
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(26px);
}

.is-immersive .cool-stage {
  min-height: 100vh;
  grid-template-columns: 1fr;
  padding: 0;
}

.is-immersive .control-deck {
  display: none;
}

.is-immersive .fan-rig {
  width: 100vw;
  height: 100vh;
}

.is-immersive.assets-ready[data-scene="fan"] .device-canvas {
  width: min(118vmin, 1180px);
  height: min(118vmin, 1180px);
  transform: translateY(2%);
}

.is-immersive.assets-ready[data-scene="ac"] .device-canvas,
.is-immersive.assets-ready[data-scene="rain"] .device-canvas,
.is-immersive.assets-ready[data-scene="snow"] .device-canvas {
  width: min(118vw, 1500px);
  height: min(66vw, 780px);
  transform: translateY(-2%);
}

.is-immersive .weather-scene {
  width: 100vw;
  height: 100vh;
  transform: none;
  border-radius: 0;
}

.is-immersive .rain-glass {
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 52% 54%, rgba(141, 199, 255, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(24, 52, 66, 0.16)),
    repeating-linear-gradient(105deg, rgba(186, 224, 255, 0.16) 0 1px, transparent 1px 18px);
}

.is-immersive .snow-scene {
  background-position: center;
}

.is-immersive .fan-motion {
  width: min(88vmin, 900px);
  height: min(88vmin, 900px);
  transform: translateY(-8%);
}

.title-block {
  display: grid;
  gap: 9px;
}

.deck-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(193, 238, 255, 0.14);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
}

.language-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

h1 {
  max-width: 470px;
  margin: 0;
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.trust-note {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-row div,
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.status-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.status-row span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-actions,
.panel-grid,
.segmented,
.speed-row,
.timer-row,
.slider-label {
  display: grid;
  gap: 10px;
}

.primary-actions {
  grid-template-columns: 1.4fr 1fr;
}

.power-button,
.ghost-button,
.segmented button,
.speed-row button,
.timer-row button {
  min-height: 46px;
  border-radius: 7px;
  font-weight: 850;
}

.power-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #061014;
  background: linear-gradient(135deg, var(--mint), var(--aqua));
  box-shadow: 0 14px 34px rgba(100, 216, 214, 0.22);
}

.power-icon {
  width: 18px;
  aspect-ratio: 1;
  border: 3px solid #061014;
  border-top-color: transparent;
  border-radius: 50%;
}

.ghost-button,
.segmented button,
.speed-row button,
.timer-row button {
  border: 1px solid rgba(193, 238, 255, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.ghost-button:hover,
.segmented button:hover,
.speed-row button:hover,
.timer-row button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.segmented button.active,
.speed-row button.active,
.timer-row button.active {
  color: #061014;
  background: var(--ink);
}

.safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 750;
}

.safety-strip span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(193, 238, 255, 0.1);
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.03);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 10;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel-strong);
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-panel {
  padding: 14px;
}

.tool-panel.wide {
  grid-column: span 2;
}

.scene-panel {
  grid-column: span 2;
}

.speed-row {
  grid-template-columns: repeat(3, 1fr);
}

.segmented {
  grid-template-columns: repeat(4, 1fr);
}

.timer-row {
  grid-template-columns: repeat(4, 1fr);
}

.slider-label {
  grid-template-columns: 1fr 48px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--aqua);
}

#volumeLabel {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}

[data-scene="ac"] {
  --aqua: #8bb8ff;
  --mint: #b6f3ff;
}

[data-scene="rain"] {
  --aqua: #6ea7ff;
  --mint: #a7d3ff;
}

[data-scene="snow"] {
  --aqua: #c3dfff;
  --mint: #ecf7ff;
}

[data-scene="rain"] .air-stream {
  height: 2px;
  background: linear-gradient(90deg, rgba(167, 211, 255, 0.4), rgba(167, 211, 255, 0));
  transform: rotate(9deg);
}

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

@keyframes breathe {
  0% {
    opacity: 0;
    transform: translateX(-10px) scaleX(0.68);
  }
  42% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(42px) scaleX(1.06);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -34px, 0);
  }
}

@keyframes deviceDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes rainSlide {
  0% {
    opacity: 0;
    transform: translate3d(0, -46px, 0);
  }
  16% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 260px, 0);
  }
}

@keyframes rainBreath {
  0%,
  100% {
    filter: drop-shadow(0 0 24px rgba(110, 167, 255, 0.14));
  }
  50% {
    filter: drop-shadow(0 0 42px rgba(110, 167, 255, 0.28));
  }
}

@keyframes snowFall {
  0% {
    opacity: 0;
    transform: translate3d(-12px, -40px, 0);
  }
  14% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(28px, 620px, 0);
  }
}

@media (max-width: 900px) {
  .cool-stage {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 16px;
  }

  .window-view {
    width: calc(100% - 32px);
    height: 230px;
  }

  .fan-rig {
    width: 100%;
    height: 52vh;
    min-height: 400px;
    margin-top: 22px;
  }

  .control-deck {
    margin-top: -118px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .cool-stage {
    align-items: center;
    grid-template-columns: minmax(520px, 1.35fr) minmax(330px, 500px);
    padding: 14px clamp(14px, 3vw, 40px);
  }

  .fan-rig {
    width: min(64vw, 850px);
    height: min(94vh, 690px);
  }

  .assets-ready[data-scene="fan"] .device-canvas {
    width: min(86vh, 700px);
    height: min(86vh, 700px);
  }

  .assets-ready[data-scene="ac"] .device-canvas,
  .assets-ready[data-scene="rain"] .device-canvas,
  .assets-ready[data-scene="snow"] .device-canvas {
    width: min(62vw, 720px);
    height: min(38vw, 390px);
  }

  .weather-scene {
    width: min(58vw, 700px);
    height: min(48vh, 480px);
  }

  .control-deck {
    gap: 12px;
    padding: 18px;
  }

  h1 {
    font-size: clamp(42px, 4.8vw, 58px);
  }

  .trust-note {
    font-size: 12px;
  }

  .status-row div,
  .tool-panel {
    padding: 10px;
  }

  .power-button,
  .ghost-button,
  .segmented button,
  .speed-row button,
  .timer-row button {
    min-height: 42px;
  }

  .safety-strip {
    display: none;
  }
}

@media (max-width: 560px) {
  .primary-actions,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .cool-stage {
    padding: 12px;
  }

  h1 {
    font-size: clamp(33px, 11.5vw, 45px);
  }

  .trust-note {
    font-size: 12px;
  }

  .status-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .status-row div {
    padding: 9px 8px;
  }

  .status-row span {
    font-size: 10px;
  }

  .status-row strong {
    font-size: 12px;
  }

  .tool-panel.wide {
    grid-column: auto;
  }

  .timer-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .fan-rig {
    height: 48vh;
    min-height: 360px;
    margin-top: 12px;
  }

  .assets-ready[data-scene="fan"] .device-canvas {
    width: min(112vw, 520px);
    height: min(112vw, 520px);
    transform: translateY(2%);
  }

  .assets-ready[data-scene="ac"] .device-canvas,
  .assets-ready[data-scene="rain"] .device-canvas,
  .assets-ready[data-scene="snow"] .device-canvas {
    width: min(104vw, 480px);
    height: min(52vw, 240px);
    transform: translateY(-14%);
  }

  .weather-scene {
    width: min(112vw, 520px);
    height: min(62vw, 300px);
  }

  .fan-motion {
    width: min(84vw, 390px);
    height: min(84vw, 390px);
  }

  .control-deck {
    gap: 14px;
    margin-top: -112px;
    padding: 16px;
  }

  .safety-strip {
    gap: 6px;
    font-size: 11px;
  }

  .safety-strip span {
    min-height: 26px;
    padding: 0 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
