@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#ecf3ee;--paper:#fbfdf9;--ink:#243d36;--muted:#60736a;--green:#21664e;--mint:#d9eccf;--line:#d9e4da;--gold:#c4953c;--pink:#eab7aa;--ice:#d9edf4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 'DM Sans',system-ui,sans-serif}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;min-height:44px}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}header{max-width:1240px;margin:auto;padding:17px 16px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);font:800 22px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-1px}.brand>span>span{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:1.5px;font-weight:600;margin-top:7px}.brand-symbol{display:grid;place-items:center;background:var(--green);color:#e9f3dc;border-radius:13px;width:40px;height:42px;font:39px Georgia,serif}.head-buttons{display:flex;gap:7px}.round{border:1px solid #cbdacf;width:44px;height:44px;border-radius:50%;background:#f8fbf5;font-size:20px}.round.active{background:var(--green);color:white}main{max-width:1240px;margin:auto;padding:0 12px}.hero{display:none}.mode-bar{display:flex;border:1px solid var(--line);border-radius:14px;padding:5px;gap:4px;background:#e2ece2;margin-bottom:14px}.mode-bar button{flex:1;min-width:0;border-radius:10px;font-size:13px;font-weight:600;line-height:1.4;padding:9px 2px;white-space:nowrap}.mode-bar button.active{background:var(--paper);box-shadow:0 1px 5px #254c3710;color:var(--green)}.mode-bar button>span{display:none}.mode-bar small{display:none}.layout{display:flex;flex-direction:column;gap:14px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:19px}.play{padding:16px 14px;min-width:0}.play-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.1px;color:var(--muted)}h1,h2{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.7px;line-height:1.25}h2{font-size:22px;font-weight:700;margin:5px 0 0}.small-round{width:40px;height:40px;min-height:40px;flex-shrink:0;font-size:23px}.mission{padding:12px 13px;background:#edf3e6;border-radius:11px;margin:14px 0}.mission-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.mission-label b{color:var(--green);white-space:nowrap}.progress{height:5px;border-radius:5px;background:#dce7d3;overflow:hidden;margin-top:9px}.progress i{display:block;width:0;height:100%;background:#65966a;border-radius:5px;transition:width .4s}.mission p{font-size:12px;color:var(--muted);margin:6px 0 0}.score-strip{display:grid;grid-template-columns:repeat(3,1fr);padding:0 3px 12px}.score-strip>div{text-align:center;border-right:1px solid var(--line)}.score-strip>div:last-child{border:0}.score-strip small{display:block;font-size:9px;letter-spacing:.7px;color:var(--muted)}.score-strip strong{font:600 24px Manrope,system-ui,sans-serif;display:block;margin-top:3px;font-variant-numeric:tabular-nums}.score-strip>div:first-child strong{color:var(--green)}.board-shell{position:relative;max-width:430px;margin:auto;aspect-ratio:1;padding:9px;border-radius:17px;background:#dce7dc;box-shadow:inset 0 2px 7px #2b463414}.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.cell{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:0;width:100%;height:100%;background:#fffef5;border:1px solid #d4d8c7;border-bottom:4px solid #c6cebd;border-radius:10px;box-shadow:0 2px 4px #2b463409;font:600 clamp(23px,7vw,31px)/1 Manrope,system-ui,sans-serif;transition:background .12s,transform .12s,color .12s;touch-action:none;z-index:1}.cell.ice{background:var(--ice);border-color:#a7c9d7;border-bottom-color:#9bbcc7;color:#305469}.cell.ice:after{content:'❄';font-size:12px;position:absolute;right:4px;top:4px;color:#528b9c}.cell.rock{background:#b6c5ba;border-color:#a4b6a8;color:#7d9685;font-size:27px}.cell.selected{background:var(--green);color:#fffef3;border-color:#124735;border-bottom-color:#0d3b2c;transform:translateY(-2px);z-index:3}.cell.selected:before{content:attr(data-order);position:absolute;top:3px;left:5px;font:500 9px 'DM Sans',sans-serif;color:#bfdbc5}.cell.hinted{box-shadow:0 0 0 3px var(--gold);z-index:4}.cell.swap-source{background:#f2dba6;border-color:#b18b43;transform:scale(.94)}.cell.fresh{animation:drop .32s cubic-bezier(.15,.6,.3,1)}.cell.clearing{animation:disappear .22s forwards}.cell.thawing{animation:thaw .4s}.board-shell>svg{position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);pointer-events:none;z-index:2;overflow:visible}.board-shell polyline{fill:none;stroke:#abd295;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}#floatScore{position:absolute;left:0;right:0;top:40%;z-index:5;pointer-events:none;text-align:center;color:var(--green);font-size:38px;font-weight:800;text-shadow:0 2px 8px white;opacity:0}#floatScore.show{animation:float .75s}.word-preview{min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px}.word-preview>span:first-child{font-size:18px;font-weight:600;letter-spacing:1.5px}.word-preview>span:last-child{font-size:12px;color:var(--muted);white-space:nowrap}.word-preview.valid>span{color:var(--green)}.word-preview.valid>span:first-child{font-size:22px}.word-actions{display:flex;gap:8px}.primary{background:var(--green);color:#fffef6;border-radius:11px;padding:12px 18px;min-height:50px;font-size:16px;font-weight:600;flex:1;width:100%}.primary:hover{background:#174c3a}.primary>span{float:right;font-size:23px;line-height:24px}.clear{background:#e9efe5;border:1px solid var(--line);border-radius:11px;width:49px;font-size:24px;flex-shrink:0}#message{font-size:13px;line-height:1.6;min-height:48px;margin:9px 0;color:var(--muted);text-align:center}.tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-top:1px solid var(--line);padding-top:12px}.tools button{background:#f1f4e9;border:1px solid #dde5d5;border-radius:11px;display:flex;flex-direction:column;align-items:center;padding:8px 3px;gap:3px;min-height:81px;line-height:1.25}.tools button.active{border-color:var(--gold);background:#f6edd8}.tools button>span{font-size:24px;line-height:1}.tools b{font-size:12px;font-weight:600}.tools small{font-size:9px;color:var(--muted)}.side{display:flex;flex-direction:column;gap:14px}.side>.panel{padding:20px 17px}.side-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.side-heading h2{font-size:21px;margin:0}.side-heading>span{font-size:12px;color:var(--muted)}.route-dots{display:flex;gap:5px;margin:20px 0 18px}.route-dots>span{display:grid;place-items:center;flex:1;height:26px;border-radius:6px;background:#eaf0e5;color:#798d7c;font-size:10px}.route-dots>span.done{background:var(--green);color:#f1f6e8}.route-dots>span.current{border:1px solid #7b9e77;color:var(--green);background:#e0ecd5}.journey-time{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:16px}.journey-time small{display:block;font-size:10px;color:var(--muted);letter-spacing:.7px}.journey-time strong{font:600 26px Manrope,system-ui,sans-serif;display:block;margin-top:4px;font-variant-numeric:tabular-nums}.journey-time>span{font-size:34px;color:#8ea58e}#routeNote{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 0}.empty{font-size:15px;line-height:1.7;color:var(--muted);padding:17px 0 3px}.history-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e9df;padding:12px 0;gap:8px;animation:pop .2s}.history-row>b{font-size:17px;letter-spacing:1.3px;font-weight:600}.history-row>span{font-size:15px;color:var(--green)}.history-row small{font-size:11px;color:var(--muted);margin-left:7px}.tips h2{font-size:23px}.tips p{font-size:15px;line-height:1.8;color:var(--muted)}.tips p b{color:var(--ink);font-weight:600}.tip-icon{float:right;color:var(--green);background:#e0ecd5;border-radius:50%;display:grid;place-items:center;width:54px;height:54px;font:600 23px Manrope,sans-serif;margin-left:12px;margin-top:14px}.ice-note{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.ice-note>span{display:grid;place-items:center;width:39px;height:42px;border:1px solid #b4cdd4;border-radius:9px;background:var(--ice);flex-shrink:0;color:#4c7c8c;font-size:24px}.ice-note p{font-size:13px;margin:0;line-height:1.7}footer{display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:space-between;padding:25px 3px;color:var(--muted);font-size:12px;line-height:1.7}footer button{font-size:13px;color:var(--green)}footer b{margin:0 5px}dialog{width:470px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 30px);border:1px solid var(--line);border-radius:22px;background:var(--paper);padding:30px 24px;color:var(--ink);overflow-y:auto;box-shadow:0 20px 100px #193a2b30}dialog::backdrop{background:#17372c80;backdrop-filter:blur(5px)}.close{position:absolute;right:8px;top:6px;width:44px;font-size:28px;color:var(--muted)}dialog h2{font-size:29px;margin:12px 0}dialog p,dialog li{font-size:15px;line-height:1.8;color:var(--muted)}dialog ul{padding-left:20px}.result-symbol{font-size:49px;color:var(--green)}.result-stats{display:flex;gap:18px;justify-content:space-between;margin:24px 0}.result-stats b{display:block;font:600 27px Manrope,sans-serif}.result-stats small{font-size:11px;color:var(--muted)}.result-note{background:#e8f0df;padding:13px;border-radius:10px;font-size:14px;color:var(--green);margin-bottom:20px}.secondary{width:100%;font-size:15px;color:var(--muted);margin-top:10px}.share{display:block;width:100%;font-size:14px;color:var(--green);margin-top:8px}#particles{position:fixed;inset:0;z-index:10;pointer-events:none;overflow:hidden}.particle{position:absolute;top:-20px;width:8px;height:13px;animation:fall 1.5s ease-in forwards}@keyframes fall{to{transform:translateY(110vh) rotate(600deg)}}@keyframes drop{from{opacity:.3;transform:translateY(-35px)}to{opacity:1;transform:translateY(0)}}@keyframes disappear{to{opacity:0;transform:scale(.45)}}@keyframes thaw{50%{background:#fff;box-shadow:0 0 18px #a2e2fa}}@keyframes pop{from{opacity:0;transform:translateY(6px)}}@keyframes float{0%{opacity:0;transform:translateY(15px)}30%{opacity:1}100%{opacity:0;transform:translateY(-50px)}}@media(max-width:350px){header{padding:13px 12px}.brand{font-size:19px;gap:6px}.brand-symbol{width:33px}.brand small{font-size:7px}.head-buttons{gap:3px}.play{padding:14px 10px}.board-shell{padding:7px}.board{gap:5px}.cell{border-radius:8px;font-size:23px}.board-shell>svg{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.mode-bar button{font-size:12px}.tools b{font-size:11px}.tools small{font-size:8px}.mission-label{font-size:12px}.word-preview>span:first-child{font-size:16px}}
@media(min-width:760px){header{padding:25px 28px}.brand{font-size:27px}.brand-symbol{width:47px;height:48px}.brand small{font-size:9px}.head-buttons{gap:10px}main{padding:5px 28px 0}.hero{display:flex;align-items:center;justify-content:space-between;margin:12px 0 27px;gap:20px}.hero h1{font-size:36px;font-weight:500;letter-spacing:-1.6px;margin:11px 0 12px}.hero em{font-family:Georgia,serif;color:var(--green);font-weight:400}.hero p{font-size:14px;color:var(--muted);margin:0}.hero-note{display:none}.mode-bar{padding:6px;gap:5px;margin-bottom:23px;max-width:720px}.mode-bar button{padding:11px 15px;font-size:15px}.mode-bar button>span{display:inline-block;font-size:21px;margin-right:7px;vertical-align:middle}.mode-bar small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-left:25px;margin-top:2px}.layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:23px;align-items:start}.play{padding:25px 28px}.play-heading h2{font-size:26px}.eyebrow{font-size:11px}.mission{margin:19px 0 17px}.mission-label{font-size:14px}.mission p{font-size:13px}.score-strip{padding-bottom:18px}.score-strip small{font-size:10px}.score-strip strong{font-size:28px}.board{gap:8px}.board-shell{padding:11px;border-radius:20px}.board-shell>svg{inset:11px;width:calc(100% - 22px);height:calc(100% - 22px)}.cell{font-size:31px;border-radius:12px;border-bottom-width:5px}.cell.ice:after{font-size:14px;right:5px;top:5px}.word-preview{min-height:62px}.word-preview>span:first-child{font-size:20px}.word-preview>span:last-child{font-size:14px}.primary{font-size:17px;min-height:53px}#message{font-size:14px;min-height:48px;margin:12px 0}.tools{padding-top:16px;gap:10px}.tools button{min-height:89px}.tools b{font-size:13px}.tools small{font-size:10px}.side{gap:20px}.side>.panel{padding:24px}.side-heading h2{font-size:23px}.route-dots{gap:5px}.route-dots>span{height:30px;font-size:11px}.history-row>b{font-size:18px}.history-row>span{font-size:16px}footer{padding:30px 0}.tips p{font-size:15px}.ice-note p{font-size:13px}}
@media(min-width:1100px){main{padding:8px 36px 0}header{padding:28px 36px}.hero{margin:18px 0 34px}.hero h1{font-size:43px}.hero-note{display:flex;gap:18px;align-items:center;border-left:1px solid #c7d7c9;padding-left:25px}.hero-note>span{color:#80a58a;font-size:43px}.hero-note p{font-size:13px;line-height:1.9}.hero-note b{font-weight:500;color:var(--ink)}.layout{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:27px}.play{padding:29px 38px}.side>.panel{padding:27px}.board-shell{max-width:442px}.score-strip{max-width:442px;margin:auto}.word-preview,.word-actions,.tools,#message{max-width:442px;margin-left:auto;margin-right:auto}.word-preview{min-height:64px}.play-heading h2{font-size:28px}.mode-bar{max-width:740px}.side-heading h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.cell.falling{animation:gravity .4s cubic-bezier(.18,.65,.35,1)}@keyframes gravity{from{transform:translateY(var(--fall-y));opacity:.75}to{transform:translateY(0);opacity:1}}
.cell.hinted::after{content:attr(data-hint-order);display:grid;place-items:center;position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#c4953c;color:#fff;font:700 11px 'DM Sans',sans-serif}.cell.hinted{border-color:#c4953c;background:#fff3d4}.cell.hinted.selected{background:var(--green);color:white}.tools small{font-size:10px}.tools button:first-child{border-color:#b7cfa9}#version{font-size:12px}
.lookup-label{display:block;font-size:15px;font-weight:600;margin-top:20px}#wordLookup{margin-top:8px;width:100%;min-height:50px;padding:12px 14px;border:1px solid #a9bfaf;border-radius:10px;color:var(--ink);background:white;font:17px 'DM Sans',system-ui,sans-serif}#wordLookup:focus{outline:3px solid #b9d4a6;outline-offset:2px}.lookup-result{min-height:48px;font-size:15px!important;padding:10px 12px;background:#edf0e8;border-radius:8px}.lookup-result.found{background:#deeed3;color:#245d3f}.lexicon-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 20px}.lexicon-counts>div{background:#f0f4e9;border:1px solid var(--line);border-radius:9px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}.lexicon-counts b{font-size:15px}.lexicon-counts span{font-size:13px;color:var(--muted)}dialog a{color:var(--green);text-underline-offset:3px}
.letter-points{position:absolute;right:5px;bottom:4px;font:700 11px/1 'DM Sans',system-ui,sans-serif;color:#59745d;pointer-events:none}.cell.selected .letter-points{color:#e0efce}.cell.ice .letter-points{color:#416a7a}.cell.ice.selected .letter-points{color:#e0efce}.score-breakdown{padding:8px 10px;margin:0 0 10px;background:#edf3e6;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px;line-height:1.6}.score-breakdown[hidden]{display:none}.score-breakdown strong{color:var(--green)}.score-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px}.score-chips>span{display:inline-flex;align-items:baseline;gap:3px;padding:2px 6px;border-radius:5px;background:#fffef5;border:1px solid #d9e3cf;font-size:14px;font-weight:600;color:var(--ink)}.score-chips small{font-size:10px;color:var(--green)}.letter-score-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}.letter-score-table>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#eff4e8}.letter-score-table b{font-size:25px;color:var(--green);min-width:32px;text-align:center;line-height:1.1}.letter-score-table b small{display:block;font-size:9px;font-weight:400;margin-top:4px}.letter-score-table>div>span{font-size:15px;letter-spacing:1px;line-height:1.9}.history-row>span{white-space:nowrap}@media(max-width:350px){.letter-points{font-size:10px;right:3px;bottom:3px}.letter-score-table{grid-template-columns:1fr}.score-breakdown{font-size:12px}}
/* KelimeBuzz identity. */
.brand small{letter-spacing:.7px}.brand-symbol svg{display:block;width:100%;height:100%;fill:none;stroke:#ecf3d9;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.brand-symbol .buzz-marks{stroke-width:2.5}.brand.buzz .brand-symbol{animation:brand-buzz .42s ease-in-out}@keyframes brand-buzz{0%,100%{transform:rotate(0)}15%,45%,75%{transform:translateX(-1px) rotate(-3deg)}30%,60%,90%{transform:translateX(1px) rotate(3deg)}}@media(max-width:350px){.brand small{letter-spacing:.5px;font-size:7px}}@media(prefers-reduced-motion:reduce){.brand.buzz .brand-symbol{animation:none}}

.restart-journey{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;width:100%;min-height:46px;margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#edf3e6;color:var(--green);font-size:16px;font-weight:700}.restart-journey small{font-size:13px;font-weight:400;color:var(--muted)}.restart-journey[hidden]{display:none}.restart-journey:disabled{opacity:.5;cursor:wait}

.stone-note>span{background:#b6c5ba;border-color:#a4b6a8;color:#3e5f4c}
/* Compact game workspace: controls stay beside the board. */
header,main{max-width:1060px}header{padding:10px 16px}.brand{font-size:23px}.brand-symbol{width:35px;height:36px;border-radius:11px}.brand small,.hero{display:none}.head-buttons{gap:6px}.head-buttons .round{width:42px;height:42px}main{padding:0 12px}.layout{gap:14px}.play{padding:12px}.mode-bar{margin:0 0 10px;max-width:none;padding:3px;border-radius:12px}.mode-bar button{font-size:14px;min-height:44px;padding:6px 2px}.mode-bar button>span,.mode-bar small{display:none}.play-heading{min-height:36px}.play-heading h2{font-size:20px;margin:2px 0}.eyebrow{font-size:12px;letter-spacing:.6px}.mission{margin:8px 0;padding:8px 10px}.mission-label{font-size:14px}.mission p{font-size:13px;line-height:1.3;margin:4px 0 0}.progress{height:4px;margin-top:5px}.score-strip{grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 0;max-width:none;margin:0}.score-strip small{font-size:10px;letter-spacing:0}.score-strip strong{font-size:23px;line-height:1.2;margin-top:2px}.selection-mode{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:3px auto 6px;max-width:430px}.selection-mode>span{font-size:12px;color:var(--muted);line-height:1.3}.selection-mode button{min-height:40px;font-size:12px;font-weight:600;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#f1f5eb;white-space:nowrap}.selection-mode button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.board,.cell{touch-action:pan-y pinch-zoom}.board.drag-select,.board.drag-select .cell{touch-action:none}.word-preview{min-height:42px;max-width:430px;margin:auto;padding:6px 2px}.word-preview>span:first-child{font-size:18px;letter-spacing:1px}.word-preview>span:last-child{font-size:13px;white-space:normal;text-align:right}.word-preview.valid>span:first-child{font-size:22px}.word-actions{max-width:430px;margin:auto}.word-actions .primary{min-height:46px;padding:9px 14px}.word-actions .clear{min-height:46px}.score-breakdown{max-width:430px;margin:0 auto 7px;font-size:13px;padding:5px 8px}.score-chips{display:none}#message{font-size:13px;line-height:1.4;min-height:36px;margin:7px auto;max-width:430px}.tools{max-width:430px;margin:0 auto;padding-top:8px;gap:7px}.tools button{min-height:68px;padding:7px 3px;gap:3px;display:grid;grid-template-columns:22px auto;align-content:center;justify-content:center}.tools button>span{font-size:23px;grid-row:1/3;align-self:center}.tools b{font-size:13px}.tools small{font-size:11px}.side{gap:10px}.side>.panel{padding:14px 16px}.side-heading{cursor:pointer;list-style:none;min-height:44px}.side-heading::-webkit-details-marker{display:none}.side-heading::after{content:'+';font-size:23px;font-weight:400;color:var(--green)}details[open]>.side-heading::after{content:'−'}.side-heading h2{font-size:19px;flex:1;letter-spacing:-.4px}.side-heading>span{font-size:13px}.side .eyebrow{margin-top:12px}.route-dots{margin:12px 0}.restart-journey{font-size:15px;margin-top:10px}.restart-journey small{font-size:13px}.tips .ice-note p{font-size:14px}.empty{padding:5px 0}.history-row{padding:9px 0}footer{padding:18px 3px;font-size:12px;gap:4px 14px}.board-shell{max-width:430px;padding:9px}.board-shell>svg{inset:9px;width:calc(100% - 18px);height:calc(100% - 18px)}
@media(max-width:759px){body{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}.play-heading h2{display:none}.play-heading{min-height:32px}.small-round{width:36px;height:36px;min-height:36px}.board-shell{width:100%;max-width:none}.board{gap:5px}.cell{font-size:clamp(23px,6.4vw,31px)}.tools{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:760px;margin:0;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));background:#fbfdf9f7;backdrop-filter:blur(12px);border-top:1px solid #cbdacf;box-shadow:0 -5px 22px #243d3610;z-index:20;border-radius:16px 16px 0 0}.tools button{min-height:60px}.side>.panel{padding:8px 14px}.mode-bar button{font-size:13px}.selection-mode{margin-bottom:4px}.score-strip strong{font-size:22px}.mission-label{font-size:13px}}
@media(min-width:760px){.layout{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:18px}.play{padding:16px 20px}.side{position:sticky;top:16px}.side-heading h2{font-size:20px}.board-shell{width:100%}.play-heading h2{font-size:22px}.cell{font-size:30px}.brand{font-size:25px}}
@media(max-width:350px){header{padding:7px 12px}.brand{font-size:21px}.brand-symbol{width:31px;height:33px}.head-buttons .round{width:40px;height:40px}main{padding:0 8px}.play{padding:9px}.selection-mode>span{font-size:11px}.selection-mode button{font-size:11px;padding:5px 7px}.tools{padding-left:8px;padding-right:8px;gap:5px}.tools button{grid-template-columns:18px auto}.tools button>span{font-size:20px}.tools b{font-size:12px}.tools small{font-size:10px}.score-strip small{font-size:9px}.score-strip strong{font-size:20px}}
@media(max-width:759px){header{padding-top:5px;padding-bottom:5px}.mode-bar{margin-bottom:6px}.mission{padding:6px 9px;margin:5px 0}.mission-label{line-height:1.25}.mission p{font-size:12px;line-height:1.2}.score-strip{padding:4px 0}.selection-mode button{min-height:36px}}
@media(max-width:759px){.score-breakdown{padding:0 2px;border:0;background:none;font-size:12px;line-height:1.4;margin-bottom:5px}.word-preview{min-height:40px}}
@media(min-width:760px){.board-shell{max-width:min(390px,max(280px,calc(100svh - 590px)))}.play-heading h2{font-size:20px}.mission{margin:6px 0}.mode-bar{margin-bottom:6px}.play{padding:14px 20px}}

/* Give mobile tiles the available width, independent of screen height. */
@media(max-width:759px){main{padding-left:8px;padding-right:8px}.play{padding-left:8px;padding-right:8px}.board-shell{width:100%;max-width:none;padding:8px}.board{gap:7px}.board-shell>svg{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}.cell{font-size:clamp(26px,8vw,40px)}.letter-points{font-size:12px;right:5px;bottom:5px}}

.arena-link{display:flex;align-items:center;padding:0 10px;min-height:42px;border:1px solid #cbdacf;border-radius:12px;color:var(--green);background:#f8fbf5;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}@media(max-width:380px){header{gap:5px}.brand{font-size:20px;gap:5px}.brand-symbol{width:29px;height:32px}.head-buttons{gap:3px}.head-buttons .round{width:36px;height:40px}.arena-link{padding:0 7px;font-size:11px;min-height:40px}}
@media(max-width:380px){header .brand-symbol{display:none}}
/* One reachable control dock; fit the board to the mobile viewport. */
.game-dock{min-width:0}.dock-top{min-width:0}
@media(min-width:760px){.dock-top .selection-mode{margin-top:4px}.dock-top .selection-mode>span{font-size:12px}}
@media(max-width:759px){
 body:not(.online-body){--dock-height:182px;padding-bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px) + 12px)}
 body:not(.online-body) header{padding:3px 10px;min-height:48px;gap:6px}
 body:not(.online-body) .brand{font-size:21px;gap:6px}body:not(.online-body) .brand-symbol{width:29px;height:31px}
 body:not(.online-body) .head-buttons{gap:4px}body:not(.online-body) .head-buttons .round{min-height:44px;height:44px;width:40px}
 body:not(.online-body) .arena-link{min-height:44px;font-size:12px;padding:0 8px}
 body:not(.online-body) main{padding:0 6px}body:not(.online-body) .play{padding:5px 7px 8px;border-radius:15px}
 body:not(.online-body) .mode-bar{padding:2px;margin-bottom:2px;border-radius:10px}body:not(.online-body) .mode-bar button{min-height:38px;padding:4px 2px;font-size:13px}
 body:not(.online-body) .play-heading{min-height:28px}body:not(.online-body) .small-round{width:32px;height:28px;min-height:28px;font-size:22px}
 body:not(.online-body) .eyebrow{font-size:11px}body:not(.online-body) .mission{padding:5px 8px;margin:3px 0}
 body:not(.online-body) .mission-label{font-size:13px;line-height:1.2}body:not(.online-body) .progress{margin-top:4px;height:3px}body:not(.online-body) .mission p{font-size:12px;line-height:1.2;margin-top:3px}
 body:not(.online-body) .score-strip{padding:4px 0 6px}body:not(.online-body) .score-strip strong{font-size:21px}body:not(.online-body) .score-strip small{font-size:10px}
 body:not(.online-body) .board-shell{width:100%;max-width:min(100%,max(240px,calc(100dvh - 420px - env(safe-area-inset-bottom,0px))));padding:7px;margin:2px auto 0}
 body:not(.online-body) .board{gap:5px}body:not(.online-body) .cell{font-size:clamp(24px,6.7vw,32px);border-radius:9px;border-bottom-width:4px}
 body:not(.online-body) .board-shell>svg{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}body:not(.online-body) .letter-points{font-size:11px;right:4px;bottom:4px}
 .game-dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:760px;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));background:#fbfdf9fa;backdrop-filter:blur(12px);border-top:1px solid #cbdacf;border-radius:16px 16px 0 0;box-shadow:0 -4px 18px #243d3612;z-index:20}
 .dock-top{display:flex;gap:8px;align-items:center;min-height:44px}.game-dock .word-preview{flex:1;min-width:0;min-height:40px;padding:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
 .game-dock .word-preview>span:first-child,.game-dock .word-preview.valid>span:first-child{font-size:17px;line-height:1.2;letter-spacing:.7px;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.game-dock .word-preview>span:last-child{font-size:12px;line-height:1.4;text-align:left}
 .game-dock .selection-mode{margin:0;flex-shrink:0}.game-dock .selection-mode>span{display:none}.game-dock .selection-mode button{min-height:44px;padding:6px 10px;font-size:13px}
 .game-dock .score-breakdown{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .game-dock .word-actions{max-width:none;width:100%;gap:7px}.game-dock .word-actions .primary{min-height:44px;height:44px;padding:7px 12px;font-size:16px}.game-dock .word-actions .clear{width:44px;min-height:44px;height:44px;font-size:24px}
 .game-dock #message{min-height:20px;height:20px;font-size:12px;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:none;margin:2px 0}
 .game-dock .tools{position:static;transform:none;left:auto;bottom:auto;width:100%;max-width:none;margin:0;padding:4px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;backdrop-filter:none;gap:6px}
 .game-dock .tools button{min-height:48px;padding:4px 2px;gap:1px 3px;grid-template-columns:17px auto;border-radius:9px}.game-dock .tools button>span{font-size:20px}.game-dock .tools b{font-size:12px}.game-dock .tools small{font-size:11px}
 body:not(.online-body) .side{margin-top:8px}
}
@media(max-width:359px){.game-dock{padding-left:7px;padding-right:7px}.game-dock .tools{gap:4px}.game-dock .tools button{grid-template-columns:1fr}.game-dock .tools button>span{display:none}.game-dock .word-preview>span:first-child{font-size:15px}}
@media(max-width:759px){
 body:not(.online-body) .mode-bar button{min-height:32px}
 body:not(.online-body) .mission{padding:4px 8px}body:not(.online-body) .mission-label{font-size:12px;line-height:14px}body:not(.online-body) .mission p{line-height:12px;margin-top:2px}body:not(.online-body) .progress{margin-top:2px}
 body:not(.online-body) .score-strip{padding:2px 0 4px}body:not(.online-body) .score-strip small{line-height:12px}body:not(.online-body) .score-strip strong{font-size:20px;line-height:22px;margin-top:1px}
 body:not(.online-body) .board-shell{max-width:min(100%,max(240px,calc(100dvh - 400px - env(safe-area-inset-bottom,0px))))}
}
@media(max-width:759px) and (max-height:660px){body:not(.online-body) .board-shell{max-width:min(100%,max(220px,calc(100dvh - 400px - env(safe-area-inset-bottom,0px))))}}
/* Shared KelimeBuzz wordmark: identical artwork on every page. */
header .brand{display:flex;align-items:center;min-height:44px;flex-shrink:0;line-height:1}
header .brand>img{display:block;width:178px;height:auto;max-width:100%;object-fit:contain}
header .brand.buzz>img{animation:brand-buzz .42s ease-in-out}
@media(max-width:759px){header .brand>img{width:156px}}
@media(max-width:380px){header .brand>img{width:139px}}
@media(max-width:350px){header .brand>img{width:125px}}
@media(prefers-reduced-motion:reduce){header .brand.buzz>img{animation:none}}
