:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #15314f 0%, #04070d 65%, #000 100%);
  color: #f8f7ff;
}

.app {
  width: min(92vw, 560px);
  padding: 32px;
  border-radius: 28px;
  background: rgba(10, 16, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

p {
  margin: 0 0 24px;
  line-height: 1.6;
  color: #c8d3e8;
}

.lamp {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0) 72%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lamp::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.core {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6ffda, #9fb0c5 80%);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.6);
}

.lamp.on {
  transform: scale(1.04);
  background: radial-gradient(circle, rgba(255, 245, 143, 0.95) 0%, rgba(255, 200, 80, 0.8) 35%, rgba(255, 180, 0, 0.2) 70%, rgba(255, 180, 0, 0) 82%);
  box-shadow: 0 0 55px rgba(255, 215, 96, 0.9), 0 0 120px rgba(255, 170, 45, 0.7);
}

.lamp.on .core {
  background: linear-gradient(145deg, #fff5b3, #ffda4b 80%);
}

.status-panel {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.status-panel > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 120px;
}

#freqLabel {
  font-size: 1rem;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.slider-row input {
  flex: 1;
  max-width: 220px;
  accent-color: #ffcb54;
}

.slider-help {
  margin: -8px 0 20px;
  color: #c8d3e8;
  font-size: 0.9rem;
}

.label {
  font-size: 0.8rem;
  color: #8fa3c2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #07111f;
  background: linear-gradient(90deg, #ffe68d, #ffad33);
  box-shadow: 0 10px 20px rgba(255, 173, 51, 0.24);
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}
