/* 跟蒋旭学贝斯 · bass lesson mini game (same look as the other mini games) */
.bassGame{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}
.bassGame *{box-sizing:border-box}.bassGame::backdrop{background:#1d1714}.bassGame [hidden]{display:none!important}
.bassGame header{width:min(100%,1100px);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.bassGame header small{letter-spacing:.2em;font-size:11px;opacity:.75}
.bassGame h2{font-size:clamp(17px,2.4vw,24px);margin:2px 0 6px;letter-spacing:1px}
.bassGame nav{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.bassGame 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}
.bassGame button:active{transform:translateY(2px);box-shadow:0 1px 0 #8a6a52}.bassGame button.primary{background:#f4c84a;border-color:#a3782a;box-shadow:0 3px 0 #a3782a}
.bassGame button:focus-visible{outline:3px solid #7cc4b8;outline-offset:2px}
.bgStage{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}
.bgStage canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;cursor:grab;touch-action:none}
.bgCard{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}.bgCard p{margin:0;max-width:620px}.bgCard .bgHelp{font-size:13px;opacity:.85}.bgCard h3{margin:0;font-weight:500;font-size:clamp(18px,2.6vw,26px)}
.bgHint{margin:0;width:min(100%,1100px);text-align:center;font-size:13px;opacity:.8;min-height:1.4em}
@media (max-width:700px){.bassGame{padding:10px;justify-content:flex-start}.bassGame header{flex-direction:column}.bgCard .bgHelp{display:none}}
.bassGame .bgStage canvas{cursor:pointer}
.bassGame{background:#231c26}.bassGame::backdrop{background:#17121a}
.bgParts{display:flex;gap:6px;list-style:none;margin:0;padding:0;font-size:12px}.bgParts li{padding:3px 9px;border:2px solid #6b5444;border-radius:4px;opacity:.55}.bgParts li.now{opacity:1;border-color:#f4c84a;color:#f4c84a}.bgParts li.done{opacity:.85;text-decoration:line-through}
.bgSay{position:absolute;left:50%;top:4%;transform:translateX(-50%);margin:0;max-width:72%;padding:7px 12px;font-size:clamp(12px,1.6vw,16px);line-height:1.5;background:#fffdf4;color:#3d2a20;border:3px solid #3d2a20;border-radius:3px;box-shadow:3px 3px 0 #3d2a2055;pointer-events:none;text-align:center;white-space:pre-line}
.bgCount{position:absolute;left:50%;top:34%;transform:translate(-50%,-50%);margin:0;font-size:clamp(28px,6vw,56px);font-weight:700;color:#ffd66e;text-shadow:0 3px 0 #3d2a20;pointer-events:none}
.bgDots{display:flex;gap:10px;width:min(100%,1100px);justify-content:center}
.bgDots button{flex:0 1 120px;min-height:56px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;user-select:none;touch-action:none}
.bgDots button b{font-size:18px}.bgDots button small{font-size:11px;opacity:.7}
.bgScore{font-size:13px;opacity:.85}
@media (max-width:700px){.bgDots button{flex:1 1 0;min-height:64px}}
