.stage .player.bo{display:flex;flex-direction:column;background:transparent;box-shadow:none;border-radius:0;overflow:visible;color:var(--text);font-family:var(--font)}
.stage .player.bo:fullscreen,.stage .player.bo.expanded{background:var(--bg)}
.bo-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;flex:none}
.bo-level{display:flex;align-items:center;gap:6px}.bo-level strong{min-width:78px;text-align:center;font-size:17px;font-weight:600}
.bo-level a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--chip);color:var(--text);font-size:22px;line-height:1}
.bo-level a:hover{background:var(--chip-hover)}.bo-level a[aria-disabled]{opacity:.35;pointer-events:none}
.bo-bar button{font:inherit;color:var(--text);background:var(--chip);border:0;border-radius:980px;cursor:pointer}
.bo-bar button{padding:8px 18px;font-size:15px;touch-action:manipulation}
.bo-bar button:hover{background:var(--chip-hover)}
.bo-bar #mute{display:flex;align-items:center;padding:8px 12px}
.bo-stats{display:flex;gap:8px}
.bo-stats span{display:flex;flex-direction:column;align-items:center;min-width:64px;padding:6px 10px;border-radius:10px;background:var(--bg-alt);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-2)}
.bo-stats strong{color:var(--text);font-size:20px;line-height:1.1;letter-spacing:0;font-variant-numeric:tabular-nums}
.bo .board-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
#status{min-height:0;margin:0;font-size:13px;color:#e5c57f;text-align:center}
#win{margin:auto;border:0;border-radius:18px;padding:28px 32px;text-align:center;max-width:calc(100vw - 32px);box-shadow:0 20px 80px rgba(0,0,0,.35)}
#win::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(4px)}
#win h2{font-size:24px;margin:0 0 6px}
#win p{color:var(--text-2);margin:0 0 14px}
#win button{margin:4px;padding:10px 20px;font:inherit;border:0;border-radius:980px;background:var(--chip);cursor:pointer}
#win .primary{background:var(--blue);color:#fff}
/* 手机（≤734px）：上看下点（用户 2026-10-31 定）。顶栏只放状态（Level N、Moves、Best、静音），棋盘下方一行放高频操作（‹ 重开 › 分享）。
   .stage 当网格，.player/.bo-bar/.bo-level/.player-bar 用 display:contents 摊平，按钮不复制、id 不变，main.mjs 照常绑定。
   棋盘区左右贴边（抵消 .wrap 的 22px），高度由 board.mjs 的 layout() 算：在 [屏幕宽, max-height] 之间跟着棋盘走。去掉 Blocks 和 Full screen。 */
@media (max-width:734px){
  .stage:has(.bo){display:grid;grid-template-columns:auto 1fr auto auto;grid-template-areas:"name stats stats mute" "board board board board" "prev restart next share";
    align-items:center;gap:0 8px;margin-top:8px;max-width:none}
  .stage:has(.bo) .player.bo,.stage:has(.bo) .bo-bar,.stage:has(.bo) .bo-level,.stage:has(.bo) .player-bar{display:contents}
  #level-name{grid-area:name;min-width:0;text-align:left;font-size:17px;white-space:nowrap}
  .bo-stats{grid-area:stats;justify-self:end;gap:6px}
  .bo-stats span{flex-direction:row;align-items:center;gap:5px;min-width:0;height:32px;line-height:1}
  .bo-stats span:nth-child(2)::before{content:none}
  .bo-stats span:first-child{display:none}
  .bo-stats strong{font-size:16px;line-height:1}
  #mute{grid-area:mute;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0}
  /* 棋盘区左右各留 20px（抵消 .wrap 22px 里的 2px，用户 2026-11-01 定）；不裁剪棋盘区，特效可以画到棋盘外、顶栏和底栏上面。
     飞出屏幕的特效由 main 在屏幕边缘横向裁掉，页面不会横向滚动。 */
  .stage:has(.bo) .board-wrap{grid-area:board;margin:8px -2px;max-height:calc(100dvh - 44px - 8px - 52px - 64px)}
  main:has(.bo){overflow-x:clip}
  .stage:has(.bo) .bo-board{flex:none}
  #prev-level{grid-area:prev}#next-level{grid-area:next}
  #prev-level,#next-level{width:44px;height:44px;margin:4px 0 12px}
  #restart{grid-area:restart;justify-self:center;display:flex;align-items:center;gap:6px;height:44px;margin:4px 0 12px;padding:0 22px;font-size:16px}
  .stage:has(.bo) .share-btn{grid-area:share;width:44px;height:44px;margin:4px 0 12px;padding:0;justify-content:center}
  .stage:has(.bo) .share-btn span,.stage:has(.bo) .fs-btn:not(.share-btn),.stage:has(.bo) .credit,.stage:has(.bo) .close-btn{display:none}
}
.level-list{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0}
.stage:has(.bo){max-width:640px;margin-left:auto;margin-right:auto}
.shots-section .shots{max-width:692px;margin:0 auto;grid-template-columns:repeat(auto-fit,minmax(220px,320px));justify-content:center}
article section h3{max-width:692px;margin:20px auto 8px;font-size:21px;line-height:1.19;font-weight:600}
.stage:has(.bo) .player-bar{justify-content:center}.stage:has(.bo) .share-btn{margin-left:0}.stage:has(.bo) .credit{display:none}
.level-list a[data-cleared]::after{content:" ✓";color:var(--blue)}
.bo-err-btn{margin-left:6px;padding:4px 14px;font:inherit;font-size:13px;color:var(--text);background:var(--chip);border:0;border-radius:980px;cursor:pointer}.bo-err-btn:hover{background:var(--chip-hover)}
/* 桌面：整个游戏组件（顶栏、棋盘、底栏）正好占满一屏——顶栏和底栏都看得见，中间剩下的全给棋盘。
   窗口高度减去网站顶栏 44px 和上下留白；棋盘自己按剩余空间放大（见 board.mjs 的 layout）。手机（≤734px）不受影响。 */
@media (min-width:735px){
  .stage:has(.bo){max-width:none;height:calc(100dvh - 44px - 24px);min-height:480px;margin-top:12px;display:flex;flex-direction:column}
  .stage:has(.bo) .player.bo:not(.expanded):not(:fullscreen){flex:1;min-height:0;height:auto;max-height:none}
  .stage:has(.bo) .player-bar{flex:none;margin-top:8px}
  .bo-bar{width:100%;max-width:720px;margin-left:auto;margin-right:auto}
  /* 顶栏所有控件统一 36px 高、内容竖直居中：统计每项一行（Blocks 8），箭头用 SVG（文字符号在圆里会偏上/偏下） */
  .bo-bar{align-items:center}
  .bo-stats{align-items:center}
  .bo-stats span{flex-direction:row;align-items:center;gap:6px;min-width:0;height:36px;box-sizing:border-box;line-height:1}
  .bo-stats strong{font-size:18px;line-height:1}
  .bo-level{align-items:center}
  .bo-level strong{line-height:1}
  .bo-bar button{display:flex;align-items:center;justify-content:center;height:36px;padding:0 18px;line-height:1}
  .bo-bar #mute{padding:0;width:44px}
}
.level-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 auto 16px;max-width:692px}
.level-tabs button{padding:4px 12px;font:inherit;font-size:13px;color:var(--text);background:var(--chip);border:0;border-radius:980px;cursor:pointer}.level-tabs button:hover{background:var(--chip-hover)}.level-tabs button[aria-pressed=true]{background:var(--blue);color:#fff}
.level-list[hidden]{display:none}
/* Blocks、Moves、Best 只是给人看的数字，不能点：手机和电脑都去掉圆角底色，纯文字用「·」隔开（用户 2026-10-31 定，可点的按钮才有底色） */
.bo-stats span{padding:0;background:none;border-radius:0}
.bo-stats span+span::before{content:"·";margin-right:1px;color:var(--text-2)}
