/* ── Dev tab (DCOSMOS-EXOTICS) + fx toggle (DCOSMOS-BLOOM) ─────── */
/* The options toggle mirrors the sound toggle, one seat to its left
   (DCOSMOS-TARGETRINGS: it opens the options sheet, which holds the
   bloom toggle along with the other settings). */
#optionsToggle {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.2s;
  opacity: 0.75;
}
#optionsToggle:hover { opacity: 1; border-color: var(--accent); }
#optionsToggle.open { opacity: 1; border-color: var(--accent); color: var(--accent); }
.options-sheet {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 210;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 220px;
  /* 72px = the 60px top offset + a 12px bottom gap; taller content scrolls inside */
  max-height: calc(100dvh - 72px - env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}
.options-sheet[hidden] { display: none; }
.options-title {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 1px;
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.options-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.options-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.options-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}
.vol-row span { min-width: 54px; }
.level-row span:last-child { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.options-row select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: auto;
  cursor: pointer;
}
/* DCOSMOS-ACCOUNTMOVE: account controls, moved here from the Profile
   screen (owner order 2026-08-22). Destructive actions sit last, under a
   divider, so nothing above them is a stray click away from the toggles. */
.options-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}
.options-row-danger { padding: 6px 2px 8px; }
.options-row-danger .btn-reset-intro, .options-row-danger .btn-reset-account {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.options-row-danger .btn-reset-intro {
  background: rgba(30, 44, 70, 0.7);
  border: 1px solid rgba(120, 160, 220, 0.35);
  color: #cfe3ff;
}
.options-row-danger .btn-reset-intro:hover { background: rgba(44, 62, 96, 0.85); }
.options-row-danger .btn-reset-account {
  background: rgba(80, 24, 30, 0.5);
  border: 1px solid rgba(220, 90, 90, 0.5);
  color: #ffc9c9;
}
.options-row-danger .btn-reset-account:hover { background: rgba(120, 32, 40, 0.7); }
.options-danger-desc {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
}
/* DCOSMOS-OPTFOLD (SC-FB13): the five collapsible sections. The summary is
   the fold handle -- small-caps label with the browser's own twisty. */
.opt-section { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 2px 0; }
.opt-section:first-of-type { border-top: 0; }
.opt-section summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 9px 2px;
  user-select: none;
  list-style-position: inside;
}
.opt-section summary:hover { color: var(--text-primary); }
.opt-section[open] > summary { color: var(--accent); }
/* The sound master toggle wears a speaker: checked shows the sounding
   speaker, unchecked the crossed one. The checkbox itself stays real and
   focusable; only its face is drawn by the icons. */
.opt-speaker { display: flex; align-items: center; gap: 8px; }
.opt-speaker input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-speaker .spk { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.opt-speaker .spk-off { display: none; color: var(--text-dim); }
.opt-speaker input:not(:checked) ~ .spk-on { display: none; }
.opt-speaker input:not(:checked) ~ .spk-off { display: block; }
.opt-speaker input:focus-visible ~ .spk { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
