/* Mühle – same cozy room as Kittybo; CSS perspective, tactile wooden board, server-owned artwork. */
body.muehle-playing{overflow:hidden}
.muehle-overlay{position:fixed;inset:0;z-index:10050;overflow-y:auto;overscroll-behavior:contain;color:#fff5df;font-family:inherit;background:#2b1b13;isolation:isolate}
.muehle-overlay[hidden],.muehle-overlay [hidden]{display:none!important}
.ms-scene{position:fixed;inset:0;z-index:-3;background:url('kittybo/scene.webp') center center/cover no-repeat #41291e;filter:brightness(.60)}
.ms-shade{position:fixed;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#130d0baa 0%,#120e0e22 32%,#160c0799 90%)}
.ms-top{max-width:880px;margin:auto;padding:10px max(12px,env(safe-area-inset-right)) 4px;display:flex;align-items:center;justify-content:space-between;gap:6px;position:relative;z-index:1}
.ms-top h2{margin:0;font-family:Georgia,serif;font-size:clamp(22px,5.8vw,33px);color:#ffe4a5;text-shadow:0 3px 8px #120704}
.ms-top button,.ms-smallbtn{border:1px solid #efd0a255;background:#3a2119bb;border-radius:13px;color:#fff4e5;min-height:38px;padding:7px 10px;font-weight:750;cursor:pointer;font-size:13px}
.ms-content{width:min(760px,100%);margin:0 auto;padding:6px 12px 30px}
.ms-status{margin:2px auto 12px;max-width:590px;text-align:center;min-height:34px;border-radius:12px;padding:8px 12px;background:#27150fb8;border:1px solid #ffdc9744;font-size:13px;color:#fff5da;font-weight:650}
.ms-panel{border:1px solid #fff4c070;border-radius:24px;background:linear-gradient(148deg,#482d20ed,#211511f0);box-shadow:0 12px 32px #0008,inset 0 1px 1px #ffffff3d;padding:clamp(15px,4vw,27px);max-width:570px;margin:14px auto}
.ms-panel h3{margin:4px 0 8px;color:#ffe4ac;font:750 25px Georgia,serif;text-align:center}
.ms-panel p{text-align:center;color:#f5e4d1;font-size:14px;margin:9px auto 16px}
.ms-identity{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 18px;background:#180d096e;padding:9px;border-radius:14px}
.ms-identity img{height:46px;width:46px;object-fit:cover;border-radius:50%;border:2px solid #f7e4b0}
.ms-choices{display:grid;gap:10px}
.ms-choice{display:flex;align-items:center;text-align:left;gap:12px;color:#f9f1e5;background:#693c29e0;padding:10px 12px;border:1px solid #e4b88270;border-radius:17px;cursor:pointer;box-shadow:0 4px 0 #20120b;min-height:77px}
.ms-choice:active{transform:translateY(2px);box-shadow:0 2px 0 #20120b}
.ms-choice img{height:53px;width:53px;border-radius:50%;object-fit:cover;border:2px solid #ffe2a2;box-shadow:0 3px 8px #0005}
.ms-choice strong{font:700 20px Georgia,serif;display:block;color:#ffe4a6}
.ms-choice small{display:block;opacity:.92;margin-top:3px}
.ms-choice.ms-minka{background:linear-gradient(115deg,#8b603f,#664637)}
.ms-choice.ms-max{background:linear-gradient(115deg,#78512d,#50341f)}
.ms-choice.ms-gertrud{background:linear-gradient(115deg,#614056,#3c293d)}
.ms-gertrud-emoji{display:grid;place-items:center;font-size:33px;width:53px;height:53px;background:#c3a9bd;border:2px solid #ffe2a2;border-radius:50%}
.ms-online{background:#304f58;border-color:#b0e3e5}
.ms-button{width:100%;min-height:43px;margin-top:10px;color:#312015;background:#f2c984;border:1px solid #fff0bf;border-radius:14px;padding:9px;font-weight:800;cursor:pointer}
.ms-button.secondary{color:#ffedce;background:#4b3020}
.ms-room{width:100%;background:#6d4932;color:#fff2d7;border-radius:11px;border:1px solid #efd09e;padding:13px;text-align:left;margin:5px 0;cursor:pointer}
.ms-lobby-empty{padding:16px;background:#190e0a8a;border-radius:12px}
.ms-board-frame{margin:auto;max-width:600px;border:8px ridge #8f572a;border-radius:21px;background:repeating-linear-gradient(96deg,#ad723a,#c78a47 32px,#a56833 64px,#cd8d48 96px);box-shadow:0 14px 1px #361a0a,0 23px 28px #000b,inset 0 0 32px #40200888;transform:perspective(1200px) rotateX(5deg);padding:6px;position:relative}
.ms-board{aspect-ratio:1/1;width:100%;position:relative;margin:auto;max-width:550px;border-radius:10px;background:radial-gradient(ellipse at 48% 30%,#d5a167b8,#b2783d44 82%);overflow:hidden}
.ms-lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#422418;stroke-width:1.35;stroke-linejoin:round;pointer-events:none;filter:drop-shadow(0 1px 0 #f8c78588)}
.ms-slot{position:absolute;width:clamp(25px,8.3%,48px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);padding:0;border:2px solid #402111;cursor:pointer;box-shadow:0 3px 5px #251108a8;z-index:2;background:#42291d}
.ms-slot::before{content:'';position:absolute;inset:3px;border-radius:50%;box-shadow:inset 1px 2px 2px #ffffff25}
.ms-slot.ms-empty{width:clamp(14px,4.5%,28px);background:radial-gradient(circle,#7a4726 12%,#4a2814 60%,#b17a46 75%);border:1px solid #d4a571;box-shadow:inset 0 1px 2px #1c100e}
.ms-slot.ms-white{background:radial-gradient(circle at 32% 25%,#fffef3,#eadbba 56%,#a48e6a 92%);border:2px solid #f8e5ba}
.ms-slot.ms-black{background:radial-gradient(circle at 30% 22%,#6e6763,#292728 51%,#08070a 90%);border:2px solid #28201d}
.ms-slot.selected{outline:4px solid #ffd252;outline-offset:3px}
.ms-slot.ms-possible{box-shadow:0 0 0 4px #fde08466,0 4px 8px #1a1008bb}
.ms-slot.ms-last{filter:drop-shadow(0 0 4px #fbe3a2)}
.ms-player-row{margin:0 auto 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:600px}
.ms-player{min-width:0;display:flex;align-items:center;gap:8px;border:1px solid #e1bc7a65;background:#22140ecc;border-radius:12px;padding:7px 9px;font-size:12px}
.ms-player.active{box-shadow:0 0 0 2px #ffdf8999}
.ms-player img{width:37px;height:37px;border:2px solid #c99d69;border-radius:50%;object-fit:cover}
.ms-player strong{display:block;max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}
.ms-white-indicator,.ms-black-indicator{display:inline-block;width:11px;height:11px;border-radius:50%;vertical-align:middle;margin-right:3px}
.ms-white-indicator{background:#f9eed4;border:1px solid #fff}
.ms-black-indicator{background:#29252b;border:1px solid #978e8e}
.ms-legend{max-width:600px;margin:8px auto 0;text-align:center;font-size:12px;color:#fff3d5;background:#2313099c;border-radius:12px;padding:7px}
.ms-actions{max-width:600px;margin:6px auto;display:flex;gap:8px;justify-content:center}
.ms-actions button{background:#533020f0;color:#f7e9cb;border:1px solid #f3c38a66;border-radius:11px;padding:8px 15px;cursor:pointer;font-weight:750}
.ms-howto{position:relative;background:#321c15f2;max-width:580px;margin:10px auto;padding:15px 18px;border-radius:15px;border:1px solid #ebc796;line-height:1.45}
.ms-howto h3{color:#ffe1a0;margin:0 0 4px}.ms-howto p{margin:5px 0}
.ms-finish{position:fixed;inset:0;z-index:4;display:grid;place-items:center;padding:20px;background:#130b09d5}
.ms-finish-card{max-width:420px;width:100%;text-align:center;padding:24px;background:linear-gradient(160deg,#6b4030,#251612);border:2px solid #ffdf9d;border-radius:28px;box-shadow:0 8px 40px #000a}
.ms-finish-card h3{font:700 30px Georgia,serif;color:#ffdf91;margin:8px}
.ms-win-face{font-size:58px}
@media(max-width:500px){.ms-content{padding:0 7px 18px}.ms-board-frame{border-width:6px}.ms-panel{margin:9px auto}.ms-top h2{font-size:24px}.ms-player strong{max-width:75px}}
@media(prefers-reduced-motion:reduce){.ms-choice:active{transform:none}}
/* Keep both player names and stone counters legible on 320px portrait displays. */
.ms-player{display:grid;grid-template-columns:14px minmax(0,1fr);grid-template-rows:38px auto;column-gap:6px;row-gap:2px;min-height:76px;padding:6px 7px;align-items:center}
.ms-player>span:first-child{grid-column:1;grid-row:1}
.ms-player>div:nth-child(2){grid-column:2;grid-row:1;min-width:0;display:flex;align-items:center;gap:6px}
.ms-player>div:nth-child(3){grid-column:1/-1;grid-row:2;text-align:center;font-size:11px;color:#f4e1c1;line-height:1.25;min-height:24px}
.ms-player img{flex-shrink:0;width:34px;height:34px}
.ms-player strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:86px}

.ms-three-rule{max-width:600px;margin:5px auto 8px;padding:8px 10px;color:#fff1ca;text-align:center;font-size:13px;font-weight:760;border:1px solid #eebf7c88;border-radius:12px;background:#382112e8}
.ms-three-rule[hidden]{display:none!important}
