.wm.wm-layered{position:relative;isolation:isolate;letter-spacing:0;color:#182b37;background:#fff;min-height:calc(100dvh - 80px)}
.wm-layered .wm-route-nav{display:flex;align-items:center;min-height:36px}.wm-layered .wm-route-nav button{min-height:36px;padding:5px 8px;border:0;background:transparent;color:#19573e;font-size:13px}.wm-layered[data-game-mode=solo]>.wm-stats{display:none}.wm-layered[data-game-mode=public].wm--lobby>.wm-stats{display:grid}
.wm-layered *{box-sizing:border-box;letter-spacing:0!important}.wm-layered .wm-header strong{font-size:18px}.wm-layered .wm-header small{font-size:11px}
.wm-layered.wm--playing{min-height:0;padding:10px 16px;gap:8px}.wm-layered .wm-player-stats{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;min-height:68px;background:transparent;border:0;padding:0;gap:8px}.wm-layered .wm-player-stats>span:first-child{display:flex;justify-content:flex-start;white-space:nowrap}.wm-layered .wm-player-stats i{font-size:22px}.wm-layered .wm-solved-count{text-align:right;font-size:12px}.wm-layered .wm-solved-count b{font-size:19px}.wm-layered .wm-solved-count small{display:none}
.wm-layered .wm-ring-clock{display:grid!important;place-items:center;width:64px;height:64px;min-height:64px;border:4px solid #16835c;border-radius:50%;padding:0;margin:0;background:#f0faf5}.wm-layered .wm-ring-clock>span{display:none}.wm-layered .wm-ring-clock strong{font-size:19px;line-height:1;font-variant-numeric:tabular-nums}
.wm-layered .wm-grid{max-width:380px;gap:7px}.wm-layered .wm-cell{border-radius:8px;font-size:32px}.wm-layered .wm-player-stats>span:first-child{font-size:22px}.wm-layered .wm-cell.is-hint:not(.is-selected):not(.is-correct){background:#fff2b3;border-color:#c49b26;color:#6d5100;box-shadow:inset 0 0 0 2px #d5ad43}.wm-layered .wm-word{height:40px;min-height:40px}.wm-layered .wm-slot{height:38px;font-size:26px}
.wm-layered .wm-answer-actions{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:0;width:var(--wm-board-size,100%);align-self:center;min-height:40px;background:#e9f2ee;border-radius:8px;overflow:hidden;margin:0}.wm-layered .wm-answer-actions button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:0;background:transparent;min-height:40px;padding:4px;font-size:13px}.wm-layered .wm-answer-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wm-layered .wm-answer-actions .wm-category{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border-inline:1px solid #d0ded7;padding:4px;margin:4px 0;min-width:0}.wm-layered [hidden],.wm-layered .wm-solutions[hidden]{display:none!important}
.wm-layered .wm-game-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px;background:#ffffffbb;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);overflow:auto}.wm-layered .wm-game-panel{position:relative;width:100%;max-width:360px;max-height:100%;overflow:auto;padding:25px 20px;border:1px solid #e5eae7;border-radius:8px;background:#fff;box-shadow:0 10px 40px #2346321a;text-align:center;animation:word-panel-enter .22s ease-out}.wm-layered .wm-game-panel h2{font-size:26px;line-height:1.2;margin:12px 0;color:#134d38;overflow-wrap:anywhere}.wm-layered .wm-game-panel p{font-size:15px;line-height:1.4}.wm-layered .wm-game-panel button,.wm-layered .wm-hero button{display:block;width:100%;min-height:48px;margin-top:10px;border:1px solid #cddfd5;border-radius:8px;padding:10px 14px;background:#fff;color:#19573e;font-size:16px;font-weight:600}.wm-layered button.wm-primary{background:#16835c;color:#fff;border-color:#16835c}.wm-layered .wm-answer-reveal{display:block;font-size:28px;color:#16835c;overflow-wrap:anywhere}.wm-layered .wm-correct-mark{font-size:38px;color:#16835c}.wm-layered .wm-trophy{font-size:58px;color:#b58b19}
.wm-layered .wm-sparks{position:absolute;inset:0;overflow:hidden;pointer-events:none}.wm-layered .wm-sparks i{position:absolute;top:-12px;left:calc(var(--i)*4%);width:5px;height:8px;background:#d8b544;animation:word-spark 1.8s calc(var(--i)*-.12s) ease-in infinite}.wm-layered .wm-sparks i:nth-child(3n){background:#16835c;width:4px;height:4px}
.wm-layered .wm-top-message{position:absolute;top:0;inset-inline:8px;z-index:20;background:#fff0e8;color:#843c26;padding:12px;border:1px solid #edcebd;border-radius:6px;font-size:14px}.wm-layered .wm-stage-picker{display:grid;gap:8px;text-align:start;font-size:14px}.wm-layered select{width:100%;min-height:46px;border:1px solid #d0ded7;border-radius:6px;padding:8px;background:white;font-size:15px}.wm-layered .wm-ranking{list-style:none;padding:0;max-height:280px;overflow:auto;text-align:start}.wm-layered .wm-ranking li{display:flex;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid #e5ece8;font-size:14px}.wm-layered .wm-ranking span{overflow-wrap:anywhere}.wm-layered .wm-ranking .is-me{background:#edf9f2}
.wm-layered.wm--lobby>.wm-stats,.wm-layered.wm--lobby>.wm-footnote,.wm-layered.wm--lobby>.wm-simulation{display:none}.wm-layered.wm--lobby .wm-hero{min-height:calc(100dvh - 210px);display:flex;justify-content:center;flex-direction:column;max-width:360px;margin:auto;background:none;border:0;border-radius:0;padding:20px 5px}.wm-layered .wm-lobby-word{display:flex;justify-content:center;gap:7px}.wm-layered .wm-lobby-word i{display:grid;place-items:center;width:44px;height:44px;background:#edf6f0;border:1px solid #d4e3d9;border-radius:6px;font-size:24px;font-style:normal}.wm-layered .wm-hero h1{font-size:30px;margin:18px 0}.wm-layered .wm-rank-link{font-size:14px!important;border:0!important}.wm-layered .wm-header-actions{display:none}
@keyframes word-panel-enter{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes word-spark{from{transform:translateY(-10px) rotate(0deg);opacity:1}to{transform:translateY(520px) rotate(250deg);opacity:0}}
@media(max-height:650px){.wm-layered.wm--playing{gap:5px;padding:6px 12px}.wm-layered .wm-player-stats{min-height:56px;grid-template-columns:1fr 52px 1fr}.wm-layered .wm-ring-clock{width:52px;height:52px;min-height:52px}.wm-layered .wm-ring-clock strong{font-size:16px}.wm-layered .wm-cell{font-size:28px}.wm-layered .wm-word{min-height:32px;height:32px}.wm-layered .wm-slot{height:30px;font-size:23px}}
@media(prefers-reduced-motion:reduce){.wm-layered .wm-sparks{display:none}.wm-layered .wm-game-panel{animation:none}}

.wm-layered .wm-ring-clock{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr;justify-content:center;align-content:center}.wm-layered .wm-ring-clock strong{width:100%;padding:0;margin:0;text-align:center;line-height:1;align-self:center;justify-self:center}

.wm.wm--stages{height:calc(100dvh - 76px);min-height:0;max-height:900px;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.wm-stage-page{display:flex;flex-direction:column;min-height:0;height:100%;width:100%;background:#fff}
.wm-map-header{flex:none;padding:12px 16px;border-bottom:1px solid #e5ede8;background:#fff;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.wm-map-header h1{margin:4px 0;font-size:24px;line-height:1.2;color:#164b37}.wm-map-header p{margin:0;color:#64796d;font-size:13px;line-height:1.5}
.wm-map-header button{border:0;background:transparent;color:#195c42;min-height:40px;padding:8px 0;text-align:start;font-size:13px}.wm-map-header .wm-map-ranking{display:flex;align-items:center;gap:6px;border:1px solid #d8e5dc;border-radius:6px;padding:8px 10px;font-weight:600}
.wm-map-ranking svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.wm-stage-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;touch-action:pan-y;position:relative;background:linear-gradient(180deg,#fff,#f5fbf7)}
.wm-stage-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.wm-stage-road{position:relative;width:100%;max-width:460px;margin:auto;isolation:isolate}
.wm-stage-road>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.wm-stage-road .wm-road-base{fill:none;stroke:#e3ece6;stroke-width:12;stroke-linecap:round;stroke-linejoin:round}.wm-stage-road .wm-road-progress{fill:none;stroke:#8fc5a7;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.wm-stage-stop{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;width:114px;gap:5px;z-index:1}
.wm-stage-stop button{position:relative;width:58px;height:58px;min-height:58px;display:grid;place-items:center;border-radius:50%;border:2px solid #dce6df;background:#eef3ef;color:#8a978d;font-size:22px;font-weight:700;padding:0;box-shadow:0 4px 0 #dce5df}
.wm-stage-stop button:disabled{opacity:1}.wm-stage-stop.is-done button{background:#e2f4e9;border-color:#68aa86;color:#206342;box-shadow:0 4px 0 #b6d8c3}.wm-stage-stop.is-current button{background:#16835c;border-color:#fff;color:#fff;box-shadow:0 0 0 4px #16835c,0 6px 0 #b9d9c7}
.wm-stage-stop button:focus-visible{outline:3px solid #cfa844;outline-offset:6px}.wm-stage-stop>small{font-size:11px;color:#657b6b;line-height:1.2;text-align:center}.wm-stage-stop.is-current>small{color:#146140;font-weight:700}.wm-stage-stop .wm-stage-check{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#16835c;color:white;font-size:13px;border:2px solid white}
.wm-stage-start{position:absolute;bottom:8px;inset-inline:0;text-align:center;font-size:11px;color:#718575}
.wm-stage-scroll .wm-map-level{position:absolute;left:12px;margin:0;font-size:10px;font-weight:700;color:#6e8676;z-index:0;writing-mode:vertical-rl}
.wm-map-loading{display:grid;place-items:center;flex:1;color:#657b6b;font-size:14px}
@media(max-height:650px){.wm-map-header{padding:8px 13px}.wm-map-header h1{font-size:21px}.wm-map-header p{font-size:12px}}

.wm.wm--history{display:flex;flex-direction:column;height:calc(100dvh - 76px);min-height:0;padding:0;overflow:hidden;background:#fff}
.wm-history-page{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;text-align:start}
.wm-history-page p,.wm-history-header h1{text-align:start}
.wm-history-header{flex:none;padding:20px 20px 16px;border-bottom:1px solid #e4ece6;background:#fff}
.wm-history-header>span{font-size:10px;font-weight:700;color:#75877c}.wm-history-header h1{font-size:27px;line-height:1.2;margin:7px 0;color:#183e2e}.wm-history-header p{font-size:12px;color:#718176;line-height:1.5;margin:6px 0 0}.wm-history-header small{display:block;margin-top:6px;color:#8c742c;font-size:11px}
.wm-history-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 20px 20px}
.wm-history-outcome{padding:17px 0 20px;border-bottom:1px solid #e4ece6}.wm-history-symbol{font-size:34px;color:#8b9c91;line-height:1.2}.wm-history-outcome.has-winners .wm-history-symbol{color:#b58b19}.wm-history-outcome h2{font-size:23px;line-height:1.3;color:#244b37;margin:8px 0}.wm-history-outcome p{font-size:14px;line-height:1.6;color:#6d7c72;margin:0}
.wm-history-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0;padding:20px 0;border-bottom:1px solid #e4ece6}.wm-history-summary dt{font-size:12px;color:#77867c;margin-bottom:7px}.wm-history-summary dd{font-size:21px;font-weight:700;color:#224b35;margin:0;overflow-wrap:anywhere}
.wm-history-winners article{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto);align-items:center;gap:16px;padding:19px 0;border-bottom:1px solid #e4ece6}.wm-history-winners article>div{display:flex;flex-direction:column;gap:6px;min-width:0}.wm-history-winners article>div:last-child{text-align:end}.wm-history-winners strong{font-size:17px;color:#245638;overflow-wrap:anywhere}.wm-history-winners span{font-size:12px;color:#738477}.wm-history-note{font-size:12px;color:#657e6e;line-height:1.6;padding-top:12px;margin:0}
.wm-history-actions{flex:none;padding:12px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid #e4ece6;background:#fff}.wm-history-actions button{display:block;width:100%;min-height:48px;border:0;border-radius:6px;padding:12px;color:#fff;background:#16835c;font-size:14px;font-weight:600;line-height:1.4}
@media(max-height:650px){.wm-history-header{padding:14px 16px 12px}.wm-history-header h1{font-size:24px}.wm-history-scroll{padding:8px 16px 16px}.wm-history-outcome{padding:12px 0 14px}.wm-history-outcome h2{font-size:21px}.wm-history-summary{padding:14px 0}.wm-history-actions{padding:10px 16px}}

/* English quote adventure uses the existing game layers and scrolling panel. */
.wm-layered .wm-quote-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:6px 0;flex-shrink:0;text-align:center}
.wm-layered .wm-quote-help button{width:auto;min-height:32px;padding:4px 16px;border-radius:18px;background:#e5f5ee;color:#126d53;font-weight:700}
.wm-layered .wm-quote-help p{width:100%;margin:0;font-size:clamp(13px,3.6vw,16px);line-height:1.3;color:#21564a}
.wm-layered .wm-quote-help small{font-size:11px;color:#697c77}
.wm-layered .wm-discovered-quote{margin:16px 0 8px;padding:12px;border-left:3px solid #c9a23d;text-align:left;white-space:normal;font-size:clamp(17px,4.7vw,23px);line-height:1.5;color:#263f37;overflow-wrap:anywhere}
.wm-layered .wm-quote-author{font-weight:700;font-size:13px!important;text-align:right}
.wm-layered .wm-quote-source{display:block;font-size:11px;line-height:1.5;color:#63746d}
.wm-layered .wm-quote-source a{color:#16765a;text-decoration:underline}
.wm-layered .wm-quote-list{max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}
.wm-layered .wm-quote-list article{padding:12px 0;border-bottom:1px solid #e1e9e4}
.wm-layered .wm-quote-list article>small{font-size:11px;color:#65776e}
.wm-layered .wm-collection-actions{display:flex;gap:8px;flex-wrap:wrap}
.wm-layered .wm-map-header .wm-collection-link{position:static;grid-column:1/-1;width:auto;min-height:30px;justify-self:center;margin:6px 0;background:#e6f3eb}
.wm-layered .wm-map-header small{display:block;font-size:11px;color:#63776d;line-height:1.5}
.wm-layered .wm-map-header>div{grid-column:1/-1;text-align:center}
.wm-layered .wm-quote-help button{border:1px solid #b8d9ca}
.wm-layered .wm-map-header .wm-collection-link{padding:5px 18px;border-radius:18px}
@media(max-height:650px){.wm-layered[data-game-mode=solo] .wm-game-panel{padding:12px 16px}.wm-layered[data-game-mode=solo] .wm-trophy{font-size:36px}.wm-layered[data-game-mode=solo] .wm-discovered-quote{margin-top:8px;padding:8px}}
@media(max-height:650px){.wm-layered .wm-quote-help{margin:2px 0;gap:3px}.wm-layered .wm-quote-help p{font-size:12px}.wm-layered .wm-quote-help small{font-size:10px}}
.wm-layered .wm-quote-help{margin:2px 0;gap:0}
.wm-layered .wm-quote-help button{display:grid;place-items:center;width:44px;min-height:40px;padding:6px;border:1px solid #e1c974;border-radius:50%;background:#fff8db;color:#9a7114}
.wm-layered .wm-quote-help button[aria-expanded=true]{background:#ffedac;border-color:#b89226}
.wm-layered .wm-quote-help button:focus-visible{outline:2px solid #16835c;outline-offset:3px}
.wm-layered .wm-quote-help svg{width:23px;height:24px;fill:#ffe49b;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wm-layered .wm-riddle-popover{position:absolute;z-index:6;inset:8px 12px auto;display:flex;flex-direction:column;min-height:0;padding:10px 14px;border:1px solid #e4ce89;border-radius:12px;background:#fffdf4;box-shadow:0 5px 22px #3a431e26;text-align:start;overflow:hidden;pointer-events:auto}
.wm-layered .wm-riddle-popover header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.wm-layered .wm-riddle-popover strong{font-size:13px;font-weight:700;color:#886514}
.wm-layered .wm-riddle-popover header button{display:grid;place-items:center;flex:none;width:30px;min-height:28px;margin:0;padding:0;border:0;background:transparent;color:#6c634c;font-size:24px;line-height:1}
.wm-layered .wm-riddle-popover p{min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:5px 0 0;font-size:clamp(14px,3.8vw,17px);line-height:1.45;color:#31483a;overflow-wrap:anywhere}
.wm.wm--sentence{height:calc(100dvh - 76px);min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.wm-sentence-page{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;height:100%}
.wm-sentence-page>header{flex:none;padding:16px 20px;border-bottom:1px solid #e2ece5;text-align:center}
.wm-sentence-page>header small{font-size:11px;color:#718176;font-weight:700}.wm-sentence-page h1{font-size:24px;margin:6px 0;color:#1a543d}.wm-sentence-page h2{font-size:17px;margin:20px 0 8px;color:#345d49}
.wm-sentence-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 18px;touch-action:pan-y;scrollbar-width:none}
.wm-sentence-scroll::-webkit-scrollbar{display:none}
.wm-sentence-page>footer{flex:none;display:flex;gap:8px;align-items:center;justify-content:center;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e2ece5}
.wm-sentence-page>footer button{flex:1;min-height:46px;border:1px solid #d6e4db;border-radius:8px;padding:10px;background:white;color:#6b4b3e;font-size:14px;font-weight:600}.wm-sentence-page>footer button.wm-primary{color:white;background:#16835c;border-color:#16835c}.wm-sentence-page>footer p{font-size:14px;margin:5px 0;color:#587365}
.wm-layered .wm-competition-table{list-style:none;margin:10px 0;padding:0;max-height:45dvh;overflow-y:auto;overscroll-behavior:contain;text-align:start;touch-action:pan-y}
.wm-sentence-scroll .wm-competition-table{max-height:none;overflow:visible}
.wm-competition-table li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid #e3ece6;font-size:14px}.wm-competition-table li>span{min-width:0;overflow-wrap:anywhere}.wm-competition-table small{display:block;font-size:11px;color:#758579;margin-top:4px}.wm-competition-table li>strong{white-space:nowrap;color:#1d7957;font-size:14px}
.wm-layered .wm-competition-rivals{display:flex;gap:6px;overflow-x:auto;flex:none;min-height:37px;padding:2px 0;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}.wm-competition-rivals::-webkit-scrollbar{display:none}.wm-competition-rivals>span{display:flex;flex-direction:column;justify-content:center;gap:2px;flex:none;min-width:95px;max-width:125px;padding:3px 6px;background:#f1f7f3;border-radius:6px}.wm-competition-rivals b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wm-competition-rivals small{font-size:9px;color:#54735f}
.wm-layered .wm-round-heading b{font-size:12px}.wm-layered .wm-round-heading span{font-size:11px}.wm-settings select{min-height:46px;border:1px solid #d2dfd5;border-radius:8px;padding:8px;background:white;font-size:14px}.wm-settings label{min-width:0}
@media(max-height:650px){.wm-sentence-page>header{padding:10px 14px}.wm-sentence-page h1{font-size:21px}.wm-sentence-page>footer{padding:9px 12px}.wm-layered .wm-competition-rivals{min-height:32px}.wm-competition-rivals>span{padding:2px 5px}}

.wm .wm-slot.is-fixed{color:#176b50;background:#e5f3e9;border-color:#176b50;border-radius:5px}.wm .wm-cell.is-fixed{opacity:.5;background:#e5f3e9;border-color:#7ba78c}

.wm .wm-shared-map-link{align-self:flex-start;min-height:36px;padding:5px 10px;color:#195c42;background:#edf5f0;border:0;border-radius:7px}.wr-page .wm.wm--stages{height:100dvh;max-height:none}

.wm .wm-stage-pages{flex:none;display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid #dce8df;background:#fff}.wm-stage-pages span{font-size:12px;color:#365f49;white-space:nowrap}.wm .wm-stage-pages button{min-height:40px;padding:7px 8px;border:1px solid #d6e5db;border-radius:7px;background:#edf6f0;color:#195c42;font-size:12px;font-weight:600}.wm .wm-stage-pages button:disabled{opacity:.4}
