@font-face{font-family:Bricolage;src:url('assets/bricolage.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Comic Neue';src:url('assets/comic-neue-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--cream:#faf9f3;--mint:#e3f1e9;--teal:#007e85;--dark:#153d3b;--ink:#183b3a;--yellow:#ffe24c;--line:#d3dfd5;--muted:#60766c;--lavender:#eee8f7;--purple:#66508e;--reading:'Comic Neue','Comic Sans MS',cursive;color:var(--ink);background:var(--cream);font-family:'DM Sans',Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;-webkit-font-smoothing:antialiased}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;user-select:none;-webkit-user-select:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button:disabled{opacity:.55}p,h1,h2,h3{margin:0}h1,h2,h3{font-family:Bricolage,'Trebuchet MS',sans-serif;letter-spacing:-.7px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-shell{width:min(1280px,calc(100% - 72px));margin:auto;padding:25px 0 18px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:23px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:18px}.brand img{width:77px;height:77px;object-fit:contain}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700}.brand .eyebrow{margin-bottom:6px}h1{font-size:clamp(28px,3.25vw,45px);font-weight:800;line-height:1.15;letter-spacing:-1.6px}.underline{position:relative;z-index:0;white-space:nowrap}.underline:after{content:'';position:absolute;left:0;right:0;height:9px;bottom:4px;z-index:-1;background:var(--yellow);transform:rotate(-1.2deg);border-radius:50% 35% 25% 40%}.header-actions{display:flex;align-items:center;gap:8px}.utility{border:1px solid var(--line);background:transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;font-size:12px;font-weight:600}.utility:hover{background:var(--mint);border-color:var(--teal)}.utility svg{width:18px;height:18px}.setup-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 20px}.setup-intro>p{font-size:17px;color:var(--muted)}.minute-badge{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;white-space:nowrap}.minute-badge svg{width:19px}.setup-grid{display:grid;grid-template-columns:340px minmax(0,1fr);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}.how-to{padding:28px;background:var(--mint);border-right:1px solid var(--line)}h2{font-size:21px;font-weight:750}.player-picker{display:flex;gap:8px;margin:14px 0 26px}.player-picker button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;border-radius:11px;border:1px solid #b7cdc0;background:#f7fbf6;min-height:55px;font-size:14px;font-weight:700}.player-picker button[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:white}.player-picker button svg{width:21px}.example{background:#fafff7;border:1px solid #c4d6c7;border-radius:14px;padding:20px 18px 17px}.small-label{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--muted)}.example-sentence{font-family:var(--reading);font-weight:700;font-size:26px;line-height:1.55;margin:14px 0}.example-blank{display:inline-block;color:var(--teal);border-bottom:3px solid var(--teal);padding:0 9px}.example-options{display:flex;gap:7px}.example-options>span{background:#fff;border:1px solid var(--line);border-radius:8px;min-height:42px;display:flex;justify-content:center;align-items:center;flex:1;font:700 21px var(--reading)}.example-options>span.example-right{background:var(--yellow);border-color:#d6bd39}.example-options svg{width:17px;margin-left:6px}.example-caption{font-size:11px;color:var(--muted);margin-top:14px}.rules{display:grid;gap:13px;margin-top:25px}.rules p{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.5}.rule-dot{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#f8fff7;border-radius:50%;font-size:10px;font-weight:700;flex-shrink:0}.mode-hint{font-size:11px;color:var(--muted);line-height:1.6;margin-top:20px}.sets-panel{padding:28px}.sets-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.set-count{background:var(--cream);border:1px solid var(--line);font-size:11px;padding:5px 9px;border-radius:20px;white-space:nowrap}.round-picker{display:flex;border-radius:10px;padding:4px;background:#f0f3ed;margin:16px 0 10px}.round-picker button{flex:1;background:transparent;border:0;border-radius:7px;min-height:42px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:9px}.round-picker button[aria-pressed=true]{background:var(--teal);color:#fff;box-shadow:0 2px 3px #153d3b17}.round-picker svg{width:17px;height:17px}.selection-hint{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:14px;min-height:18px}.homophone-sets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.set-button{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px 9px;font-size:12px;line-height:1.3;font-weight:600;transition:background .12s,border-color .12s;text-align:left;letter-spacing:-.1px}.set-button:hover{border-color:var(--teal);background:#f0f7ed}.set-button[aria-pressed=true]{background:#e8f3ec;border-color:#a7cbb5}.set-button .set-check{display:flex;align-items:center;justify-content:center;height:15px;width:15px;flex-shrink:0;border:1px solid #bdd1c3;border-radius:4px}.set-button[aria-pressed=true] .set-check{background:var(--teal);border-color:var(--teal);color:#fff}.set-check svg{width:12px;height:12px;stroke-width:2.5}.set-button[aria-pressed=false] .set-check svg{visibility:hidden}.selection-error{font-size:12px;color:#a64227;margin-top:12px}.start-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0 16px}.start-bar strong{font-size:16px;font-weight:700}.start-bar p{font-size:12px;color:var(--muted);margin-top:5px}.primary{border:1px solid var(--dark);border-radius:11px;background:var(--yellow);color:var(--dark);display:inline-flex;align-items:center;justify-content:center;gap:32px;min-height:55px;padding:14px 25px;font-size:16px;font-weight:700;box-shadow:0 3px 0 var(--dark);transition:background .12s,transform .12s}.primary:hover{background:#ffe971;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 var(--dark)}.setup-footer{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}.text-button{border:0;background:transparent;font-size:13px;text-decoration:underline;text-underline-offset:4px;padding:12px;min-height:44px}.text-button:hover{color:var(--teal)}
/* During play, the sentence and choices get the whole board. */
body[data-state=playing] .app-header,body[data-state=paused] .app-header,body[data-state=countdown] .app-header,body[data-state=results] .app-header{padding-bottom:17px}.game-top{display:flex;justify-content:space-between;align-items:center;position:relative;min-height:115px;gap:20px}.game-context{flex:1;min-width:0}.game-context .small-label{max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-context h2{font-size:28px;margin-top:6px}.timer{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:84px;height:84px;border:2px solid var(--teal);border-radius:50%;background:#fff}.timer strong{font-family:Bricolage,sans-serif;font-size:37px;line-height:1;font-variant-numeric:tabular-nums}.timer>span{font-size:8px;letter-spacing:1.4px;margin-top:5px;font-weight:700}.timer.urgent{border-color:#b24c25;background:#fff0d9}.timer.urgent strong{color:#9b3f22}.time-track{height:5px;background:#e3e8df;border-radius:5px;overflow:hidden;margin-bottom:22px}.time-track span{display:block;height:100%;width:100%;background:var(--teal);transition:width .1s linear}.time-track.urgent span{background:#d58828}.player-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}body[data-players="1"] .player-boards{grid-template-columns:1fr;max-width:1000px;margin:auto}.player-board{--player:var(--teal);--pale:#e9f4ee;min-width:0;border:1px solid #a5cbbb;background:var(--pale);border-radius:20px;padding:24px;display:flex;flex-direction:column;position:relative}.player-board:nth-child(2){--player:var(--purple);--pale:var(--lavender);border-color:#c8b9d9}.board-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:17px;border-bottom:1px solid #153d3b20}.player-name{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:700}.player-number{display:flex;justify-content:center;align-items:center;width:27px;height:27px;border-radius:50%;background:var(--player);color:#fff;font-size:12px}.score{display:flex;align-items:baseline;gap:7px}.score strong{font-family:Bricolage,sans-serif;font-size:32px;font-variant-numeric:tabular-nums}.score span{font-size:11px;color:var(--muted)}.question-area{flex:1;display:flex;flex-direction:column;justify-content:center;padding:30px 8px 24px;min-height:250px}.question-area>.small-label{text-align:center;color:var(--player);font-size:9px;letter-spacing:1.6px}.sentence{font-family:var(--reading);font-weight:700;color:#1b302d;font-size:clamp(29px,3.2vw,43px);line-height:1.55;text-align:center;margin:20px 0 0;overflow-wrap:break-word}.sentence .gap{display:inline-block;min-width:3.1em;line-height:1.18;vertical-align:baseline;margin:0 .07em;border-bottom:4px solid var(--player);color:var(--player);text-align:center}.sentence .gap.filled{padding:2px 6px;background:#ffffffa8;border-radius:6px 6px 0 0}.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.answers.three{grid-template-columns:repeat(3,minmax(0,1fr))}.answer{font-family:var(--reading);font-weight:700;background:white;border:2px solid #153d3b24;box-shadow:0 4px 0 #153d3b17;border-radius:12px;min-height:80px;font-size:clamp(28px,3.2vw,43px);padding:14px 5px;line-height:1.2;color:#1a2f2c;position:relative;transition:background .12s,transform .12s;overflow-wrap:anywhere}.answer:hover:not(:disabled){border-color:var(--player);background:#fffcdf}.answer:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #153d3b17}.answer:disabled{opacity:1}.answer.correct{background:#d7efbc;border-color:#548a35;box-shadow:0 4px 0 #a9c98e}.answer.wrong{background:#fff0da;border-color:#c57e34;box-shadow:0 4px 0 #dec8a8}.answer.correct:after{content:'✓';position:absolute;right:7px;top:2px;font:700 17px 'DM Sans',sans-serif;color:#39732e}.feedback{display:flex;align-items:center;justify-content:center;min-height:47px;font-size:13px;color:var(--player);text-align:center;line-height:1.4;padding-top:13px;font-weight:700}.feedback.missed{color:#86451f}.game-footnote{font-size:11px;color:var(--muted);text-align:center;margin-top:17px}body[data-players="1"] .question-area{min-height:275px}body[data-players="1"] .sentence{font-size:clamp(36px,4.2vw,54px)}body[data-players="1"] .answer{font-size:42px;min-height:88px}body[data-players="1"] .player-board{padding-inline:32px}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--dark);color:white;border-radius:10px;padding:13px 20px;z-index:20;font-size:13px;max-width:90vw;text-align:center}
/* The dialogs hold the countdown, pause controls and useful answer review. */
dialog{color:var(--ink);font-family:'DM Sans',Arial,sans-serif;border:1px solid var(--line);border-radius:24px;padding:32px;background:var(--cream);max-height:90dvh;max-width:calc(100vw - 30px);box-shadow:0 20px 100px #102d2c30}dialog::backdrop{background:#143d3be0;backdrop-filter:blur(4px)}dialog h2{font-size:34px}.countdown-dialog{text-align:center;width:350px;padding:38px}.countdown-dialog>strong{font-family:Bricolage,sans-serif;display:block;font-size:140px;line-height:1.3;color:var(--teal)}.countdown-dialog>p:not(.eyebrow){font-size:15px;color:var(--muted)}.countdown-dialog>.text-button{margin-top:15px}.pause-dialog{width:420px;text-align:center}.dialog-icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:var(--mint);border-radius:50%;margin:0 auto 16px}.dialog-icon svg{width:30px;height:30px}.pause-dialog>p{margin:14px 0 22px;color:var(--muted);font-size:14px;line-height:1.6}.pause-dialog>.primary{width:100%;margin-bottom:11px}.pause-dialog>.text-button{display:block;margin:auto}.results-dialog{width:690px;padding:30px}.results-top{text-align:center}.trophy{background:var(--yellow);width:62px;height:62px}.trophy svg{width:40px;height:40px}.results-top .eyebrow{color:var(--teal);font-size:10px;margin-bottom:8px}.results-top>p:last-child{font-size:13px;margin-top:10px;color:var(--muted);line-height:1.6}.result-scores{display:flex;gap:14px;margin:24px 0}.result-score{flex:1;min-width:0;text-align:center;border:1px solid #a5cbbb;background:var(--mint);border-radius:14px;padding:18px 12px}.result-score:nth-child(2){background:var(--lavender);border-color:#c8b9d9}.result-score .name{font-size:12px;font-weight:700}.result-score strong{display:block;font-family:Bricolage,sans-serif;font-size:64px;line-height:1.2;margin:4px 0}.result-score .points{font-size:11px}.result-score .accuracy{border-top:1px solid #153d3b20;padding-top:10px;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.6}.review details{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;margin-top:10px}.review summary{padding:15px 16px;font-size:12px;font-weight:700;cursor:pointer}.review-list{margin:0;padding:0 17px 16px;list-style:none;display:grid;gap:15px}.review-list>li{border-top:1px solid var(--line);padding-top:14px}.review-sentence{font-family:var(--reading);font-size:21px;line-height:1.5;font-weight:700}.review-sentence mark{background:#e5f3d8;color:#254728;border-radius:3px;padding:0 3px}.review-choice{font-size:11px;color:var(--muted);margin-top:5px}.review-meaning{font-size:12px;line-height:1.6;margin-top:6px}.result-actions{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:25px}.result-actions>.primary{min-width:220px}.perfect-note{font-size:12px;text-align:center;line-height:1.6;color:var(--teal);background:#eef4e9;padding:14px;border-radius:10px}
@media(min-width:1350px){.homophone-sets{grid-template-columns:repeat(4,minmax(0,1fr))}.set-button{min-height:44px;font-size:12px}.how-to{padding:28px 30px}.sets-panel{padding:28px 30px}.setup-grid{grid-template-columns:350px minmax(0,1fr)}}
@media(max-height:820px) and (min-width:1000px){.app-shell{padding-top:16px}.brand img{width:63px;height:63px}.app-header{padding-bottom:17px}h1{font-size:38px}.setup-intro{margin:17px 0 15px}.how-to,.sets-panel{padding:22px}.player-picker{margin-bottom:20px}.example{padding:16px}.rules{margin-top:19px;gap:10px}.mode-hint{margin-top:14px}.homophone-sets{gap:6px}.set-button{min-height:33px;font-size:11px;padding:6px 8px}.round-picker{margin-top:12px}.selection-hint{margin-bottom:10px}.start-bar{padding:18px 0 14px}.question-area,body[data-players="1"] .question-area{min-height:220px;padding-top:22px;padding-bottom:22px}.player-board{padding:20px}.game-top{min-height:105px}.time-track{margin-bottom:17px}}
@media(max-width:1050px){.app-shell{width:calc(100% - 40px)}.brand{gap:13px}.brand img{width:65px;height:65px}h1{font-size:34px}.header-actions .utility{padding:10px}.header-actions .utility>span{display:none}.setup-grid{grid-template-columns:290px minmax(0,1fr)}.how-to,.sets-panel{padding:22px}.homophone-sets{grid-template-columns:repeat(2,minmax(0,1fr))}.set-button{font-size:12px;min-height:36px}.example-sentence{font-size:25px}.player-picker button{font-size:12px;gap:6px}.how-to .rules{gap:15px}.player-boards{gap:16px}.player-board{padding:19px}.sentence{font-size:33px}.question-area{min-height:260px;padding-inline:0}.answers{gap:9px}.answer{font-size:34px;min-height:80px}.game-context .small-label{max-width:260px}}
@media(max-width:720px){.app-shell{width:calc(100% - 28px);padding:17px 0}.app-header{gap:10px;padding-bottom:17px}.brand{gap:10px}.brand img{width:49px;height:49px}.brand .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:3px}h1{font-size:clamp(20px,4.6vw,32px);letter-spacing:-.8px}.underline:after{height:6px;bottom:2px}.header-actions{gap:6px}.header-actions .utility{width:36px;min-height:38px;padding:7px}.header-actions .utility svg{width:17px}.setup-intro{margin:19px 0 15px;gap:10px}.setup-intro>p{font-size:13px;max-width:205px;line-height:1.6}.minute-badge{font-size:11px;gap:4px}.minute-badge svg{width:16px}.setup-grid{grid-template-columns:1fr}.how-to{border-right:0;border-bottom:1px solid var(--line);padding:20px}.players-setting{display:flex;gap:12px;align-items:center;justify-content:space-between}.players-setting>h2{font-size:17px;flex:1}.player-picker{margin:0;gap:6px;flex:1.4}.player-picker button{min-height:46px;font-size:12px;padding:6px}.player-picker svg{display:none}.example{margin-top:18px;position:relative;padding:16px}.example>.small-label{font-size:8px}.example-sentence{font-size:24px;margin:9px 0 15px}.example-options{max-width:250px}.example-options>span{min-height:35px;font-size:21px}.example-caption{font-size:10px;margin-top:10px}.rules{margin-top:19px;gap:10px}.rules p{font-size:12px}.mode-hint{margin-top:13px}.sets-panel{padding:20px}h2{font-size:19px}.homophone-sets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.set-button{font-size:10px;min-height:39px;padding:7px;line-height:1.5}.set-button .set-check{display:none}.round-picker button{font-size:12px}.start-bar{padding:20px 0;align-items:center;gap:10px}.start-bar strong{font-size:14px}.start-bar p{font-size:10px;line-height:1.6;max-width:175px}.primary{font-size:14px;gap:16px;padding:12px 16px;min-height:51px}.setup-footer{font-size:9px}.game-top{min-height:112px;gap:10px}.game-context h2{font-size:23px}.game-context .small-label{font-size:8px;max-width:120px;line-height:1.5;white-space:normal;max-height:24px}.timer{width:74px;height:74px}.timer strong{font-size:34px}.pause-button{padding:8px;font-size:10px;gap:5px;min-height:40px}.pause-button svg{width:15px}.player-boards{gap:10px}.player-board{padding:14px 10px;border-radius:13px}.board-heading{padding-bottom:12px;gap:6px}.player-name{font-size:10px;gap:5px}.player-number{width:21px;height:21px;font-size:10px}.score{gap:4px}.score strong{font-size:27px}.score span{font-size:9px}.question-area{min-height:255px;padding:24px 0 18px}.sentence{font-size:26px;line-height:1.6;margin-top:15px}.question-area>.small-label{font-size:7px;letter-spacing:.7px}.sentence .gap{min-width:2.6em;border-bottom-width:3px}.answers{grid-template-columns:1fr;gap:9px}.answers.three{grid-template-columns:1fr}.answer{min-height:62px;font-size:30px;border-radius:9px;padding:11px 4px}.feedback{font-size:10px;min-height:45px}.game-footnote{font-size:10px;margin-top:13px}.time-track{margin-bottom:15px}body[data-players="1"] .player-board{padding-inline:22px}body[data-players="1"] .question-area{min-height:265px}body[data-players="1"] .sentence{font-size:37px}body[data-players="1"] .answers{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-players="1"] .answers.three{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-players="1"] .answer{font-size:30px;min-height:75px}body[data-players="1"] .feedback{font-size:12px}.results-dialog{padding:25px 20px}dialog h2{font-size:29px}.result-score{padding:16px 9px}.result-score strong{font-size:53px}.result-score .accuracy{font-size:10px}.result-actions .text-button{font-size:12px}}
@media(max-width:380px){h1{max-width:190px;line-height:1.15}.header-actions{flex-direction:column;gap:4px}.header-actions .utility{min-height:28px;width:30px;padding:5px}.homophone-sets{grid-template-columns:repeat(2,minmax(0,1fr))}.set-button{font-size:11px}.sentence{font-size:23px}.player-name{gap:3px;font-size:9px}.score span{display:none}.game-context h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Anchor the answer area and keep every word on a single line. */
.player-board{height:clamp(420px,calc(100dvh - 325px),650px)}
.board-heading,.answers,.feedback{flex-shrink:0}
.question-area,body[data-players="1"] .question-area{min-height:0!important;overflow:hidden}
.sentence{flex-shrink:0}
.answers{align-items:stretch}
.answer{min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;display:flex;align-items:center;justify-content:center}
.answer-label{display:block;white-space:nowrap;flex-shrink:0}
.answer-space{min-height:80px;pointer-events:none}
.feedback{height:47px;overflow:hidden}
@media(max-width:720px){
 .player-board{height:max(540px,calc(100dvh - 290px))}
 body[data-players="1"] .player-board{height:max(470px,calc(100dvh - 290px))}
 .answer-space{min-height:62px}
 body[data-players="1"] .answer-space{min-height:75px}
}
.answer,.answer-space{height:88px;min-height:88px}
@media(max-width:720px){
 .answer,.answer-space{height:64px;min-height:64px}
 body[data-players="1"] .answer,body[data-players="1"] .answer-space{height:75px;min-height:75px}
}

/* Printable practice uses the current homophone selection. */
.worksheet-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 18px;border:1px solid var(--line);background:#eaf3eb;border-radius:12px}
.worksheet-launch{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid var(--dark);background:#fff;border-radius:9px;color:var(--dark);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.worksheet-launch:hover{background:var(--yellow)}.worksheet-launch svg{width:18px;height:18px}.worksheet-entry>span{font-size:12px;line-height:1.5;color:var(--muted)}.result-worksheet-link{display:inline-block;color:var(--dark)}
@media(max-width:720px){.worksheet-entry{flex-direction:column;align-items:stretch;gap:8px;padding:13px}.worksheet-entry>span{text-align:center;font-size:11px}.worksheet-launch{font-size:13px}}

/* A direct exit is available even while a modal blocks the rest of the page. */
body .game-return-link{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;margin:0!important;padding:10px 14px!important;border:1px solid var(--dark)!important;border-radius:9px;background:var(--yellow)!important;color:var(--dark)!important;font:700 13px/1.3 'DM Sans',Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap;text-align:center}
body .game-return-link:hover{background:#ffe971!important}.dialog-return{display:flex;justify-content:center;margin-top:12px}.countdown-dialog .game-return-link{font-size:12px!important;min-height:40px}
body[data-state=playing] .app-header{position:sticky!important;top:0;z-index:30;background:var(--cream)!important}
@media(max-width:720px){.app-header{flex-wrap:wrap}.app-header .header-actions{width:100%;justify-content:flex-end}.app-header .game-return-link{margin-right:auto!important}}
