#game-guide{width:min(1060px,94vw);max-height:90dvh;box-sizing:border-box;border:2px solid #7bcfe8;border-radius:20px;padding:0 24px 24px;background:#f3faff;color:#17364c;box-shadow:0 20px 80px #001b3b80;overflow:auto;font:15px/1.65 system-ui,sans-serif}
#game-guide::backdrop{background:#06192dbd}
#game-guide header{position:sticky;top:0;background:#f3faff;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #c3deeb}
#game-guide h2{margin:0;font-size:24px}#game-guide small{color:#386782}#game-guide h3{font-size:21px;margin:22px 0 8px}#game-guide h4{margin:0;font-size:17px}#game-guide p{margin:6px 0 14px}
#game-guide section{scroll-margin-top:110px}.guide-keys{display:flex;gap:12px 20px;flex-wrap:wrap;margin:12px 0}#game-guide kbd{background:#173e5c;color:white;padding:4px 8px;border-radius:6px;font:inherit}
.guide-characters{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px}.guide-character{background:white;border:1px solid #c3deeb;border-radius:14px;padding:14px;text-align:center}.guide-portrait{height:92px}.guide-character b{color:#246e8d;font-size:13px}.guide-character dl{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;text-align:left;margin:12px 0 0;gap:5px 8px}
.guide-character dd{position:relative;height:9px;margin:0;border-radius:6px;background:#e6eff4;overflow:hidden}
.guide-character dd::before,.guide-character dd::after{content:"";position:absolute;inset:0 auto 0 0;border-radius:inherit}
.guide-character dd::before{width:var(--cap);background:#90bed7}
.guide-character dd::after{width:var(--initial);background:#dd870c}
.guide-stat-key{display:flex;justify-content:flex-end;gap:14px;margin:18px 0 8px;font-size:13px}
.guide-stat-key span::before{content:"";display:inline-block;width:14px;height:8px;margin-right:5px;border-radius:4px;background:#dd870c}
.guide-stat-key span+span::before{background:#90bed7}
.guide-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-item{display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid #c3deeb;border-radius:14px;background:white}.guide-item canvas{width:60px;height:60px;flex:0 0 60px;background:#eaf6fb;border-radius:12px}.guide-item p{font-size:14px}#game-guide button:focus-visible,#game-guide a:focus-visible{outline:3px solid #d88400;outline-offset:3px}
@media(max-width:600px){#game-guide{padding:0 14px 16px}#game-guide h2{font-size:19px}.guide-items{grid-template-columns:1fr}.guide-characters{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-character{padding:10px}.guide-character dl{font-size:12px}}
.guide-race-steps{display:grid;gap:12px;list-style:none;padding:0;margin:12px 0}
.guide-race-steps li{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px}
.guide-race-steps img{width:48px;height:48px;object-fit:contain}
.guide-race-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.guide-race-tools img{width:28px;height:28px;object-fit:contain}
:is(#guide-controls,#guide-race,#guide-grades,#guide-characters,#guide-items) > details > summary{cursor:pointer;padding:10px 0}:is(#guide-controls,#guide-race,#guide-grades,#guide-characters,#guide-items) > details > summary h3{display:inline;margin:0}
.guide-escape-shot{display:block;max-width:100%;height:auto;border-radius:10px;margin:0 0 14px}
.guide-control-shots{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin:12px 0 18px}
.guide-control-shots figure{margin:0;max-width:100%;flex:0 1 auto;width:min-content}
.guide-control-shots img{display:block;max-width:min(100%,480px);height:auto;border-radius:8px}
.guide-control-shots figcaption{margin-top:5px;font-size:14px;line-height:1.5}
@media(max-width:600px){.guide-control-shots figure{width:auto}.guide-control-shots img{max-width:100%}}
