/* Sound is on by default, with one shared mute and volume setting. */
.sound-control { position: relative; display: inline-flex; align-items: center; flex: none; gap: 0; }
.sound-control [hidden] { display: none !important; }
.sound-chip,
.sound-volume-toggle { font: inherit; appearance: none; cursor: pointer; }
#zodiac-intro .sound-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 8px 12px; border: 1px solid #d8bb795c; border-radius: 24px;
  background: linear-gradient(125deg, #284239e8, #0c2330ec); color: #eed7a2;
  box-shadow: inset 0 1px 0 #f3e0aa20, 0 2px 0 #06141a88, 0 5px 12px #0003;
  font-family: var(--sans, 'Source Sans 3', sans-serif); font-size: 11px; font-weight: 500;
  letter-spacing: .025em; white-space: nowrap;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
#zodiac-intro .sound-chip:hover { border-color: #e1c386; background: linear-gradient(125deg, #36503ee8, #16313aec); }
#zodiac-intro .sound-chip[aria-pressed="true"] { background: linear-gradient(125deg, #504b2dea, #20392ce8); border-color: #d4bb7a9c; color: #ffe8b4; }
#zodiac-intro .sound-chip[aria-busy="true"] { opacity: .78; }
.sound-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-control-intro.is-enabled .sound-chip { border-radius: 24px 0 0 24px; padding-right: 10px; }
.sound-volume-toggle {
  width: 25px; min-width: 25px; height: 36px; padding: 4px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0 6px 6px 0; color: #d9ccab; background: transparent;
}
.sound-volume-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sound-volume-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sound-volume-toggle:hover { color: #ffe6ac; background: #d2b77e14; }
#zodiac-intro .sound-control-intro .sound-volume-toggle {
  height: 36px; border: 1px solid #d4bb7a9c; border-left: 1px solid #d4bb7a35;
  border-radius: 0 24px 24px 0; background: #20392ce8; box-shadow: inset 0 1px 0 #f3e0aa20, 0 2px 0 #06141a88;
}
.sound-volume-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 30; width: 206px; padding: 17px 18px 13px;
  border: 1px solid #baaa787d; border-radius: 7px; color: #eee4cc;
  background: linear-gradient(135deg, #263e36fc, #091f29fc);
  box-shadow: inset 0 1px 0 #f2ddac1a, 0 3px 0 #070f14, 0 15px 32px #0008;
  font-family: var(--sans, 'Source Sans 3', sans-serif); font-size: 12px; line-height: 1.4; letter-spacing: .025em;
}
.sound-volume-panel::before { content: ''; position: absolute; top: -5px; right: 8px; width: 8px; height: 8px; transform: rotate(45deg); border-top: 1px solid #baaa787d; border-left: 1px solid #baaa787d; background: #20372f; }
.sound-volume-panel label { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 7px; color: #f2e5c9; font-size: 12px; font-weight: 500; }
.sound-volume-panel output { color: #d7c18e; font-variant-numeric: tabular-nums; font-size: 11px; }
.sound-volume-panel input[type="range"] { display: block; width: 100%; height: 26px; padding: 0; margin: 0; border: 0; background: transparent; accent-color: #d4b874; cursor: pointer; }
.sound-volume-panel p { margin: 6px 0 0; color: #acbbae; font-size: 10px; letter-spacing: .04em; }
.sound-control button:focus-visible,
.sound-volume-panel input:focus-visible { outline: 2px solid #f4dba2; outline-offset: 4px; }
.sound-control-main #sound-toggle[aria-pressed="true"] { color: #f1d08d; border-color: #c5af718c; background: #26392ee8; }
.sound-control-main.is-enabled #sound-toggle { border-radius: 50% 3px 3px 50%; }
.sound-control-main .sound-volume-toggle { min-height: 36px; }
.sound-announcement { position: fixed; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.intro-active .toast { z-index: 1000; }
@media (max-width: 600px) {
  #zodiac-intro .intro-top { align-items: start; }
  #zodiac-intro .intro-wordmark { padding-top: 5px; }
  #zodiac-intro .intro-controls { display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 1px; justify-items: end; }
  #zodiac-intro .sound-control-intro { grid-column: 1 / -1; justify-self: end; }
  #zodiac-intro .sound-chip { min-height: 33px; font-size: 10px; padding: 7px 10px; }
  #zodiac-intro .sound-control-intro .sound-volume-toggle { height: 33px; }
  #zodiac-intro #intro-motion,
  #zodiac-intro #skip-intro { min-height: 35px; padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
  #zodiac-intro .intro-wheel-wrap { width: min(68svh, 600px, 90vw, calc(100svh - 315px)); }
  .sound-control-main .sound-volume-toggle { width: 24px; min-width: 24px; }
  .sound-volume-panel { width: 190px; }
}
@media (max-width: 390px) {
  .topbar nav { gap: 8px; }
}
@media (max-height: 650px) {
  #zodiac-intro .intro-wheel-wrap { width: min(68svh, 600px, 90vw, calc(100svh - 250px)); }
}
@media (prefers-reduced-motion: reduce) {
  .sound-chip, .sound-volume-toggle svg { transition: none !important; }
}
