@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#334d41;background:#f5f4ed;font-synthesis:none;--ink:#294b3e;--muted:#879086;--line:#dedfd4;--green:#315c49;--accent:#dce8cb;--theme:#6b947d}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ae8153;outline-offset:4px}button,select{transition:background .18s,transform .18s,box-shadow .18s}button:active:not(:disabled){transform:translateY(1px)}button svg,svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-shell{max-width:1440px;margin:auto;padding:0 58px}.header{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink);font-family:'Manrope',sans-serif;font-size:29px;letter-spacing:-1.4px;font-weight:800;display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;background:var(--green);border-radius:12px 12px 12px 3px;color:#e5edce}.brand-mark svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4}.brand-dot{color:#93a37a;margin-left:-10px}.header-tagline{font-size:10px;letter-spacing:2.5px;color:#94998e;padding-right:88px}.header-actions{display:flex;gap:12px}.icon-button{border:1px solid #dedfd4;width:36px;height:36px;border-radius:50%;background:transparent;display:grid;place-items:center;position:relative}.icon-button:hover{background:#e7eadf}.help-button{font-family:Georgia,serif;font-size:21px}.sound-slash{position:absolute;top:16px;width:24px;height:1.5px;background:currentColor;transform:rotate(-45deg);box-shadow:0 -2px #f5f4ed}#sound[aria-pressed=true] .sound-slash{display:none}.intro{display:flex;align-items:center;justify-content:space-between;padding:43px 0 39px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.65px}.small-spark{font-size:16px;vertical-align:-1px;color:#7f956d;margin-right:7px}h1{font-family:'Manrope',sans-serif;font-weight:500;letter-spacing:-2.3px;font-size:44px;margin:9px 0 10px;line-height:1.2}h1>span{color:#9bad8b}.intro p{color:#879084;font-size:13px;letter-spacing:.1px;margin:0}.daily-card{border:1px solid #dadfce;border-radius:13px;background:#eef0e4;display:flex;text-align:left;align-items:center;gap:16px;padding:19px 22px;min-width:292px}.daily-card:hover{background:#e5ead9;box-shadow:0 5px 20px #334b3e08}.daily-icon{width:38px;height:38px;color:#809360;display:grid;place-items:center}.daily-icon svg{width:31px;height:31px;fill:#e2e9ce}.daily-card small{font-size:8px;letter-spacing:1.3px;color:#819071;display:block}.daily-card b{display:block;font-family:'Manrope',sans-serif;font-size:16px;font-weight:650;margin:5px 0}.daily-card b span{margin-left:20px;font-size:16px}.daily-card em{font-size:10px;color:#8b9481;font-style:normal}.game-layout{display:grid;grid-template-columns:218px minmax(350px,1fr) 232px;gap:36px;align-items:start}.section-label{display:flex;gap:10px;color:#a0aa95;margin-bottom:18px;font-size:8px}.section-label>span{color:#7b8b77;font-size:8px;letter-spacing:1.2px}.theme-list{display:grid;gap:7px}.theme-button{border:1px solid transparent;border-radius:9px;background:transparent;width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:11px 13px;font-size:12px;color:#859080}.theme-button svg{width:19px;height:19px}.theme-button .theme-dot{margin-left:auto;width:5px;height:5px;border-radius:50%;background:transparent}.theme-button:hover{background:#eaece0}.theme-button[aria-pressed=true]{background:#e4eadb;color:#426448;border-color:#d7dfcc;font-weight:650}.theme-button[aria-pressed=true] .theme-dot{background:#6d8962}.landscape{margin-top:24px;border-radius:12px;overflow:hidden;background:#e5e9d9;position:relative;border:1px solid #dce1d0}.landscape>svg{display:block;width:100%;height:154px;object-fit:cover}.landscape>span{display:block;font-size:6.5px;font-weight:600;letter-spacing:1.3px;text-align:center;padding:12px 2px;color:#74846c}.settings{margin-top:25px}.setting-heading{display:flex;justify-content:space-between;font-size:10px;margin-bottom:9px}.setting-heading label{font-weight:500}.setting-heading span{color:#98a08f;font-size:9px}select{appearance:none;width:100%;border:1px solid #d9ddcf;border-radius:7px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23708068'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;padding:12px 13px;font-size:11px;color:#62745a;cursor:pointer}.mode-label{display:flex;justify-content:space-between;align-items:center;margin:19px 0 22px;cursor:pointer;position:relative}.mode-label b{display:block;font-size:11px;font-weight:500}.mode-label small{display:block;font-size:8px;color:#98a08f;margin-top:5px}.mode-label input{position:absolute;right:0;opacity:0;width:34px;height:20px;margin:0;cursor:pointer}.switch{height:18px;width:31px;border-radius:20px;background:#d9ddcf;pointer-events:none}.switch:before{content:'';display:block;width:12px;height:12px;border-radius:100%;background:#fff;margin:3px;transition:transform .2s}.mode-label input:checked+.switch{background:#719479}.mode-label input:checked+.switch:before{transform:translateX(13px)}.mode-label input:focus-visible+.switch{outline:2px solid #ae8153;outline-offset:4px}.primary{border:0;background:#315a46;color:#f7f8ed;border-radius:8px;padding:14px 20px;font-size:12px;font-weight:550}.primary:hover{background:#244c38;box-shadow:0 4px 12px #26463517}.new-puzzle{display:flex;width:100%;align-items:center;justify-content:space-between}.new-puzzle svg{width:17px;height:17px}.play-panel{min-width:0}.board-header{display:flex;align-items:center;justify-content:space-between;padding:0 4px 19px;height:66px}.board-header .eyebrow{font-size:7.5px;color:#899480;letter-spacing:1.65px}.board-header h2{font-family:'Manrope',sans-serif;font-size:23px;font-weight:600;letter-spacing:-.7px;margin:6px 0 0}.timer-block{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}.timer-block>svg{width:15px;height:15px;fill:none;stroke:#8a9681;stroke-width:1.5}.timer-block .icon-button{border:0;background:#e9ecdf;width:29px;height:29px;margin-left:6px}.timer-block .icon-button svg{width:13px;height:13px;stroke-width:2.5}.timer-block.urgent{color:#b3634c}.board-wrap{position:relative;aspect-ratio:1;border-radius:17px;box-shadow:0 12px 28px #45563f0a,0 2px 3px #45563f0b;background:#fafaf3;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #e3e4d8}#board{display:block;width:100%;height:100%;outline:none}.board-loading,.board-shade{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f4f5e9;color:#7b8c70;font-size:12px}.board-shade{flex-direction:column;gap:18px;z-index:2}.board-shade svg{width:40px;height:40px;fill:none;stroke:#789069;stroke-width:1}.board-shade b{font-weight:400;font-size:18px}#accessible-grid{position:absolute;inset:3.84615385%;display:grid;pointer-events:none;gap:0}#accessible-grid [role=row]{display:contents}.letter-cell{padding:0;border:0;background:transparent;color:transparent;pointer-events:auto;cursor:crosshair;min-width:0;touch-action:none;border-radius:8px}.letter-cell:focus-visible{outline:2px solid #77945f;outline-offset:-4px;background:#b8d19530}.letter-cell.keyboard-anchor{box-shadow:inset 0 0 0 2px #91a77066}.board-bottom{display:flex;align-items:center;justify-content:space-between;padding:18px 5px 20px;color:#8c9584;font-size:10px;border-bottom:1px solid #e0e2d5;gap:6px}.drag-icon{font-size:18px;vertical-align:-1px;margin-right:6px;color:#7c8c71}.board-difficulty{font-size:7px;font-weight:600;letter-spacing:1.2px;background:#e9ecdf;border-radius:4px;padding:5px 7px;color:#839075}.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:17px}.hint-button{display:flex;align-items:center;gap:8px;border:1px solid #d8ddcc;background:transparent;font-size:10px;padding:9px 11px;border-radius:7px;white-space:nowrap}.hint-button:hover{background:#e8eddd}.hint-button svg{width:14px;height:14px}.hint-button>span{font-size:8px;background:#e5e9da;padding:2px 5px;border-radius:4px;margin-left:8px}#status-message{font-size:9px;color:#8f9986;text-align:right;transition:color .2s}#status-message.success{color:#3f7858}.words-panel .section-label{margin-bottom:25px}.words-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.words-heading h2{font-size:13px;font-weight:550;margin:0}.words-heading>span{font-size:11px;white-space:nowrap;color:#9ca58e}.words-heading b{font-size:15px;font-weight:500;color:#4d6e48}.words-heading i{font-style:normal;margin:0 5px}.progress-track{height:3px;border-radius:4px;background:#e1e6d6;margin:16px 0 18px;overflow:hidden}#progress-fill{height:100%;background:#8eaa73;width:0;transition:width .5s cubic-bezier(.2,.7,.3,1)}.word-list{display:grid;grid-template-columns:1fr;gap:6px}.word-item{height:33px;display:flex;align-items:center;gap:12px;padding:0 11px;border:1px solid #e2e4d8;border-radius:6px;font-size:10px;font-weight:500;letter-spacing:1.3px;color:#74856c;transition:background .3s,color .3s,transform .3s}.word-item .word-check{width:13px;height:13px;border:1px solid #cdd6bf;border-radius:50%;font-size:9px;display:grid;place-items:center;color:transparent;letter-spacing:0}.word-item.found{border-color:transparent;background:#e5ecd9;color:#8fa67e}.word-item.found .word-name{text-decoration:line-through;text-decoration-color:#a9ba98}.word-item.found .word-check{border:0;color:#6d8e53;background:#d5e2c3}.word-item.just-found{animation:word-pop .4s ease}.word-item.hinted{border-color:#c4aa66;background:#f3ecd6}.score-card{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);margin-top:21px;padding-top:20px}.score-flower{font-size:36px;line-height:1;color:#a4b481}.score-card small{font-size:7px;letter-spacing:1.2px;color:#8f9b80;display:block;margin-bottom:5px}.score-card b{font-size:24px;font-weight:500;font-family:'Manrope',sans-serif;line-height:1.1;letter-spacing:-.6px}.score-card b>span{font-family:'DM Sans',sans-serif;font-size:9px;color:#96a187;letter-spacing:0}.score-card #combo{margin-left:auto;background:#e4ead6;color:#708a58;border-radius:6px;font-size:12px;padding:5px 7px}.best-line{display:flex;justify-content:space-between;font-size:8px;color:#9aa38e;margin-top:16px}.best-line b{font-weight:500}.direction-tip{font-size:8px;color:#9ba58d;line-height:1.9;text-align:center;margin:24px 0 0}.direction-tip>span{display:block;font-size:17px;color:#95a282;margin-bottom:5px}.footer{display:flex;justify-content:space-between;align-items:center;padding:23px 0;margin-top:40px;border-top:1px solid var(--line);font-size:8px;color:#a1a78f}.footer>span:first-child{font-size:7px;letter-spacing:1.3px}.footer-dot{display:inline-block;width:5px;height:5px;background:#9ba77e;border-radius:50%;margin-right:8px}.footer>span:nth-child(2){font-family:Georgia,serif;font-style:italic;font-size:11px;letter-spacing:.3px}.footer button{border:0;background:none;color:#9aa28a;font-size:8px}.footer kbd{border:1px solid #d7deca;border-radius:3px;padding:2px 5px;margin-left:5px}dialog{border:1px solid #e0e3d3;border-radius:22px;padding:40px;width:min(440px,calc(100% - 32px));text-align:center;color:var(--ink);background:#f8f8ef;box-shadow:0 30px 120px #243e4333}dialog::backdrop{background:#253c365e;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:16px;top:16px;border:0;font-size:24px;color:#859375}.modal-art{height:76px;width:76px;display:grid;place-items:center;margin:5px auto 25px;border-radius:50%;background:#e4ecd6;transform:rotate(-8deg)}.modal-art svg{width:40px;height:40px;fill:none;stroke:#6b8b53;stroke-width:1}.modal-art.win{animation:word-pop 1s}.dialog-close:hover{background:#e5eadb}dialog .eyebrow{font-size:8px;color:#8a9879}dialog h2{font-family:'Manrope',sans-serif;font-size:30px;letter-spacing:-1px;font-weight:500;margin:10px 0 14px}#dialog-content{font-size:12px;color:#819075;line-height:1.8}#dialog-content p{margin:10px 0}.dialog-actions{display:grid;gap:10px;margin-top:24px}.secondary{background:transparent;border:1px solid #d9decc;border-radius:8px;padding:12px;font-size:11px;color:#7d8d70}.result-stats{display:flex;justify-content:space-around;gap:10px;background:#ecf0e1;border-radius:10px;padding:18px 12px;margin-top:20px}.result-stats b{display:block;color:#45633c;font-size:22px;font-weight:500}.result-stats small{font-size:8px;letter-spacing:1px}.help-steps{text-align:left;display:grid;gap:15px;margin:20px 0}.help-steps>div{display:flex;gap:13px;align-items:flex-start}.help-steps strong{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:#e6ecd9;color:#6d8855;font-size:10px}.help-steps b{color:#587349;font-weight:500}.help-keys{font-size:10px;background:#edf0e3;border-radius:7px;padding:12px}.help-keys kbd{font-family:inherit;color:#52723e;font-weight:600}.error-text{padding:30px;text-align:center;color:#9a5545}.board-wrap.shake{animation:shake .25s}@keyframes shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes word-pop{0%{transform:scale(.95)}60%{transform:scale(1.035)}100%{transform:scale(1)}}
@media(min-width:1500px){.app-shell{padding:0 60px}.intro{padding:48px 0}.game-layout{gap:42px;grid-template-columns:230px minmax(400px,1fr) 240px}.header{height:112px}.word-item{height:36px}}
@media(max-width:1190px){.app-shell{padding:0 30px}.game-layout{grid-template-columns:185px minmax(330px,1fr) 190px;gap:24px}.header-tagline{padding-right:0}.intro{padding:32px 0}.daily-card{min-width:265px;padding:16px}.section-label{font-size:7px;gap:6px}.section-label>span{font-size:7px;letter-spacing:.7px}.word-item{height:30px;font-size:9px}.words-heading h2{font-size:11px}.board-header h2{font-size:21px}.landscape>svg{height:136px}.footer{margin-top:28px}}
@media(max-width:950px){.app-shell{padding:0 25px}.header{height:83px}.header-tagline{display:none}.intro{padding:29px 0 31px}h1{font-size:35px;letter-spacing:-1.7px}.daily-card{min-width:auto;padding:15px;gap:8px}.daily-card small{font-size:6px}.daily-card b{font-size:13px}.daily-card em{font-size:8px}.daily-icon{width:28px}.game-layout{grid-template-columns:minmax(330px,1fr) 215px;gap:25px}.explore-panel{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:15px}.explore-panel>.section-label,.landscape,.settings .setting-heading,.mode-label small{display:none}.theme-list{display:flex;gap:4px}.theme-button{width:auto;padding:9px;gap:7px;font-size:10px}.theme-button .theme-dot{display:none}.settings{display:flex;align-items:center;gap:13px;margin:0}.settings select{width:113px;font-size:9px;padding:10px;background-position:right 5px center}.mode-label{margin:0;gap:8px}.mode-label b{font-size:9px}.mode-label input{width:30px}.new-puzzle{width:36px;height:36px;font-size:0;padding:9px}.new-puzzle svg{flex-shrink:0}.words-panel .section-label{padding-top:7px;margin-bottom:25px}.board-header{height:62px}.footer{margin-top:30px}.word-item{height:32px}.board-toolbar{padding-top:16px}}
@media(max-width:700px){.app-shell{padding:0 18px}.header{height:74px}.brand{font-size:25px}.brand-mark{width:31px;height:31px;border-radius:10px 10px 10px 3px}.brand-mark svg{width:20px;height:20px}.header-actions{gap:9px}.icon-button{width:32px;height:32px}.intro{padding:28px 0 23px;align-items:flex-start;position:relative}.intro .eyebrow{font-size:7px;letter-spacing:1.2px}.small-spark{font-size:13px}h1{font-size:33px;margin:9px 0;letter-spacing:-1.8px}.intro p{font-size:10px}.daily-card{min-width:0;width:36px;height:36px;padding:0;justify-content:center;border-radius:10px;margin-top:28px}.daily-card>span:last-child{display:none}.daily-icon{width:26px;height:26px}.daily-icon svg{width:21px;height:21px}.game-layout{display:flex;flex-direction:column;gap:20px}.explore-panel{width:100%;display:block}.theme-list{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.theme-button{width:100%;justify-content:center;font-size:9px;padding:10px 5px;gap:6px}.theme-button svg{width:15px;height:15px}.settings{margin-top:14px;gap:15px;justify-content:space-between}.settings select{width:132px;font-size:10px;padding:10px;background-position:right 10px center}.mode-label b{font-size:10px}.new-puzzle{height:34px;width:34px}.play-panel{width:100%}.board-header{padding:0 2px 16px;height:58px}.board-header h2{font-size:22px}.board-header .eyebrow{font-size:7px}.timer-block{font-size:14px}.board-wrap{border-radius:14px}.board-bottom{padding:12px 3px 13px;font-size:9px}.board-difficulty{font-size:6px}.board-toolbar{padding-top:12px;gap:7px}.hint-button{font-size:9px;padding:8px}#status-message{font-size:8px;max-width:50%}.words-panel{width:100%;padding-top:7px}.words-panel .section-label{display:none}.words-heading h2{font-size:13px}.progress-track{margin:12px 0 14px}.word-list{grid-template-columns:repeat(2,1fr);gap:6px}.word-item{font-size:9px;height:32px}.score-card{margin-top:17px;padding-top:17px}.score-card b{font-size:23px}.best-line{float:right;margin-top:-28px;gap:10px}.score-card #combo{margin-right:130px}.direction-tip{display:none}.footer{margin-top:25px;padding:20px 0}.footer>span:first-child{font-size:6px;letter-spacing:.6px}.footer>span:nth-child(2){font-size:9px}.footer button{display:none}dialog{padding:30px 24px}dialog h2{font-size:27px}.modal-art{height:60px;width:60px;margin-bottom:20px}}
/* Keep the whole puzzle within a comfortable desktop glance. */
@media(min-width:951px){
  .app-shell{max-width:1320px;padding:0 40px}
  .header{height:84px}
  .intro{padding:24px 0 18px}
  h1{font-size:40px;margin:6px 0 8px}
  .game-layout{grid-template-columns:218px minmax(330px,min(560px,calc(100svh - 420px))) 232px;gap:36px;justify-content:center}
  .board-header{height:58px;padding-bottom:16px}
  .board-bottom{padding:12px 4px 13px}
  .board-toolbar{padding-top:12px}
  .footer{margin-top:25px;padding:19px 0}
  .word-item{height:33px}
}
@media(min-width:951px) and (max-height:850px){
  .header{height:70px}.intro{padding:18px 0}.intro h1{font-size:35px}
  .landscape{margin-top:16px}.landscape>svg{height:95px}.landscape>span{padding:9px 0}
  .settings{margin-top:18px}.theme-button{padding:9px 12px}.mode-label{margin:15px 0}
  .word-item{height:28px}.word-list{gap:5px}.direction-tip{margin-top:15px}
  .words-panel .section-label{margin-bottom:21px}.score-card{margin-top:16px;padding-top:16px}
}
@media(min-width:701px) and (max-width:950px){.game-layout{grid-template-columns:minmax(330px,560px) 215px;justify-content:center}}
@media(max-width:700px){
  .game-layout{display:flex;gap:14px}.explore-panel{order:0}.play-panel{display:contents}
  .board-header{order:1;width:100%;height:50px;padding-bottom:6px;margin-top:3px}
  .words-panel{order:2;padding-top:0}.words-heading h2{font-size:10px}.words-heading>span{font-size:9px}.words-heading b{font-size:12px}
  .progress-track{height:2px;margin:8px 0 10px}.word-list{grid-template-columns:repeat(3,1fr);gap:5px}
  .word-item{height:25px;font-size:8px;letter-spacing:.5px;padding:0 6px;gap:6px}.word-item .word-check{width:10px;height:10px;font-size:7px}
  .words-panel .score-card,.words-panel .best-line{display:none}
  .board-wrap{order:3;width:100%}.board-bottom{order:4;width:100%;padding:0 3px 11px}.board-toolbar{order:5;width:100%;padding-top:0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* A saved, sequential journey. Free-play controls stay in their own mode. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.play-modes{display:flex;padding:4px;gap:4px;background:#e9ecdf;border:1px solid #dfe4d5;border-radius:9px;margin-bottom:20px}
.play-modes button{flex:1;border:0;border-radius:6px;padding:9px 6px;background:transparent;font-size:10px;color:#89947b;white-space:nowrap}
.play-modes button[aria-pressed=true]{color:#315a46;background:#fafbf3;box-shadow:0 2px 5px #263c3510;font-weight:650}
#toggle-levels{display:none}
.journey-mode .free-only{display:none!important}
.journey-heading .eyebrow{font-size:7px;color:#8b987b;letter-spacing:1.2px}
.journey-heading h2{font-family:Manrope,sans-serif;font-size:23px;letter-spacing:-.7px;font-weight:500;margin:7px 0}
.journey-heading p{font-size:9px;color:#8a987e;margin:0 0 18px;line-height:1.6}
.chapter-nav{display:flex;gap:6px;align-items:center;margin-bottom:13px}
.chapter-nav button{flex-shrink:0;height:25px;width:25px;border:1px solid #dce1d1;border-radius:6px;background:transparent;font-size:17px;line-height:1}
.chapter-nav select{border:0;text-align:center;padding:7px 18px 7px 3px;background-position:right 1px center;font-size:10px}
.level-map{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.level-node{min-width:0;height:46px;background:#eeefe6;border:1px solid #e0e3d6;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#99a18c;padding:3px;position:relative}
.level-node:disabled{opacity:.65}.level-node b{font-size:13px;font-weight:500}.level-node svg{width:10px;height:10px}.level-node span{font-size:6px;letter-spacing:.5px;line-height:1}
.level-node.available{background:#e4ebd8;border-color:#a5b78e;color:#55703f}
.level-node.current{background:#315a46;color:#f1f6df;border-color:#315a46;box-shadow:0 3px 8px #315a4620}
.level-node.completed{background:#e1ead4;border-color:#c4d4b2;color:#618247}.level-node.completed.current{border:2px solid #618247}
.level-node.completed span{color:#8e9a55;font-size:7px;letter-spacing:0}
.level-node:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 9px #315a4618}
.journey-legend{display:flex;justify-content:space-between;font-size:7px;color:#98a18b;margin-top:11px}.journey-legend span{display:flex;gap:4px;align-items:center}.journey-legend svg{height:9px;width:9px;fill:none;stroke:currentColor;stroke-width:1.6}
.next-chapter{display:flex;gap:10px;align-items:center;border:1px dashed #d2dbc4;border-radius:9px;padding:12px 10px;margin-top:16px;color:#97a285}.next-chapter>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;flex-shrink:0}.next-chapter b{display:block;font-size:10px;font-weight:500}.next-chapter small{display:block;font-size:8px;line-height:1.7;margin-top:4px}
.level-brief{margin-top:19px}.level-brief>div{display:flex;justify-content:space-between;align-items:center;font-size:10px}.level-brief b{font-weight:500}.level-brief span{font-size:9px;color:#8b987a;font-variant-numeric:tabular-nums}.level-brief p{font-size:9px;line-height:1.7;color:#8c987e;margin:7px 0 0}
.journey-mode .landscape{margin-top:19px}.journey-mode .landscape>svg{height:88px}.journey-mode .landscape>span{padding:8px 2px}.journey-mode .settings{margin-top:16px}
.earned-stars{font-size:34px;letter-spacing:6px;color:#a1ab67;line-height:1.5}.earned-stars span{color:#d3dbc4}.stars-note{font-size:9px!important;line-height:1.6!important}
@media(min-width:951px) and (max-height:850px){.journey-mode .landscape{display:none}.play-modes{margin-bottom:15px}.journey-heading p{margin-bottom:12px}.level-node{height:42px}.next-chapter{padding:9px;margin-top:13px}}
@media(min-width:701px) and (max-width:950px){
  .explore-panel{flex-wrap:wrap}.play-modes{margin:0;flex:0 0 215px}.journey-mode .explore-panel{display:block;position:relative}.journey-mode .play-modes{max-width:240px;margin-bottom:14px}
  .journey-mode #journey-panel{display:grid;grid-template-columns:220px 1fr;gap:8px 20px}.journey-heading{grid-row:1/3}.journey-heading p{margin-bottom:0}.chapter-nav{margin:0;max-width:220px;justify-self:end;width:100%}.level-map{grid-template-columns:repeat(10,1fr);gap:6px}.journey-legend{display:none}.next-chapter{grid-column:1;margin-top:0;grid-row:3/5}.level-brief{grid-column:2;margin-top:0}.journey-mode .settings{position:absolute;right:0;top:0;margin:0}.journey-mode .new-puzzle{width:auto;height:36px;font-size:10px;gap:16px;padding:10px 13px}
}
@media(max-width:700px){
  .play-modes{margin-bottom:14px}.play-modes button{font-size:10px;padding:8px}.journey-mode #toggle-levels{display:block;border-left:1px solid #d8dfcc;border-radius:0;flex:.9}
  .journey-heading h2{font-size:18px;margin:4px 0}.journey-heading .eyebrow{display:none}.journey-heading p{font-size:8px;margin:0}
  .journey-mode .explore-panel{position:relative}.journey-mode .settings{position:absolute;right:0;top:52px;margin:0}.journey-mode .new-puzzle{width:auto;height:32px;font-size:9px;padding:8px 11px;gap:10px}
  .journey-mode .level-brief{margin-top:12px}.level-brief>div{font-size:9px}.level-brief p{font-size:8px;margin-top:3px}
  body:not(.show-level-map) .chapter-nav,body:not(.show-level-map) .level-map,body:not(.show-level-map) .journey-legend,body:not(.show-level-map) .next-chapter{display:none}
  .show-level-map .chapter-nav{margin:16px 0 12px}.level-node{height:43px}.journey-legend{font-size:8px}.next-chapter{padding:9px 12px;margin-top:13px}.next-chapter small{font-size:8px}
}

/* The game occupies one viewport. Only menus and long clue lists may scroll. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.header{flex-shrink:0}
.app-shell>main{flex:1;min-height:0;display:flex;flex-direction:column}
.intro,.footer{flex-shrink:0}
.game-layout{flex:1;min-height:0;grid-template-columns:218px minmax(0,1fr) 232px;gap:28px;align-items:stretch;padding-bottom:10px}
.explore-panel,.words-panel{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8d2bb transparent}
.play-panel{min-height:0;display:grid;grid-template-rows:50px minmax(0,1fr) 36px 42px;align-content:stretch}
.board-header{height:50px;padding:0 4px 12px;min-width:0}
.board-header h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-header>div:first-child{min-width:0}.timer-block{flex-shrink:0}
.board-slot{min-width:0;min-height:0;width:100%;height:100%;container-type:size;display:grid;place-items:center}
.board-wrap{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:100%;max-height:100%;aspect-ratio:1;flex-shrink:0;overscroll-behavior:none;overflow-anchor:none}
.letter-cell:active:not(:disabled){transform:none}
.board-bottom{padding:8px 4px;min-width:0}.board-toolbar{padding-top:7px;min-width:0}
#selection-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#status-message{min-width:0;line-height:1.35;max-height:3em;overflow:hidden}
.footer{margin-top:8px;padding:13px 0}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
@media(min-width:951px) and (max-height:850px){.footer{display:none}.intro{padding:14px 0 16px}}
@media(min-width:951px) and (max-height:650px){.intro{display:none}.header{height:56px;margin-bottom:12px}}
@media(min-width:701px) and (max-width:950px) and (min-height:501px){
  .header{height:60px}.intro{padding:12px 0}.intro h1{font-size:29px}.intro .eyebrow,.intro p{display:none}.daily-card{padding:8px 12px}.daily-card small,.daily-card em{display:none}
  .game-layout{grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:auto minmax(0,1fr);gap:12px 20px}
  .explore-panel{max-height:185px}.journey-mode .explore-panel{grid-column:1/-1}.journey-mode .level-brief,.journey-mode .next-chapter{display:none}
  .footer{display:none}.words-panel .section-label{margin-bottom:15px}
}
@media(max-width:700px){
  .app-shell{padding:0 12px}.header{height:52px}.brand{font-size:23px}.brand-mark{width:28px;height:28px}
  .intro{height:50px;padding:8px 0;align-items:center}.intro .eyebrow,.intro p{display:none}.intro h1{font-size:24px;letter-spacing:-1px;margin:0}.daily-card{margin:0;width:30px;height:30px}
  .game-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 42px auto minmax(0,1fr) 24px 36px;gap:7px;padding-bottom:max(7px,env(safe-area-inset-bottom))}
  .explore-panel{order:0;overflow:visible;min-height:36px}.play-panel{display:contents}
  .board-header{order:1;margin:0;height:42px;padding:0 2px 6px}.board-header h2{font-size:20px;margin-top:4px}
  .words-panel{order:2;max-height:126px;overflow-y:auto;scrollbar-width:thin;padding:0 2px}
  .word-list{gap:4px}.word-item{height:23px}.progress-track{margin:5px 0 7px}.words-heading h2{font-size:9px}
  .board-slot{order:3}.board-bottom{order:4;padding:0 2px 5px;font-size:8px}.board-toolbar{order:5;padding:0}
  .board-wrap{width:min(100cqw,100cqh);height:min(100cqw,100cqh)}
  .footer{display:none}.play-modes{margin-bottom:8px}.play-modes button{padding:7px 5px;font-size:9px}
  .journey-mode .play-modes{width:calc(100% - 39px);margin:0}
  .journey-mode .explore-panel{position:static}.journey-mode .settings{top:0;right:0;margin:0}
  .journey-mode .new-puzzle{height:35px;width:32px;padding:8px;gap:0;font-size:0}.journey-mode #new-puzzle-label{display:none}
  .journey-mode:not(.show-level-map) #journey-panel{display:none}
  .journey-mode.show-level-map #journey-panel{position:absolute;top:43px;left:0;right:0;z-index:30;max-height:calc(100% - 50px);overflow-y:auto;overscroll-behavior:contain;background:#f8f8ef;border:1px solid #d9dfcc;border-radius:12px;padding:16px;box-shadow:0 12px 36px #3046382b}
  .journey-mode .level-brief{margin-top:12px}.journey-mode .landscape{display:none}
  .theme-button{padding:6px 3px}.settings{margin-top:7px}.settings select{padding-top:7px;padding-bottom:7px}.new-puzzle{height:30px}
}
@media(max-width:700px) and (max-height:650px){
  .header{height:44px}.intro{height:36px;padding:3px 0}.intro h1{font-size:20px}.daily-card{height:26px;width:26px}
  .game-layout{grid-template-rows:auto 36px auto minmax(0,1fr) 20px 30px;gap:5px}.board-header{height:36px}.board-header h2{font-size:17px}.words-panel{max-height:82px}.word-item{height:21px}.hint-button{padding:6px 8px}
}
@media(min-width:600px) and (max-height:500px){
  .app-shell{padding:0 16px}.header{height:44px;margin-bottom:8px}.header-tagline,.intro,.footer{display:none}
  .game-layout{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;grid-template-rows:minmax(0,1fr);gap:16px;padding-bottom:8px}
  .explore-panel,.journey-mode .explore-panel{display:block;position:static;grid-column:auto;max-height:none;overflow-y:auto;overflow-x:hidden}
  .play-panel{display:grid;grid-template-rows:36px minmax(0,1fr) 22px 32px;min-height:0}.board-header{height:36px;padding-bottom:6px}.board-header h2{font-size:17px}.board-header .eyebrow{font-size:6px}.timer-block{font-size:12px;gap:5px}
  .board-slot{order:initial}.board-bottom{font-size:7px;padding:2px}.board-toolbar{padding-top:4px}.hint-button{font-size:8px;padding:6px}.hint-button>span{margin-left:2px}#status-message{font-size:7px}
  .words-panel{order:initial;width:auto;max-height:none}.words-panel .section-label,.direction-tip,.landscape,.score-card,.best-line{display:none}.words-heading h2{font-size:10px}.progress-track{margin:8px 0}.word-list{grid-template-columns:1fr;gap:4px}.word-item{height:25px;font-size:9px}
  .play-modes,.journey-mode .play-modes{width:100%;max-width:none;margin:0 0 12px}.play-modes button{font-size:9px;padding:7px 4px}#toggle-levels,.journey-mode #toggle-levels{display:none}
  .journey-mode #journey-panel,.journey-mode:not(.show-level-map) #journey-panel,.journey-mode.show-level-map #journey-panel{display:block;position:static;max-height:none;overflow:visible;padding:0;border:0;box-shadow:none;background:none}
  .journey-heading .eyebrow,.journey-legend,.level-brief,.next-chapter{display:none}.journey-heading h2{font-size:18px}.journey-heading p{font-size:8px;margin:6px 0 10px}
  .chapter-nav,body:not(.show-level-map) .chapter-nav{display:flex;margin:8px 0}.level-map,body:not(.show-level-map) .level-map{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.level-node{height:36px}
  .settings,.journey-mode .settings{display:block;position:static;margin-top:12px}.journey-mode .new-puzzle,.new-puzzle{width:100%;height:32px;font-size:9px;gap:10px;padding:8px 10px}.journey-mode #new-puzzle-label{display:inline}
  .theme-list{display:grid;grid-template-columns:1fr;gap:3px}.theme-button{width:100%;justify-content:flex-start;font-size:10px;padding:7px}.settings select{width:100%;font-size:9px}.mode-label{margin:10px 0;gap:7px}.mode-label b{font-size:9px}.switch{flex-shrink:0}
}
