.guide-open{overflow:hidden}
#game-guide{width:min(900px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:2px solid #bac9ae;border-radius:26px;background:#fffefa;color:#243c30;box-shadow:0 12px 0 #243c3024;overflow:hidden}
#game-guide[open]{display:flex;flex-direction:column}
#game-guide::backdrop{background:#243c308a;backdrop-filter:blur(5px)}
.guide-top{display:flex;align-items:center;gap:16px;padding:15px 20px 12px;flex-shrink:0;font-size:18px}
#guide-counter{margin-left:auto;font-size:15px;color:#667855;font-variant-numeric:tabular-nums}
#guide-close{border:0;background:#edf0e3;border-radius:50%;width:38px;height:38px;min-width:38px;font-size:27px;line-height:1;display:grid;place-items:center}
.guide-track{height:5px;background:#edf0e3;flex-shrink:0}
#guide-progress{display:block;height:100%;background:#95b477;transition:width .2s ease}
.guide-content{padding:24px;overflow-y:auto;min-height:0;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:30px}
#guide-visual{min-width:0}
.guide-capture{display:flex;position:relative;align-items:center;justify-content:center;padding:12px 12px 40px;background:#f7f6f0;border:1px solid #dce2d2;border-radius:18px;color:#3c5b45;text-decoration:none;overflow:hidden}
.guide-capture img{display:block;width:100%;height:390px;object-fit:contain;object-position:center}
.guide-capture>span{position:absolute;right:12px;bottom:10px;background:#fffefa;padding:5px 9px;border-radius:8px;font-size:13px;line-height:1}
.guide-capture:hover{border-color:#859b72}.guide-capture:focus-visible{outline:3px solid #859b72;outline-offset:3px}
.guide-copy{text-align:left;min-width:0}
#game-guide #guide-title{font-size:29px;line-height:1.35;font-weight:400;letter-spacing:0;outline:none;margin:0;word-break:keep-all;overflow-wrap:anywhere}
#game-guide #guide-text{font-size:18px;line-height:1.65;color:#36513f;margin:18px 0 0;word-break:keep-all;overflow-wrap:anywhere}
#game-guide #guide-note{font-size:15px;line-height:1.6;color:#617350;background:#eef1e2;border-radius:13px;padding:12px 15px;margin:18px 0 0;word-break:keep-all;overflow-wrap:anywhere}
#guide-score-key:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
#guide-score-key span{display:flex;gap:7px;align-items:center;font-size:13px;padding:9px;border-radius:10px;background:#f2f3e9}
#guide-score-key b{font-size:19px;font-weight:400;white-space:nowrap}
.guide-controls{display:flex;justify-content:space-between;gap:14px;padding:4px 24px 22px;flex-shrink:0}
.guide-controls .button{font-size:18px;min-width:112px;min-height:46px;justify-content:center;font-weight:400}
#game-guide #guide-running{font-size:13px;line-height:1.5;text-align:center;color:#9d563c;margin:0 20px 12px;flex-shrink:0}
.header .guide-trigger{font-size:15px;white-space:nowrap;border:1px solid #bacaac;border-radius:12px;background:#fffefa;padding:7px 12px}
@media(max-width:680px){#game-guide{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:22px}.guide-top{padding:12px 15px;font-size:16px}.guide-content{grid-template-columns:minmax(0,1fr);gap:20px;padding:16px 20px}.guide-copy{text-align:center}.guide-capture{padding:10px 10px 36px}.guide-capture img{height:245px}#game-guide #guide-title{font-size:25px}#game-guide #guide-text{font-size:17px;margin-top:12px}#game-guide #guide-note{font-size:14px;padding:11px 12px;margin-top:12px}.guide-controls{padding:8px 20px 18px}.guide-controls .button{font-size:17px;min-width:100px}#guide-score-key span{justify-content:center}}
@media(max-width:600px){.mp-header{flex-wrap:wrap;gap:12px}.mp-header .header-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}.header .guide-trigger{font-size:13px;padding:5px 10px;min-height:36px}}
@media(max-height:560px) and (min-width:681px){.guide-capture img{height:240px}.guide-content{padding:15px 24px}.guide-controls{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){#guide-progress{transition:none}}

body:not(.multiplayer) .header{flex-wrap:wrap}body:not(.multiplayer) .header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
