/* 游戏基础层 · 游戏外壳样式（见 game-shell.js）。所有游戏共用：全屏水彩底、右上角关闭、开场大标题和大播放键、过关星星。 */
.panel.imm #p-game{position:relative;margin:0;border:0;border-radius:0;min-height:100%;
  padding:max(16px,env(safe-area-inset-top)) max(18px, calc((100% - 1120px)/2)) calc(24px + env(safe-area-inset-bottom));
  background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #dcecf6}
body.dark .panel.imm #p-game{background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #0e1727}
.panel.imm #p-game[hidden]{display:none}
.gs{min-height:calc(100vh - 40px);min-height:calc(100dvh - 40px);display:flex;flex-direction:column}
.gsTop{display:flex;align-items:center;gap:14px;min-height:56px}
.gsProgress{flex:1;display:flex;align-items:center;gap:12px;max-width:640px;margin:0 auto;padding-left:56px}
.gsCount{flex:none;font:500 15px/1 "Fredoka","ZCOOL",sans-serif;color:#6b5228;letter-spacing:.06em;min-width:52px}
.gsBar{flex:1;height:8px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(203,171,120,.4);overflow:hidden}
.gsBar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#f7d489,#eebf60);transition:width .35s}
.gsClose{flex:none;margin-left:auto;width:52px;height:52px;border-radius:14px;border:3px solid #fff;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(#ffe9a8,#ffd25a);box-shadow:0 4px 0 #c9953a,0 8px 14px rgba(120,90,40,.2);transition:transform .1s}
.gsClose:active{transform:translateY(3px);box-shadow:0 1px 0 #c9953a}
.gsClose svg{width:60%;stroke:#c0392b;stroke-width:3.2;stroke-linecap:round;fill:none}
.gsClose:focus-visible,.gsPlay:focus-visible{outline:3px solid #b07a1c;outline-offset:3px}
.gsBody{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:8px 0 16px}
.gsPlaying .gsBody{justify-content:flex-start}
.gsStage{width:100%;display:flex;flex-direction:column;align-items:center}
.gsTitle{margin:0;font:400 clamp(36px,7vw,64px)/1.1 "ZCOOL","PingFang SC",sans-serif;color:#fff;letter-spacing:4px;text-align:center;
  text-shadow:0 3px 0 #e0a83c,0 6px 0 #b98a2c,0 10px 18px rgba(80,60,20,.3)}
.gsTitle small{display:block;margin-top:8px;font:500 clamp(16px,2.4vw,22px)/1 "Fredoka",sans-serif;letter-spacing:1px;color:#8a5c12;text-shadow:none}
.gsHow{max-width:560px;margin:0;text-align:center;font-size:15px;line-height:1.7;color:#5d4b33}
.gsSetup{width:min(720px,100%)}
.gsSetup:empty{display:none}
.gsPlay{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;cursor:pointer;color:#4a3410;
  font:400 18px/1 "ZCOOL",sans-serif;letter-spacing:2px}
.gsPlay svg{width:clamp(110px,16vw,150px);aspect-ratio:1.45;padding:0 12%;box-sizing:border-box;border-radius:32%/46%;fill:#e9f6ff;
  background:rgba(32,52,74,.86);box-shadow:0 10px 24px rgba(20,40,60,.3);transition:transform .15s}
.gsPlay:hover svg{transform:scale(1.06)}
.gsPlay:disabled{opacity:.45;cursor:default}
.gsPlay:disabled svg{transform:none}
.gsDone{animation:gsPop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes gsPop{from{transform:scale(.4);opacity:0}}
.gsStars{display:flex;gap:10px}
.gsStars i{font-style:normal;font-size:clamp(44px,7vw,64px);line-height:1;color:rgba(160,130,80,.3)}
.gsStars i.on{color:#ffc93c;text-shadow:0 3px 0 #d39a1c,0 8px 16px rgba(210,150,30,.35);animation:gsPop .5s cubic-bezier(.3,1.6,.5,1) both}
.gsStars i.on:nth-child(2){animation-delay:.15s}.gsStars i.on:nth-child(3){animation-delay:.3s}
.gsSummary{margin:0;font:400 clamp(17px,2.4vw,21px)/1.6 "ZCOOL",sans-serif;color:#4a3410;text-align:center}
.gsDetail{width:min(640px,100%)}
.gsActions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.gsActions .sbtn{min-height:48px;font-size:16px}
body.dark .gsCount,body.dark .gsHow,body.dark .gsSummary{color:#dbe7f5}
body.dark .gsTitle small{color:#f3d48c}
body.dark .gsPlay{color:#f3d48c}
@media (max-width:560px){
  .gsProgress{padding-left:0}
  .gsClose{width:46px;height:46px}
}
@media (prefers-reduced-motion:reduce){.gsDone,.gsStars i.on{animation:none}}
