.play-experience{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 22px;flex-wrap:wrap;position:relative;z-index:2}
.difficulty-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;min-width:0}
.difficulty-picker{display:flex;border:0;gap:4px;padding:0;margin:0;min-width:0}
.difficulty-picker legend{font-size:10px;color:#526c49;letter-spacing:.6px;margin:0 0 7px;padding:0}
.difficulty-picker button{min-width:58px;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:7px;color:#526c49;background:#edf1e5;padding:5px 9px;font-size:10px;border:1px solid transparent}
.difficulty-picker button[aria-pressed=true]{background:#dce8cf;border-color:#8aa775;color:#314e2d}
.difficulty-picker button:disabled{opacity:.4;cursor:not-allowed}
.difficulty-leaves{display:flex;align-items:center;justify-content:center;height:16px;min-width:15px}
.difficulty-leaves svg{width:15px;height:15px;margin:0 -2px}
.difficulty-note{position:relative;font-size:10px;max-width:240px}
.difficulty-note summary{display:flex;gap:7px;align-items:center;min-height:44px;cursor:pointer;color:#526c49;list-style:none}
.difficulty-note p{margin:2px 0 0;padding:10px 12px;background:#edf1e5;border-radius:7px;line-height:1.8;font-size:11px;max-width:240px}
.experience-caption{font-size:11px;color:#526c49;line-height:44px}
.sound-toggle{display:flex;align-items:center;gap:7px;min-height:46px;padding:8px 12px;font-size:11px;border:1px solid #d9e2cf;border-radius:8px;background:#fbfcf5;color:#526c49}
.sound-toggle>svg{width:18px;height:18px}
.sound-toggle[aria-pressed=true]{background:#e3ecd8;color:#315431}
.difficulty-note summary::-webkit-details-marker{display:none}
.sound-row{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:center;min-height:44px}
.sound-row label{display:flex;gap:7px;align-items:center;font-size:11px;color:#405c3b;cursor:pointer;min-height:44px}
.sound-row input[type=checkbox]{width:17px;height:17px;accent-color:#648450}
.sound-row input[type=range]{width:100%;min-width:0;min-height:44px;accent-color:#648450}
[data-sound-state]{display:block;font-size:10px;color:#617457;line-height:1.7}
.play-experience :is(button,summary,input):focus-visible{outline:2px solid #587c47;outline-offset:3px}
@media(max-width:700px){.play-experience{gap:6px 12px;margin-bottom:16px}.difficulty-controls{gap:0 10px}.difficulty-picker button{min-width:54px}.difficulty-note[open]{flex-basis:100%}.difficulty-note p{max-width:100%}}
@media(prefers-reduced-motion:reduce){.play-experience *{transition:none;animation:none}}
.daily-badges{display:inline-flex;align-items:center;gap:13px;flex-wrap:wrap;color:#9a7840}
.daily-stars{display:inline-flex;gap:3px;align-items:center}
.daily-stars svg{width:18px;height:18px;fill:transparent;stroke:currentColor;stroke-width:1.3}
.daily-stars svg.filled{fill:currentColor}
.daily-size{font-size:12px;letter-spacing:1px;border-left:1px solid currentColor;padding-left:13px}
.daily-experience{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:62px}
.daily-note{max-width:310px}
.daily-note p{max-width:310px}
.daily-reveal{display:block;width:180px;height:180px;margin:0 auto 20px;border-radius:12px;shape-rendering:crispEdges}
.feature .daily-badges{color:#d4dca0;margin:2px 0 15px}
.feature .daily-stars svg{width:17px;height:17px}
.feature h2{font-size:29px;letter-spacing:1px}
.feature p{margin-bottom:20px}
@media(max-width:700px){.daily-experience{gap:2px 12px;min-height:44px}.feature h2{font-size:23px;white-space:nowrap}.feature .daily-badges{gap:9px}.feature .daily-size{font-size:10px;padding-left:9px}.feature .daily-stars{gap:2px}.feature .daily-stars svg{width:14px;height:14px}.daily-note[open]{flex-basis:100%}}
@media(max-width:380px){.feature h2{font-size:21px}.feature .daily-size{font-size:9px}.feature .daily-stars svg{width:12px;height:12px}}

/* One quiet, reachable home for utilities; board tools stay beside the puzzle. */
.topbar-right{padding-right:56px}
.settings-trigger{width:44px;height:44px;display:grid;place-items:center;background:#f7f9f0;border-color:#d4ddc9;color:#4f6b44;box-shadow:0 3px 12px #29432c08}
.settings-trigger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#settings-button{position:fixed;top:20px;right:28px;z-index:25}
.settings-trigger:hover,.settings-trigger[aria-expanded=true]{background:#e6eddc;color:#314e2d}
.settings-trigger:focus-visible,#dialog :is(button,input,a,select,summary):focus-visible{outline:2px solid #587c47;outline-offset:3px}
#dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
#dialog.settings-dialog{position:fixed;inset:76px 24px auto auto;margin:0;width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 92px);padding:24px;border-radius:18px;box-shadow:0 18px 80px #18392124}
.settings-dialog .settings-title{font-size:22px;letter-spacing:2px;margin:0 44px 22px 0}
#dialog .dialog-close{width:44px;height:44px;top:10px;right:10px;border-radius:50%;display:grid;place-items:center;color:#526c49}
#dialog .dialog-close:hover,.dialog-back:hover{background:#e8eedd}
.settings-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
.settings-item{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 8px;border-radius:9px;color:#405c3b;font-size:12px;text-align:left}
.settings-item svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.settings-item:hover{background:#e9efdf}
.settings-quick .settings-item{flex-direction:column;justify-content:center;gap:9px;min-height:77px;background:#edf2e5;padding:12px 4px}
.settings-quick .settings-item:hover{background:#dfe9d3}
.settings-sound{padding:0 0 18px;border-bottom:1px solid #dfe6d7}
.settings-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.settings-dialog h3{font-size:12px;font-weight:500;color:#526c49;letter-spacing:1px;margin:0}
.settings-dialog .sound-toggle{min-height:44px;font-size:11px;padding:7px 10px}
.settings-dialog .sound-row{grid-template-columns:110px minmax(0,1fr);gap:12px}
.settings-dialog [data-sound-state]{margin-top:8px}
.settings-help{padding-top:18px}
.settings-help h3{margin-bottom:10px}
.settings-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.settings-help>.settings-item{margin-top:8px;width:100%;border-top:1px solid #e4e9dc;border-radius:0;padding-top:14px}
.settings-subpanel{padding-top:70px}
.dialog-back{position:absolute;left:18px;top:12px;min-height:44px;padding:8px 12px;display:flex;align-items:center;gap:8px;border-radius:8px;color:#526c49;font-size:16px}
.dialog-back span{font-size:12px}
.settings-shortcuts{grid-template-columns:auto 1fr;gap:15px 20px;font-size:12px}
.fullscreen-settings{display:none}
.board-surface:fullscreen .fullscreen-settings{display:grid;position:fixed;top:16px;right:16px;z-index:5}
@media(max-width:700px){
 #settings-button{top:61px;right:16px}
 .topbar-right{gap:0;padding-right:46px}
 #dialog.settings-dialog{top:114px;right:12px;max-height:calc(100dvh - 126px);padding:22px}
}
@media(max-width:380px){.search-wrap input{width:100px}.search-wrap{gap:6px}#settings-button{right:10px}.topbar-right{padding-right:42px}.settings-dialog .sound-row{grid-template-columns:100px minmax(0,1fr);gap:8px}}
@media(max-height:500px){#dialog.settings-dialog{top:12px;max-height:calc(100dvh - 24px)}}

/* Keep the shared language control usable without widening narrow settings. */
.settings-language{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;color:#405c3b;font-size:13px}
.settings-language select{font:inherit;min-height:44px;max-width:65%;padding:8px 30px 8px 12px;border:1px solid #bac9ae;border-radius:8px;background:#f7f9f0;color:#314e2d}
html[lang=en] .settings-dialog .settings-title,html[lang=en] .settings-dialog h3{letter-spacing:0}
html[lang=en] .settings-dialog .sound-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#global-language{flex:0 0 44px;width:44px;min-height:44px;height:44px;white-space:nowrap;font:12px system-ui,sans-serif;border-radius:9px}
@media(max-width:700px){
 html[lang=en] #side-nav{justify-content:flex-start;overflow-x:auto;gap:4px;overscroll-behavior-x:contain}
 html[lang=en] #side-nav .nav-link{flex:0 0 auto;min-height:44px;white-space:nowrap}
 .topbar-right{min-width:0;gap:6px}
 .search-wrap{min-width:0}
 .search-wrap input{width:clamp(60px,22vw,122px);min-width:0}
}
