.page-game .game-shell.theme-sound {
  --voice-ink:#30241e;
  --voice-label:#625040;
  --voice-accent:#9b4511;
  --voice-border:#ac8760;
  --voice-paper:#fff4dd;
  --brand:var(--voice-accent);
  --stage-ink:var(--voice-ink);
  --line:#d7bc91;
  --soft:#ffeed0;
  --stage:#fff3dc;
}
.page-game .game-shell.theme-sound:not(.theme-wolf) {
  background:radial-gradient(ellipse at 12% 16%,#fff7e5,transparent 60%),#ffefce;
}
.page-game .game-shell.theme-sound :is(.play,.game-mast) {background:none}
.page-game .game-shell.theme-sound .game-toolbar {background:#fff0d4}
.page-game .game-shell.theme-sound.wide .play:has(.sound-room) {
  max-width:100rem;
  min-height:0;
  justify-content:flex-start;
  margin:0 auto;
  padding:clamp(.85rem,3vw,3rem) clamp(.8rem,3vw,3.2rem) 2rem;
}
.sound-room {
  width:100%;
  max-width:92rem;
  margin:0 auto;
  color:var(--voice-ink);
  text-align:start;
}
.game-shell .play .sound-room .session-banner {
  max-width:none;
  margin:0 0 clamp(.8rem,2vw,1.45rem);
  text-align:start;
}
.game-shell .play .sound-room .session-banner h2 {
  font-size:clamp(1.5rem,4vw,3.6rem);
  line-height:1.08;
  letter-spacing:-.035em;
  margin:.35rem 0 0;
  color:var(--voice-ink);
  text-wrap:balance;
}
.game-shell .play .sound-room .session-banner .meta {
  margin:0;
  color:var(--voice-accent);
  font-size:clamp(.85rem,1.45vw,1.08rem);
  font-weight:800;
}
.game-shell .play .sound-room p {
  text-align:start;
  margin:.75rem 0;
  color:var(--voice-label);
  overflow-wrap:anywhere;
}
.game-shell .play .sound-room .actions {
  justify-content:flex-start;
  gap:.55rem;
  margin:.75rem 0 0;
}
.game-shell .play .sound-room button,
.page-game .game-shell.theme-sound .game-toolbar .button {
  min-height:46px;
  padding:.55rem .85rem;
  white-space:normal;
  transition:background-color .16s ease,transform .16s ease;
}
.page-game .game-shell.theme-sound .play .button:is(.cta,.sound-room button[data-action]:not(.secondary)) {
  background:var(--voice-accent);
  color:#fff9ed;
  border-color:var(--voice-accent);
}
.page-game .game-shell.theme-sound .play .button:is(.cta,.sound-room button[data-action]:not(.secondary)):hover {background:#782e07}
.page-game .game-shell.theme-sound .play .button.cta:disabled {
  background:#e9d3b2;
  color:#5f4733;
  border-color:#bfa783;
}
.page-game .game-shell.theme-sound .button.secondary {
  color:var(--voice-ink);
  background:#fff3dd;
  border-color:var(--voice-border);
}
.page-game .game-shell.theme-sound .button.secondary:hover {background:#f8dfaf}
.sound-room :is(button,input):focus-visible {
  outline:3px solid #37566c;
  outline-offset:3px;
}
.sound-room button:enabled:active {transform:translateY(1px)}

.sound-handoff,.sound-console,.sound-review {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(.9rem,3.4vw,3.5rem);
  align-items:center;
}
.sound-meter,.sound-reel {
  isolation:isolate;
  position:relative;
  min-width:0;
  border:1px solid #806340;
  border-radius:clamp(.8rem,2.5vw,1.9rem);
  background:repeating-linear-gradient(0deg,#45341d11 0 1px,#fff8e612 1px 3px),linear-gradient(145deg,#e0c69c 0%,#b3966a 53%,#896d4b 100%);
  box-shadow:inset 0 2px 0 #fff1cd,inset 0 -3px 0 #59452d80,0 5px 0 #6d5136,0 16px 28px #64452340;
}
.sound-meter::before,.sound-reel::before {
  content:"";
  position:absolute;
  inset:.65rem;
  z-index:-1;
  --screw:radial-gradient(circle,#403528 0 12%,#d1bb96 17% 28%,#655138 32% 43%,transparent 48%);
  background:var(--screw) top left/12px 12px no-repeat,var(--screw) top right/12px 12px no-repeat,var(--screw) bottom left/12px 12px no-repeat,var(--screw) bottom right/12px 12px no-repeat;
  pointer-events:none;
}
.sound-reel {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(.6rem,2vw,1.2rem);
  min-height:clamp(9rem,32dvh,24rem);
  padding:1rem;
}
.sound-reel b {
  width:17%;
  height:.4rem;
  border-block:1px solid #594730;
  background:#9d6a3d;
}
.sound-reel i {width:min(33%,9.5rem)}
.sound-speaker,.sound-reel i {
  position:relative;
  display:block;
  aspect-ratio:1;
  border-radius:50%;
  border:clamp(3px,.55vw,8px) solid #c7aa7e;
  background:radial-gradient(circle,#414754 0 12%,#151b24 12.5% 13.5%,#d38d34 14% 16%,transparent 16.5%),radial-gradient(circle,transparent 59%,#181510 73%),repeating-conic-gradient(from 2deg,#1b222b 0deg 3deg,#41464c 3deg 7deg);
  box-shadow:inset 0 0 0 2px #261e19,inset 0 0 16px #11151d,0 0 0 1px #735438,0 5px 9px #3d2b20a8;
}
.sound-meter {
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  align-content:center;
  align-items:center;
  gap:clamp(.65rem,2vw,1.75rem);
  padding:clamp(1.15rem,3vw,2.9rem);
}
.sound-dial {
  display:grid;
  justify-items:stretch;
  gap:clamp(.55rem,1.2vw,1rem);
  min-width:0;
}
.sound-watch {
  position:relative;
  isolation:isolate;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:.12rem;
  width:100%;
  min-height:clamp(7rem,11vw,12rem);
  aspect-ratio:1;
  padding:.3rem;
  border-radius:50%;
  border:clamp(3px,.48vw,6px) solid #9c7d53;
  background:radial-gradient(circle at 35% 27%,#fffbeb,#efd29e 93%);
  box-shadow:inset 0 0 0 2px #fff5df,0 0 0 1px #73583a,0 4px 8px #4634208c;
  color:#352314;
  text-align:center;
}
.sound-watch::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:5%;
  border-radius:50%;
  background:repeating-conic-gradient(#825c35 0deg 1.4deg,transparent 1.4deg 8deg);
  mask:radial-gradient(circle,transparent 61%,#000 62% 66%,transparent 67%);
  opacity:.7;
}
.sound-watch > span {
  font-size:clamp(.63rem,1.15vw,.9rem);
  font-weight:780;
  line-height:1.1;
  color:#634623;
}
.sound-watch strong {
  font-variant-numeric:tabular-nums;
  font-size:clamp(2.35rem,5.8vw,6.4rem);
  line-height:.9;
  letter-spacing:-.045em;
}
[data-sound-phase=paused] .sound-watch strong {color:#884018}
.sound-dial progress {
  appearance:none;
  width:100%;
  height:clamp(.5rem,1.2vw,.8rem);
  border:2px solid #83623d;
  border-radius:20px;
  overflow:hidden;
  background:#4c3523;
  accent-color:#ffbb55;
}
.sound-dial progress::-webkit-progress-bar {background:#4c3523}
.sound-dial progress::-webkit-progress-value {background:#ffbd5f;border-radius:20px}
.sound-dial progress::-moz-progress-bar {background:#ffbd5f;border-radius:20px}
.sound-wave {
  grid-column:1/-1;
  width:88%;
  justify-self:center;
  height:clamp(.85rem,3.6vw,2.8rem);
  background:repeating-linear-gradient(90deg,#fff0c7 0 2px,transparent 2px 5px);
  clip-path:polygon(0 48%,8% 48%,14% 33%,20% 47%,27% 43%,34% 11%,41% 27%,47% 43%,54% 46%,61% 21%,67% 8%,74% 25%,81% 45%,89% 48%,100% 48%,100% 52%,89% 52%,81% 55%,74% 77%,67% 94%,61% 72%,54% 54%,47% 57%,41% 76%,34% 89%,27% 56%,20% 53%,14% 68%,8% 52%,0 52%);
  opacity:.78;
}
.sound-controls {min-width:0}
.sound-controls .actions > [data-action^="freeze:"],
.sound-controls .actions > [data-action^="resume:"] {flex-basis:100%}
.sound-controls .actions > .button.secondary:not([data-action=reset]) {flex:1 1 auto}
@media (min-width:950px) {
  .sound-room:is([data-sound-phase=play],[data-sound-phase=paused]) {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    grid-template-rows:1fr auto 1fr;
    column-gap:clamp(1rem,4vw,4rem);
  }
  .sound-room:is([data-sound-phase=play],[data-sound-phase=paused]) .session-banner {
    grid-area:1/2;
    align-self:end;
  }
  .sound-console {display:contents}
  .sound-meter {grid-area:1/1/4/2;align-self:center}
  .sound-controls {grid-area:2/2;align-self:start}
}

.sound-tally {
  display:flex;
  max-width:34rem;
  border:1px solid #a45a29;
  border-radius:.55rem;
  overflow:hidden;
}
.sound-tally > div {
  min-width:0;
  flex:1;
  display:flex;
  gap:.3rem;
  justify-content:space-between;
  align-items:center;
  padding:.52rem clamp(.5rem,1.4vw,1rem);
  color:var(--voice-ink);
  background:#fff3dc;
  font-weight:750;
}
.sound-tally > div + div {border-inline-start:1px solid #a45a29}
.sound-tally > div[data-active=true] {
  background:var(--voice-accent);
  color:#fff9ed;
}
.sound-tally strong {
  font-size:1.45rem;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.sound-private,.sound-guess {max-width:48rem}
.sound-secret,.sound-review > div:first-child {
  padding:clamp(.85rem,3vw,2.4rem);
  background:var(--voice-paper);
  border:1px solid #d7b78b;
  border-inline-start:5px solid var(--voice-accent);
  border-radius:.55rem;
  box-shadow:0 4px 0 #87633323;
  color:var(--voice-ink);
}
.sound-secret > strong,.sound-review > div > strong {
  display:block;
  font-size:clamp(1.65rem,4vw,3.65rem);
  line-height:1.13;
  overflow-wrap:anywhere;
}
.sound-secret p > span,.sound-review > div > span {
  display:block;
  margin-bottom:.25rem;
  color:var(--voice-label);
  font-size:.875rem;
  font-weight:750;
}
.sound-guess form {margin-block:.8rem}
.sound-guess label {
  display:grid;
  gap:.4rem;
  max-width:44rem;
}
.sound-guess input {
  min-width:0;
  width:100%;
  font-size:1rem;
  border-color:var(--voice-border);
  background:#fffbf1;
  color:var(--voice-ink);
}
.game-shell .play .sound-guess [data-sound-error] {color:#8e2d17;font-weight:700}
.sound-guess [data-sound-error]:empty {display:none}
.sound-review {align-items:start}
.sound-review > div {min-width:0}
.sound-review > div:nth-child(2) {padding-top:.4rem}
.sound-review em {
  display:block;
  overflow-wrap:anywhere;
  font-style:normal;
  font-weight:750;
  color:var(--voice-ink);
}
.sound-verdicts,.sound-review-actions {
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  margin-block:.75rem;
}
.game-shell .play .sound-room .sound-verdicts button {
  color:var(--voice-ink);
  background:#fff3dd;
  border:1px solid var(--voice-border);
  border-radius:.45rem;
  cursor:pointer;
}
.game-shell .play .sound-room .sound-verdicts button[aria-pressed=true] {
  color:#fff7e9;
  background:#3c4c52;
  border-color:#3c4c52;
}
.sound-archive {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));
  gap:.65rem;
  margin-block:1rem;
}
.sound-record {
  min-width:0;
  padding:.7rem .85rem;
  margin:.75rem 0 0;
  background:#fff4df;
  border-top:3px solid #b0916a;
  border-radius:.45rem;
  text-align:start;
}
.sound-record[data-sound-end=hit] {border-color:#597465}
.sound-archive .sound-record {margin:0}
.sound-record header {
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  color:var(--voice-label);
  font-size:.875rem;
}
.sound-record strong {
  display:block;
  font-size:1.1rem;
  margin:.2rem 0;
  overflow-wrap:anywhere;
}
.sound-record small {color:var(--voice-label)}
.game-shell .play .sound-record p {margin:.3rem 0 0;font-size:.9rem}

@media (min-width:1000px) {
  .sound-archive {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:730px) {
  .sound-console,.sound-handoff,.sound-review {grid-template-columns:minmax(0,1fr)}
  .sound-reel i {width:min(30%,6rem)}
  .sound-meter {
    width:min(100%,32rem);
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    padding:1.1rem max(1.05rem,7%);
  }
  .sound-watch {min-height:0}
  .sound-watch strong {font-size:clamp(2.25rem,10vw,4.35rem)}
  .sound-review-actions {flex-direction:column;align-items:stretch}
}
@media (prefers-reduced-motion:reduce) {
  .game-shell .play .sound-room button {transition:none;transform:none}
}
