/* Guided Torah Reading typography: serif Hebrew, Georgia headings, Arial UI. */
.aha-example-section{margin-top:16px}.aha-example-section h4{font:600 12px/1.6 Arial,sans-serif;margin:0 0 5px;color:#365541}.aha-example-list{list-style:none;margin:0;padding:0}.aha-example{display:grid;grid-template-columns:minmax(75px,105px) minmax(0,1fr);gap:12px;padding:9px 0;border-top:1px solid #e3e3d5;align-items:start}.aha .aha-example-word{font:26px/1.35 var(--hebrew-font);text-align:left;justify-self:start}.aha-example-detail{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.55;min-width:0}.aha-example-meaning{color:var(--ink)}.aha-verse-form{color:var(--muted);font-size:11px}.aha .aha-example-detail a{font-size:11px;align-self:flex-start;min-height:26px;display:inline-flex;align-items:center;text-underline-offset:3px}.aha-sources{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px}.aha-sources a{padding:5px 0}.aha-sources[hidden]{display:none}@media(max-width:400px){.aha-example{grid-template-columns:75px minmax(0,1fr);gap:8px}.aha .aha-example-word{font-size:24px}}
:root{--paper:#f5f0e3;--ink:#2d332b;--muted:#687060;--plum:#365541;--tile:#ebe6d8;--line:#d4cbb9;--gold:#eee0ad;--sage:#dce6ce;--rose:#d5e2ed;--lavender:#e3dbea;--hebrew-font:'Times New Roman','Noto Serif Hebrew',serif}
body{background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}h1,h2,h3{font-family:Georgia,'Times New Roman',serif}button,select,textarea{font:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9c773b;outline-offset:3px}
.masthead{max-width:900px;padding:14px 22px;gap:12px}.masthead nav{display:flex;align-items:center;gap:18px;font-size:12px}.masthead nav>a{text-underline-offset:4px}.masthead .text-button{font-size:12px}.brand{font-size:16px;gap:8px}.brand strong{font-family:var(--hebrew-font);font-size:21px;font-weight:400}.brand-icon{grid-template-columns:7px 7px;gap:3px}.brand-icon i{width:7px;height:7px}
main{max-width:720px;margin:0 auto;padding:0 18px}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 10px}.play-heading h1{font-size:26px;font-weight:400;margin:4px 0;line-height:1.2;outline:none}.play-heading h1 [lang=he]{font-family:var(--hebrew-font);font-size:30px;margin-left:8px}.section-kicker{font-size:10px;letter-spacing:.11em;color:var(--muted);margin:0;line-height:1.5}.level-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}select{background:#fffdf7;border:1px solid var(--line);border-radius:8px;min-height:40px;padding:7px;color:var(--ink)}.puzzle-guidance{font-size:13px;line-height:1.5;margin:0 0 15px;color:var(--muted)}.game{max-width:none;padding:0;margin:0}.game-topline{margin:0 0 9px;font-size:12px;gap:10px}.mode-badge{font-size:10px;letter-spacing:.025em;background:#e0e7d8;color:#365541;padding:6px 9px;border-radius:30px}.progress-track{margin-bottom:12px}.board{gap:8px}.tile{min-height:78px;padding:9px 4px;background:var(--tile);border-radius:9px}.tile .he-word{font-family:var(--hebrew-font);font-weight:400;font-size:clamp(24px,4.7vw,34px);line-height:1.7;white-space:nowrap}.tile:hover{background:#dfd9c9}.tile[aria-pressed=true]{background:#365541;color:#fff}.tile[aria-pressed=true]:after{color:#fff}.tile-meaning{font-size:11px;line-height:1.4}.message{padding:10px 0;min-height:38px;font-size:13px}.actions{margin:0;gap:9px}.button{min-height:44px;padding:10px 18px;font-size:12px}.primary{background:#365541;border-color:#365541}.primary:not(:disabled):hover{background:#263f2f}.help-row{padding:8px 0 0;min-height:40px}.game-controls{position:sticky;bottom:0;z-index:3;background:var(--paper);padding:8px 0 5px;border-top:1px solid transparent}.learning-tools{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.learning-tools .text-button{font-size:11px}.meaning-toggle{font-size:12px}.hint-panel{background:#e4eadc;color:#365541}.solved{gap:8px}.group{padding:10px 12px;border-radius:9px;animation:none}.group-heading{font-family:Arial,sans-serif;font-size:11px;line-height:1.4}.category-he{font-family:var(--hebrew-font);font-size:16px}.group-words{margin:3px 0;gap:14px;line-height:1.5;font-family:var(--hebrew-font);font-size:25px}.group-evidence{font-size:9px;margin-bottom:0}.group-explain{font-size:10px;padding:3px 5px;min-height:28px}.group-note{font-size:12px;line-height:1.7;margin:7px 0 0}.source-note{font-size:10px;line-height:1.65;color:var(--muted);margin:14px 0 0}.footer{padding:20px 20px 24px}.footer p{font-size:13px}.footer .source-note{font-size:10px}.storage-notice{max-width:720px;margin:10px auto;padding:10px 16px;background:#ffedc4;color:#684d1d;font-size:12px}
.finish{background:#e8eddf;padding:22px 18px}.finish h2{font-size:26px}.finish .first-result{font-size:11px;color:#56624f}.review-words{gap:7px;margin:12px 0}.review-word{font-family:var(--hebrew-font);font-size:27px;min-height:57px;line-height:1.6}.review-word:hover{background:#dbe6d1;border-color:#8fa17f}.transfer{border-top:1px solid #c9d4bc;text-align:left;padding-top:14px;margin-top:22px}.transfer h3{font-size:21px;margin:0 0 10px}.transfer label,.confirm-dialog label{display:block;font-size:12px;line-height:1.5;color:var(--muted)}textarea{display:block;width:100%;background:#fffdf7;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;margin:7px 0;resize:vertical;font-size:15px;line-height:1.6}.transfer-actions{display:flex;gap:15px}.transfer #self-check .button{margin:4px 5px 4px 0;font-size:11px}.transfer #transfer-feedback{font-size:13px;background:#fffdf7;border-radius:8px;padding:12px;line-height:1.7}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:18px;max-height:90dvh;overflow-y:auto;box-shadow:0 20px 70px #2d332b33}dialog::backdrop{background:#2b322976;backdrop-filter:blur(3px)}.level-dialog,.rules-dialog{width:min(640px,calc(100vw - 24px));padding:25px}.level-dialog h2,.rules-dialog h2,.confirm-dialog h2{font-weight:400;font-size:27px;margin:10px 0}.level-dialog p,.rules-dialog p,.rules-dialog li,.confirm-dialog p{font-size:14px;line-height:1.7}.level-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.level-options button{border:1px solid #c6cbb9;border-radius:12px;background:#fffdf7;text-align:left;padding:18px 13px;display:grid;gap:10px;color:var(--ink)}.level-options button:hover{background:#e4eadc;border-color:#365541}.level-options strong{font:23px Georgia,serif}.level-options span{font-size:12px;line-height:1.5}.level-options small{font-size:10px;color:var(--muted)}.dialog-footnote{font-size:11px!important;color:var(--muted)}.rules-dialog>.close-card{float:right}.rules-dialog h3{font-size:19px}.rules-dialog ol{padding-left:20px}.rules-dialog li{padding:4px 0}.confirm-dialog{width:min(440px,calc(100vw - 24px));padding:24px}.confirm-dialog .button{margin:8px 4px 0 0}.final-words{font:28px/1.8 var(--hebrew-font)}.word-dialog{width:min(500px,calc(100vw - 24px))}.word,.card-context,.practice-example p[lang=he],.root-note span,.other-form span,.game-form span,.source-form span{font-family:var(--hebrew-font)}.word{font-size:60px;line-height:1.7}.card-context{font-size:28px;line-height:1.9}.context-translation{font-size:16px}.word-details{font-size:12px}.audio-status{font-size:11px}.audio-status:empty{display:none}.card-scope{font-size:10px;color:var(--muted);line-height:1.5}.word-dialog .card-source{display:block}.word-more summary{color:#365541}
.games-view{padding:20px 0}.games-view>h1{font-size:30px;font-weight:400;margin:5px 0 10px}.games-view>p{font-size:14px;color:var(--muted)}.edition-card{padding:20px 0;border-bottom:1px solid var(--line)}.edition-card h2{font-size:22px;font-weight:400;margin:0 0 5px}.edition-card h2 [lang=he]{font-family:var(--hebrew-font);margin-left:8px}.edition-card p{font-size:12px;color:var(--muted);line-height:1.6}.edition-buttons{display:flex;gap:9px;flex-wrap:wrap}.edition-buttons .button{font-size:12px}.editorial-bank{padding:20px 0;font-size:13px;line-height:1.7}.editorial-bank summary{cursor:pointer;color:#365541;font-weight:bold}.category-entry{border-top:1px solid var(--line);padding:10px 0}.category-entry h3{font-family:Arial,sans-serif;font-size:13px;margin:0}.category-entry p{font-size:12px;color:var(--muted);margin:3px 0}
@media(max-width:560px){main{padding:0 12px}.masthead{padding:8px 13px;gap:6px}.brand{font-size:13px}.brand strong{font-size:18px}.masthead nav{gap:10px;font-size:11px}.masthead nav .text-button{font-size:11px}.play-heading{margin-top:14px;gap:8px}.play-heading h1{font-size:22px}.play-heading h1 [lang=he]{font-size:27px}.level-label{font-size:10px;gap:5px}.level-label select{min-height:38px;max-width:100px}.puzzle-guidance{font-size:12px;margin-bottom:12px}.section-kicker{font-size:9px}.board{gap:6px}.tile{min-height:72px;padding:9px 2px}.tile .he-word{font-size:clamp(20px,5.7vw,28px)}.tile-meaning{font-size:10px}.actions .button{padding:10px 14px;font-size:11px}.mode-badge{font-size:9px;padding:5px 7px}.game-topline{font-size:11px}.group{padding:8px}.group-words{font-size:23px;gap:10px}.category-he{display:none}.group-heading{font-size:11px}.review-word{font-size:25px}.finish{padding:18px 12px}.level-dialog{padding:22px 17px}.level-options{gap:7px}.level-options button{padding:13px 9px}.level-options strong{font-size:21px}.level-options span{font-size:11px}.level-options small{font-size:10px}.card-context{font-size:26px}.game-controls{padding-bottom:max(5px,env(safe-area-inset-bottom))}.footer{padding-top:18px}.word{font-size:54px}}
@media(max-width:360px){.brand-icon{display:none}.masthead nav{gap:6px}.tile .he-word{font-size:19px}.tile{min-height:68px}.level-options{grid-template-columns:1fr}.level-options button{grid-template-columns:70px 1fr}.level-options small{grid-column:2}.play-heading h1{font-size:20px}}
@media(prefers-reduced-motion:reduce){dialog::backdrop{backdrop-filter:none}*{scroll-behavior:auto!important}}
.game-topline{flex-wrap:wrap}.game-topline #share-open{font-size:12px;margin-left:auto;min-height:34px}.tile.long-word .he-word{font-size:clamp(17px,4.7vw,30px)}
.aha{text-align:left;background:#fffdf6;border:1px solid #d1d9c4;border-radius:12px;padding:18px;margin:20px 0}.aha h3{font-size:22px;line-height:1.25;margin:8px 0}.aha p{font-size:14px;line-height:1.8}.aha a{font-size:12px;color:#365541}.aha #aha-challenge{color:#56624f;font-style:italic}
.share-dialog{width:min(540px,calc(100vw - 24px))}.share-dialog>.close-card,.confirm-dialog>.close-card{float:right}.share-dialog select{width:100%}.share-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.share-apps .button{margin:0;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:9px 6px}.share-utilities{display:flex;flex-wrap:wrap;gap:8px}.share-utilities .button{margin:0}.share-dialog #share-status{font-size:12px;min-height:20px}.share-dialog summary{font-size:12px;cursor:pointer}.share-dialog textarea{font-size:12px}.instagram-help{background:#e8eddf;padding:12px;border-radius:10px;margin:12px 0}.instagram-help p{font-size:12px;margin:6px 0}.profile-invite{max-width:540px;margin:20px auto;padding-top:16px;border-top:1px solid var(--line)}.profile-invite p{font-size:12px;line-height:1.6}.profile-invite button{font-size:12px}#profile-email{width:100%;padding:12px;border-radius:8px;border:1px solid var(--line);background:#fffdf7;font:16px Arial;color:var(--ink);margin:8px 0}.profile-consent{display:flex!important;align-items:flex-start;gap:8px;margin:10px 0}#profile-status{font-size:12px}.celebration{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);background:#365541;color:white;border:1px solid #8aa57d;border-radius:14px;padding:15px 20px;font-size:14px;text-align:center;z-index:20;pointer-events:none;box-shadow:0 6px 25px #283a2826}.celebration span{color:#eed89a;margin-right:8px}.celebration.show{animation:gentle-celebration 3.2s ease both}@keyframes gentle-celebration{0%{opacity:0;translate:0 8px}15%,85%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -3px}}
@media(max-width:360px){.share-apps{grid-template-columns:repeat(2,minmax(0,1fr))}.share-dialog,.confirm-dialog{padding:18px}.game-topline .mode-badge{font-size:8px}.tile.long-word .he-word{font-size:17px}}
@media(prefers-reduced-motion:reduce){.celebration.show{animation:none}}
@media(max-width:560px){.play-heading h1 [lang=he]{display:block;margin:5px 0 0;font-size:24px;white-space:nowrap}.play-heading>div{min-width:0}.level-label{flex-shrink:0}}
.help-row,.finish-actions{flex-wrap:wrap}.help-row #learn{margin-left:auto}
.level-dialog bdi{display:inline-block;white-space:nowrap}
/* Tile-first review: four colored tiles remain in each right-to-left row. */
main{max-width:800px}#game{--note-width:72px;--row-gap:9px}.game-topline{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:14px}.game-topline .mode-badge{font-size:12px}.game-topline #share-open{min-height:42px;padding:10px 18px;color:#fff;text-decoration:none}.share-prominent{font-weight:700;box-shadow:0 3px 9px #36554120}
.board{margin-left:calc(var(--note-width) + var(--row-gap))}.tile{min-height:94px}.group{padding:0;background:transparent;border-radius:0}.group-heading{margin:0 0 5px calc(var(--note-width) + var(--row-gap));font-size:12px}.group-heading .category-he{display:inline-block;margin-left:8px}.group-body{display:grid;grid-template-columns:var(--note-width) minmax(0,1fr);gap:var(--row-gap);align-items:stretch}.group-words{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;line-height:1.4}.group-explain{align-self:center;font:11px/1.4 Arial,sans-serif;min-height:44px;white-space:normal;color:#365541;background:#fffdf7;border:1px solid #c6cbb9;border-radius:9px;padding:7px 4px}.group-explain:hover{background:#e4eadc}.group-evidence{margin:5px 0 8px calc(var(--note-width) + var(--row-gap));font-size:10px;color:var(--muted)}
.solved-tile{min-width:0;perspective:800px;display:grid}.tile-flipper{display:grid;transform-style:preserve-3d;transition:transform .32s ease}.solved-tile.flipped .tile-flipper{transform:rotateY(180deg)}.solved-tile .tile{grid-area:1/1;width:100%;height:100%;min-width:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;margin:0;transform:none}.solved-tile .tile.gold{background:var(--gold)}.solved-tile .tile.sage{background:var(--sage)}.solved-tile .tile.rose{background:var(--rose)}.solved-tile .tile.lavender{background:var(--lavender)}.solved-tile .tile-back{transform:rotateY(180deg);direction:ltr;padding:5px 4px;gap:2px;justify-content:space-between}.tile-definition{display:flex;flex-direction:column;justify-content:center;gap:4px;background:none;border:0;color:var(--ink);width:100%;padding:4px 0;min-width:0;min-height:44px;overflow-wrap:anywhere}.short-meaning{font:bold 13px/1.25 Arial,sans-serif}.short-grammar{font:10px/1.35 Arial,sans-serif;color:#4d5549}.tile-more{font:11px Arial,sans-serif;text-decoration:underline;background:none;border:0;min-height:36px;color:#294735;padding:5px 9px}.tile-back .tile-more:hover{background:#ffffff66;border-radius:7px}.solved{gap:5px}.message:empty{min-height:12px;padding:0}.actions{flex-wrap:wrap}.aha{position:relative;margin:0 0 18px;text-align:left;direction:ltr}.aha>.close-card{float:right;margin:-8px -8px 0 8px}.aha bdi{unicode-bidi:isolate;font-family:var(--hebrew-font);font-size:1.2em}.aha h3{font-size:23px}.aha #aha-text{text-align:left;direction:ltr}.flashcard-nav{justify-content:flex-end}.level-dialog .section-kicker{font-size:15px;letter-spacing:.025em}.level-dialog #level-title{font-size:clamp(26px,4.5vw,36px)}.level-dialog #level-title+p{font-size:12px;margin:4px 0;color:var(--muted)}.level-dialog bdi{font:20px var(--hebrew-font)}.finish{margin-left:calc(var(--note-width) + var(--row-gap))}
@media(max-width:560px){#game{--note-width:48px;--row-gap:6px}.group-words{gap:6px}.tile{min-height:92px}.tile .he-word{font-size:clamp(18px,5.1vw,28px)}.group-explain{font-size:10px;padding:6px 2px}.group-heading{font-size:11px}.group-heading .category-he{display:none}.short-meaning{font-size:11px}.short-grammar{font-size:9px}.tile-more{font-size:11px;min-height:40px}.game-topline .mode-badge{font-size:11px}.game-topline #share-open{padding:10px 13px}.actions .button{padding:10px 13px}.aha{padding:15px}.aha h3{font-size:21px}.aha p{font-size:13px}.finish h2{font-size:22px}.tile.long-word .he-word{font-size:clamp(14px,4.2vw,23px)}}
@media(prefers-reduced-motion:reduce){.tile-flipper{transition:none}}
.tile-flipper{position:relative}.solved-tile .tile-back{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) 32px;gap:0}.tile-definition{min-height:0;overflow:auto;justify-content:center;gap:3px;padding:2px 0}.tile-back .tile-more{min-height:32px;padding:4px}
/* v8: calm controls, two-sided vocabulary tiles and an ordered finish. */
main{max-width:900px}.masthead{max-width:1000px}.masthead nav{flex-wrap:wrap;justify-content:flex-end;gap:8px 16px}.masthead .reading-cta{font-size:12px;margin:0}.play-heading{align-items:flex-start}.play-settings{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.mode-switch{display:flex;gap:2px;border:1px solid var(--line);padding:3px;border-radius:24px;background:#eee9dd}.mode-switch button{background:none;border:0;border-radius:21px;color:var(--muted);font-size:11px;min-height:36px;padding:8px 11px;white-space:nowrap}.mode-switch button[aria-pressed=true]{background:#365541;color:#fff;box-shadow:0 2px 5px #36554122}.score-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.score-line .mode-badge{font:11px/1.4 Arial,sans-serif;letter-spacing:0;padding:7px 9px;background:#e6eadf}.game-topline{margin-bottom:0}.message{text-align:left;padding:10px 3px;min-height:0}.message:empty{height:14px;min-height:0}.tile[aria-pressed=true]:after{content:none}#game{--note-width:110px}.group-explain{white-space:nowrap;font-size:11px;padding:7px 8px}.group-heading{min-height:20px}.solved-tile .tile{min-height:132px;padding:14px 5px 24px}.solved-tile .tile-back{padding:8px 6px 4px;grid-template-rows:minmax(0,1fr) 30px}.tile-definition{padding:0 2px;gap:5px;cursor:pointer}.short-meaning{font:400 clamp(24px,4.7vw,34px)/1.1 var(--hebrew-font);overflow-wrap:normal}.short-grammar{font:10px/1.3 Arial,sans-serif}.tile-back .tile-more{justify-self:center;font-size:11px;z-index:1}.flip-icon{position:absolute;right:8px;bottom:6px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #53624d66;border-radius:50%;font:18px/1 Arial,sans-serif;color:#43533e;pointer-events:none}.flip-back{position:absolute;right:0;bottom:0;width:38px;height:34px;border:0;background:none;z-index:2}.flip-back .flip-icon{right:6px;bottom:5px}.tile-front:hover .flip-icon,.flip-back:hover .flip-icon{background:#ffffff77}.finish{background:none;border-top:1px solid var(--line);border-radius:0;padding:12px 0;margin-top:14px}.finish-actions{margin-top:8px}.finish-summary{font-size:12px}.daily-navigation{display:flex;justify-content:space-between;gap:8px;margin-bottom:9px}.daily-navigation .text-button{font-size:11px}.daily-archive{border-bottom:1px solid var(--line);padding:20px 0}.daily-archive h2{font-size:23px;font-weight:400;margin:0}.daily-archive p{font-size:12px;line-height:1.6;color:var(--muted)}.daily-archive label{display:block;font-size:12px;margin:8px 0}.daily-archive input{background:#fffdf7;border:1px solid var(--line);border-radius:8px;min-height:44px;padding:8px;font:14px Arial;color:var(--ink)}
dialog.celebration{position:fixed;inset:0;margin:auto;width:min(850px,calc(100vw - 24px));max-width:none;height:fit-content;background:#f3eedf;color:var(--ink);transform:none;left:0;bottom:0;padding:0;border:1px solid var(--line);border-radius:18px;pointer-events:auto;box-shadow:0 20px 70px #2d332b33;overflow:hidden}.celebration video{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain}.celebration .close-card{position:absolute;right:10px;top:9px;z-index:2;background:#f5f0e3bb;border-radius:50%}.celebration #celebration-static{font:clamp(50px,12vw,100px)/1.8 var(--hebrew-font);padding:45px 18px;margin:0;color:#365541}.final-words{display:flex;justify-content:center;white-space:pre-wrap;font-size:26px!important;line-height:1.8!important}#final-reason{font-size:16px}.aha{max-width:640px;margin:0 auto 20px}
@media(max-width:700px){.play-heading{flex-direction:column;gap:10px}.play-settings{justify-content:flex-start;width:100%}.play-heading h1 [lang=he]{display:inline;margin-left:8px}.masthead{flex-wrap:wrap}.masthead nav{justify-content:flex-start;width:100%;gap:15px}.score-line{gap:4px}.score-line .mode-badge{font-size:10px;padding:6px 7px}.game-topline #share-open{padding:9px 13px;font-size:11px}}
@media(max-width:560px){#game{--note-width:0px;--row-gap:0px}.board{margin-left:0}.group{position:relative;padding-top:1px}.group-body{display:block}.group-heading{margin:0 0 7px;padding-left:110px;text-align:right;min-height:37px;display:flex;justify-content:flex-end;align-items:center;font-size:11px}.group-explain{position:absolute;left:0;top:0;width:106px;min-height:36px;font-size:10px;padding:6px}.group-evidence{margin-left:0}.solved-tile .tile{min-height:136px}.tile .he-word,.short-meaning{font-size:clamp(22px,5.7vw,28px)}.short-grammar{font-size:9px}.flip-icon{right:5px;bottom:5px}.finish{margin-left:0}.play-settings{gap:8px}.mode-switch button{font-size:10px;padding:7px 9px}.game-topline{align-items:flex-start;gap:8px}.score-line{max-width:calc(100% - 95px)}.score-line #mode-badge{width:100%;background:none;color:#365541;padding-left:0}.game-topline #share-open{margin-top:3px}.tile.long-word .he-word{font-size:clamp(17px,4.7vw,24px)}}
/* v9: one mode control, segmented difficulty, visible mistake state. */
.masthead nav{margin-left:auto}.masthead #share-open{min-height:38px;padding:8px 16px;font-size:12px;color:white}
.play-heading{align-items:center}.play-heading>div:first-child{flex:1;min-width:0}.play-settings{max-width:420px;gap:8px}
.level-switch{display:flex;gap:2px;border:1px solid var(--line);padding:3px;border-radius:24px;background:#eee9dd}
.level-switch button{background:none;border:0;border-radius:21px;color:var(--muted);font-size:11px;min-height:36px;padding:8px 13px}
.level-switch button[aria-pressed=true]{background:#365541;color:#fff;box-shadow:0 2px 5px #36554122}
.score-line{width:100%;max-width:none;gap:12px;flex-wrap:wrap}.game-topline{margin-bottom:14px;padding:0 0 10px}
.mistake-circles{display:inline-flex;align-items:center;gap:7px;min-height:36px;flex-shrink:0}
.mistake-circle{display:block;width:14px;height:14px;border:1.5px solid #9a8177;border-radius:50%;background:transparent}
.mistake-circle.filled{background:#b74235;border-color:#b74235}.unlimited-count{font:11px/1.4 Arial,sans-serif;color:var(--muted)}
.score-line .message{flex:1;min-width:140px;text-align:right;padding:0;font-size:12px;line-height:1.5}.score-line .message:empty{min-width:0;height:0}
.sound-toggle{margin-left:auto;font-size:11px;min-height:36px;white-space:nowrap}.sound-toggle[aria-pressed=false]{color:#806c60}
.hint-panel{line-height:1.7}.hint-panel:empty{display:none}
.masthead{display:grid;grid-template-columns:auto minmax(170px,1fr) auto;align-items:center;column-gap:20px}.masthead #share-open{justify-self:center;white-space:nowrap}.masthead nav{width:auto;margin-left:0;flex-wrap:nowrap;white-space:nowrap}
@media(max-width:700px){.masthead nav{justify-content:flex-end;gap:10px 16px}.play-heading{align-items:stretch}.play-settings{max-width:none;justify-content:flex-end}.score-line{gap:8px}.score-line .message{font-size:11px}}
@media(max-width:420px){.masthead nav{justify-content:space-between;gap:6px}.masthead nav a,.masthead nav .reading-cta,.masthead nav .text-button{font-size:10px}.masthead #share-open{padding:8px 11px;font-size:11px}.play-settings{justify-content:space-between;gap:7px}.level-switch button{padding:7px 10px;font-size:10px}.mode-switch button{padding:7px 8px}.score-line .message:not(:empty){order:4;flex-basis:100%;text-align:right}.mistake-circle{width:13px;height:13px}}
@media(max-width:850px){.masthead{grid-template-columns:auto 1fr;gap:10px}.masthead #share-open{justify-self:end}.masthead nav{grid-column:1/-1;width:100%;justify-content:flex-end}}
@media(max-width:420px){.masthead{column-gap:5px}.masthead #share-open{font-size:10px;padding:8px}.masthead nav{justify-content:space-between}}
