.scene[data-room-theme='rain'] {
  background-image: linear-gradient(#17182e20, #22182f8c), url('/room-themes/rain.webp');
  border-color: #849ae26b;
}
.scene[data-room-theme='garden'] {
  background-image: linear-gradient(#19382a1a, #16281d8a), url('/room-themes/garden.webp');
  border-color: #8ec8a96b;
}
.scene[data-room-theme='stars'] {
  background-image: linear-gradient(#23133220, #20122e85), url('/room-themes/stars.webp');
  border-color: #b28ccf6b;
}
.scene[data-room-theme='aurora'] {
  background-image: linear-gradient(#12101b22, #14121b90), url('/aurora.webp');
  border-color: #8ec8a96b;
}

.room-preferences {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.room-preference {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--glow);
}
.room-preference summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.room-preference summary::-webkit-details-marker { display: none; }
.room-preference summary::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.room-preference[open] summary::after { transform: translateY(2px) rotate(225deg); }
.room-preference summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.room-preference summary [data-current-room-theme] {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.room-theme-options, .room-ambience-controls {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.room-theme-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); }
.room-ambience-controls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.room-theme-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #201720b5;
  color: var(--ink);
  font-size: 13px;
  text-align: start;
}
.room-theme-options button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.room-theme-options img { flex: none; border-radius: 5px; object-fit: cover; }
.ambience-track {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.ambience-track legend { margin-inline: 3px; padding-inline: 4px; font-size: 13px; font-weight: 700; }
.ambience-levels { display: flex; flex-wrap: wrap; gap: 4px; }
.ambience-levels label { flex: 1; position: relative; }
.ambience-levels input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ambience-levels span {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding-inline: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #201720b5;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.ambience-levels input:checked + span { border-color: var(--accent); color: var(--accent); }
.ambience-levels input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.ambience-locked, [data-ambience-notice] { margin: 0; padding: 6px; font-size: 13px; }
[data-ambience-notice]:empty, [data-play-ambience][hidden] { display: none; }
[data-play-ambience] { min-height: 44px; justify-self: start; }
