#word-mimic{--wm-paper:#fffaf0;--wm-ink:#252432;--wm-accent:#f6b84a}.wm-setup{max-width:900px;margin:auto}.wm-intro{display:flex;align-items:center;gap:28px}.wm-intro .wm-mimic{width:220px;flex:none;background:var(--wm-paper);border-radius:24px}.wm-label{display:inline-flex;flex-direction:column;gap:8px;min-width:220px;margin:16px 16px 16px 0}.wm-label select{min-height:48px}.wm-actions{display:flex;gap:12px;flex-wrap:wrap}.wm-playing .wm-shell{position:fixed;inset:0;z-index:110;background:var(--wm-paper);color:var(--wm-ink);display:flex;flex-direction:column;padding:max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));overflow:hidden}.wm-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:48px;border-bottom:2px solid #ddd5c9}.wm-top h2{font-size:24px;margin:0}.wm-top>div{display:flex;gap:8px}.wm-shell button{color:var(--wm-ink);min-height:44px;border:2px solid #c8c0b5;background:#fffdf7;border-radius:10px;font:inherit;font-weight:700;padding:8px 12px;cursor:pointer}.wm-shell button:focus-visible{outline:3px solid #6555cf;outline-offset:2px}.wm-shell button.primary{background:var(--wm-accent);border-color:#ac771e}.wm-shell button:disabled{cursor:default;opacity:.55}.wm-board{display:grid;grid-template-columns:minmax(160px,32%) minmax(0,1fr);gap:24px;min-height:0;flex:1}.wm-sketch{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0}.wm-mimic{width:100%;max-width:350px;max-height:calc(100% - 42px);overflow:visible;fill:none;stroke:var(--wm-ink);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.wm-ground{stroke:#c4bbb0;stroke-dasharray:3 7;stroke-width:2}.wm-draw path{stroke-dasharray:1000;animation:wm-draw .35s ease-out}.wm-misses{font-size:16px;font-weight:800}.wm-pips{display:flex;gap:6px;margin:8px}.wm-pips i{width:12px;height:12px;border:2px solid #aca293;border-radius:50%}.wm-pips .used{background:#bd655b;border-color:#bd655b}.wm-puzzle{display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0;min-height:0}.wm-info{display:flex;justify-content:space-between;gap:8px;font-size:13px;letter-spacing:.05em;color:#6d5c48}.wm-slots{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:12px 18px;min-height:70px;max-height:32%;overflow:auto;padding:8px 4px}.wm-word{display:inline-flex;gap:3px;white-space:nowrap;max-width:100%}.wm-letter{display:inline-flex;justify-content:center;align-items:center;width:clamp(19px,2.8vw,36px);height:clamp(30px,4vw,44px);font:800 clamp(17px,2.5vw,30px)/1 ui-monospace,monospace;border-bottom:3px solid #978b7b}.wm-punctuation{border:0;width:14px}.wm-filled{color:#372e5a}.wm-alphabet{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;max-width:650px;width:100%;margin:0 auto}.wm-alphabet button{padding:6px 0;font-size:20px;box-shadow:0 3px 0 #d1c6b4}.wm-alphabet .wm-correct{background:#cce4cd;border-color:#608163;opacity:1}.wm-alphabet .wm-wrong{text-decoration:line-through;text-decoration-thickness:3px;background:#dfd9d3;box-shadow:none;color:#8a736e;opacity:1}.wm-bottom{display:flex;align-items:center;gap:14px;justify-content:space-between}.wm-bottom button{font-size:13px}.wm-status{font-size:13px;line-height:1.35}.wm-courier{position:absolute;z-index:8;pointer-events:none;display:flex;align-items:center;gap:6px}.wm-courier img{width:80px;height:80px;object-fit:contain;filter:drop-shadow(0 4px 5px #0003)}.wm-courier span{font:900 28px ui-monospace,monospace;color:#5543ae;background:#fffaf0;padding:4px;border-radius:6px}.wm-arriving{color:transparent}.wm-landed{animation:wm-land .22s ease-out}.wm-droplet{position:absolute;z-index:9;font:800 27px ui-monospace,monospace;color:#5543ae;pointer-events:none;animation:wm-drop .24s ease-in forwards}.wm-shutter{position:absolute;left:0;width:100%;height:56%;background:#302942;z-index:12;pointer-events:none;transition:transform .38s cubic-bezier(.7,0,.9,.5);will-change:transform}.wm-upper{top:0;transform:translateY(-105%);clip-path:polygon(0 0,100% 0,100% 100%,95% 86%,90% 100%,85% 86%,80% 100%,75% 86%,70% 100%,65% 86%,60% 100%,55% 86%,50% 100%,45% 86%,40% 100%,35% 86%,30% 100%,25% 86%,20% 100%,15% 86%,10% 100%,5% 86%,0 100%)}.wm-lower{bottom:0;transform:translateY(105%);clip-path:polygon(0 0,5% 14%,10% 0,15% 14%,20% 0,25% 14%,30% 0,35% 14%,40% 0,45% 14%,50% 0,55% 14%,60% 0,65% 14%,70% 0,75% 14%,80% 0,85% 14%,90% 0,95% 14%,100% 0,100% 100%,0 100%)}.wm-lost .wm-shutter{transform:translateY(0)}.wm-chomping .wm-mimic{animation:wm-twitch .18s linear}.wm-result,.wm-pause,.wm-rotate{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:18px;background:#fffaf0f5;z-index:15;text-align:center;overflow:auto}.wm-result[hidden],.wm-pause[hidden]{display:none}.wm-result{background:#fffaf0ee}.wm-lost .wm-result{background:#302942;color:#fff}.wm-result-card{max-width:650px;width:100%;max-height:100%;overflow:auto;padding:12px}.wm-result h3{font-size:clamp(25px,4vw,42px);margin:0 0 12px}.wm-answer{font:800 clamp(18px,3vw,30px)/1.25 ui-monospace,monospace;overflow-wrap:anywhere}.wm-result-echo img{width:76px;height:76px;object-fit:contain}.wm-result-card button{margin:4px}.wm-result-card p{margin:8px 0}.wm-won .wm-result-echo{animation:wm-land .4s ease-out}.wm-rotate{display:none}.wm-paused *{animation-play-state:paused!important}.wm-paused .wm-pause{display:flex}.wm-paused .wm-courier,.wm-paused .wm-droplet{display:none}@keyframes wm-draw{from{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes wm-land{0%{transform:scale(.7) translateY(-8px)}65%{transform:scale(1.13) translateY(2px)}100%{transform:scale(1)}}@keyframes wm-drop{to{transform:translate(-50%,32px);opacity:0}}@keyframes wm-twitch{50%{transform:rotate(-3deg) scale(1.04)}}
@media(max-height:500px){.wm-top{min-height:44px}.wm-top h2{font-size:20px}.wm-board{gap:16px;grid-template-columns:28% minmax(0,1fr)}.wm-puzzle{gap:8px}.wm-slots{min-height:40px;gap:8px 12px;padding:4px}.wm-alphabet{gap:5px}.wm-alphabet button{font-size:17px;min-height:44px;padding:4px}.wm-bottom{gap:10px}.wm-status{font-size:11px}.wm-info{font-size:11px}.wm-letter{height:29px;font-size:21px;width:24px}.wm-result-echo img{width:42px;height:42px}.wm-result-card{padding:0}.wm-result h3{font-size:25px;margin:0 0 6px}.wm-answer{font-size:22px}.wm-result-card p{margin:5px 0}}
@media(max-width:700px) and (orientation:portrait){.wm-playing[data-status=active] .wm-rotate{display:flex;z-index:14}.wm-intro{flex-direction:column;gap:12px}.wm-label{display:flex;margin-right:0}.wm-pause{z-index:16}}
@media(max-width:550px) and (orientation:landscape){.wm-board{grid-template-columns:21% minmax(0,1fr);gap:8px}.wm-playing .wm-shell{padding:4px 8px}.wm-letter{width:19px;font-size:17px}.wm-top button{padding:6px}.wm-info{font-size:10px}}
@media(prefers-reduced-motion:reduce){.wm-shell *{animation:none!important;transition:none!important}.wm-courier,.wm-droplet{display:none}}


.wm-label[hidden]{display:none}.wm-difficulties{border:0;padding:0;margin:8px 0 20px;display:flex;gap:10px;flex-wrap:wrap}.wm-difficulties legend{font-weight:800;margin-bottom:8px}.wm-difficulties label{flex:1;min-width:180px;cursor:pointer;position:relative}.wm-difficulties input{position:absolute;left:12px;top:16px;accent-color:#5543ae}.wm-difficulties span{display:flex;flex-direction:column;gap:5px;padding:12px 12px 12px 38px;border:2px solid #c8c0b5;border-radius:14px;min-height:76px;color:var(--wm-ink);background:var(--wm-paper)}.wm-difficulties small{font-size:12px;line-height:1.4}.wm-difficulties input:checked+span{border-color:#6555cf;background:#eee9ff;box-shadow:0 0 0 1px #6555cf}.wm-difficulties input:focus-visible+span{outline:3px solid #6555cf;outline-offset:3px}.wm-mimic{stroke-width:3;filter:drop-shadow(0 3px 0 #25243212)}.wm-paper-fill{fill:var(--wm-paper)}.wm-light-fill{fill:#e6e0d5}.wm-ink-fill,.wm-mouth-fill{fill:var(--wm-ink)}.wm-mouth-fill{stroke-width:2}.wm-ground{fill:#2524320c;stroke:none}.wm-jaw{transform-box:view-box;transform-origin:270px 130px;animation:wm-breathe 3.6s ease-in-out infinite}.wm-tongue{transform-box:view-box;transform-origin:130px 168px;animation:wm-tongue 2.8s ease-in-out infinite}.wm-chomping .wm-jaw{animation:wm-snap .18s ease-in forwards}.wm-sketch{padding:4px}.wm-misses{letter-spacing:.01em}.wm-pips{gap:5px}@keyframes wm-breathe{50%{transform:rotate(-1.8deg)}}@keyframes wm-tongue{50%{transform:rotate(3deg) translateY(2px)}}@keyframes wm-snap{to{transform:rotate(10deg)}}
@media(prefers-reduced-motion:reduce){.wm-jaw,.wm-tongue{animation:none!important}}


/* Keep the metadata below the header, even in a short browser viewport. */
.wm-board{padding-top:10px}.wm-top{position:relative;z-index:1}.wm-info,.wm-alphabet,.wm-bottom{flex-shrink:0}.wm-info{flex-wrap:wrap;align-items:center;line-height:1.4}.wm-info strong{white-space:nowrap}.wm-puzzle{justify-content:flex-start}.wm-slots{flex:1;min-height:40px;max-height:none}.wm-result-echo{display:flex;justify-content:center;align-items:center;margin:12px 0}.wm-result-echo img{display:block}.wm-result-card button{min-height:44px}
@media(max-height:500px){.wm-board{padding-top:8px}.wm-puzzle{gap:6px}.wm-info{font-size:11px}.wm-bottom .wm-status{max-width:190px}.wm-result-echo{margin:8px 0}}
