/* 帮奶奶搬东西 · stairwell rhythm mini game (same look as the cooking and tidying games) */
.stairsGame{box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:14px 18px;border:0;background:#2f2622;color:#fbeedb;font-family:inherit;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.stairsGame *{box-sizing:border-box}.stairsGame::backdrop{background:#1d1714}.stairsGame [hidden]{display:none!important}
.stairsGame header{width:min(100%,1100px);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.stairsGame header small{letter-spacing:.2em;font-size:11px;opacity:.75}
.stairsGame h2{font-size:clamp(17px,2.4vw,24px);margin:2px 0 6px;letter-spacing:1px}
.stairsGame nav{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.stairsGame button{font:inherit;font-size:14px;min-height:42px;padding:8px 14px;border:2px solid #8a6a52;border-radius:4px;background:#fff4dc;color:#3d2a20;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #8a6a52}
.stairsGame button:active{transform:translateY(2px);box-shadow:0 1px 0 #8a6a52}.stairsGame button.primary{background:#f4c84a;border-color:#a3782a;box-shadow:0 3px 0 #a3782a}
.stairsGame button:focus-visible{outline:3px solid #7cc4b8;outline-offset:2px}
.sgStage{position:relative;width:min(100%,1100px,calc((100dvh - 190px)*16/9));aspect-ratio:16/9;border:4px solid #6b5444;border-radius:4px;background:#efe2c6;box-shadow:0 10px 30px #0006;overflow:hidden}
.sgStage canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;cursor:grab;touch-action:none}
.sgBubble{position:absolute;left:50%;top:4%;transform:translateX(-50%);margin:0;max-width:70%;padding:7px 12px;font-size:clamp(12px,1.6vw,16px);line-height:1.45;background:#fffdf4;color:#3d2a20;border:3px solid #3d2a20;border-radius:3px;box-shadow:3px 3px 0 #3d2a2055;pointer-events:none;text-align:center}
.sgCard{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:6% 10%;background:#2f2622d8;text-align:center;line-height:1.6}.sgCard p{margin:0;max-width:620px}.sgCard .sgHelp{font-size:13px;opacity:.85}.sgCard h3{margin:0;font-weight:500;font-size:clamp(18px,2.6vw,26px)}
.sgHint{margin:0;width:min(100%,1100px);text-align:center;font-size:13px;opacity:.8;min-height:1.4em}
@media (max-width:700px){.stairsGame{padding:10px;justify-content:flex-start}.stairsGame header{flex-direction:column}.sgCard .sgHelp{display:none}}
.sgBox{margin:0;font-size:12px;opacity:.85;min-height:1.3em}
.sgBubble{top:5%;left:auto;right:4%;transform:none;max-width:52%;text-align:left;background:#f3eefc}
.sgSay{position:absolute;left:50%;bottom:6%;transform:translateX(-50%);margin:0;padding:4px 12px;font-size:clamp(12px,1.6vw,16px);background:#3d2a20dd;color:#fff4dc;border-radius:3px;pointer-events:none;white-space:nowrap}
.sgFeet{display:flex;gap:14px;width:min(100%,1100px);justify-content:center}
.sgFeet button{flex:0 1 200px;min-height:54px;font-size:16px;user-select:none;touch-action:none}
.sgFeet button.next{border-color:#f4c84a;box-shadow:0 3px 0 #a3782a;background:#fff0c4}
.stairsGame .sgStage canvas{cursor:pointer}
@media (max-width:700px){.sgFeet button{flex:1 1 0;min-height:64px}}
