.score-coach{width:min(620px,calc(100% - 24px));padding:30px 34px;background:#fffdf5;color:#563559;overflow:auto;text-align:left}
.score-coach::backdrop{background:rgba(51,29,31,.48);backdrop-filter:blur(3px)}
.coach-welcome{display:flex;align-items:center;gap:16px;padding-right:24px;margin-bottom:20px}
.score-coach[dir=rtl] .coach-welcome{padding-right:52px}
.coach-welcome .portrait{width:68px;height:68px;flex:0 0 68px;margin:0;background:#f1e9f7}
.coach-welcome p{margin:0;color:#74445d;font-size:.9rem;font-weight:800}
.score-coach h2{font-size:clamp(1.5rem,4vw,1.9rem);margin:3px 0 0;line-height:1.2}
.coach-choice{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px}
.coach-choice h3{font-family:Lora,Georgia,serif;font-size:1.5rem;margin:0}
.coach-points{font-size:1.85rem;font-weight:900;color:#a33c66;white-space:nowrap}
.coach-points small{font-size:.9rem;font-weight:700}
.coach-dice{display:flex;justify-content:center;gap:10px;margin:20px 0 12px;flex-wrap:wrap}
.coach-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:9px;gap:4px;width:54px;height:54px;box-sizing:border-box;background:#fff;border:2px solid #986144;border-radius:12px;box-shadow:0 3px 0 #d5b995;position:relative}
.coach-die .pip{width:auto;height:auto;background:#543d46;border-radius:50%;box-shadow:none}
.coach-die .pip.off{visibility:hidden}
.coach-die.uncounted{background:#f5efe8;border-color:#c4b3a2;box-shadow:none}
.coach-die.uncounted .pip{background:#9c8875}
.coach-equation{text-align:center;font-size:1.2rem;font-weight:900;margin:12px 0;color:#704254}
.score-coach .coach-reason{font-size:1rem;line-height:1.55;margin:12px 0}
.score-coach .coach-tip{margin:0 0 18px;font-size:.92rem;line-height:1.5;color:#386266}
.coach-key{text-align:center;font-size:.83rem;margin:8px 0 16px;color:#705966}
.score-coach .roll-button{width:100%;min-height:54px;justify-content:center;white-space:normal}
.coach-options{margin-top:20px;border-top:1px solid #dacbd2;padding-top:12px}
.coach-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:800;color:#704254}
.coach-options summary::before{content:'+';font-size:1.5rem}
.coach-options[open] summary::before{content:'−'}
.coach-options-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;margin-top:4px}
.coach-options-list button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px;min-height:48px;background:none;border:0;border-bottom:1px solid #e5d9df;border-radius:0;padding:10px 4px;font:inherit;font-size:.9rem;color:#563559;cursor:pointer}
.coach-options-list button[aria-pressed=true]{color:#92385f;font-weight:900}
.coach-options-list strong{white-space:nowrap}
.coach-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.coach-bottom button{min-height:44px}
.coach-back{font:inherit;font-weight:800;color:#704254;border:0;background:none;padding:8px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.turn-handoff{margin:12px 0 8px;padding:12px 16px;background:#fff8e9;border-radius:14px;display:flex;align-items:center;gap:12px;color:#5d3d35;text-align:left}
.turn-handoff[hidden]{display:none}
.turn-handoff .ui-icon{width:30px;height:30px;flex:0 0 30px;color:#9a536a}
.turn-handoff strong{display:block;font-size:1.15rem}
.turn-handoff p{margin:0;font-size:.86rem;line-height:1.4}
.voice-settings{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.voice-settings label{font-size:.87rem;font-weight:800}
.voice-settings select{min-height:44px;border:1px solid #ccb9c7;border-radius:10px;background:#fffdf5;color:#563559;padding:8px 30px 8px 12px;font:inherit;max-width:100%}
.voice-status{font-size:.84rem;color:#705966;margin:6px 0 0}
.welcome-voices{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 14px;margin:20px 0;text-align:left;color:#563559}
.welcome-voices .hear-friends{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px;font-weight:800}
.welcome-voices input{width:20px;height:20px;accent-color:#a33c66}
.welcome-voices select{min-width:0;width:100%;min-height:44px;padding:8px 12px;border:1px solid #ccb9c7;border-radius:10px;background:#fffdf5;color:#563559;font:inherit}
.voice-caption{max-width:62ch;margin:12px auto;padding:0 12px;color:#563559;font-size:.9rem;line-height:1.5;text-align:center}
.voice-caption[hidden]{display:none}
.voice-caption strong{font-weight:900}
.coach-voice-speaker{font-size:.85rem;font-weight:800;color:#74445d;margin:14px 0 0;min-height:1.3em}
@media(max-width:560px){.score-coach{padding:24px 20px}.coach-welcome{gap:12px}.coach-welcome .portrait{width:54px;height:54px;flex-basis:54px}.coach-dice{gap:7px}.coach-die{width:43px;height:43px;padding:7px;gap:3px;border-radius:10px}.coach-choice h3{font-size:1.25rem}.coach-points{font-size:1.6rem}.coach-options-list{grid-template-columns:1fr}.coach-bottom{flex-wrap:wrap}.coach-tip{font-size:.86rem}.turn-handoff strong{font-size:1rem}}
@media(prefers-reduced-motion:no-preference){.score-coach[open]{animation:coach-arrive .22s ease-out}@keyframes coach-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
