:root {
  color-scheme: dark;
  font-family: "PingFang TC", "Noto Sans TC", sans-serif;
  color: #f7f2ff;
  background: #101627;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 48% 0, #302951 0%, transparent 65%), #101627;
}
main { width: min(100% - 28px, 740px); margin-inline: auto; padding: 23px 0 32px; }
header { text-align: center; margin-bottom: 16px; }
header p { color: #bfc1f3; font-size: .875rem; margin: 0 0 5px; letter-spacing: .28em; }
h1 { margin: 0; font-size: clamp(1.7rem, 6.5vw, 3.15rem); letter-spacing: .035em; line-height: 1.2; }
h1 span { color: #ffdf8e; }
.console { background: #171d32; border: 1px solid #505579; border-radius: 22px; box-shadow: 0 18px 48px #080b1b90; padding: 10px 10px 14px; }
.stage { position: relative; border: 1px solid #6e6798; border-radius: 14px; overflow: hidden; }
.stage svg { display: block; width: 100%; height: auto; }
.beam { opacity: .27; mix-blend-mode: screen; transition: fill .3s; }
.one { fill: #7ebaff; } .two { fill: #ec80e9; } .three { fill: #fbcc84; opacity: .16; }
[data-style="latin"] .one { fill: #ff816f; } [data-style="latin"] .two { fill: #f7bf72; }
[data-style="comedy"] .one { fill: #9ee786; } [data-style="comedy"] .two { fill: #84caff; }
.limb { fill: none; stroke: #222235; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.paw { fill: #363247; stroke: #171728; stroke-width: 2; }
.caption { position: absolute; z-index: 1; top: 5%; left: 50%; transform: translateX(-50%); margin: 0; padding: .36em .75em; border-radius: 1em; border: 2px solid #cb793d; background: #ffe7a0; color: #3a213e; font-size: clamp(.85rem, 3.1vw, 1.2rem); font-weight: 800; white-space: nowrap; }
.status { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 5px 5px; }
#current { font-weight: 700; } #clock { color: #cbc8e9; font: .88rem ui-monospace, monospace; white-space: nowrap; }
progress { width: 100%; height: 6px; appearance: none; display: block; accent-color: #adf6e6; }
progress::-webkit-progress-bar { border-radius: 4px; background: #343a55; }
progress::-webkit-progress-value { border-radius: 4px; background: #adf6e6; }
.modes, .controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
button { min-width: 0; min-height: 44px; cursor: pointer; border: 1px solid #585e80; border-radius: 10px; color: inherit; background: #232b47; padding: 6px 4px; font: inherit; font-size: .92rem; }
button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; }
.mode { color: #1f2035; font-weight: 800; margin: 2px 0; }
.mode span { padding-inline-end: .26em; }
.disco { background: #adf6e6; } .latin { background: #ffc0d8; } .comedy { background: #ffe39e; }
.mode[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -5px; }
.mode:focus-visible { outline: 3px solid white; outline-offset: 2px; }
button:hover:not(:disabled) { filter: brightness(1.12); }
@media (max-width: 385px) {
  main { width: calc(100% - 20px); }
  .console { padding: 7px; }
  .modes, .controls { gap: 5px; }
  .mode span { display: none; }
}
