@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:#252c27;background:#f6f7f5;font-synthesis:none;--ink:#252c27;--muted:#777c76;--line:#e8ebe4;--lime:#dbf58a;--green:#d7edcf;--yellow:#f7e4a6;--red:#a84640}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #779642;outline-offset:4px}button:disabled{cursor:default}button{border:0}a{color:inherit;text-decoration:none}.site-header{height:92px;border-bottom:1px solid #e2e6dd;display:flex;justify-content:space-between;align-items:center;max-width:1440px;padding:0 5.6%;margin:auto}.brand{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-1.5px;font-size:31px;display:flex;align-items:center}.brand-dot{color:#7e9d35}.brand-mark{display:grid;grid-template-columns:repeat(2,9px);gap:3px;margin-right:12px;transform:rotate(-8deg)}.brand-mark i{width:9px;height:9px;background:var(--ink);border-radius:2px}.brand-mark i:last-child{background:#a4c453}.header-right{display:flex;align-items:center;gap:30px}.edition{font-size:10px;letter-spacing:1.3px;color:#8a8d85;font-weight:600}.help-button{background:transparent;font-size:13px;display:flex;align-items:center;gap:9px;padding:10px 0}.help-button span{width:19px;height:19px;border:1.5px solid #70776c;border-radius:50%;font-size:12px;display:grid;place-items:center}main{max-width:1180px;margin:auto;padding:42px 28px 20px}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:24px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:650;display:flex;align-items:center;gap:12px;color:#747b70}.challenge-badge{color:#536930;background:#e8efd9;border-radius:5px;padding:6px 8px;font-size:10px;letter-spacing:1px}h1{font-family:Manrope,sans-serif;font-size:32px;letter-spacing:-1.4px;font-weight:750;margin:13px 0 8px}.game-heading p{font-size:14px;color:var(--muted);margin:0}.scoreboard{display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 0;min-width:260px}.score{width:130px;display:flex;flex-direction:column;align-items:center;gap:7px}.score-progress{border-left:1px solid var(--line)}.score>span{font-family:Manrope,sans-serif;font-size:32px;font-weight:650;line-height:1.1;font-variant-numeric:tabular-nums}.score small{font-size:20px;color:#9da399;margin-left:5px;font-weight:500}.score b{font-weight:650}.score label{font-size:9px;letter-spacing:1.1px;color:#7c8476}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.play-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 28px 24px}.panel-heading{display:flex;justify-content:space-between;align-items:center}.panel-heading>span:last-child{font-size:12px;color:#899080}.board-wrap{display:flex;justify-content:center;padding:16px 0 0}.board{--cell:62px;--gap:8px;display:grid;grid-template-columns:repeat(5,var(--cell));grid-template-rows:repeat(5,var(--cell));gap:var(--gap);position:relative}.tile{width:var(--cell);height:var(--cell);border:1.5px solid #e6e9e1;background:#fafbf8;border-radius:9px;font-family:Manrope,sans-serif;font-size:29px;font-weight:700;display:grid;place-items:center;position:relative;transition:background .2s,border-color .2s,box-shadow .2s;color:var(--ink);padding:0}.tile.selected{background:#f2f6e9;border-color:#c5d2ab}.tile.current{border:2px solid #758851;box-shadow:0 0 0 3px #edf2e4}.tile.blocked{background:#303930;border-color:#303930;background-image:repeating-linear-gradient(135deg,transparent,transparent 5px,#ffffff07 5px,#ffffff07 6px);cursor:default}.tile.correct{background:#d7edcf;border-color:#bddbb4}.tile.correct:after{content:'·';position:absolute;bottom:0;right:7px;color:#6d995e;font-size:23px;line-height:1}.tile.present{color:#baa772a6}.tile.absent{color:#ba625b9e}.tile.draft{color:var(--ink)}.axis{display:flex;align-items:center;justify-content:flex-end;gap:7px;position:relative;min-width:0}.axis.column{flex-direction:column;justify-content:flex-end;gap:6px;padding-bottom:4px}.axis.row{padding-right:3px}.axis-button{flex-shrink:0;width:31px;height:31px;background:#f0f2eb;color:#859079;border-radius:7px;font-size:21px;line-height:1;display:grid;place-items:center}.axis-button.selected{background:var(--lime);color:#344529;box-shadow:0 0 0 1px #c4e475}.axis-button.solved{background:#d7edcf;color:#5f8251}.axis-name{font-size:10px;color:#a2a798;position:absolute;pointer-events:none}.column .axis-name{right:-9px;bottom:11px}.row .axis-name{left:auto;right:-4px;bottom:-8px}.hint-letters{display:flex;flex-wrap:wrap;gap:3px;justify-content:flex-end;align-content:center;max-width:48px;min-height:20px}.column .hint-letters{max-width:68px;justify-content:center;min-height:24px}.hint-letter{font-size:11px;line-height:19px;font-weight:700;width:19px;height:19px;border-radius:4px;text-align:center;background:#faeaba;color:#82651b;animation:hint-in .3s ease-out}.board-caption{display:flex;justify-content:center;align-items:center;gap:7px;margin:25px 0 26px;font-size:12px;color:#7c8475}.tiny-arrow{font-size:18px;color:#939e85}.keyboard{display:flex;flex-direction:column;gap:6px;max-width:510px;margin:auto}.keyboard-row{display:flex;justify-content:center;gap:5px}.key{height:42px;min-width:0;flex:1;max-width:44px;border:1px solid #e6e9e2;border-bottom:2px solid #dce1d6;border-radius:6px;background:#f4f6f0;font-size:13px;font-weight:600;transition:background .1s}.key:hover{background:#e8eddd}.key.wide{max-width:67px;flex:1.6;font-size:11px}.key.enter{background:#e7efce;border-color:#d8e5b5}.keyboard-caption{font-size:11px;text-align:center;color:#9a9f93;margin:14px 0 0}kbd{font:inherit;border:1px solid #e4e7de;border-radius:3px;padding:1px 4px}.side-panel{display:flex;flex-direction:column;gap:20px}.entry-panel{border:1px solid #dee5d4;background:#eef2e7;border-radius:16px;padding:23px;position:relative}.entry-heading{display:flex;align-items:center;justify-content:space-between}.entry-heading .eyebrow{font-size:10px;letter-spacing:1.3px}.direction-badge{color:#738554;font-size:22px;line-height:14px}h2{font-family:Manrope,sans-serif;letter-spacing:-.7px;font-weight:750}.entry-panel h2{font-size:25px;margin:15px 0 4px}.entry-panel>p:not(.message){font-size:13px;color:#859076;margin:0}.entry-slots{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:22px 0 18px}.entry-slot{height:46px;min-width:0;border:1px solid #d8dece;background:#ffffffab;border-radius:6px;font-size:22px;font-weight:650;display:grid;place-items:center;padding:0}.entry-slot.correct{background:#d3e7c9;border-color:#b8d4ad}.entry-slot.current{border-color:#738953;box-shadow:0 0 0 1px #738953}.entry-slot.present{color:#baa772a6}.entry-slot.absent{color:#ba625b9e}.word-input{position:absolute;opacity:0;left:23px;top:130px;width:1px;height:1px;pointer-events:none}.confirm-button{display:flex;justify-content:center;align-items:center;gap:15px;padding:14px 18px;width:100%;font-size:13px;font-weight:600;border-radius:8px;background:#293b28;color:#fff;transition:background .15s,transform .15s}.confirm-button:hover{background:#40583a}.confirm-button:active{transform:translateY(1px)}.confirm-button span{font-size:16px;color:#b3c6a1}.confirm-button:disabled{background:#a9b39e}.message{font-size:12px!important;line-height:1.5;color:#7a876d;min-height:36px;margin:12px 0 0}.message.error{color:#a64f48}.message.success{color:#476c35}.legend-panel{padding:0 7px}.legend-panel h3,.history-panel h3{font-size:13px;font-weight:600;margin:1px 0 16px}.legend-row{display:flex;align-items:center;gap:12px;margin-bottom:13px}.legend-tile{display:grid;place-items:center;flex-shrink:0;width:32px;height:34px;border-radius:5px;font-size:17px;font-weight:600}.legend-tile.correct{background:#d7edcf;color:#45653a}.legend-tile.present{background:#faeaba;color:#9d7933}.legend-tile.absent{background:#f5e7e3;color:#bf7e77}.legend-row strong{font-size:12px;font-weight:600}.legend-row p{font-size:11px;color:#94998e;margin:3px 0 0}.cross-note{border-top:1px solid #e2e6dc;font-size:12px;line-height:1.6;color:#858d7e;padding-top:12px;margin:17px 0 0}.history-panel{padding:0 7px}.history-heading{display:flex;justify-content:space-between;align-items:baseline}.history-heading h3{margin-bottom:10px}.history-heading>span{font-size:10px;color:#969d8e}#history-list{list-style:none;padding:0;margin:0;max-height:120px;overflow:auto}.empty-history{font-size:12px;color:#a0a798;padding:5px 0;line-height:1.6}.history-item{display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid #e9ece3;padding:8px 0;gap:6px}.history-axis{font-size:10px;color:#8c9581}.history-letters{display:flex;gap:3px}.history-letter{display:grid;place-items:center;width:22px;height:25px;border-radius:4px;font-weight:600;background:#f2e8e5;color:#b67970}.history-letter.correct{background:#d7edcf;color:#537447}.history-letter.present{background:#faeaba;color:#9d7933}.move-number{font-size:10px;color:#979e8d}.game-footer{display:flex;justify-content:space-between;align-items:center;margin-top:22px;font-size:11px;color:#919889}.text-button{background:transparent;text-decoration:underline;text-underline-offset:4px;color:#747e68;font-size:12px;padding:8px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #e2e7d8;border-radius:21px;padding:36px;width:min(540px,calc(100% - 32px));color:var(--ink);box-shadow:0 20px 100px #19201426;background:#fbfcf8}dialog::backdrop{background:#1b271b70;backdrop-filter:blur(5px)}dialog h2{font-size:29px;margin:18px 0 14px}dialog p,.rules{font-size:14px;line-height:1.65;color:#747e69}.close-dialog{position:absolute;top:13px;right:18px;font-size:28px;background:transparent;color:#7b876c}.rules{padding-left:20px}.rules li{padding-left:4px;margin-bottom:12px}.rules strong{color:#3a4930}.rule-note{font-size:12px;line-height:1.6}.dialog-actions{display:flex;gap:10px;margin-top:23px}.secondary-button{border:1px solid #d8decd;border-radius:8px;background:transparent;padding:12px}.dialog-actions button{flex:1;font-size:12px}#win-dialog{text-align:center}#win-dialog .eyebrow{justify-content:center}.win-symbol{display:block;font-size:70px;color:#9aba4b;margin-bottom:12px}.win-score{display:flex;flex-direction:column;gap:4px;background:#eaf2d8;border-radius:14px;padding:24px;margin:25px 0}.win-score strong{font-size:66px;font-family:Manrope,sans-serif;line-height:1.1}.win-score span{font-size:10px;letter-spacing:1.3px;color:#7c8b68}#win-dialog>.text-button{margin-top:12px}@keyframes hint-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{50%{transform:scale(1.07)}}.tile.new-correct{animation:pop .32s ease-out}
@media(min-width:1200px){main{padding-top:40px}.play-panel{padding:25px 40px}.board{--cell:64px}.keyboard{margin-top:4px}}
@media(max-width:1000px){.edition{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.play-panel{padding:22px 16px}.board{--cell:53px;--gap:6px;grid-template-columns:repeat(5,var(--cell))}.board-wrap{padding-right:0}.entry-panel{padding:19px}h1{font-size:28px}.tile{font-size:26px}.hint-letter{font-size:10px;width:16px;height:17px;line-height:17px}.axis.row{gap:4px}.axis-button{width:27px;height:29px}.scoreboard{min-width:220px}.score{width:110px}}
@media(max-width:780px){.site-header{height:73px;padding:0 24px}.brand{font-size:28px}main{padding:28px 20px 20px}.game-heading{margin-bottom:22px;align-items:flex-start}h1{font-size:27px;max-width:310px;line-height:1.25}.game-heading p{font-size:13px;max-width:230px;line-height:1.5}.scoreboard{min-width:0;padding:12px 0}.score{width:86px}.score>span{font-size:26px}.score label{font-size:8px;letter-spacing:.5px}.score small{font-size:17px}.game-layout{grid-template-columns:1fr}.play-panel{padding:22px 20px 20px}.board{--cell:60px;--gap:8px;grid-template-columns:repeat(5,var(--cell))}.side-panel{display:grid;grid-template-columns:1fr 1fr;gap:22px}.entry-panel{grid-row:span 2}.history-panel{grid-column:2}.legend-panel{padding:3px 0}.board-caption{margin:22px 0}.game-footer>span{display:none}.game-footer{justify-content:center}.hint-letter{width:18px;height:18px;line-height:18px;font-size:11px}.axis-button{width:31px;height:31px}.keyboard{max-width:460px}.keyboard-caption{font-size:11px}}
@media(max-width:520px){.site-header{padding:0 18px;height:68px}.help-button{font-size:0}.help-button span{font-size:13px;width:23px;height:23px}main{padding:23px 14px 18px}.game-heading{position:relative;display:block;margin-bottom:19px}.game-heading .eyebrow{font-size:10px;letter-spacing:1px;gap:10px}h1{font-size:27px;max-width:100%;margin-top:14px}.game-heading p{max-width:100%;font-size:13px}.scoreboard{margin-top:20px;padding:10px 15px;justify-content:space-between;width:100%;border-radius:10px}.score{flex-direction:row;width:auto;gap:10px}.score>span{font-size:25px}.score label{font-size:9px;letter-spacing:.7px}.score-progress{padding-left:18px}.score-progress>span{white-space:nowrap}.play-panel{padding:18px 8px;border-radius:13px}.panel-heading{padding:0 10px}.panel-heading .eyebrow{font-size:10px}.panel-heading>span:last-child{font-size:11px}.board{--cell:clamp(32px,10.9vw,53px);--gap:5px;grid-template-columns:repeat(5,var(--cell));grid-template-rows:repeat(5,var(--cell))}.board-wrap{padding-top:8px}.tile{border-radius:6px;font-size:24px}.axis-button{width:25px;height:27px;font-size:18px}.axis.row{gap:3px;padding:0}.hint-letters{max-width:34px;gap:2px}.column .hint-letters{max-width:50px;gap:2px}.hint-letter{width:15px;height:16px;line-height:16px;font-size:10px;border-radius:3px}.axis.column{gap:5px}.row .axis-name{right:0;bottom:-9px;font-size:9px}.column .axis-name{right:0;bottom:11px;font-size:9px}.board-caption{font-size:11px;margin:20px 0}.keyboard{padding:0 2px;gap:5px}.keyboard-row{gap:4px}.key{font-size:12px;height:41px;border-radius:5px}.key.wide{font-size:9px}.keyboard-caption{font-size:10px}.side-panel{display:flex;gap:23px}.entry-panel{padding:20px}.entry-panel h2{margin-top:12px}.entry-slots{margin:17px 0}.entry-slot{height:49px}.entry-panel .message{min-height:18px}.legend-panel{padding:0 10px}.legend-panel h3{font-size:14px}.legend-row strong{font-size:13px}.legend-row p{font-size:12px}.history-panel{padding:0 10px}.game-footer{margin-top:15px}dialog{padding:30px 23px}dialog h2{font-size:26px}.rules{font-size:13px}.dialog-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Keep gameplay instructions readable at every breakpoint. */
.game-heading p{font-size:16px}.help-button,.confirm-button,.legend-row strong,.legend-panel h3,.history-panel h3{font-size:14px}.entry-panel>p:not(.message),.legend-row p,.cross-note,.message,.board-caption,.keyboard-caption,.text-button,.empty-history{font-size:12px}.axis-name,.hint-letter{font-size:12px}.key{font-size:14px}.key.wide{font-size:12px}.score label,.eyebrow,.edition,.challenge-badge,.entry-heading .eyebrow,.panel-heading .eyebrow,.history-heading>span,.history-axis,.move-number,.win-score span{font-size:12px}.score label{letter-spacing:.3px}.score{width:145px}.scoreboard{min-width:290px}.entry-heading .eyebrow{letter-spacing:1px}.legend-row p{line-height:1.5}.game-footer{font-size:12px}
@media(max-width:1000px){.score{width:124px}.scoreboard{min-width:248px}.score label{font-size:10px}}
@media(max-width:780px){.game-heading{flex-wrap:wrap}.score{width:116px}.scoreboard{min-width:232px}}
@media(max-width:520px){.help-button{font-size:0}.scoreboard{min-width:0}.score{width:auto}.score label{font-size:10px}.game-heading .eyebrow,.challenge-badge,.panel-heading .eyebrow{font-size:12px}.hint-letter{font-size:11px}.axis-name{font-size:10px}.key{font-size:13px}.key.wide{font-size:10px}.keyboard-caption{font-size:11px}.board-caption{font-size:12px}.game-heading p{font-size:14px}}

/* Confirmed clues remain as pencil notes in their original square. */
.board{--cell:74px;--gap:7px;grid-template-columns:repeat(5,var(--cell));grid-template-rows:repeat(5,var(--cell));gap:var(--gap)}
.board-wrap{padding:16px 0 0}.axis{min-width:0;min-height:0}.axis.row{padding:0}.axis.column{padding-bottom:3px}.board-caption{margin:24px 0 22px}
.tile{overflow:hidden}.tile-letter{display:block;position:relative;z-index:1}.tile.draft.has-hints .tile-letter{align-self:start;line-height:1.1;margin-top:3px;font-size:25px}
.cell-hints{position:absolute;inset:4px;display:flex;flex-wrap:wrap;align-content:safe center;justify-content:center;gap:3px;font-family:'DM Sans',sans-serif;font-weight:650;overflow:auto;scrollbar-width:thin}
.cell-hint{display:inline-grid;place-items:center;flex:0 0 auto;min-width:14px;height:17px;padding:0 2px;border-radius:3px;font-size:12px;line-height:17px}.cell-hint.present{background:#faeaba;color:#82651b}.tile.draft .cell-hints{top:32px;align-content:flex-start;opacity:.8}
.cell-hint.excluded,.legend-tile.excluded,.history-letter.excluded{background:var(--red);color:transparent;-webkit-mask-image:var(--letter-cutout);mask-image:var(--letter-cutout);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-mode:alpha}
.cell-hint.absent,.legend-tile.absent,.history-letter.absent{background:#d5edf8;color:#216783}
.word-complete{animation:word-glow .8s ease-out!important}.key:disabled{opacity:.55}.tile:disabled{opacity:1}.axis-button:disabled{opacity:.7}.axis-button.word-complete{animation:word-glow .8s ease-out!important}
@keyframes word-glow{0%,100%{box-shadow:0 0 0 0 #a7cc5440}35%{background:#e3f8aa;border-color:#9fc852;box-shadow:0 0 0 4px #b9da6f55;transform:translateY(-2px)}70%{box-shadow:0 0 0 2px #b9da6f22}}
@media(min-width:1200px){.board{--cell:78px;--gap:8px}.play-panel{padding:25px 25px 24px}}
@media(min-width:781px) and (max-width:1000px){.board{--cell:clamp(46px,6vw,60px);--gap:5px}.axis-button{width:27px;height:29px}.tile{font-size:27px}}
@media(max-width:780px){.board{--cell:clamp(58px,10vw,74px);--gap:6px}.board-wrap{padding:8px 0 0}}
@media(max-width:520px){.board{--cell:clamp(44px,calc((100vw - 70px)/5),70px);--gap:4px;grid-template-rows:repeat(5,var(--cell))}.axis-button{width:25px;height:27px;font-size:18px}.tile{font-size:26px}.cell-hints{inset:2px;gap:2px}.cell-hint{min-width:13px;padding:0 1px;height:16px;line-height:16px}.tile.draft.has-hints .tile-letter{font-size:21px;margin-top:1px}.tile.draft .cell-hints{top:25px}.board-caption{font-size:11px;margin:22px 0 19px}.tile.correct:after{font-size:18px;right:4px}}
@media(prefers-reduced-motion:reduce){.word-complete,.axis-button.word-complete{animation:none!important;outline:3px solid #9fc852;outline-offset:1px}}

.language-switch{display:flex;gap:3px;padding:3px;border:1px solid #dce3d3;background:#eef2e8;border-radius:8px;flex-shrink:0}.language-switch a{display:grid;place-items:center;min-width:31px;min-height:30px;padding:4px 7px;border-radius:5px;font-size:12px;font-weight:650;color:#79836d}.language-switch a[aria-current="page"]{background:#fff;color:#33492a;box-shadow:0 1px 3px #28311b12}.language-switch a:hover{color:#33492a;background:#f8faf3}@media(max-width:520px){.header-right{gap:17px}.language-switch a{min-width:30px}}

/* Play directly in the grid; each square has a four-clue capacity. */
.play-panel{position:relative}.play-panel>.message{text-align:center;min-height:36px;margin:14px 8px 0}
.side-panel{padding-top:8px}.danger-note{font-size:12px;line-height:1.6;color:#91423c;background:#faf0ed;border:1px solid #efdad5;border-radius:8px;padding:12px;margin:14px 0 0}.danger-note strong{display:block}
.cell-hints{display:grid;grid-template-columns:repeat(2,max-content);align-content:center;justify-content:center;overflow:visible}
.tile.draft.has-hints .tile-letter{align-self:center;margin:0;font-size:25px}
.tile.draft .cell-hints{inset:4px;grid-template-columns:repeat(2,max-content);align-content:space-between;justify-content:space-between;opacity:1}
.tile.at-risk{border-color:var(--red);animation:cell-tremble 1.8s ease-in-out infinite,cell-pulse 1.8s ease-in-out infinite}
@keyframes cell-tremble{0%,45%,65%,100%{transform:translateX(0)}48%,54%,60%{transform:translateX(-1px) rotate(-.6deg)}51%,57%,63%{transform:translateX(1px) rotate(.6deg)}}
@keyframes cell-pulse{0%,100%{box-shadow:0 0 0 1px #a846401a}50%{background:#fbe9e4;box-shadow:0 0 0 4px #a8464033}}
.tile.exploded{background:#ead5cf;border:2px solid #a84640;box-shadow:inset 0 0 16px #a8464030}
.tile.exploded::after{content:'';position:absolute;inset:0;background:linear-gradient(54deg,transparent 45%,#a8464070 46%,#a8464070 48%,transparent 49%),linear-gradient(125deg,transparent 54%,#a8464050 55%,#a8464050 57%,transparent 58%);pointer-events:none}
.tile.exploded .cell-hints{z-index:1}.tile.exploding{z-index:2;animation:cell-explode .85s ease-out}
@keyframes cell-explode{0%{transform:scale(1)}18%{transform:scale(.86);background:#a84640}40%{transform:scale(1.13) rotate(3deg);box-shadow:0 0 0 10px #a8464038,0 0 0 22px #a8464015}65%{transform:scale(.96) rotate(-2deg);box-shadow:0 0 0 18px #a8464000}100%{transform:scale(1)}}
#loss-dialog{text-align:center}#loss-dialog .eyebrow{justify-content:center;color:#a84640}.loss-symbol{display:block;margin:0 auto 20px;background:#f4dfd9;border:2px solid #a84640;border-radius:12px;width:68px;height:68px;font-size:48px;line-height:60px;color:#a84640;transform:rotate(-7deg)}#loss-dialog>.text-button{margin-top:12px}
@media(max-width:780px){.side-panel{padding-top:0;align-items:start}.history-panel{grid-column:auto}}
@media(max-width:520px){.tile.draft.has-hints .tile-letter{font-size:20px}.tile.draft .cell-hints{inset:2px}.tile.at-risk{border-width:2px}.play-panel>.message{font-size:12px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.tile.at-risk,.tile.exploding{animation:none!important}.tile.at-risk{background:#fbe9e4;box-shadow:0 0 0 3px #a8464033}}

.seed-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:-6px 0 22px;padding:14px 16px 10px;border:1px solid var(--line);border-radius:12px;background:#fff}
#seed-form{display:flex;align-items:center;gap:9px;flex:1;min-width:250px}.seed-controls label{font-size:12px;font-weight:650;letter-spacing:1px;color:#747b70}
#seed-input{min-width:0;width:170px;flex:1;max-width:300px;border:1px solid #dbe2d2;border-radius:6px;background:#f7f9f3;padding:9px 10px;color:var(--ink);font:650 14px 'DM Sans',sans-serif;letter-spacing:1px;text-transform:uppercase}
.seed-button{white-space:nowrap;min-height:38px;padding:8px 13px;border-radius:6px;border:1px solid #dbe2d2;background:#f5f7ef;font-size:14px;font-weight:550}.seed-button:hover{background:#eaf0dd}.seed-button.primary{background:#293b28;color:#fff;border-color:#293b28}.seed-button.primary:hover{background:#40583a}.seed-actions{display:flex;gap:8px}
#seed-message{flex-basis:100%;margin:0;font-size:12px;line-height:1.5;color:#7b8572}#seed-message.error{color:var(--red)}
#share-url{width:100%;min-width:0;border:1px solid #c9d6ba;border-radius:7px;background:#fff;padding:12px;font:14px 'DM Sans',sans-serif;color:var(--ink);margin:4px 0 20px}
@media(max-width:520px){.seed-controls{margin-top:0;padding:12px;gap:9px}.seed-actions{width:100%}.seed-actions .seed-button{flex:1}#seed-form{min-width:0;width:100%;flex-basis:100%}#seed-input{width:0;max-width:none;font-size:16px}.seed-button{min-height:40px}#seed-message{font-size:12px}}

.board-wrap{position:relative}.word-input-form{position:absolute;top:50%;left:50%;width:1px;height:1px;margin:0}
.word-input{left:0;top:0;width:1px;height:1px;padding:0;border:0;opacity:.01;font-size:16px;pointer-events:none}
.input-caption{font-size:12px;line-height:1.6;text-align:center;color:#7c8475;margin:0 8px}.board-caption{margin-bottom:10px}

/* Native taps produce one click each; rapid repeated taps do not zoom on iOS.
   Scrolling and two-finger pinch zoom remain available. */
.keyboard-panel,.keyboard-panel button,.axis-button,.tile{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.keyboard-panel{margin-top:15px;padding:14px 12px 12px;border:1px solid #dfe5d7;border-radius:14px;background:#f4f6ef}
.keyboard-panel[hidden]{display:none}
.keyboard-heading{display:flex;align-items:center;justify-content:space-between;max-width:510px;margin:0 auto 10px;font-size:12px;color:#747e69}
#close-keyboard{display:grid;place-items:center;min-width:44px;min-height:32px;border-radius:7px;background:#e5eadb;font-size:24px;line-height:1}
.keyboard-panel .keyboard{margin:0 auto;gap:6px;padding:0}
.keyboard-panel .key{height:46px;font-size:16px;border-radius:7px;background:#fff;border-color:#dce2d3;color:var(--ink);transition:none}
.keyboard-panel .key.wide{font-size:11px}.keyboard-panel .key.erase{font-size:23px}
.keyboard-panel .key.enter{background:#dcecab;border-color:#c9d991;color:#344529}
.keyboard-panel .key.present{background:#faeaba;border-color:#e7d499;color:#82651b}
.keyboard-panel .key.excluded{color:transparent;background:var(--red);border-color:transparent;-webkit-mask-image:var(--letter-cutout);mask-image:var(--letter-cutout);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-mode:alpha}
.keyboard-panel .key.absent{background:#d5edf8;border-color:#b4d7e8;color:#216783}
.keyboard-panel .key:disabled{opacity:.48}.keyboard-panel .key.absent:disabled,.keyboard-panel .key.excluded:disabled{opacity:1}
.keyboard-panel .key:not(:disabled):active{background:#dce5ca;transform:translateY(1px)}
.keyboard-panel .keyboard-caption{margin:10px 0 0;font-size:11px;line-height:1.4;color:#78836c}
.panel-heading{scroll-margin-top:12px}
@media(max-width:780px){
  body.keyboard-open{padding-bottom:250px;padding-bottom:calc(250px + env(safe-area-inset-bottom,0px))}
  .keyboard-panel{position:fixed;z-index:20;left:0;right:0;bottom:0;margin:0;border-radius:18px 18px 0 0;padding:10px 8px 12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 28px #27321d18;background:#f4f6ef}
  .keyboard-heading{margin-bottom:7px}.keyboard-panel .key{max-width:46px}.keyboard-panel .key.wide{max-width:68px}
}

/* Useful notes frame a solved letter without covering its center. */
.tile.correct.has-hints .tile-letter{align-self:center;margin:0;font-size:clamp(22px,calc(var(--cell)*.46),34px);line-height:1}
.tile.correct .cell-hints{inset:clamp(2px,calc(var(--cell)*.05),4px);grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,max-content);align-content:space-between;justify-content:space-between;pointer-events:none}
.tile.correct .cell-hint{width:clamp(9px,calc(var(--cell)*.2),14px);min-width:0;height:clamp(12px,calc(var(--cell)*.25),17px);padding:0;font-size:clamp(9px,calc(var(--cell)*.17),12px);line-height:1}
.tile.correct.has-hints::after{display:none}

/* Selection stays inside the centered five-by-five footprint. */
.board-caption{min-height:30px;margin:18px 0 8px}
.direction-indicator{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:#edf3df;color:#425b2f;font-size:13px;font-weight:600;line-height:20px}
.direction-indicator[hidden],#selection-prompt[hidden]{display:none}
#direction-symbol{font-size:20px;line-height:20px}
.input-caption{max-width:400px;margin-inline:auto}

/* One centered game surface; reference material lives in the help dialog. */
main{max-width:840px;padding-top:28px}
.game-heading{margin-bottom:22px}
.game-heading h1{margin:0;font-size:28px;line-height:1.3}
.game-layout{grid-template-columns:minmax(0,1fr)}
.seed-controls{margin:18px 0 0;padding:14px 16px}
#seed-message[hidden]{display:none}
#help-dialog .legend-panel{padding:0;margin:24px 0}
#help-dialog .legend-panel h3{font-size:16px;margin-bottom:16px}
#help-dialog .legend-row p{font-size:14px;margin:3px 0 0}
#help-dialog .legend-row strong{font-size:14px}
#help-dialog .cross-note,#help-dialog .danger-note{font-size:14px;line-height:1.6}
@media(max-width:520px){main{padding-top:23px}.game-heading h1{font-size:27px}.seed-controls{padding:12px}}

/* One contextual instruction above the board. */
.play-instruction{margin:0;text-align:center;font-size:14px;line-height:1.5;min-height:21px;color:#747e69;scroll-margin-top:12px}
.play-instruction[hidden],.board-caption[hidden],.message[hidden]{display:none}
.play-panel>.message{min-height:0;text-align:center}
#help-title{margin-top:0;padding-right:20px}

/* WordleX: the four clue colors meet in one crossing mark. */
.brand{gap:10px;letter-spacing:-1.4px;flex-shrink:0}
.brand-logo{display:block;width:40px;height:40px;flex-shrink:0}
.brand-copy{display:flex;flex-direction:column;gap:3px;line-height:1.1}
.brand .edition{display:block;font-family:'DM Sans',sans-serif;font-size:12px;line-height:1.2;font-weight:500;letter-spacing:.05em;white-space:nowrap;color:#68715f}
.game-footer{justify-content:center}
.mode-panel{margin-bottom:24px}
.mode-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #dce3d2;border-radius:11px;background:#edf1e6}
.mode-switch button{min-height:40px;padding:9px 16px;border-radius:7px;background:transparent;font-size:14px;font-weight:600;color:#727b67}
.mode-switch button[aria-pressed="true"]{background:#fff;color:#344529;box-shadow:0 1px 4px #28382312}
.mode-details{display:flex;flex-wrap:wrap;gap:5px 12px;margin:12px 0 0;font-size:13px;line-height:1.5;color:#747b70}
#daily-date{font-weight:600;color:#536930}
#daily-date[hidden],#seed-form[hidden],#new-puzzle[hidden]{display:none}
@media(max-width:520px){.mode-panel{margin-bottom:21px}.mode-switch{display:flex}.mode-switch button{flex:1;padding:9px 10px}.mode-details{font-size:12px;gap:3px 9px}}
@media(max-width:520px){.brand{font-size:27px;letter-spacing:-1.2px;gap:8px}.brand-logo{width:34px;height:34px}}
