/* Shared teal, yellow and cream palette from Mr Walker's website games. */
:root{color-scheme:light;--bg:#f7fbf8;--panel:#e8f3ed;--border:#c4dcd3;--text:#17383b;--muted:#587477;--lime:#ffe343;--violet:#007f89;--peach:#007f89;--mint:#d9f3ec}
body{background-color:var(--bg);background-image:radial-gradient(#008b9015 1px,transparent 1px);background-size:20px 20px}
.header{background:#007f89;color:#fff;border-bottom:3px solid #153f43;border-radius:0 0 23px 23px;box-shadow:0 4px 0 #ffe343;padding-inline:24px}
.brand-title{color:#fff;text-shadow:1px 2px 0 #00515a}.brand-overline,.title-dot{color:#ffe343}.brand-icon{color:#17383b;box-shadow:3px 3px 0 #00525a}.brand-icon i{background:#fff}
.header .quiet-button{color:#fff}.header .help-icon{border-color:#ffffff90}.header .icon-button{background:#ffffff0a;border-color:#ffffff55;color:#fff}.header :focus-visible{outline-color:#ffe343}
.live-dot,.mini-dot{background:#007f89}.panel{background:#e8f3ed}.panel h2{color:#15545a}.word-option,.tempo-option{background:#fff;border-color:#b9d6ce}.word-option .option-check{border-color:#7da79d}
.word-option[aria-pressed=true]{background:#007f89;border-color:#004e55;box-shadow:0 3px 0 #004e55}.word-option[aria-pressed=true] strong{color:#fff}.word-option[aria-pressed=true] small{color:#ddf6ec}.word-option[aria-pressed=true] .option-check{border-color:#ffe343;background:#007f89}
.tempo-option[aria-pressed=true]{background:#ffe343;border-color:#17383b;color:#17383b;box-shadow:0 2px 0 #17383b}.tempo-option[aria-pressed=true] small{color:#365b53}.volume-row svg{color:#007f89}input[type=range]{accent-color:#007f89}
.preview-panel{background:#e8f3ed}.preview-word{background:#fff;color:#17383b;border-color:#9ec5b7}.preview-word:nth-child(3){background:#ffe343;color:#17383b;border-color:#17383b;box-shadow:0 3px 0 #bba72d}
.sequence svg,.sequence .sequence-arrow{color:#007f89}.sequence b{color:#587477}.primary-button{background:#ffe343;color:#17383b;border:2px solid #17383b;box-shadow:0 4px 0 #17383b}.primary-button:active{box-shadow:0 1px 0 #17383b}
.footer{color:#587477}.divider{color:#90ada3}.mode-title{color:#17383b}.mode-tabs{background:#e8f3ed}.mode-tabs #watch-tab.active{background:#007f89;color:#fff}.mode-tabs #read-tab.active{background:#ffe343;color:#17383b}
.word-card{background:#fff;border-color:#b9d6ce}.word-card.revealed{background:#fff;border-color:#91b8aa}.word-number{color:#587477}.card-word{color:#17383b}.word-card::after{background:#bbd7cc}
.word-card.said{background:#edf6f0;border-color:#a9cbbd}.word-card.said .card-word{color:#31584c}.word-card.active-word{background:#ffe343;border-color:#17383b;box-shadow:0 0 0 4px #007f8926}.word-card.active-word .card-word{color:#17383b}.word-card.active-word .word-number{color:#536238}.word-card.active-word::after{background:#007f89}
.countin-overlay{background:#f7fbf8f5}.countin-label,.countin-overlay strong{color:#007f89}.paused-overlay{background:#f7fbf8ed}.paused-badge{background:#d9f3ec;color:#007f89}
.beat-dots span{border-color:#9ebfb1;color:#587477}.beat-dots span.current{background:#007f89;border-color:#007f89;color:#fff;box-shadow:0 0 0 4px #007f891a}.game-screen[data-mode=read] .beat-dots span.current{background:#ffe343;border-color:#17383b;color:#17383b;box-shadow:0 0 0 4px #ffe34380}.game-screen[data-mode=read] .mode-title{color:#007f89}
.pause-button{background:#007f89;color:#fff}.live-controls select{background:#fff;border-color:#9ebfb1}.switch{background:#adc9bd}.switch::after{background:#fff}.music-toggle[aria-pressed=true] .switch{background:#007f89}.music-toggle[aria-pressed=true] .switch::after{background:#ffe343}
dialog{background:#f7fbf8;color:#17383b;border-color:#17383b;box-shadow:0 7px 0 #1c3c3b33}dialog::backdrop{background:#123c42b3}.icon-button{background:#ffffff80}.help-steps li{color:#007f89}.help-steps strong{color:#17383b}.source-link{color:#007f89}kbd{background:#e0eee5;color:#17383b}.error-message{background:#fff0df;border-color:#bd7b35;color:#784913}
@media(max-width:760px){.header{padding-inline:13px}}
.brand-title{font-size:clamp(23px,2.3vw,31px);letter-spacing:-.8px}.title-tail{white-space:nowrap}body.playing .brand-title{font-size:clamp(21px,2.1vw,27px)}
.list-mode{display:flex;gap:6px;margin-top:15px;padding:4px;background:#d9ebe1;border-radius:11px}.list-mode button{flex:1;background:transparent;border:1px solid transparent;border-radius:8px;padding:9px 5px;color:#436a5c;font-size:12px;font-weight:700}.list-mode button[aria-pressed=true]{background:#fff;color:#005b64;border-color:#9fc3b4;box-shadow:0 2px 0 #9fc3b4}
.sound-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.sound-filters input,.sound-filters select{width:100%;min-width:0;min-height:36px;border:1px solid #9fc3b4;border-radius:8px;background:#fff;color:#17383b;padding:8px 9px;font:inherit;font-size:11px}.sound-filters input::placeholder{color:#668578}
.sound-tools{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#587477;margin:9px 0}.sound-tools>span:last-child{display:flex;gap:15px}.sound-tools button{background:none;color:#006872;font-size:10px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.sound-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:225px;overflow:auto;padding:2px 4px 5px 1px;scrollbar-color:#8bb9a7 #e8f3ed;scrollbar-width:thin}.sound-choice{min-width:0;min-height:55px;border:1px solid #aacbbd;border-radius:9px;background:#fff;color:#17383b;padding:6px 3px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px}.sound-choice strong{font-size:17px;line-height:1.1}.sound-choice span{font-family:Reading,'Comic Sans MS',sans-serif;font-size:11px;line-height:1.2}.sound-choice[aria-pressed=true]{background:#007f89;color:#fff;border-color:#004e55;box-shadow:0 2px 0 #004e55}.sound-choice[aria-pressed=true] strong{color:#ffe343}.selected-sounds{font-size:10px;color:#335c4d;line-height:1.6;margin-top:10px;min-height:16px}.no-sounds{font-size:11px;line-height:1.5;color:#587477;padding:14px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.word-card.arriving{background:#e0f2e8;border-color:#007f89}.source-link+.source-link{margin-left:14px}
.setup-columns{align-items:start}.start-row{margin-top:28px}.word-options{margin-top:13px}
@media(max-width:760px){.brand{gap:9px}.brand-title,body.playing .brand-title{font-size:20px;line-height:1.06;letter-spacing:-.4px}.title-tail{display:block}.sound-choices{grid-template-columns:repeat(4,minmax(0,1fr));max-height:245px}.sound-filters{grid-template-columns:1fr}.source-link+.source-link{margin-left:0;display:block}.list-mode button{font-size:11px}}
@media(max-width:380px){.brand-title,body.playing .brand-title{font-size:18px}.brand-icon{width:36px;height:36px}.sound-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.small-label{font-size:8px}.section-heading h2{font-size:14px}}
.word-card{container-type:inline-size}.card-word{--reading-size:clamp(32px,5.6vw,80px)}.word-card[data-length=long] .card-word{--reading-size:clamp(26px,4.1vw,60px)}.word-card[data-length=xlong] .card-word{--reading-size:clamp(22px,3.1vw,45px)}.word-card .card-word,.word-card[data-length=long] .card-word,.word-card[data-length=xlong] .card-word{font-size:min(var(--reading-size),calc(150cqw / var(--word-length,8)))}
@media(max-width:760px){.card-word{--reading-size:clamp(30px,8vw,55px)}.word-card[data-length=long] .card-word{--reading-size:clamp(25px,6.5vw,44px)}.word-card[data-length=xlong] .card-word{--reading-size:clamp(22px,5.5vw,36px)}}
@media(max-width:760px) and (max-height:600px){.card-word,.word-card[data-length=long] .card-word,.word-card[data-length=xlong] .card-word{--reading-size:clamp(20px,5.9vh,32px)}}
.complete-overlay{position:absolute;inset:0;z-index:6;border-radius:24px;background:#f7fbf8f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;text-align:center;padding:20px;backdrop-filter:blur(5px)}.completion-mark{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:#ffe343;border:2px solid #17383b;font-size:38px;font-weight:700;color:#007f89}.complete-overlay h2{font-family:Bricolage,DM,sans-serif;font-size:clamp(26px,4vw,44px);letter-spacing:-1px}.complete-overlay p{font-size:14px;color:#587477}.completion-actions{display:flex;align-items:center;gap:22px;margin-top:8px}.completion-actions .quiet-button{color:#006872;text-decoration:underline;text-underline-offset:4px}@media(max-width:500px){.completion-actions{flex-direction:column;gap:9px}.completion-mark{width:54px;height:54px;font-size:31px}.complete-overlay{border-radius:16px;gap:13px}}

.word-option[disabled] { cursor: default; }
