/* The round uses the same ink, paper and amber tiles as the mode selector. */
.round-wrap {
  --round-ink:#243a3e;
  --round-gold:#edaa46;
  --round-paper:#fff8dc;
  width:min(100%, 700px);
  margin:0 auto;
  color:var(--round-ink);
}
.round-path,.round-meter,.compare-sounds{display:flex;align-items:center;justify-content:space-between;gap:12px}
.round-path{margin:0 3px 10px;font-size:.88rem;font-weight:650;color:#4e6259}
.round-path .back{padding:1px 0;margin:0;min-height:36px}
.round-path>span{text-align:right}
.round-board {
  width:100%;max-width:none;overflow:visible;text-align:center;
  border:2px solid var(--round-ink);border-radius:19px;
  background:#fffdf6;box-shadow:0 5px 0 var(--round-ink);
}
.round-meter {
  border-radius:16px 16px 0 0;padding:11px 24px;
  background:#f8e2ac;border-bottom:1.5px solid var(--round-ink);
}
.round-meter .meta{color:#3c4237;font-size:.88rem}
.round-steps{display:flex;gap:4px;align-items:center}
.round-steps i{width:14px;height:7px;background:#fff3cd;border:1px solid #786b4d;border-radius:3px}
.round-steps .complete{background:#40574e;border-color:#40574e}
.round-steps .now{height:10px;background:#d48c29;border:2px solid #3b3f34}
.round-board h1{margin:19px 12px 12px;font-size:clamp(2.2rem,4.6vw,3.15rem);line-height:1.07}
.sample-key {
  display:inline-flex;align-items:center;gap:14px;position:relative;
  max-width:calc(100% - 24px);min-height:62px;padding:5px 22px 5px 6px;
  background:#244d49;color:#fff7db;border:2px solid var(--round-ink);border-radius:40px 14px 14px 40px;
  box-shadow:inset 0 2px #618177,0 4px 0 #142d31;
  font-size:1.05rem;font-weight:730;line-height:1.2;
  transition:transform .14s ease,box-shadow .14s ease;
}
.speaker-grille{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;color:#263e3e;background:#f7cf7d;border:2px solid #182e33;box-shadow:inset 0 0 0 3px #fff1bf}
.speaker-grille svg{display:block;width:30px;height:30px;fill:currentColor}
.sample-key .glyph-pause,.sample-key .glyph-replay{display:none}
.sample-key[data-sound=pause] .glyph-play,.sample-key[data-sound=replay] .glyph-play{display:none}
.sample-key[data-sound=pause] .glyph-pause,.sample-key[data-sound=replay] .glyph-replay{display:block}
.sample-key[data-sound=pause] .speaker-grille{background:#99d7b0;box-shadow:inset 0 0 0 3px #d6f1c9}
.answer-stage{margin:21px 20px 13px;padding:10px 12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:154px;background-color:#f8dea1;background-image:radial-gradient(#b68c4766 .8px,transparent 1px);background-size:9px 9px;border:1.5px solid #b59d68;border-radius:12px}
.choice-prompt{font-size:.88rem;font-weight:600;color:#4d4939;line-height:1.28;margin:4px 0 8px}
.covered-options{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0 9px}
.covered-options i{display:grid;place-items:center;width:67px;height:56px;color:#8c7957;background:#eedaa9;border:2px solid #a5936c;border-radius:8px;box-shadow:0 3px #a5936c;
  font:700 32px/1 Georgia,serif;transform:rotate(-5deg)}
.covered-options i+i{transform:rotate(5deg)}
.round-board .do-choices{align-self:stretch;display:flex;flex-direction:column;gap:0;align-items:center;margin:0}
.round-board [hidden]{display:none!important}
.answer-rack{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(16px,3vw,30px);padding:6px 10px 10px}
.answer-tile.secondary {
  --tilt:-5deg;position:relative;display:grid;place-items:center;
  color:var(--round-ink);background:var(--round-paper);border:2.5px solid var(--round-ink);border-radius:12px;
  box-shadow:0 6px 0 var(--round-ink);flex:none;width:max-content;min-width:clamp(80px,12vw,110px);min-height:71px;padding:6px clamp(8px,2vw,18px);white-space:nowrap;
  font:900 clamp(1.35rem,4.4vw,2.6rem)/1.03 TonSerif,Georgia,serif;letter-spacing:-.055em;
  transform:rotate(var(--tilt));transition:transform .15s ease,box-shadow .15s ease;
}
.answer-tile:nth-child(2){--tilt:5deg;background:var(--round-gold)}
.answer-tile:disabled,.uncertain:disabled{opacity:1;cursor:default}
.answer-tile.chosen{outline:2px dashed #4e5651;outline-offset:4px}
/* One visual vocabulary for the answer, the score strip and the detailed review. */
.outcome-mark{
  --mark-size:30px;display:inline-grid;place-items:center;flex:none;box-sizing:border-box;
  width:var(--mark-size);height:var(--mark-size);border:1.5px solid currentColor;
  font:800 calc(var(--mark-size) * .76)/1 "Segoe UI",Arial,sans-serif;letter-spacing:0
}
.outcome-mark.hit{color:#184735;background:#d4ead6;border-radius:50%}
.outcome-mark.miss{color:#fff8ed;background:#8c3832;border-color:#572922;border-radius:22%}
.outcome-mark.unsure{color:white;background:#54457e;border-color:#3e315e;border-radius:48% 48% 48% 8%}
.answer-tile .outcome-mark{position:absolute;top:-10px;right:-9px;transform:rotate(calc(0deg - var(--tilt)))}
.do-choices[data-outcome="hit"] .answer-tile .outcome-mark{--mark-size:24px;top:-8px;right:-6px}
.do-choices[data-outcome="miss"] .chosen.answer-tile{
  background:#f7d3c7;color:#592d29;border-color:#823c34;box-shadow:0 5px 0 #66332e;
  outline:none
}
.do-choices:is([data-outcome="miss"],[data-outcome="unsure"]) .correct.answer-tile{
  background:#e0edcf;color:#243f31;border-color:#375846;box-shadow:0 5px 0 #375846
}
.do-choices[data-outcome="unsure"] .answer-tile:not(.correct){
  background:#f7edcf;color:#5e594b;border-color:#897e62;box-shadow:0 4px 0 #897e62
}
.do-choices .uncertain.chosen{
  display:inline-flex;align-items:center;gap:8px;min-height:36px;margin:5px 0 3px;padding:3px 13px 3px 4px;
  background:#ede6fa;color:#3d315b;border:2px solid #534568;border-radius:18px 9px 9px 6px;
  box-shadow:0 2px 0 #534568;text-decoration:none;font-weight:750;font-size:.92rem
}
.uncertain.chosen .outcome-mark{--mark-size:28px}
@media(forced-colors:active){
  .outcome-mark{border-color:CanvasText}
  .answer-tile.chosen .outcome-mark,.uncertain.chosen .outcome-mark{color:CanvasText}
}


.uncertain{min-height:38px;background:transparent;border:0;color:#37463d;font-size:.85rem;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.uncertain.chosen{font-weight:800}.uncertain:disabled:not(.chosen){display:none}
.round-message{padding:0 16px;font-size:1.07rem;font-weight:680;color:#274d42}.round-message:empty{display:none}
.round-board .do-feedback{padding:0;margin:9px 20px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.round-board .do-feedback:empty{display:none}
.compare-sounds{justify-content:center;gap:10px;font-size:.88rem;color:#48594e}
.compare-sounds .do-models{margin:0;gap:12px;color:#263e3d;font-weight:650}
.compare-sounds .circle{width:38px;height:38px;min-width:38px;padding:0;background:#f5f0df;border:1px solid #adad97;color:#304e45}
.arrow-key {
  isolation:isolate;position:relative;display:inline-grid;place-items:center;min-height:46px;padding:4px 28px 7px 14px;border:0;border-radius:5px;
  background:transparent;font-weight:730;font-size:.9rem;color:#f9f8e9;transition:transform .14s ease;
}
.arrow-key::before,.arrow-key::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:6px;clip-path:polygon(0 0,calc(100% - 17px) 0,100% 50%,calc(100% - 17px) 100%,0 100%)}
.arrow-key::before{background:#223a39}
.arrow-key::after{inset:2px 3px 5px 2px;background:#326359}
.sample-key:focus-visible,.answer-tile:focus-visible,.arrow-key:focus-visible,.uncertain:focus-visible{outline:3px solid #9b4300;outline-offset:5px}
@media(hover:hover) and (pointer:fine){
  .answer-tile:not(:disabled):hover{transform:translateY(-3px) rotate(0) scale(1.075);box-shadow:0 8px 0 var(--round-ink)}
  .sample-key:hover{transform:translateY(-1px) scale(1.025);background:#305c55}
  .arrow-key:hover{transform:translateX(3px)}.arrow-key:hover::after{background:#24564b}
}
.answer-tile:not(:disabled):active{transform:translateY(4px) rotate(0) scale(.99);box-shadow:0 1px 0 var(--round-ink)}
.sample-key:active{transform:translateY(3px);box-shadow:inset 0 2px 1px #203b39,0 1px 0 #142d31}
.arrow-key:active{transform:translateY(2px)}.arrow-key:active::after{bottom:3px}
@media(max-width:650px){
  .round-path{margin-bottom:6px;font-size:.79rem}.round-meter{padding:9px 12px;gap:6px}
  .round-meter .meta{font-size:.79rem}.round-steps{gap:2px}.round-steps i{width:9px}
  .round-board h1{margin:16px 5px 11px;font-size:clamp(1.85rem,7.6vw,2.65rem)}
  .sample-key{min-height:54px;font-size:.94rem}.speaker-grille{width:39px;height:39px}
  .answer-stage{margin:17px 9px 12px;min-height:145px;padding:7px}
  .round-board .do-feedback{margin:8px 10px 13px;flex-direction:column;gap:6px}
  .compare-sounds .circle{width:44px;height:44px}.round-message{font-size:.94rem}
  .uncertain{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  .sample-key,.arrow-key,.answer-tile.secondary{transition:none}
  .answer-tile:not(:disabled):hover,.answer-tile:not(:disabled):active{transform:rotate(var(--tilt))}
  .sample-key:hover,.sample-key:active,.arrow-key:hover,.arrow-key:active{transform:none}
}


/* The last screen reuses the amber rim and tipped tiles of the round. */
.score-board{text-align:left}
.score-board .round-meter{align-items:baseline;flex-wrap:wrap;gap:4px 14px}
.score-board .round-meter h1{margin:0;font:900 clamp(1.12rem,2.2vw,1.45rem)/1.2 TonSerif,Georgia,serif;letter-spacing:-.035em}
.score-sheet{display:grid;grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:24px;padding:25px 25px 20px}
.score-count{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;padding:17px 12px 12px;
  border:1px solid #decba3;border-radius:13px;background-color:#fbefd1;background-image:radial-gradient(#c9a65963 .75px,transparent 1px);background-size:8px 8px}
.score-numbers{display:flex;align-items:center;justify-content:center;gap:9px}
.score-numbers b{display:grid;place-items:center;width:60px;height:64px;border-radius:9px;border:2px solid var(--round-ink);
  background:#fffae0;box-shadow:0 3px 0 var(--round-ink);color:var(--round-ink);font:900 2.8rem/1 TonSerif,Georgia,serif;transform:rotate(-5deg)}
.score-numbers b:last-child{background:#eeb15a;transform:rotate(5deg)}
.score-numbers small{font:600 .93rem/1 "Segoe UI",sans-serif;color:#5a503d}
.score-caption{font:900 1.38rem/1.05 TonSerif,Georgia,serif;color:#354a43;letter-spacing:-.035em}
.score-breakdown{display:grid;align-content:center;gap:14px}
.score-contrast{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap}
.score-contrast-title{display:flex;width:100%;gap:7px;align-items:baseline;justify-content:space-between;font-size:.9rem;color:#2f4740}
.score-contrast-title strong{line-height:1.23}.score-contrast-title>span,.score-contrast small{white-space:nowrap;font-size:.78rem;color:#4d6058}
.score-contrast small{font-weight:600}
.score-units{display:inline-flex;flex-wrap:wrap;gap:4px}
.score-units .outcome-mark{--mark-size:20px}
.score-entry strong{display:inline-flex;gap:6px;align-items:center}
.score-entry .outcome-mark{--mark-size:19px}
.score-review{margin:0 25px;border-block:1px solid #cdd2c2}
.score-review summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:49px;cursor:pointer;list-style:none;color:#28574d;font-weight:700}
.score-review summary::-webkit-details-marker{display:none}.score-review summary:hover{text-decoration:underline;text-underline-offset:3px}
.score-disclosure{margin-right:7px;width:9px;height:9px;border-right:2px solid;border-bottom:2px solid;transform:translateY(-2px) rotate(45deg)}
.score-review[open] .score-disclosure{transform:translateY(2px) rotate(225deg)}
.score-review .do-review{margin:0;padding:0 0 8px;list-style:none}
.score-review .do-review li{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(0,1.15fr);gap:12px;align-items:center;padding:8px 0;border:0;border-top:1px dotted #c6cbbd}
.score-number{display:grid;place-items:center;width:27px;height:27px;border-radius:5px;background:#f4efd9;font-size:.78rem;font-weight:680}
.score-entry{display:grid;gap:1px}.score-entry strong{font-size:.86rem}.score-entry span,.score-recording span{font-size:.83rem;color:#485b52}.score-recording{display:flex;gap:10px;align-items:center;justify-content:flex-end}
.score-recording .circle{width:44px;min-width:44px;height:44px;border:1px solid #a4b4a7;background:#edf3e8;color:#214e42}
.score-recording .circle[aria-pressed=true]{background:#2e5d52;color:#fff}
.score-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 25px 18px}
.score-actions .arrow-key{text-decoration:none}.score-progress{display:inline-flex;align-items:center;min-height:44px;color:#3c5a50;font-size:.9rem;font-weight:650;text-underline-offset:3px}
@media(max-width:650px){
  .score-board .round-meter{padding:12px}.score-board .round-meter h1{margin:0;font-size:1.1rem}
  .score-sheet{grid-template-columns:1fr;gap:16px;padding:16px}
  .score-count{flex-direction:row;gap:18px;padding:14px 10px}.score-numbers{gap:7px}
  .score-numbers b{width:46px;height:50px;font-size:2.15rem}.score-caption{font-size:1.3rem}
  .score-breakdown{gap:12px}.score-review{margin:0 16px}.score-actions{padding:11px 16px 15px}
  .score-review .do-review li{grid-template-columns:22px minmax(0,1fr) minmax(0,1.15fr);gap:6px}
  .score-number{width:21px;height:24px}.score-recording{gap:4px}.score-recording span{font-size:.75rem}
}


@media(max-width:500px){
  .score-review .do-review li{grid-template-columns:22px minmax(0,1fr);gap:4px 8px}
  .score-number{grid-row:span 2;align-self:start}
  .score-recording{grid-column:2;justify-content:space-between}
}
.round-filter fieldset,.pair-setup #family-options fieldset{border:0;padding:0;margin:0 0 1rem;min-width:0}
.pair-setup legend,.pair-listen-options>label{font-weight:700;margin:.5rem 0}
.round-filter label{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .8rem;margin:0 .4rem .35rem 0;border:1px solid #897556;border-radius:9px;background:#fffaeb;cursor:pointer}
.round-filter label:has(:checked),.pair-setup .do-radio:has(:checked){background:#ffecb8;border-color:#695014}
.round-filter label[hidden]{display:none}
.pair-setup .do-radio{display:flex;align-items:center;gap:.7rem;padding:.7rem 1rem;cursor:pointer}
.pair-setup .do-radio small{display:block;color:#5a543e;font-weight:500}
.pair-setup .do-pair-grid{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:.6rem}
.pair-listen-options select{display:block;width:min(100%,28rem);margin:.3rem 0 1rem}
.pair-preview{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin:.6rem 0 1.2rem}
