*{box-sizing:border-box}html,body{margin:0;height:100%;color:#174A7E}body{background:#594b30}button{font:inherit}button:focus-visible{outline:4px solid #174A7E;outline-offset:3px}.mdg-stage{height:100%;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,18%);gap:18px;align-items:center;padding:10px 26px}.mdg-play{min-width:0;max-height:100%;display:flex;align-items:center;flex-direction:column;gap:12px}.mdg-cue,.mdg-status{margin:0;text-align:center;background:#fff8e9;padding:8px 18px;border-radius:16px;font-size:clamp(18px,2.1vw,28px);line-height:1.2}.mdg-cue{font-weight:600}.mdg-status{font-size:clamp(15px,1.7vw,22px);min-height:1.4em}.mdg-status:empty{visibility:hidden}.mdg-vela{width:100%;max-height:48vh;object-fit:contain;pointer-events:none;filter:drop-shadow(2px 6px 5px #44301950)}.mdg-game{width:100%;display:flex;flex-direction:column;align-items:center;gap:15px;min-height:0}.fall-piece,.fall-target{position:relative;border:2px solid #b57d42;background:#fff4dc;border-radius:14px;min-width:56px;min-height:56px;padding:6px;touch-action:none;user-select:none;cursor:pointer;color:#174A7E}.fall-piece{width:clamp(58px,7vw,92px);height:clamp(58px,7vw,92px)}.fall-piece img{width:100%;height:100%;object-fit:contain;pointer-events:none}.fall-piece[aria-pressed=true]{outline:4px solid #174A7E;outline-offset:2px;background:#ffe2a0}.fall-target img{height:90px;width:120px;object-fit:contain;pointer-events:none}.fall-stock{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;max-width:660px;padding:10px;background:#ead0a7e8;border-radius:18px}.fall-places{display:flex;justify-content:center;gap:16px;width:100%}.fall-basket{position:relative;min-width:155px;width:min(45%,330px);min-height:135px;display:flex;align-items:center;flex-direction:column;gap:5px}.fall-basket>.fall-target{background:transparent;border:0}.fall-basket>.fall-target img{width:150px;height:100px}.fall-picked{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.fall-picked .fall-piece{width:58px;height:58px;min-width:58px;min-height:58px}.fall-list{display:flex;gap:8px;justify-content:center;align-items:center;padding:6px 15px;border-radius:14px;background:#fff8e9}.fall-list img{width:45px;height:45px;object-fit:contain}.fall-count{font-size:22px;font-weight:600}.fall-empty{display:block;width:40px;height:40px;border:2px dashed #9e6d41;border-radius:50%}.fall-leaf{display:grid;grid-template-columns:repeat(var(--parts),1fr);width:min(100%,520px);height:220px;gap:4px}.fall-leaf-slot{min-width:0;width:100%;height:100%;padding:0;overflow:hidden;border-radius:7px;background:#fff3d6}.fall-leaf-piece{display:block;width:100%;height:100%;overflow:hidden;position:relative;pointer-events:none}.fall-leaf-piece img{position:absolute;width:calc(100% * var(--parts));max-width:none;height:100%;object-fit:fill;left:calc(-100% * var(--part))}.fall-leaf-empty .fall-leaf-piece{opacity:.17;filter:grayscale(1)}.fall-stock .fall-leaf-piece{width:72px;height:110px}.fall-stock:has(.fall-leaf-piece) .fall-piece{width:86px;height:124px}.fall-route{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.fall-route button{width:82px;height:90px;font-size:28px;background:#e7cc9b;border-radius:45%}.fall-route .fall-start{border-style:dashed;border-width:4px}.fall-route-cue{font-size:26px;background:#fff8e9;padding:5px 15px;margin:0;border-radius:12px}.mdg-hand{position:fixed;z-index:999;width:70px;height:90px;object-fit:contain;pointer-events:none;transform:translate(-20%,-10%)}.mdg-ghost{position:fixed;left:0;top:0;z-index:990;pointer-events:none;transform:translate(-50%,-50%);opacity:.9}.mdg-demo-piece{transition:translate .45s ease-out}.mdg-fullscreen{display:none}.fall-success{filter:drop-shadow(0 3px 4px #dcaa34)}[data-kind=find] .fall-stock{background:transparent;min-height:160px;width:100%;justify-content:space-around}[data-kind=find] .fall-stock .fall-piece{background:transparent;border:0;width:90px;height:95px}[data-kind=find] .fall-stock .fall-piece:nth-child(even){transform:translateY(18px)}
@media(orientation:portrait){.mdg-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 100px;padding:6px 12px;gap:4px}.mdg-vela{height:100px;width:150px;justify-self:center}.mdg-play{gap:9px}.fall-leaf{height:190px}.fall-target img{height:70px;width:90px}.fall-route button{width:65px;height:70px}.fall-stock{gap:7px}.fall-basket{min-height:95px}.fall-basket>.fall-target img{height:65px}.fall-piece{width:60px;height:60px}.fall-list img{width:35px;height:35px}}
@media(max-height:650px) and (orientation:landscape){.mdg-stage{padding:3px 14px;gap:10px}.mdg-play{gap:4px}.mdg-cue{font-size:18px;padding:4px 12px}.mdg-status{font-size:15px;padding:3px 12px}.fall-leaf{height:130px;width:350px}.fall-stock:has(.fall-leaf-piece) .fall-piece{height:80px;width:65px}.fall-stock .fall-leaf-piece{height:66px;width:51px}.fall-stock{padding:5px;gap:6px}.fall-piece{width:54px;height:54px;min-height:48px;min-width:48px}.fall-basket{min-height:65px}.fall-basket>.fall-target img{height:50px;width:85px}.fall-list img{height:28px;width:28px}.fall-picked .fall-piece{height:48px;width:48px;min-height:48px;min-width:48px}.mdg-game{gap:6px}.fall-route button{width:65px;height:65px}[data-kind=find] .fall-stock{min-height:95px}[data-kind=find] .fall-stock .fall-piece{width:65px;height:65px}}
.mdg-game img{max-width:none;max-height:none;filter:none}
.mdg-game .fall-leaf-piece img{position:absolute;width:calc(100% * var(--parts));height:100%;object-fit:fill;left:calc(-100% * var(--part))}
@media(prefers-reduced-motion:reduce){.mdg-demo-piece{transition:none}}
