.br-game {
  --plate: #18293f;
  --dim: #bac9d6;
  --gold: #f4ca82;
  --copper: #98734e;
  inline-size: min(48rem, 100%);
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #243a52;
  border-radius: 14px;
  background: radial-gradient(ellipse at 72% 0%, #243954 0, transparent 64%), #101b2b;
  box-shadow: 0 13px 30px #202c4038, inset 0 0 0 1px #ffffff11;
  color: #f4eee1;
  font-size: 14px;
}
.br-game [hidden] { display: none !important; }
.br-header, .br-scene-control, .br-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.br-header { justify-content: space-between; }
.br-scene-control { min-width: 0; font-weight: 700; }
.br-scene-control > span { color: var(--dim); }
.br-game button, .br-game select {
  min-height: 44px;
  border: 1px solid #5a7089;
  border-radius: 7px;
  background: #1b2c43;
  color: #f4eee1;
  padding: 5px 11px;
  font: inherit;
  font-weight: 700;
}
.br-game select {
  max-inline-size: 100%;
  min-inline-size: 0;
  color-scheme: dark;
}
.br-game button:disabled { opacity: .42; }
.br-game button:hover:enabled { border-color: var(--gold); background: #233b58; }
.br-game button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 -2px #f4ca82; }
.br-game button:focus-visible, .br-game select:focus-visible { outline-color: #8be3df; }
.br-prompt {
  color: var(--dim);
  line-height: 1.45;
  margin: 12px 1px;
}
.br-scoreboard {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px 3px;
  padding: 3px;
  border: 1px solid #394b5e;
  border-radius: 8px;
  background: #0c1727;
  color: #f4eee1;
  font-variant-numeric: tabular-nums;
}
.br-scoreboard th, .br-scoreboard td { padding: 0; height: 30px; text-align: center; }
.br-scoreboard thead th { height: 23px; color: var(--dim); font-weight: 650; }
.br-scoreboard tr > :first-child { width: 94px; }
.br-scoreboard tbody th {
  padding-inline: 7px;
  font-weight: 700;
  text-align: start;
  overflow-wrap: anywhere;
}
.br-scoreboard tbody td { background: var(--plate); border-radius: 4px; }
.br-scoreboard .br-score td { color: #ffe2a7; background: #55422b; }
.br-scoreboard .br-actual td { background: #253b50; }
.br-scoreboard .br-score td, .br-scoreboard .br-actual td { font-weight: 750; }
.br-scoreboard td.br-rest { color: #b7c6d7; }
.br-small { --bell: #f5c46e; }
.br-middle { --bell: #8fe4de; }
.br-tall { --bell: #c6b3ff; }
.br-scoreboard td.br-strike { background: #233a53; }
.br-scoreboard .br-strike .br-value,
.br-wheel > span::before {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--bell);
  border-radius: 100%;
  vertical-align: -.5px;
}
.br-middle .br-strike .br-value, .br-wheel.br-middle > span::before { border-radius: 2px; }
.br-tall .br-strike .br-value, .br-wheel.br-tall > span::before {
  transform: rotate(45deg) scale(.85);
  border-radius: 1px;
}
.br-scoreboard .br-current {
  position: relative;
  outline: 1px solid #f4ca82;
  outline-offset: -1px;
  border-radius: 4px;
}
.br-scoreboard td.br-mismatch { background: #662d39; color: #fff8ec; outline: 2px dashed #ffc1b2; outline-offset: -2px; }
.br-scoreboard th.br-current, .br-scoreboard .br-current.br-strike { color: #fff2ca; background: #3f3a31; }
.br-wheels {
  display: flex;
  gap: 8px;
  justify-content: start;
  margin-block: 12px;
}
.br-wheel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  border: 1px solid #405570;
  border-radius: 7px;
  background: #142337;
  padding: 4px 6px;
}
.br-wheel > span { font-weight: 700; }
.br-wheel > span::before {
  content: "";
  margin-inline-end: 5px;
  width: 8px;
  height: 8px;
}
.br-lever { display: flex; justify-content: center; gap: 3px; }
.br-lever button {
  min-width: 44px;
  padding: 3px;
  font-size: 20px;
  line-height: 1;
  color: var(--bell);
}
.br-actions { flex-wrap: wrap; }
.br-game .br-test {
  color: #2a1e11;
  border-color: #ecb96e;
  background: #f4ca82;
}
.br-game .br-test:hover:enabled { color: #23190c; background: #ffdb9b; }
.br-game .br-next { color: #bdf3de; border-color: #6c9d88; }
.br-status { margin: 9px 0 0; color: var(--dim); line-height: 1.35; min-height: 1.35em; }
.br-status[data-result="mismatch"] { color: #ffc5bc; }
.br-status[data-result="correct"] { color: #c6f5d9; font-weight: 750; }
@media (max-width: 650px) {
  .br-game { padding: 11px; }
  .br-wheel { flex-direction: column; padding: 4px 1px; gap: 3px; text-align: center; }
  .br-scoreboard tr > :first-child { width: 72px; }
}
@media (max-width: 390px) {
  .br-game { padding: 8px; font-size: 13px; }
  .br-wheels { gap: 4px; }
  .br-scoreboard tr > :first-child { width: 59px; }
  .br-scoreboard tbody th { padding-inline: 3px; }
  .br-lever { gap: 2px; }
  .br-scoreboard th, .br-scoreboard td { height: 27px; }
  .br-scoreboard thead th { height: 21px; }
  .br-game .br-actions button { padding-inline: 8px; }
}
@media (max-width: 350px) {
  .br-game { padding: 5px; }
  .br-wheels { gap: 3px; }
  .br-wheel { border-inline: 0; background: #142337; padding-inline: 0; }
  .br-scene-control > span { position: absolute; clip-path: inset(50%); }
}
@media (max-width: 600px) and (max-height: 630px) {
  .br-prompt { margin-block: 7px; line-height: 1.3; }
  .br-scoreboard { border-spacing: 2px 2px; padding: 2px; }
  .br-scoreboard th, .br-scoreboard td { height: 23px; }
  .br-scoreboard thead th { height: 19px; }
  .br-wheels { margin-block: 8px; }
  .br-status { margin-block-start: 6px; }
}

.br-scoreboard .br-beat {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border-color: #3d5671;
  background: #192c42;
  color: #e5edf2;
}
.br-scoreboard th.br-current .br-beat {
  border-color: var(--gold);
  background: #54412f;
  color: #ffe6ac;
}
.br-status[data-result="beat-match"] { color: #d2ebdf; }


.br-cues {display:flex;flex-wrap:wrap;gap:4px 10px;margin:0 0 7px;font-size:.8em;line-height:1.4}
.br-cue {color:var(--bell);font-weight:750}
.br-cue::before {content:"";display:inline-block;width:.55em;height:.55em;margin-inline-end:5px;background:currentColor;border-radius:50%}
.br-cue.br-tall::before {border-radius:1px;transform:rotate(45deg)}
.br-scoreboard td.br-required {outline:2px solid #e9bc6a;outline-offset:-2px}
.br-scoreboard td.br-required-missing {outline-style:dashed}
