/* Lamps board: tool-specific styles. Theme comes from ../synthwave.css */
.site-header { display: grid; justify-items: center; gap: 12px; }
.site-header h1 { margin: 0; }
.tagline { text-align: center; min-height: 3em; }

.challenge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-bottom: 20px; }
.target-box { min-width: 14ch; }
.target-box .display-value { color: var(--yellow); text-shadow: 0 0 10px var(--yellow); }
.target-form { display: flex; gap: 8px; }
#targetInput { width: 17ch; }
.challenge .feedback { flex-basis: 100%; text-align: center; }

.board {
  display: grid; grid-template-columns: repeat(8, minmax(44px, 1fr)); gap: 12px;
  align-items: end; justify-items: center; padding: 8px 4px 16px;
}
.col { text-align: center; user-select: none; }
.weight { color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.bit {
  display: inline-block; margin-top: 8px; padding: 0 8px; min-width: 2ch; font-weight: 700;
  color: var(--cyan); background: var(--canvas-bg); border: 1px solid var(--purple); border-radius: 6px;
}

.lamp {
  position: relative; width: clamp(40px, 8vw, 58px); height: clamp(40px, 8vw, 58px);
  border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, var(--bg-glow) 0%, var(--bg) 70%);
  border: 2px solid var(--purple);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6);
  transition: transform .06s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
}
.lamp:hover { transform: translateY(-1px); border-color: var(--cyan); }
.lamp:active { transform: translateY(1px) scale(.98); }
.lamp.on {
  background: radial-gradient(circle at 35% 30%, #fff7cc 0%, var(--yellow) 60%, #d49a00 100%);
  border-color: var(--yellow);
  box-shadow: 0 0 16px 4px rgba(249, 200, 14, .6), 0 0 40px 6px rgba(255, 42, 109, .3), inset 0 2px 8px rgba(0, 0, 0, .35);
}

.panel > .controls { margin-top: 8px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }

:root[data-theme="chill"] .lamp { box-shadow: inset 0 2px 6px rgba(138, 92, 240, .25); }
:root[data-theme="chill"] .lamp.on {
  background: radial-gradient(circle at 35% 30%, #fffbe3 0%, var(--lit) 60%, #f5a623 100%);
  box-shadow: 0 0 18px 4px rgba(255, 207, 92, .6), 0 0 40px 8px rgba(255, 140, 190, .3), inset 0 2px 8px rgba(184, 110, 0, .25);
}
