@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Gilda+Display&display=swap');
:root{--paper:#f5f3ec;--surface:#fffdf8;--ink:#344136;--muted:#6e7869;--line:#dce1d3;--rose:#a75468;--rose-dark:#884254;--green:#5f775b;--soft-green:#eaf0e2;--heading:'Gilda Display',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif;--shadow:0 12px 35px #34413608;--tilt:14deg;--rotation:0deg;--zoom:1;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--sans);background-image:radial-gradient(ellipse at 5% 35%,#dce5ce40,transparent 50%)}body:has(dialog[open]){overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.45}button:enabled{transition:background .16s,box-shadow .16s,transform .16s}button:enabled:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--rose);outline-offset:3px}a{color:var(--green)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--heading);font-weight:400}h2{font-size:32px;line-height:1.2;margin-bottom:20px}h3{font-size:17px;font-weight:600}small{font-size:13px}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;top:8px;left:8px;z-index:100;background:var(--surface);padding:12px}.topbar{height:82px;max-width:1340px;padding:0 36px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font:25px var(--heading);white-space:nowrap}.brand small{display:block;font:10px var(--sans);letter-spacing:2px;color:var(--muted);margin-top:3px}.topbar nav{display:flex;align-items:center;gap:12px}.nav-new,.nav-button{border-radius:7px;padding:10px 18px;font-size:15px;min-height:44px;white-space:nowrap}.nav-new{background:var(--green);color:#fff}.nav-new:hover{background:#4e674a}.nav-button{background:transparent}.nav-button:hover{background:var(--soft-green)}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:none;color:var(--muted)}.icon-button:hover{background:var(--soft-green)}.icon-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.garden-layout{max-width:1240px;padding:24px 32px 14px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}.play-area{min-width:0}.table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 auto 10px;max-width:680px}.table-heading h1{font-size:30px;line-height:1.2;margin:0}.table-heading #mode-label{font-size:14px;color:var(--muted);text-transform:none;letter-spacing:0}.board-meta{max-width:680px;margin:0 auto 7px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);min-height:24px}.connection-bar{display:flex;align-items:center;gap:9px}.connection-bar #connection-status{font-size:12px;color:var(--green)}.connection-bar #connection-status.interrupted{color:var(--rose)}.board-stage{perspective:1700px;position:relative;touch-action:pan-y}.board-platform{position:relative;width:min(calc(100% - 18px),calc(100dvh - 236px),660px);margin:0 auto;padding:23px 12px 12px 25px;background:linear-gradient(130deg,#ded6bd,#eee8d5 45%,#d5caab);border:1px solid #d1c4a6;border-radius:9px;transform:rotateX(var(--tilt)) rotateZ(var(--rotation)) scale(var(--zoom));transform-style:preserve-3d;box-shadow:0 6px 0 #b6a98e,0 8px 0 #a49980,0 18px 30px #46482d25,0 35px 55px #74795812;transition:transform .2s}.board-platform:after{content:'';position:absolute;inset:0;border-radius:9px;pointer-events:none;box-shadow:inset 0 1px 1px #fff9}.board{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));aspect-ratio:1;gap:2px;border:2px solid #aeae92;padding:2px;border-radius:3px;background:#b1b598;position:relative;isolation:isolate}.cell{aspect-ratio:1;min-width:0;padding:0;background:#e9e9d8;position:relative;display:flex;justify-content:center;align-items:center;border-radius:1px;line-height:1;transform-style:preserve-3d}.cell:hover{filter:brightness(1.04)}.cell:focus-visible{outline-offset:0;z-index:3;outline:2px solid var(--rose)}.cell.cursor{box-shadow:inset 0 0 0 2px var(--rose)}.cell.cursor:not(:has(.tile)):after{content:attr(data-direction);position:absolute;right:2px;bottom:1px;font-size:12px;font-weight:600;color:var(--rose)}.cell .bonus{font-size:clamp(6px,.7vw,10px);font-weight:650;line-height:1;pointer-events:none}.cell.tw{background:#b87878;color:#fff9ed}.cell.dw{background:#e7bfab;color:#784d40}.cell.tl{background:#7f9f96;color:#fafff4}.cell.dl{background:#c1d2c5;color:#436251}.cell.center .bonus{font-size:23px;color:#945c53}.tile{position:relative;display:flex;align-items:center;justify-content:center;color:#374333;background:linear-gradient(140deg,#fff9e7,#f0e3be);border:1px solid #d4c49c;border-radius:4px;box-shadow:0 3px 0 #c2af84,0 5px 6px #46432912,inset 0 1px #fff;font-family:var(--sans);font-weight:600;line-height:1;user-select:none}.tile small{position:absolute;right:8%;bottom:8%;font-size:.34em;font-weight:600;line-height:1}.tile.blank{color:#777c68}.tile.pending{background:linear-gradient(140deg,#fff8de,#e9d8a8);outline:2px solid var(--rose);outline-offset:-1px;animation:place-tile .18s ease-out}.cell .tile{position:absolute;inset:0;font-size:clamp(15px,2.6vh,27px);transform:translateZ(5px);pointer-events:none;border-radius:3px}.cell.last-play .tile{background:linear-gradient(140deg,#f4f6e7,#dfe7c4)}.column-labels{position:absolute;left:29px;right:16px;top:5px;display:grid;grid-template-columns:repeat(15,1fr);text-align:center;font:10px var(--sans);color:#77745e}.row-labels{position:absolute;top:29px;bottom:17px;left:5px;width:15px;display:grid;grid-template-rows:repeat(15,1fr);align-items:center;text-align:center;font:10px var(--sans);color:#77745e}.board-tools{max-width:680px;margin:17px auto 0;padding:0 4px;display:flex;align-items:center;justify-content:space-between;gap:10px}.legend{display:flex;gap:16px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;white-space:nowrap}.legend i{width:8px;height:8px;border-radius:2px}.tw{background:#b87878}.dw{background:#e7bfab}.tl{background:#7f9f96}.dl{background:#c1d2c5}.text-button{background:none;padding:5px 0;color:var(--muted);font-size:14px;line-height:1.4;min-height:30px}.text-button:hover{color:var(--rose)}.camera-panel{max-width:680px;margin:14px auto 0;padding:15px;border:1px solid var(--line);border-radius:9px;background:var(--surface);display:flex;align-items:center;flex-wrap:wrap;gap:14px}.camera-panel label{font-size:14px;display:flex;gap:7px;align-items:center;flex:1}.camera-panel input{width:80px;min-width:40px}.sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.players-card,.rack-panel{border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.players-card{padding:16px 20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.section-heading h2{font-size:23px;margin:0}.players-card>.section-heading{justify-content:flex-end;margin-bottom:4px}.live-dot{font-size:13px;color:var(--green);font-weight:550;text-transform:lowercase}.live-dot:before{content:'';display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px;vertical-align:2px}.player-row{display:flex;align-items:center;gap:12px;padding:10px;margin:3px -7px;border-radius:8px}.player-row.active{background:var(--soft-green)}.player-avatar{width:36px;height:36px;display:grid;place-items:center;background:#e8ddd2;color:#9e6567;font:24px var(--heading);border-radius:50%;flex-shrink:0}.player-row:nth-child(even) .player-avatar{background:#dbe7d3;color:var(--green)}.player-copy{flex:1;min-width:0}.player-copy strong{display:block;font-size:17px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-copy small{display:block;font-size:13px;color:var(--muted);margin-top:2px}.player-score{font:36px var(--heading);min-width:28px;text-align:right}.rating-line{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:12px;margin-top:10px;font-size:13px;color:var(--muted)}.rating-line strong{font-size:15px;font-weight:550;color:var(--ink);display:flex;align-items:baseline;gap:6px}.rating-line small{font-size:11px;color:var(--muted);font-weight:400}.rack-panel{padding:20px}.rack-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}.rack-top>span:first-child{display:flex;align-items:center;gap:7px;white-space:nowrap}.rack-help{width:22px;height:22px;border:1px solid var(--line);background:none;color:var(--muted);border-radius:50%;font-size:13px;padding:0;line-height:20px}.rack-top #save-status{font-size:11px;color:var(--muted);text-align:right;max-width:135px}.error{color:#ad4352!important}.rack-line{margin:24px 0 13px;display:flex}.rack{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;min-height:54px}.rack .tile{flex:1 1 0;min-width:0;width:0;max-width:44px;height:54px;font-size:28px}.rack .tile.selected{transform:translateY(-7px);outline:2px solid var(--rose);outline-offset:3px}.rack .tile.used{opacity:.15;box-shadow:none;outline:0;transform:none;pointer-events:none}.rack-utilities{display:flex;justify-content:flex-end;gap:22px}.rack-utilities button{font-size:14px}.move-preview{font-size:15px;line-height:1.55;min-height:47px;margin:12px 0;color:var(--green);display:flex;align-items:center;word-break:break-word}.move-preview.invalid{color:var(--rose)}.turn-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.minor-actions{display:flex;gap:18px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:15px;background:var(--rose);border:1px solid var(--rose);border-radius:7px;padding:12px 20px;min-height:46px;color:#fffaf3;font-size:16px;font-weight:550;text-decoration:none;line-height:1.3}.primary:hover:enabled{background:var(--rose-dark);border-color:var(--rose-dark)}.primary:disabled{background:#c7b4b7;border-color:#c7b4b7;opacity:.65}.secondary{border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:10px 16px;font-size:15px;min-height:42px}.play-button{font-size:15px;min-width:139px;padding:11px 15px;gap:14px}.play-button #play-points{font-size:14px;min-width:17px}.notice{font-size:13px;line-height:1.55;color:var(--muted);margin:14px 0 0;min-height:20px}.notice:empty{display:none}.game-details{border-top:1px solid var(--line);padding-top:6px}.game-details>summary{cursor:pointer;padding:10px 4px;font-size:15px;color:var(--muted);list-style:none;display:flex;justify-content:space-between;align-items:center}.game-details>summary:after{content:'+';font-size:23px;font-weight:400}.game-details[open]>summary:after{content:'−'}.game-details summary::-webkit-details-marker{display:none}.details-body{padding-top:12px;display:flex;flex-direction:column;gap:18px}.journal-card,.word-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:19px}.journal-card .section-heading{margin-bottom:8px}.history{max-height:250px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c7d1be transparent}.history-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.history-row:last-child{border:0}.history-number{font-size:12px;color:var(--muted)}.history-copy{flex:1;min-width:0}.history-copy strong{font-size:15px;font-weight:550;word-break:break-word}.history-copy small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.history-score{font-size:16px;color:var(--green)}.word-card h2{font-size:23px;margin-bottom:15px}.word-card form{display:flex;align-items:center;gap:8px}.word-card input{width:100%;min-width:0;background:transparent;border:1px solid var(--line);padding:10px 12px;border-radius:6px;font-size:16px;color:var(--ink)}.word-card form button{width:38px;min-height:40px;background:var(--soft-green);border-radius:6px;color:var(--green);font-size:22px}.word-card>p:last-child{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}.page-footer{max-width:1176px;margin:14px auto 0;padding:18px 0 24px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted);font-size:14px}.page-footer a{text-decoration:none;color:var(--muted)}.page-footer>div{display:flex;gap:26px;align-items:center}.page-footer .text-button{font-size:14px}.page-footer #toggle-music[aria-pressed=true]{color:var(--rose)}.botanical{position:absolute;z-index:-1;pointer-events:none;width:80px;height:250px;bottom:0;opacity:.18;background:url('botanical.svg') center/contain no-repeat}.botanical-left{left:-22px;transform:rotate(-15deg)}.botanical-right{right:-22px;transform:scaleX(-1) rotate(-15deg)}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;width:calc(100% - 32px);max-width:520px;max-height:calc(100dvh - 40px);padding:34px;overflow-y:auto;box-shadow:0 25px 90px #22302330}dialog[open]{animation:dialog-in .2s ease-out}dialog::backdrop{background:#29392dd0;backdrop-filter:blur(5px)}.dialog-close{position:absolute;top:8px;right:8px;height:42px;width:42px;display:grid;place-items:center;background:none;color:var(--muted);font-size:28px;border-radius:50%;line-height:1}.dialog-close:hover{background:var(--soft-green)}dialog>p,.dialog-intro{font-size:15px;line-height:1.65;color:var(--muted)}.wide-dialog{max-width:760px}.wide{width:100%;margin-top:18px}.mode-options{display:flex;gap:8px;border:0;padding:0;margin:24px 0}.mode-options label{flex:1;position:relative;min-width:0}.mode-options input{position:absolute;opacity:0;left:50%;top:50%}.mode-options label>span{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);padding:13px 6px;min-height:114px;border-radius:8px;font-size:25px;color:var(--green);text-align:center;cursor:pointer}.mode-options input:checked+span{background:var(--soft-green);border-color:var(--green)}.mode-options input:focus-visible+span{outline:3px solid var(--rose);outline-offset:3px}.mode-options strong{display:block;font-size:15px;margin:8px 0 4px;font-weight:550}.mode-options small{display:block;font-size:12px;line-height:1.4;color:var(--muted)}.form-grid{display:flex;gap:16px}.form-grid label{flex:1;min-width:0}label{font-size:15px}input:not([type=checkbox]):not([type=range]),select{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:6px;padding:11px 12px;font-size:16px;min-width:0}dialog input:not([type=checkbox]):not([type=range]),dialog select{width:100%;display:block;margin-top:6px}#difficulty-options{margin-top:20px}.form-help{font-size:13px;line-height:1.65;color:var(--muted);margin:8px 0}#local-names label{display:block;margin-top:14px}.settings-list{margin:8px 0 20px}.settings-list label{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid var(--line);font-size:16px}.settings-list select{width:170px;margin:0}.settings-list input[type=range]{width:150px}.settings-list input[type=checkbox],.check-label input{width:19px;height:19px}input[type=checkbox],input[type=range]{accent-color:var(--green)}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}.guide-grid h3{font-size:18px;margin:16px 0 10px}.guide-grid p{font-size:15px;line-height:1.7;color:var(--muted)}.dictionary-note{padding:16px;background:var(--soft-green);border-radius:7px;font-size:13px;line-height:1.65;color:var(--green);margin:18px 0 24px}.blank-letters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:24px}.blank-letters button{aspect-ratio:1;background:#f0e5c8;border:1px solid #d4c49c;border-radius:5px;font-size:23px;color:#374333}.blank-letters button:hover{background:#dfe8ce}.exchange-rack{margin:28px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.handoff-flower{display:block;text-align:center;font-size:43px;color:#95a97e;margin:2px 0 16px}#handoff-dialog,#result-dialog{text-align:center}.result-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:14px 0;font-size:17px}.result-row strong{font:30px var(--heading)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 28px}.stat{background:var(--soft-green);padding:17px 8px;border-radius:8px;text-align:center}.stat strong{display:block;font:33px var(--heading)}.stat small{font-size:12px;color:var(--green)}.achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 28px}.achievement{border:1px solid var(--line);background:#e9ece2;border-radius:8px;padding:18px 10px;text-align:center;opacity:.6}.achievement.unlocked{opacity:1;background:#f5ebd4;border-color:#d7c08b}.achievement>span{font-size:30px;color:#7b8c6a}.achievement.unlocked>span{color:#ad8a3f}.achievement strong{display:block;font-size:14px;margin:8px 0 5px}.achievement small{display:block;font-size:12px;line-height:1.5;color:var(--muted)}.score-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:12px;border-bottom:1px solid var(--line);padding:13px 0;font-size:15px}.score-row>span:first-child{color:#a48d5a}.score-row small{display:block;font-size:12px;color:var(--muted);margin-top:3px}#local-scores,#online-leaders{margin-bottom:28px}.check-label{display:flex;align-items:center;gap:9px;margin:20px 0 5px;font-size:15px}.or-divider{text-align:center;color:var(--muted);font-size:14px;margin:18px 0}.join-form{display:flex;align-items:center;gap:10px}.join-form input{min-width:0;margin:0!important;text-transform:uppercase;letter-spacing:2px}.join-form button{flex-shrink:0}.link-button{display:flex}.online-game-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:14px 0;font-size:15px}.online-game-row>div{min-width:0}.online-game-row small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.online-game-row button{white-space:nowrap}.room-banner{padding:20px 14px;background:var(--soft-green);border-radius:9px;margin:16px 0;text-align:center}.room-banner p{font-size:14px;margin-bottom:10px;color:var(--muted)}.room-code{display:block;font:600 28px var(--sans);letter-spacing:4px;color:var(--rose);margin:10px 0 18px}.room-banner button{margin:4px 8px;font-size:14px}.room-banner>.text-button{display:block;margin:12px auto 0}.toast{position:fixed;z-index:100;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);padding:14px 20px;border-radius:9px;background:var(--ink);color:var(--surface);font-size:15px;text-align:center;box-shadow:var(--shadow);animation:fade-in .2s}#replay-dedication{margin-right:20px}#sn-member-settings-badge,.sn-account-link{background:#46573e!important;color:#fffdf5!important;font-family:var(--sans)!important;box-shadow:0 3px 12px #2336221c!important}
.welcome-dialog{max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:var(--paper);overflow:hidden;display:none}.welcome-dialog[open]{display:grid;place-items:center;animation:none}.welcome-dialog::backdrop{background:var(--paper)}.welcome-garden{position:absolute;inset:0;background:radial-gradient(ellipse at center,var(--paper) 20%,transparent 75%),url('botanical.svg') -6% 90%/34% 100% no-repeat,url('botanical.svg') 108% 5%/35% 105% no-repeat;opacity:.5;animation:garden-in .8s both}.welcome-copy{position:relative;text-align:center;padding:30px;animation:dialog-in .35s both}.welcome-copy>img{margin-bottom:18px}.welcome-copy h2{font-size:clamp(34px,5vw,56px);margin:0 0 18px;letter-spacing:-.5px}.welcome-copy .opening-note{font:20px var(--heading);color:var(--muted);margin:0 0 28px}.welcome-copy .primary{min-width:150px}.welcome-skip{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);font-size:14px}.welcome-dialog.leaving{animation:fade-out .24s ease-in both}.no-bonus .cell .bonus{visibility:hidden}.flat-board{--tilt:0deg!important;--rotation:0deg!important}.no-motion *,.no-motion *:before,.no-motion *:after{animation:none!important;transition:none!important}[data-theme=dusk]{--paper:#1f2b24;--surface:#29372e;--ink:#e9eddf;--muted:#b3bea9;--line:#43523f;--rose:#bc7f8e;--rose-dark:#a26879;--green:#b5c99d;--soft-green:#37482f;color-scheme:dark}[data-theme=dusk] .nav-new{background:#809875;color:#142419}[data-theme=dusk] .player-avatar{background:#4c443a;color:#dfb4ac}[data-theme=dusk] .player-row:nth-child(even) .player-avatar{background:#47583b;color:#c5d9ae}[data-theme=dusk] .achievement{background:#35402d}[data-theme=dusk] .achievement.unlocked{background:#4a4534;border-color:#82754c}[data-theme=paper]{--paper:#f4f4ee;--surface:#fffef8;--rose:#62735a;--rose-dark:#4c5d44;--green:#617456;--soft-green:#e8ebdf}
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-out{to{opacity:0}}@keyframes dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes place-tile{from{transform:translateZ(15px) scale(1.06);opacity:.5}to{transform:translateZ(5px);opacity:1}}@keyframes garden-in{from{opacity:0;transform:scale(1.03)}to{opacity:.5;transform:scale(1)}}
@media(min-width:801px) and (max-height:800px){.topbar{height:68px}.garden-layout{padding-top:18px}.players-card{padding:12px 18px}.player-row{padding:7px 8px}.rating-line{margin-top:7px;padding-top:9px}.rack-panel{padding:17px 19px}.rack-line{margin-top:19px}.rack .tile{height:49px;font-size:27px}.move-preview{margin:8px 0;min-height:44px}.notice{margin-top:10px;font-size:12px}.board-platform{width:min(calc(100% - 18px),calc(100dvh - 206px),660px)}}
@media(max-width:1100px){.topbar{padding:0 28px}.garden-layout{padding-left:24px;padding-right:24px;grid-template-columns:minmax(0,1fr) 316px;gap:25px}.sidebar{gap:15px}.rack-panel{padding:18px}.rack .tile{font-size:26px}.players-card{padding-left:17px;padding-right:17px}.player-copy strong{font-size:16px}.player-copy small{font-size:12px}.rack-top{font-size:14px}.rack-top #save-status{font-size:10px;max-width:117px}.play-button{min-width:127px;font-size:15px}.minor-actions{gap:14px}.page-footer{margin-left:24px;margin-right:24px}.botanical{display:none}.legend{gap:12px}.legend span{font-size:11px}.table-heading #mode-label{font-size:13px}.column-labels,.row-labels{font-size:8px}.cell .bonus{font-size:7px}}
@media(max-width:800px){.topbar{height:76px;padding:0 22px}.brand{font-size:23px}.topbar nav{gap:5px}.nav-new,.nav-button{font-size:14px;padding:9px 13px}.garden-layout{display:block;max-width:660px;padding:20px 23px 10px}.table-heading{margin-bottom:14px}.table-heading h1{font-size:27px}.table-heading #mode-label{font-size:14px}.players-card{margin:0 0 15px;padding:7px;background:transparent;border:0;box-shadow:none}.players-card>.section-heading,.players-card .rating-line{display:none}.players-card #players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.player-row{border:1px solid var(--line);background:var(--surface);margin:0;padding:9px 12px;gap:10px}.player-row.active{border-color:#8fa37c;background:var(--soft-green)}.player-avatar{width:29px;height:29px;font-size:21px}.player-copy strong{font-size:16px}.player-copy small{font-size:11px}.player-score{font-size:31px}.board-platform{width:calc(100% - 8px);max-width:600px;padding:22px 11px 11px 24px}.cell .tile{font-size:clamp(16px,3.7vw,25px)}.cell .bonus{font-size:8px}.cell.center .bonus{font-size:23px}.column-labels{font-size:9px}.row-labels{font-size:9px}.board-meta{font-size:13px;margin-bottom:4px}.board-tools{margin-top:16px;margin-bottom:18px}.legend{gap:16px}.legend span{font-size:12px}.rack-panel{padding:20px;margin-top:20px}.rack-top{font-size:16px}.rack-top #save-status{max-width:none;font-size:12px}.rack-line{margin-top:23px}.rack{gap:7px}.rack .tile{max-width:57px;height:61px;font-size:32px}.rack-utilities{gap:26px}.rack-utilities .text-button{font-size:15px}.move-preview{min-height:26px;margin:14px 0;font-size:16px}.notice{font-size:14px}.minor-actions{gap:24px}.minor-actions button{font-size:15px}.play-button{min-width:170px;min-height:47px;font-size:16px}.sidebar{margin-top:20px}.game-details{padding-top:8px}.game-details>summary{font-size:16px;min-height:44px}.details-body{display:grid;grid-template-columns:1fr 1fr;gap:15px}.page-footer{max-width:614px;margin:12px auto 0;padding:16px 0 22px}.camera-panel{margin-bottom:16px}.welcome-garden{background-size:auto,55% 90%,55% 90%;background-position:center,-35% 120%,140% -50%}}
@media(max-width:480px){.topbar{height:70px;padding:0 14px;gap:9px}.brand{font-size:19px;gap:7px}.brand img{width:28px;height:28px}.brand small{font-size:8px;letter-spacing:1.6px}.topbar nav{gap:1px}.nav-new,.nav-button{padding:8px 10px;min-height:40px;font-size:13px}.icon-button{width:35px;height:40px}.icon-button svg{width:21px;height:21px}.garden-layout{padding:18px 14px 8px}.table-heading{margin-bottom:12px}.table-heading h1{font-size:26px}.table-heading #mode-label{font-size:13px}.players-card{padding:0;margin-bottom:13px}.players-card #players{gap:8px}.player-row{padding:8px 10px;gap:8px}.player-avatar{display:none}.player-copy strong{font-size:16px}.player-copy small{font-size:11px}.player-score{font-size:29px}.board-meta{font-size:12px}.connection-bar #connection-status{font-size:10px}.connection-bar .text-button{font-size:12px}.board-platform{padding:17px 8px 8px 19px;border-radius:6px;box-shadow:0 5px 0 #b6a98e,0 7px 0 #a49980,0 14px 23px #46482d20}.board{gap:1px;border-width:1px;padding:1px}.cell .tile{font-size:clamp(14px,4.1vw,20px);border-radius:2px}.cell .bonus{font-size:6.5px}.cell.center .bonus{font-size:18px}.cell.cursor:not(:has(.tile)):after{font-size:10px;right:1px;bottom:0}.column-labels{top:3px;left:22px;right:11px;font-size:7px}.row-labels{top:22px;bottom:12px;left:2px;width:12px;font-size:7px}.board-tools{margin:15px 2px 10px;gap:8px}.legend{gap:10px}.legend span{font-size:10px;gap:4px}.legend i{height:6px;width:6px}.board-tools>.text-button{font-size:12px}.rack-panel{padding:16px;margin-top:15px}.rack-top{font-size:15px}.rack-top #save-status{font-size:11px}.rack-line{margin:22px 0 11px}.rack{gap:5px}.rack .tile{height:52px;font-size:28px;max-width:45px}.rack-utilities{gap:25px}.rack-utilities .text-button{font-size:14px}.move-preview{font-size:15px;line-height:1.5;min-height:24px;margin:12px 0}.minor-actions{gap:22px}.minor-actions button{font-size:14px}.play-button{min-width:146px;font-size:16px;padding:11px 15px}.notice{font-size:13px;margin-top:12px}.details-body{display:flex;gap:14px}.sidebar{margin-top:16px}.journal-card,.word-card{padding:18px}.page-footer{margin:12px 14px 0;font-size:13px}.page-footer>div{gap:21px}.page-footer .text-button{font-size:13px}.camera-panel{padding:13px;gap:12px}.camera-panel label{font-size:14px;flex:1 1 42%}.camera-panel input{width:80px}dialog{padding:32px 23px;max-height:calc(100dvh - 24px);width:calc(100% - 24px)}h2{font-size:30px}.mode-options{gap:7px}.mode-options label>span{font-size:22px;min-height:112px;padding:10px 5px}.mode-options strong{font-size:13px}.mode-options small{font-size:11px}.settings-list label{font-size:15px}.settings-list select{width:143px;font-size:15px}.settings-list input[type=range]{width:130px}.guide-grid{grid-template-columns:1fr;gap:0}.stats-grid{gap:6px}.stat{padding:15px 4px}.stat strong{font-size:27px}.stat small{font-size:11px}.achievements{grid-template-columns:repeat(2,minmax(0,1fr))}.achievement strong{font-size:14px}.achievement small{font-size:12px}.blank-letters{gap:6px}.blank-letters button{font-size:22px}.room-code{font-size:24px;letter-spacing:3px}.room-banner{padding:18px 10px}.welcome-copy{padding:25px}.welcome-copy h2{font-size:36px}.welcome-copy .opening-note{font-size:20px}.welcome-copy>img{width:40px;height:40px}.welcome-skip{bottom:16px}}
@media(max-width:360px){.topbar{padding:0 10px;gap:5px}.brand{font-size:17px;gap:5px}.brand img{width:24px;height:24px}.brand small{font-size:7px;letter-spacing:1.4px}.nav-new,.nav-button{padding:8px 8px;font-size:12px}.icon-button{width:30px}.icon-button svg{width:20px;height:20px}.garden-layout{padding-left:10px;padding-right:10px}.table-heading #mode-label{font-size:12px}.table-heading h1{font-size:24px}.rack-panel{padding:14px}.rack-top #save-status{font-size:10px}.rack .tile{height:48px;font-size:27px}.rack{gap:4px}.minor-actions{gap:14px}.play-button{min-width:127px;font-size:15px;gap:10px}.legend{gap:8px}.legend span{font-size:9px}.board-tools>.text-button{font-size:11px}.welcome-copy h2{font-size:32px}.form-grid{gap:12px}.form-grid label{font-size:14px}.settings-list select{width:127px}.settings-list input[type=range]{width:115px}.mode-options small{font-size:10px}.mode-options strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* On phones the flower mark carries the brand; keep game controls full-size. */
@media(max-width:480px){.brand>span{display:none}.brand img{width:30px;height:30px}.topbar{height:66px;gap:10px}.topbar nav{gap:3px}.nav-new,.nav-button{font-size:15px;min-height:44px;padding:10px 12px}.icon-button{width:42px;height:44px}.icon-button svg{width:23px;height:23px}}
@media(max-width:360px){.topbar{padding:0 10px;gap:8px}.brand img{width:28px;height:28px}.nav-new,.nav-button{font-size:15px;padding:10px}.icon-button{width:39px}}
.rack-top #save-status{font-size:13px;max-width:140px}.rack-utilities .text-button,.minor-actions .text-button{font-size:15px}
/* Leave room for the site's persistent account control when scrolling the footer. */
.page-footer{margin-bottom:72px}

/* Scrabble view choices */
[data-theme=classic]{--paper:#153e2e;--surface:#fffced;--ink:#15251b;--muted:#485a4c;--line:#d4d8c5;--rose:#174c34;--rose-dark:#103922;--green:#235638;--soft-green:#e7edda}
[data-theme=classic] .topbar,[data-theme=classic] .table-heading,[data-theme=classic] .board-meta,[data-theme=classic] .board-tools,[data-theme=classic] .page-footer{color:#fffced}
[data-theme=classic] .brand,[data-theme=classic] .brand small,[data-theme=classic] .nav-button,[data-theme=classic] .icon-button,[data-theme=classic] #mode-label,[data-theme=classic] .legend span,[data-theme=classic] .board-tools .text-button,[data-theme=classic] .page-footer a,[data-theme=classic] .page-footer button{color:#fffced}
[data-theme=classic] .board-platform{background:#152a1d;border-color:#07150b;box-shadow:0 6px #070e09,0 15px 30px #0005}
[data-theme=classic] .board{background:#101b13;border-color:#0b180e}[data-theme=classic] .cell{background:#f3f0d9;color:#14271a}[data-theme=classic] .cell.tw{background:#275238;color:#fff}[data-theme=classic] .cell.dw{background:#8fae80;color:#071c0b}[data-theme=classic] .cell.tl{background:#24332a;color:#fff}[data-theme=classic] .cell.dl{background:#c7d2b2;color:#102b18}
[data-theme=classic] .botanical{display:none}[data-theme=classic] .tile{background:linear-gradient(140deg,#fffef0,#e8dfbd);color:#080e09}
[data-theme=earned-garden]{--paper:#e8efd9;--surface:#fffff2;--ink:#25452a;--muted:#58724d;--line:#c4d3ad;--rose:#657e37;--rose-dark:#496327;--green:#4b6d38;--soft-green:#dce9c9;background-image:radial-gradient(ellipse at 10% 90%,#b8d58a90,transparent 50%),radial-gradient(ellipse at 95% 8%,#e7d08c60,transparent 45%)}
[data-theme=earned-garden] .board-platform{background:linear-gradient(130deg,#a5b786,#d0d9ac,#8da76c)}[data-theme=earned-garden] .botanical{opacity:.45;width:100px;height:330px}[data-theme=earned-garden] .players-card:before{content:'Garden unlocked';display:block;color:var(--green);font-size:12px;margin-bottom:6px}
#classical-audio{width:100%;margin:14px 0 2px;display:block}#music-track{max-width:220px}.welcome-copy .opening-note{font-size:29px;line-height:1.6;color:var(--rose)}
#tutorial-demo{white-space:pre-line;padding:22px;border-radius:10px;background:var(--soft-green);font-size:24px;letter-spacing:4px;text-align:center;color:var(--green);margin:20px 0}#tutorial-copy{font-size:17px;line-height:1.7}#tutorial-dialog .dialog-actions{flex-wrap:wrap}#tutorial-counter{font-size:14px}
@media(max-width:480px){#music-track{max-width:170px}.settings-list label{flex-wrap:wrap}.welcome-copy .opening-note{font-size:26px}#tutorial-dialog .dialog-actions{gap:10px}#tutorial-demo{font-size:20px;letter-spacing:2px}.brand>span{display:inline;font-size:20px}.brand small{display:none}.topbar nav{gap:0}.nav-button{padding:10px 7px}.nav-new{padding:10px}}
@media(max-width:360px){.brand>span{font-size:18px}.brand img{display:none}.topbar{gap:4px}.icon-button{width:34px}.nav-new,.nav-button{font-size:14px;padding:10px 8px}}
@media(max-width:800px){.page-footer{flex-wrap:wrap;row-gap:8px}.page-footer>div{flex-wrap:wrap;gap:18px}}
@media(max-width:360px){.brand>span{display:none}.brand img{display:block;width:28px;height:28px}}

[data-theme=classic] .game-details>summary,[data-theme=classic] .connection-bar #connection-status{color:#fffced}
[data-theme=classic] .board-tools .legend .tw{background:#275238;border:1px solid #fff9}[data-theme=classic] .board-tools .legend .dw{background:#8fae80}[data-theme=classic] .board-tools .legend .tl{background:#24332a;border:1px solid #fff9}[data-theme=classic] .board-tools .legend .dl{background:#c7d2b2}
[data-theme=classic] .welcome-dialog,[data-theme=classic] .welcome-dialog::backdrop{background:#fffced}[data-theme=classic] .welcome-garden{background-image:radial-gradient(ellipse at center,#fffced 20%,transparent 75%),url('botanical.svg'),url('botanical.svg')}
[data-theme=classic] .column-labels,[data-theme=classic] .row-labels{color:#e0e5ce}

/* A small practice table, independent of the player's board. */
#tutorial-dialog{max-width:560px}#tutorial-title{font-size:31px;margin-bottom:12px}#tutorial-copy{font-size:17px;line-height:1.6;margin-bottom:12px}#tutorial-demo{font-size:16px;letter-spacing:0;padding:20px;margin:14px 0;white-space:normal}#tutorial-feedback{font-size:15px;line-height:1.5;color:var(--green);min-height:44px;margin:8px 0}#tutorial-counter{margin:0 0 12px}#tutorial-dialog .dialog-actions{margin-top:14px;align-items:center}#tutorial-skip-text{margin-right:auto}
.lesson-board{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;max-width:250px;margin:0 auto 20px;background:var(--line);padding:7px;border-radius:7px}.lesson-cell{display:grid;place-items:center;aspect-ratio:1;background:var(--surface);border-radius:3px;font-size:25px;line-height:1;min-width:0}.lesson-cell.centre{background:#e7bfab;color:#784d40}.lesson-cell.filled,.lesson-tile{background:#fff3d1;color:#283a2b;border:1px solid #d6c28c;box-shadow:0 2px #b8a16c}.lesson-cell.committed{background:#e2eacb}.lesson-cell.draft{outline:2px solid var(--rose);outline-offset:-2px}.lesson-cell.target{outline:3px solid var(--rose);outline-offset:1px;background:var(--surface)}.lesson-rack{display:flex;justify-content:center;gap:12px;margin:12px 0}.lesson-tile{position:relative;border-radius:5px;min-width:46px;min-height:50px;font-size:26px;font-weight:600}.lesson-tile[aria-pressed=true]{outline:3px solid var(--rose);outline-offset:3px}.lesson-blank{display:grid;place-items:center;width:65px;height:70px;margin:0 auto 20px;font-size:34px}.lesson-blank small{position:absolute;right:6px;bottom:2px;font-size:15px}.lesson-tips{padding-left:21px;text-align:left;margin:0}.lesson-tips li{padding:6px 0;line-height:1.6}.settings-group{border:0;padding:0;margin:16px 0 24px;min-width:0}.settings-group legend{font-size:18px;font-weight:600;padding:0}.settings-list .settings-group label{padding:12px 0}#online-history{border-top:1px solid var(--line);margin-top:22px;padding-top:10px}#online-history>summary{font-size:16px;cursor:pointer;min-height:44px;padding:10px 0;color:var(--muted)}#online-games-title{font-size:18px;margin:20px 0 0}.online-game-row>div{overflow-wrap:anywhere}#online-notice:empty{display:none}.join-form input{font-size:18px}#online-setup .check-label{margin:14px 0}.room-code{font-size:30px;user-select:all}
@media(max-width:480px){#tutorial-demo{padding:14px}#tutorial-title{font-size:28px}.lesson-board{max-width:220px;margin-bottom:16px}#tutorial-dialog{padding:28px 20px 20px}#tutorial-dialog .dialog-actions{gap:10px}#tutorial-skip-text{flex-basis:100%;text-align:left}#tutorial-copy{font-size:16px}#tutorial-feedback{font-size:15px}.online-game-row{gap:10px}.room-code{font-size:27px;letter-spacing:3px}}

/* A quieter table with readable controls. */
body{font-size:18px;line-height:1.55}.brand{font-size:29px}.topbar{height:78px}.brand small{display:none}.nav-new,.nav-button{font-size:17px}.icon-button{width:46px;height:46px}.garden-layout{grid-template-columns:minmax(0,1fr) 360px;gap:28px;padding-top:20px}.table-heading{min-height:28px;margin-bottom:14px}.table-heading #mode-label{font-size:17px;color:var(--ink)}#bag-label{font-size:16px;color:var(--muted);white-space:nowrap}.board-meta{margin-bottom:8px}.board-tools{margin-top:12px}.bonus-key{position:relative}.bonus-key>summary,.turn-options>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px;font-size:17px;color:var(--muted);padding:8px 4px}.bonus-key>summary:after,.turn-options>summary:after{content:'⌄';font-size:18px}.bonus-key>summary::-webkit-details-marker,.turn-options>summary::-webkit-details-marker{display:none}.bonus-key[open] .legend{display:grid;grid-template-columns:1fr 1fr;gap:12px;position:absolute;left:0;top:100%;z-index:8;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:265px}.legend span{font-size:16px!important}.board-tools>.text-button{font-size:17px}.player-copy strong{font-size:19px}.player-copy small{font-size:15px}.player-score{font-size:40px}.players-card{padding:16px 20px}.live-dot{font-size:16px}.rating-line{display:none}.rack-panel{padding:20px}.rack-top{font-size:17px}.rack-top #save-status{font-size:14px}.rack-line{margin:20px 0 10px}.rack .tile{font-size:32px;height:60px;max-width:48px}.rack-utilities{align-items:center;gap:22px}.rack-utilities .text-button{font-size:17px;min-height:44px}.rack-utilities #shuffle{font-size:28px;min-width:44px;padding:0}.move-preview{font-size:18px;line-height:1.5;min-height:28px;margin:12px 0 14px}.notice{font-size:16px;line-height:1.5;margin-top:14px}.turn-actions{position:relative}.turn-options{position:relative}.turn-options>summary{font-size:18px;min-width:90px}.turn-options .minor-actions{position:absolute;bottom:calc(100% + 8px);left:0;display:grid;gap:2px;min-width:155px;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 28px #0002;border-radius:10px;z-index:12}.minor-actions .text-button{font-size:18px;min-height:46px;padding:10px 18px;text-align:left}.minor-actions .text-button:hover{background:var(--soft-green);border-radius:6px}.primary,.secondary,.play-button{font-size:18px;min-height:48px}.play-button{min-width:170px}.play-button #play-points{font-size:17px}.game-details>summary{font-size:18px;min-height:48px}.page-footer{font-size:16px}.page-footer .text-button{font-size:17px;min-height:44px}.page-footer>div{gap:28px}.form-help{font-size:16px;line-height:1.55}dialog p,.guide-grid p{font-size:18px;line-height:1.6}dialog input,dialog select{font-size:18px}dialog{font-size:18px}h2{font-size:34px}.settings-list label{font-size:18px}.settings-list select{width:230px;max-width:100%}.settings-group legend{font-size:20px}.settings-list input[type=checkbox],.check-label input{width:23px;height:23px;flex-shrink:0}.check-label{font-size:17px}.mode-options strong{font-size:18px}.mode-options small{font-size:15px}.dialog-intro{font-size:18px}.online-game-row{font-size:18px}.online-game-row small{font-size:16px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.stat small{font-size:15px}.achievement strong{font-size:17px}.achievement small{font-size:15px}.score-row{font-size:18px}.score-row small{font-size:15px}.guide-grid h3{font-size:21px}.help-choices{display:grid;gap:12px}.help-choices .secondary{text-align:left;padding:16px 20px}.help-choices span{display:block;font-size:16px;font-weight:400;color:var(--muted);margin-top:3px}
#classical-audio{display:none}.music-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 12px}#music{min-width:135px}#music-time{font-size:16px;color:var(--muted);white-space:nowrap}#music-seek{width:100%;margin:0 0 12px}.settings-list #music-track{max-width:100%;width:100%}.settings-group>label:has(#music-track){display:grid;gap:8px}.settings-list .form-help{font-size:15px}
#tutorial-dialog{max-width:540px;padding:28px 32px}#tutorial-title{font-size:34px;margin:18px 0 12px}#tutorial-copy{font-size:19px;line-height:1.5;margin-bottom:16px}#tutorial-demo{padding:18px;margin:12px 0}#tutorial-feedback{font-size:18px;line-height:1.5;min-height:28px;margin:14px 0}.lesson-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-right:28px;color:var(--muted);font-size:16px}.lesson-badge{background:var(--soft-green);padding:3px 10px;border-radius:20px}#tutorial-counter{font-size:16px;margin:0}.lesson-board{max-width:225px;margin-bottom:16px}.lesson-cell{font-size:28px}.lesson-tile{min-width:52px;min-height:56px;font-size:30px}.lesson-rack.returned .lesson-tile:disabled{opacity:1}.lesson-tips{padding:0;list-style:none}.lesson-tips li{padding:12px 0;border-bottom:1px solid var(--line)}.lesson-tips li:last-child{border:0}.lesson-tips strong{display:block;font-size:20px}.lesson-tips span{display:block;font-size:17px;color:var(--muted)}#tutorial-skip-text{font-size:16px;min-height:44px}#tutorial-dialog .dialog-actions{margin-top:20px}.welcome-copy .opening-note{font-size:29px}
[data-theme=earned-garden] .players-card:before{display:none}[data-theme=classic] #mode-label,[data-theme=classic] #bag-label,[data-theme=classic] .bonus-key>summary{color:#fffced}[data-theme=classic] .bonus-key .legend span{color:var(--ink)}
@media(max-width:1100px){.garden-layout{grid-template-columns:minmax(0,1fr) 330px;gap:22px}.rack-panel{padding:18px}.player-copy strong{font-size:18px}.player-copy small{font-size:14px}}
@media(max-width:800px){.garden-layout{display:block;padding-top:16px}.topbar{height:74px}.brand{font-size:26px}.player-copy strong{font-size:18px}.player-copy small{font-size:14px}.player-score{font-size:36px}.rack-panel{padding:20px}.rack .tile{font-size:34px;height:62px;max-width:58px}.rack-top{font-size:18px}.rack-top #save-status{font-size:14px}.board-tools{margin-top:12px;margin-bottom:12px}.table-heading{margin-bottom:12px}.table-heading #mode-label{font-size:17px}.page-footer{margin-bottom:72px}}
@media(max-width:480px){.topbar{height:68px;padding:0 12px;gap:8px}.brand>span{font-size:22px}.brand img{width:28px;height:28px}.topbar nav{gap:0}.nav-new,.nav-button{font-size:16px;padding:10px}.icon-button{width:40px;height:44px}.garden-layout{padding:16px 12px 8px}.table-heading #mode-label{font-size:16px}#bag-label{font-size:15px}.players-card{padding:0;margin-bottom:12px}.player-row{padding:9px;gap:8px}.player-copy strong{font-size:18px}.player-copy small{font-size:14px}.player-score{font-size:34px}.rack-panel{padding:16px}.rack .tile{font-size:30px;height:56px;max-width:48px}.rack{gap:4px}.rack-utilities{gap:20px}.rack-utilities .text-button{font-size:17px}.rack-top #save-status{font-size:14px}.move-preview{font-size:18px}.play-button{min-width:157px}.cell .tile{font-size:clamp(15px,4.5vw,21px)}.cell .bonus{font-size:7.5px}.page-footer{margin-left:12px;margin-right:12px}.page-footer>div{gap:24px}.page-footer .text-button{font-size:17px}dialog{padding:28px 20px;width:calc(100% - 20px)}.settings-list label{font-size:18px}.settings-list select{font-size:18px;max-width:100%}.settings-list input[type=range]{width:150px}.mode-options strong{font-size:15px}.mode-options small{font-size:13px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat small{font-size:15px}#tutorial-dialog{padding:24px 20px 20px}#tutorial-title{font-size:30px}#tutorial-copy,#tutorial-feedback{font-size:18px}#tutorial-demo{padding:14px}.lesson-board{max-width:205px}.lesson-tile{min-width:50px;min-height:54px;font-size:29px}#tutorial-dialog .dialog-actions{flex-wrap:nowrap;gap:10px}#tutorial-dialog .primary,#tutorial-dialog .secondary{font-size:17px;padding:11px 14px}#tutorial-skip-text{flex-basis:auto;margin-right:auto;font-size:16px}.lesson-tips strong{font-size:20px}.lesson-tips span{font-size:17px}.notice{font-size:16px}.help-choices span{font-size:16px}}
@media(max-width:360px){.brand>span{display:none}.topbar nav{gap:2px}.nav-new,.nav-button{font-size:16px;padding:10px}.icon-button{width:40px}.brand img{width:28px}.topbar{gap:6px}.play-button{min-width:150px}.minor-actions .text-button{font-size:18px}}
@media(min-width:801px) and (max-height:760px){.topbar{height:66px}.garden-layout{padding-top:14px}.players-card{padding:12px 18px}.player-row{padding:6px 8px}.rack-panel{padding:16px 18px}.rack-line{margin-top:16px}.rack .tile{height:54px}.move-preview{margin:8px 0}.board-platform{width:min(calc(100% - 18px),calc(100dvh - 195px),660px)}}
@media(max-height:700px){#tutorial-dialog{padding-top:20px;padding-bottom:20px}#tutorial-title{margin-top:12px}.lesson-board{max-width:175px;margin-bottom:12px}#tutorial-demo{padding:12px}#tutorial-dialog .dialog-actions{margin-top:12px}}

#tutorial-dialog .dialog-actions{position:sticky;bottom:-20px;background:var(--surface);padding-top:12px;border-top:1px solid var(--line)}

[data-theme=garden],[data-theme=paper]{--muted:#606b5b}#shuffle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

.history-copy strong,.history-score{font-size:18px}.history-copy small,.history-number{font-size:15px}.journal-card h2,.word-card h2{font-size:26px}#dictionary-form input{font-size:18px}.camera-panel label{font-size:17px}.camera-panel .text-button{font-size:17px}.dictionary-note{font-size:16px}

.lesson-board{grid-template-columns:repeat(3,1fr);max-width:180px}@media(max-height:700px){.lesson-board{max-width:156px}}

/* Close view: real layout zoom, contained scrolling, and larger interface text. */
body{font-size:20px}.garden-layout{max-width:1540px;grid-template-columns:minmax(0,1fr) 360px;padding-left:24px;padding-right:24px;gap:28px}.play-area{min-width:0}.table-heading,.board-meta{max-width:none}.table-heading #mode-label{font-size:19px}#bag-label{font-size:18px}.board-tools{max-width:none;position:sticky;top:0;z-index:20;background:var(--paper);margin:0 0 10px;padding:4px 0}.board-viewport{width:100%;max-width:100%;overflow:auto;scrollbar-gutter:stable;touch-action:pan-x pan-y;border-radius:12px;background:var(--soft-green);border:1px solid var(--line)}.board-stage{position:relative;max-width:none;perspective:2400px;touch-action:pan-x pan-y}.board-platform{position:absolute;top:16px;margin:0;max-width:none!important;transition:transform .15s}.board-platform .cell .tile{font-size:var(--letter-size)!important}.board-pan-hint{font-size:16px;color:var(--muted);text-align:center;margin:8px 0 10px}.board-pan-hint[hidden]{display:none}.board-zoom{display:flex;align-items:center;gap:6px}.board-zoom>button{min-width:44px;min-height:44px;background:transparent;border-radius:7px;font-size:20px;color:var(--ink);padding:5px 9px}.board-zoom>button:hover:enabled{background:var(--soft-green)}.board-zoom #zoom-in,.board-zoom #zoom-out{font-size:28px}.board-zoom #camera-toggle{font-size:18px;color:var(--muted)}.bonus-key>summary{font-size:18px}.rack-panel{padding:20px}.rack-top{font-size:20px}.rack-top #save-status{font-size:16px}.rack .tile{font-size:35px;height:64px}.rack-utilities .text-button{font-size:19px}.move-preview,.primary,.secondary,.play-button,.notice,.game-details>summary{font-size:20px}.minor-actions .text-button{font-size:20px}.play-button{min-width:170px}.player-copy strong{font-size:21px}.player-copy small{font-size:16px}.player-score{font-size:44px}.live-dot{font-size:18px}.page-footer .text-button{font-size:19px}.page-footer{font-size:18px}dialog,dialog p,.guide-grid p,.settings-list label,dialog input,dialog select{font-size:20px}.form-help{font-size:17px}.help-choices span{font-size:18px}.history-copy strong,.history-score,.score-row{font-size:20px}.history-copy small,.history-number{font-size:17px}#dictionary-form input{font-size:20px}#tutorial-copy,#tutorial-feedback{font-size:20px}#tutorial-dialog .primary,#tutorial-dialog .secondary{font-size:20px}.lesson-tile{font-size:32px}.lesson-cell{font-size:30px}.lesson-heading,#tutorial-counter,#tutorial-skip-text{font-size:18px}#tutorial-dialog{max-width:560px}.lesson-tips{display:none}
[data-theme=classic] .board-zoom>button,[data-theme=classic] .board-zoom #camera-toggle,[data-theme=classic] .board-pan-hint{color:#fffced}
@media(min-width:801px){.sidebar{position:sticky;top:16px}.board-viewport{border-radius:14px}}
@media(max-width:1100px) and (min-width:801px){.garden-layout{grid-template-columns:minmax(0,1fr) 340px;gap:22px;padding-left:20px;padding-right:20px}}
@media(max-width:800px){.garden-layout{max-width:760px;display:block;padding:16px 16px 8px}.board-tools{margin-bottom:10px}.player-copy strong{font-size:20px}.player-copy small{font-size:16px}.player-score{font-size:39px}.rack .tile{font-size:35px;height:64px}.players-card{margin-bottom:14px}.table-heading #mode-label{font-size:18px}.board-meta{font-size:17px}}
@media(max-width:480px){.garden-layout{padding:14px 10px 8px}.topbar{padding:0 10px}.nav-new,.nav-button{font-size:18px;padding:10px 8px}.icon-button{width:40px}.rack-panel{padding:16px}.rack .tile{font-size:32px;height:60px}.rack-top{font-size:20px}.rack-top #save-status{font-size:16px}.rack-utilities .text-button{font-size:19px}.play-button{min-width:150px}.move-preview,.notice,.minor-actions .text-button{font-size:20px}#bag-label{font-size:17px}.table-heading #mode-label{font-size:18px}.board-zoom{gap:2px}.board-zoom>button{min-width:42px;padding:5px 7px}.bonus-key>summary{font-size:18px}.player-copy strong{font-size:20px}.player-copy small{font-size:15px}.player-score{font-size:36px}#tutorial-copy,#tutorial-feedback{font-size:20px}#tutorial-title{font-size:32px}#tutorial-dialog .primary,#tutorial-dialog .secondary{font-size:18px}#tutorial-skip-text{font-size:18px}.settings-list label,.settings-list select{font-size:20px}.mode-options strong{font-size:17px}.mode-options small{font-size:15px}.rack-utilities{min-height:44px}}
@media(min-width:801px) and (max-height:760px){.players-card{padding:10px 16px}.player-row{padding:5px 8px}.rack-panel{padding:14px 16px}.rack .tile{height:56px;font-size:32px}.rack-line{margin-top:14px}.rack-utilities{min-height:38px}.rack-utilities .text-button{min-height:38px}.move-preview{margin:8px 0;min-height:30px}.sidebar{gap:12px}}

/* Flatten board contents before rotating: scrolled 3D layers otherwise miss pointer-down hits. */
#board-platform{transform-style:flat}#board{isolation:auto}.cell{transform-style:flat}

/* Keep policy access in the footer; retain the shared site profile button. */
body>[data-site-legal]{position:static!important;max-width:none!important;margin:18px 24px!important;font-size:16px!important}body>[data-site-legal]>details{max-width:none!important}body>[data-site-legal] summary{min-height:44px;padding:9px 12px!important}

.page-footer{margin-bottom:16px}

.board-viewport:focus-visible{outline:3px solid var(--rose);outline-offset:2px}.board-platform .cell .bonus{font-size:var(--bonus-size)!important}.board-platform .cell.center .bonus{font-size:var(--letter-size)!important}.board-platform .column-labels,.board-platform .row-labels{font-size:var(--coordinate-size)!important}

[data-theme=classic] .board-zoom>button:hover:enabled,[data-theme=classic] .topbar .nav-button:hover,[data-theme=classic] .topbar .icon-button:hover{background:#28593c;color:#fffced}

/* Give the board the table; keep secondary actions out of the way. */
.topbar{max-width:1640px}.garden-layout{max-width:1640px;grid-template-columns:minmax(0,1fr) 300px;gap:22px;padding-top:12px}.board-meta:not(:has(#connection-status:not([hidden]),#reconnect-online:not([hidden]))){display:none}.table-heading{margin-bottom:8px}.board-tools{margin-bottom:6px}.rack-line{margin:14px 0 12px}.turn-actions>#recall{min-width:64px;font-size:18px;min-height:48px}.turn-options>summary{min-width:64px}.minor-actions #shuffle{display:flex;align-items:center;gap:12px}.minor-actions #shuffle svg{width:22px;height:22px}.move-preview{margin:8px 0 12px}.board-pan-hint{margin:6px 0;font-size:16px}.rack-help{width:44px;height:44px;line-height:1;font-size:18px}.board-viewport{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:auto}.player-copy strong{font-size:20px}.player-score{font-size:40px}
#tutorial-dialog{padding:24px;max-width:520px}#tutorial-dialog .lesson-heading{padding-right:0;gap:12px}.lesson-heading #tutorial-skip-text{margin:0 0 0 auto}#tutorial-title{margin:12px 0 8px}#tutorial-copy{margin-bottom:10px}#tutorial-demo{padding:12px;margin:8px 0}#tutorial-feedback{margin:8px 0;min-height:30px}#tutorial-dialog .dialog-actions{bottom:-24px;margin-top:10px;padding:12px 0 0;min-height:60px}#tutorial-dialog .dialog-actions .primary{margin-left:auto}.lesson-board{margin-bottom:10px}.lesson-rack{margin:8px 0}.lesson-cell.target{outline-style:dashed}.lesson-board:has(+.lesson-rack [aria-pressed=true]) .lesson-cell.target{outline-style:solid;background:#f6e8d2}
@media(max-width:1100px) and (min-width:801px){.garden-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px;padding-left:16px;padding-right:16px}.rack-panel{padding:14px}.turn-actions{gap:6px}.play-button{min-width:120px;padding:10px}.turn-actions>#recall{min-width:52px;font-size:17px}.turn-options>summary{min-width:56px;font-size:18px}}
@media(max-width:800px){
 .garden-layout{display:block;max-width:800px;padding:8px 10px}.topbar{height:60px}.table-heading{margin-bottom:6px;min-height:26px}.players-card{margin:0 0 8px;padding:0}.players-card #players{gap:6px}.player-row{padding:6px 10px;border-radius:8px;min-height:48px}.player-copy small,.player-avatar{display:none}.player-copy strong{font-size:20px}.player-score{font-size:30px}.board-tools{padding:0;margin:0 0 6px;min-height:48px}.board-tools .bonus-key>summary{min-height:44px}.board-pan-hint{display:none}.rack-panel{display:grid;gap:6px;margin-top:10px;padding:10px 12px;border-radius:10px}.rack-top{font-size:18px;min-height:30px}.rack-help{width:32px;height:32px;font-size:18px}.rack-top #save-status:not(.error){display:none}.rack-line{margin:4px 0 6px}.rack{gap:5px;min-height:54px}.rack .tile{height:54px;max-width:60px;font-size:32px}.move-preview{margin:0;min-height:30px;font-size:18px}.turn-actions{gap:8px}.play-button{min-width:145px;min-height:48px}.notice{margin:0;font-size:18px}.turn-actions>#recall{font-size:18px;min-width:56px}.turn-options>summary{min-width:60px;font-size:18px}.sidebar{margin-top:10px}.page-footer{padding-bottom:72px}#tutorial-dialog{padding:18px}#tutorial-title{font-size:30px}#tutorial-demo{padding:8px}.lesson-board{max-width:156px}.lesson-tile{min-height:50px;min-width:48px}#tutorial-dialog .dialog-actions{bottom:-18px}.board-zoom>button{min-width:44px;min-height:44px}
}
@media(max-width:360px){.rack-panel{padding:8px}.rack .tile{height:50px;font-size:29px}.play-button{min-width:134px;font-size:18px}.turn-actions{gap:4px}.turn-actions>#recall{min-width:54px}.table-heading #mode-label{font-size:17px}#bag-label{font-size:16px}.board-zoom{gap:0}.board-zoom>button{padding:5px;min-width:40px}.topbar{height:58px}#tutorial-title{font-size:28px}.lesson-heading,#tutorial-counter,#tutorial-skip-text{font-size:17px}}
[data-theme=classic] .lesson-board:has(+.lesson-rack [aria-pressed=true]) .lesson-cell.target{background:#e7edda}

/* Tiny Fit views must keep the board grid square instead of sizing rows to bonus text. */
.board{grid-template-rows:repeat(15,minmax(0,1fr))}.cell{min-height:0;overflow:hidden}button,a,summary{touch-action:manipulation}

/* Button controls replace all sliders. Keep the open panel contained on phones. */
.camera-panel{max-width:none;margin:0 0 10px;padding:12px;gap:12px}.step-control{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;font-size:20px}.step-control>span{min-width:60px}.step-control>output{min-width:46px;text-align:center;font-variant-numeric:tabular-nums}.step-control>button{min-width:44px;min-height:44px;padding:6px;font-size:24px}.music-skip{display:flex;gap:12px;margin-bottom:14px}.music-skip>button{min-width:100px;font-size:20px}.music-controls{flex-wrap:wrap}#music-time{font-size:18px;font-variant-numeric:tabular-nums}.settings-list #music-volume{min-width:130px}.board-viewport{scroll-padding:12px}
@media(max-width:480px){.camera-panel{display:grid;gap:10px;padding:10px}.step-control{justify-content:space-between}.step-control>span{min-width:72px}.camera-panel #camera-reset{font-size:20px;min-height:44px;text-align:left}.settings-list #music-volume{width:150px}}

/* Decorative flowers must not create a scrollable area outside a fitted board. */
.board-viewport .botanical{display:none}

#profile-slot{flex-basis:100%;display:flex;justify-content:flex-end}.page-footer{flex-wrap:wrap;padding-bottom:24px}

/* A brief floral letter, visible while the real word list loads. */
.welcome-dialog,.welcome-dialog::backdrop{background:#f6f3e9!important;color:#384b39}.welcome-garden{background:radial-gradient(ellipse at center,#f6f3e9 12%,transparent 76%),url('botanical.svg') -3% 100%/36% 110% no-repeat,url('botanical.svg') 104% 0/36% 110% no-repeat!important;opacity:.65;animation:opening-garden 1.2s ease-out both}.welcome-copy{width:min(460px,calc(100vw - 40px));padding:32px 26px 28px;border:1px solid #e3d8c2;border-radius:48% 48% 22px 22px/28% 28% 22px 22px;background:#fffdf5e8;box-shadow:0 14px 70px #927c4b12;animation:opening-letter .9s ease-out both}.welcome-flower{display:grid;place-items:center;margin:0 auto 12px;width:90px;height:90px;background:#f2e5df;border-radius:50%;animation:opening-bloom 1.2s ease-out both}.welcome-flower img{width:58px;height:58px}.welcome-copy h2{font:18px var(--sans);letter-spacing:3px;text-transform:uppercase;color:#677b60;margin:0 0 14px}.welcome-copy .opening-note{font:clamp(34px,6vw,48px)/1.5 var(--heading);color:#a45770;margin:0 0 18px}.opening-dots{font-size:.65em;letter-spacing:3px}.opening-from{font-size:.65em;color:#677b60}.welcome-copy .welcome-status{font:18px/1.5 var(--sans);color:#65725f;margin:10px 0;min-height:27px}.welcome-loading{display:flex;justify-content:center;gap:8px;height:20px;margin:6px 0 12px}.welcome-loading span{width:7px;height:7px;background:#ba7f90;border-radius:50%;animation:opening-dot 1.4s ease-in-out infinite}.welcome-loading span:nth-child(2){animation-delay:.16s}.welcome-loading span:nth-child(3){animation-delay:.32s}.welcome-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.welcome-actions .primary{background:#a45770;color:#fffdf5;border-color:#a45770;font-size:20px;min-height:48px}.welcome-actions .secondary{background:#fffdf5;color:#4e664b;font-size:20px}.welcome-skip{font-size:20px;color:#52664f;bottom:max(14px,env(safe-area-inset-bottom));min-height:44px;padding:8px 20px}.welcome-dialog.leaving{animation:fade-out .32s ease-in both}.welcome-petals{position:absolute;inset:0;pointer-events:none;overflow:hidden}.welcome-petals i{position:absolute;top:-25px;width:12px;height:20px;border-radius:80% 10% 70% 20%;background:#c88b9b44;left:12%;animation:opening-petal 9s linear infinite}.welcome-petals i:nth-child(2){left:32%;animation-delay:-3s}.welcome-petals i:nth-child(3){left:65%;animation-delay:-6s;width:9px;height:16px}.welcome-petals i:nth-child(4){left:85%;animation-delay:-1s}.welcome-petals i:nth-child(5){left:48%;animation-delay:-5s}
@keyframes opening-garden{from{opacity:0;transform:scale(1.04)}to{opacity:.65;transform:scale(1)}}@keyframes opening-letter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes opening-bloom{from{opacity:0;transform:scale(.7) rotate(-16deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes opening-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}@keyframes opening-petal{from{transform:translate3d(0,-20px,0) rotate(0)}to{transform:translate3d(45px,110vh,0) rotate(220deg)}}
@media(max-width:480px){.welcome-copy{padding:24px 18px;width:calc(100vw - 40px)}.welcome-garden{background-size:auto,55% 110%,55% 110%!important;background-position:center,-35% 120%,140% -40%!important}.welcome-copy .opening-note{font-size:38px}}
@media(max-height:540px){.welcome-copy{padding:14px 22px;width:min(440px,calc(100vw - 40px));border-radius:24px}.welcome-flower{width:50px;height:50px;margin-bottom:6px}.welcome-flower img{width:36px;height:36px}.welcome-copy h2{font-size:16px;margin-bottom:4px}.welcome-copy .opening-note{font-size:30px;line-height:1.3;margin-bottom:6px}.welcome-copy .welcome-status{font-size:17px;margin:6px 0}.welcome-loading{height:10px;margin:0 0 6px}.welcome-skip{left:auto;right:8px;transform:none;bottom:8px}}
@media(prefers-reduced-motion:reduce){.welcome-dialog *{animation:none!important;transition:none!important}}

/* Keep the opening letter within short screens. */
.welcome-copy{max-height:calc(100dvh - 96px);overflow-y:auto}
@media(max-height:540px){.welcome-copy{max-height:calc(100dvh - 28px)}}

/* Apply board geometry and camera fitting together, without a loading-time transform tween. */
#board-platform{transition:none}

#profile-slot{min-width:0;max-width:100%}
