.sw{max-width:720px;margin:0 auto;text-align:center;padding:8px 0 32px;user-select:none;-webkit-user-select:none}
.sw h1{font-size:30px;margin:0}
.sw-titlerow{display:flex;align-items:center;justify-content:center;gap:10px}
.sw-prog{min-height:22px}.sw-prog b{font-size:14px;color:#6b4226;margin-inline-end:6px}.sw-prog i{display:inline-block;width:12px;height:12px;border-radius:50%;background:#f1e3cf;margin:0 4px}.sw-prog i.on{background:#7cc47c}.sw-prog i.cur{background:#c8501b;transform:scale(1.25)}
.sw-top{display:flex;justify-content:center;margin:6px 0 12px}
.sw-arn{width:clamp(64px,17vw,90px);height:auto}
.sw-card{position:relative;background:#fff;border:4px solid #fff;border-radius:28px;box-shadow:0 6px 0 #6b42261f;width:min(62vw,280px,34svh);aspect-ratio:1;display:grid;place-items:center;overflow:hidden}
.sw-card img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain;cursor:pointer}  /* margin so trimmed pictures never touch the rounded corners (owner 2026-11-20) */
.sw-ear{position:absolute;top:6px;left:6px;width:34px;height:34px;border-radius:50%;border:0;background:#fff8eeee;box-shadow:0 2px 0 #6b42261a;font-size:15px;line-height:1;padding:0;cursor:pointer;z-index:1}
.sw-word{position:absolute;left:0;right:0;bottom:0;padding:4px 0 8px;background:linear-gradient(transparent,#fff 35%);font:800 clamp(40px,11vw,60px)/1.15 Baloo,sans-serif;color:#6b4226;opacity:0;transform:translateY(12px);transition:opacity .4s,transform .4s;pointer-events:none}
.sw-word.on{opacity:1;transform:none}
.sw-slots{display:flex;justify-content:center;gap:10px;margin:8px 0 18px}
.sw-slot{width:clamp(62px,18vw,86px);height:clamp(72px,21vw,98px);border:4px dashed #bfe3f5;border-radius:20px;background:#fff;display:grid;place-items:center;font:800 clamp(38px,11vw,56px)/1 Baloo,sans-serif;color:#6b4226;transition:transform .15s,border-color .2s}
.sw-slot.full{border-style:solid;border-color:#4A9BC9;animation:sw-pop .3s}
.sw-slot.over{border-color:#c8501b;transform:scale(1.06)}
.sw-slot.hint{border-color:#f2c14e;animation:sw-pulse .9s}
.sw-slots.solved .sw-slot{border-color:#7cc47c;background:#eaf7ea}
.sw-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;min-height:90px}
.sw-tile{width:clamp(62px,18vw,84px);height:clamp(62px,18vw,84px);border:0;border-radius:20px;background:#fff8ee;box-shadow:0 5px 0 #6b422633;font:800 clamp(36px,10vw,52px)/1 Baloo,sans-serif;color:#4A9BC9;cursor:grab;touch-action:none}
.sw-tile.used{visibility:hidden}
.sw-tile.lift{opacity:.35}
.sw-tile.shake{animation:sw-shake .35s}
.sw-ghost{position:fixed;z-index:70;transform:translate(-50%,-50%) scale(1.1);pointer-events:none;box-shadow:0 10px 20px #6b422640}
.sw-msg{min-height:30px;margin-top:14px;font-weight:800;font-size:20px;color:#6b4226}.sw-msg.pop{animation:sw-pop .3s}
.sw-go{position:relative;overflow:hidden;min-width:220px}.sw-go b{position:relative}.sw-fill{position:absolute;inset:0 auto 0 0;width:0;background:#ffffff40}
.sw-tiles.gone{display:none}
.sw-btn{margin-top:10px;padding:12px 28px;border:0;border-radius:99px;background:#c8501b;color:#fff;font:800 20px Baloo,sans-serif;box-shadow:0 4px 0 #9b3b11;cursor:pointer}
@keyframes sw-pop{0%{transform:scale(.8)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes sw-shake{25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
@keyframes sw-pulse{50%{transform:scale(1.08)}}
[dir=rtl] .sw-fill{inset:0 0 0 auto}
@media (max-height:820px) and (min-width:700px){
  .sw{padding-top:0}.sw h1{font-size:26px}.sw-arn{width:52px}.sw-top{margin:2px 0 8px}
  .sw-slots{margin:6px 0 10px}.sw-slot{width:68px;height:76px;font-size:42px}
  .sw-tile{width:66px;height:66px;font-size:40px}.sw-tiles{min-height:72px}
  .sw-msg{margin-top:6px;min-height:26px;font-size:18px}.sw-btn{margin-top:6px;padding:10px 26px}
}

.sw-lvls{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:2px auto 4px}.sw-lvls button{width:30px;height:30px;border-radius:50%;border:2px solid #bfe3f5;background:#fff;color:#6b4226;font:800 14px Baloo,sans-serif;cursor:pointer;padding:0}.sw-lvls button.on{background:#4A9BC9;border-color:#4A9BC9;color:#fff}
