:root{--bg:#faf6ef;--bg-card:#fff;--bg-soft:#f1ebe0;--text:#2a2521;--text-2:#6b625a;--text-3:#9a908a;--line:#e6dfd3;--brand:#c9962e;--brand-dark:#8a6414;--brand-soft:#faf1d9;--brand-press:#b5841f;--brand-ink:#2a1d08;--cta:#e0562b;--cta-press:#c2461f;--cta-dark:#b8421e;--cta-soft:#fdeee8;--link:#1f5fa8;--radius:12px;--maxw:1080px;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);color:var(--text);background:var(--bg);margin:0;font-size:16px;line-height:1.7}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
h1, h2, h3{margin:0;font-weight:700;line-height:1.3}
p{margin:0 0 12px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 16px}
:root{--header-h:48px}
html.hdr-up{--header-h:0px}
@media (orientation:landscape) and (max-height:500px){:root{--header-h:0px}}
.nav{align-items:center;gap:2px;margin-right:auto;display:flex}
.pt-gate{box-sizing:border-box;overscroll-behavior:contain;border:0;border-top:4px solid var(--pop-tone,var(--line));background:var(--pop-bg,var(--bg-card));width:min(380px,100vw - 32px);max-height:calc(100dvh - 24px);color:var(--text-2);border-radius:14px;padding:18px 18px 14px;font-size:14px;overflow-y:auto;box-shadow:0 8px 28px #00000038}
.pt-gate::backdrop{background:#2a252173}
.pt-gate-close{margin-top:12px}
:root{--pop-bg:var(--bg-card)}
.acct-hint{color:var(--text-3);margin:0 0 10px;font-size:13px;line-height:1.5}
.g-btn{font:inherit;border:1px solid var(--line);background:var(--bg-card);color:var(--text);cursor:pointer;border-radius:8px;padding:7px 14px;font-size:14px}
.g-btn:hover{background:var(--bg-soft)}
.g-btn:disabled{opacity:.45;cursor:default}
.g-btn-primary{background:var(--cta);border-color:var(--cta);color:#fff}
.g-btn-primary:hover{background:var(--cta-press)}
.g-btn-sm{padding:5px 10px;font-size:13px}
.daily{margin-top:26px}
main.wrap{padding-bottom:48px}
.site-footer{border-top:1px solid var(--line);color:var(--text-2);background:var(--bg-soft);margin-top:28px;padding:24px 0 20px;font-size:14px}
.site-footer a{color:var(--text-2)}
.site-footer a:hover{color:var(--text)}
@media (max-width:860px){main.wrap:has(>.hn){flex-direction:column;display:flex}
main.wrap:has(>.hn)>#all{order:4}}
html{scroll-behavior:smooth}
#all{scroll-margin-top:calc(var(--header-h) + 12px)}
.game-stage, #game{scroll-margin-top:calc(var(--header-h) + 8px)}
.g-rb-foot{margin-top:10px}
.g-rb.is-short .g-rb-foot{margin-top:7px}
.g-rb.is-tiny .g-rb-foot{display:none}
.prose{max-width:760px}
.prose h2{border-top:1px solid var(--line);margin:32px 0 10px;padding-top:8px;font-size:22px}
.prose h3{margin:20px 0 6px;font-size:17px}
.prose p{margin:0 0 12px}
.prose ul, .prose ol{margin:0 0 12px;padding-left:22px}
.prose li{margin-bottom:6px}
.prose strong{color:var(--text)}
.prose code{background:var(--bg-soft);overflow-wrap:anywhere;border-radius:4px;padding:1px 5px;font-size:14px}
.game-head{justify-content:space-between;align-items:flex-end;gap:4px 16px;min-height:38px;margin-top:2px;display:flex}
.game-head:not(:has(.stage-tools)){margin-bottom:10px}
.game-title{flex-wrap:wrap;align-items:baseline;gap:0 10px;min-width:0;padding-bottom:7px;display:flex}
.game-head h1{letter-spacing:-.2px;font-size:22px}
.game-head .stage-tools{z-index:1;flex:none;align-self:flex-end;margin:0 18px -1px 0;position:relative}
[data-fb].fb-dot:after{content:"";vertical-align:super;background:#e0452b;border-radius:50%;width:7px;height:7px;margin-left:3px;display:inline-block}
.g-menu-btn.fb-dot{position:relative}
.g-menu-btn.fb-dot:after{content:"";background:#e0452b;border:1.5px solid #fff;border-radius:50%;width:8px;height:8px;position:absolute;top:-3px;right:-3px}
.game-head .stage-tools .fx-toggles{border-bottom-color:var(--bg-card);border-bottom-right-radius:0;border-bottom-left-radius:0}
.fx-toggles{border:1px solid var(--line);background:var(--bg-card);border-radius:10px;align-self:center;align-items:center;margin-left:auto;display:inline-flex;overflow:hidden}
.fx-toggle{font:inherit;border:0;border-left:1px solid var(--line);height:34px;color:var(--text-2);cursor:pointer;background:0 0;border-radius:0;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:13px;line-height:1;display:inline-flex}
.fx-toggle:first-child{border-left:0}
.fx-toggle:hover{background:var(--bg-soft);color:var(--text)}
.fx-toggle.is-off{color:var(--text-3)}
.fx-toggle:has(.fx-label-sr){width:38px;padding:0}
.fx-toggle .fx-icon{display:inline-flex}
.fx-toggle .fx-icon svg{width:17px;height:17px;display:block}
.stage-tools .fx-toggles{border-radius:12px}
.stage-tools .fx-toggle{height:42px;padding:0 14px;font-size:14px}
.fx-label-sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
.game-stage{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;padding:10px 14px 14px;position:relative}
.game-stage.is-fs{z-index:100;background:var(--bg);-webkit-overflow-scrolling:touch;border:0;border-radius:0;flex-direction:column;align-items:center;margin:0;padding:46px 14px 16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}
.game-stage:-webkit-full-screen{z-index:100;background:var(--bg);-webkit-overflow-scrolling:touch;border:0;border-radius:0;flex-direction:column;align-items:center;margin:0;padding:46px 14px 16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}
.game-stage:fullscreen{z-index:100;background:var(--bg);-webkit-overflow-scrolling:touch;border:0;border-radius:0;flex-direction:column;align-items:center;margin:0;padding:46px 14px 16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}
.game-stage.is-fs>*{width:100%;max-width:900px}
.game-stage:-webkit-full-screen>*{width:100%;max-width:900px}
.game-stage:fullscreen>*{width:100%;max-width:900px}
.game-stage.is-fs>.fs-exit{width:auto}
.game-stage:-webkit-full-screen>.fs-exit{width:auto}
.game-stage:fullscreen>.fs-exit{width:auto}
.game-stage.is-fs>#game[data-fs-self]{max-width:none}
.game-stage:-webkit-full-screen>#game[data-fs-self]{max-width:none}
.game-stage:fullscreen>#game[data-fs-self]{max-width:none}
@media (orientation:portrait){.game-stage.is-fs>#game[data-fs-self]{margin-top:auto;margin-bottom:auto}
.game-stage:-webkit-full-screen>#game[data-fs-self]{margin-top:auto;margin-bottom:auto}
.game-stage:fullscreen>#game[data-fs-self]{margin-top:auto;margin-bottom:auto}
.game-stage:-webkit-full-screen>#game[data-fs-self]:has(.g-dpad:not([hidden]),[class$=-pad]:not([hidden]),[class*=-pads]:not([hidden])){margin-bottom:0}
.game-stage:fullscreen>#game[data-fs-self]:has(.g-dpad:not([hidden]),[class$=-pad]:not([hidden]),[class*=-pads]:not([hidden])){margin-bottom:0}
.game-stage.is-fs>#game[data-fs-self]:has(.g-dpad:not([hidden]),[class$=-pad]:not([hidden]),[class*=-pads]:not([hidden])){margin-bottom:0}}
body.has-fs{overflow:hidden}
.fs-exit{z-index:101;font:inherit;border:1px solid var(--line);background:var(--bg-card);color:var(--text-2);cursor:pointer;border-radius:999px;padding:6px 12px;font-size:13px;position:fixed;top:10px;right:12px;box-shadow:0 2px 8px #2a25211f}
.fs-exit:hover{background:var(--bg-soft)}
.game-stage .loading{color:var(--text-3);text-align:center;padding:40px 0}
#game>.loading{justify-content:center;align-items:center;min-height:min(60vh,480px);margin:0;display:flex}
#game[data-kind=tool]>.loading{min-height:240px}
.game-doc{margin-top:4px}
.game-doc .doc-card{padding-top:22px}
.game-doc-lead{background:var(--bg);color:var(--text-2);border-radius:12px;margin:0 0 14px;padding:14px 16px;font-size:15px;line-height:1.8}
.game-doc .doc-card.prose h2{border-top:1px solid var(--line);scroll-margin-top:calc(var(--header-h) + 16px);margin:30px 0 12px;padding:22px 0 0 14px;position:relative}
.game-doc .doc-card.prose h2:before{content:"";background:var(--brand);border-radius:2px;width:4px;height:1em;position:absolute;bottom:.18em;left:0}
.game-doc .doc-card.prose h3{margin:18px 0 6px;padding:0;font-size:16.5px}
.game-doc .doc-card.prose h3:before{content:"";background:var(--brand);vertical-align:middle;border-radius:50%;width:6px;height:6px;margin:0 8px 3px 0;display:inline-block}
@media (max-width:720px){.nav{z-index:70;background:var(--bg-card);border-bottom:1px solid var(--line);max-height:calc(100vh - var(--header-h));flex-direction:column;align-items:stretch;gap:2px;margin:0;padding:10px 4px 14px;display:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 10px 28px #2a252124}
.game-stage{margin-left:-4px;margin-right:-4px;padding:10px}
.game-title{padding-bottom:6px}
.game-head h1{font-size:20px;line-height:1.25}}
.to-top{right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:80;border:2px solid var(--line);background:var(--bg-soft);width:46px;height:46px;color:var(--brand-dark);cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .15s,background .15s,color .15s,border-color .15s;display:grid;position:fixed;box-shadow:0 4px 14px #2a252124}
.to-top:hover{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);transform:translateY(-2px)}
body.has-fs .to-top{display:none}
@media (max-width:720px){.to-top{right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));width:40px;height:40px}}
.to-top{transition:transform .15s,background .15s,color .15s,border-color .15s,opacity .4s}
@media (orientation:landscape) and (max-height:520px){.to-top{right:calc(6px + env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));width:36px;height:36px}
.to-top svg{width:17px;height:17px}}
@media (prefers-reduced-motion:reduce){.to-top{transition:none}}
.doc-card{border:1px solid var(--line);background:var(--bg-card);border-radius:16px;max-width:none;padding:8px 32px 28px}
.doc-card.prose h2{scroll-margin-top:calc(var(--header-h) + 16px)}
.doc-card.prose>h2:first-child, .doc-card.prose>p:first-child+h2{border-top:0}
.doc-card.prose>h2:first-child{margin-top:16px}
.doc-card.prose>p:first-child{margin-top:22px}
.prose table{border-collapse:collapse;width:100%;margin:4px 0 16px;font-size:14.5px}
.prose th, .prose td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:10px 12px}
.prose thead th{background:var(--bg-soft);color:var(--text);white-space:nowrap;border-bottom:0;font-weight:600}
.prose thead th:first-child{border-radius:8px 0 0 8px}
.prose thead th:last-child{border-radius:0 8px 8px 0}
.prose tbody tr:last-child td{border-bottom:0}
@media (max-width:640px){.prose table{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto}}
.prose td:nth-child(2){font-variant-numeric:tabular-nums;min-width:4.5em;color:var(--text);font-weight:600}
@media (max-width:400px){.prose th, .prose td{padding:9px 7px}}
@media (max-width:720px){.doc-card{padding:4px 18px 20px}}
.stage-tools .fx-toggles{gap:5px;padding:3px 5px 4px;overflow:visible}
.stage-tools .fx-toggle{color:#2b2118;background:#fff7e6;border:2px solid #2b2118;border-radius:10px;height:30px;padding:0 10px;font-weight:700;transition:transform 80ms,box-shadow 80ms;box-shadow:0 3px #2b2118}
.stage-tools .fx-toggle:first-child{border-left:2px solid #2b2118}
.stage-tools .fx-toggle:hover{color:#2b2118;background:#fff1d6}
.stage-tools .fx-toggle:active{transform:translateY(2px);box-shadow:0 1px #2b2118}
.stage-tools .fx-toggle.is-off{color:#8a7a66;background:#ece4d6}
.stage-tools .fx-toggle:has(.fx-label-sr){width:36px;padding:0}
.stage-tools .fx-toggle .fx-icon svg{width:18px;height:18px}
.stage-tools .fx-toggle.skin-btn{background:#ffc83d}
.stage-tools .fx-toggle.bk-btn{color:#0b5e30;background:#d6f0df;gap:5px;padding:0 8px 0 9px}
.stage-tools .fx-toggle.bk-btn:hover{color:#0b5e30;background:#c3e8d0}
.stage-tools .fx-toggle.bk-btn.is-hint{animation:1.1s ease-in-out 4 bk-pulse}
.bk-tip{z-index:30;color:#2b2118;background:#fffbe8;border:2px solid #2b2118;border-radius:10px;align-items:center;gap:6px;width:max-content;max-width:min(440px,60vw);padding:7px 6px 7px 12px;font-size:13.5px;font-weight:700;line-height:1.4;animation:.25s ease-out bk-tip-in;display:flex;position:absolute;bottom:6px;right:calc(100% + 10px);box-shadow:0 3px #2b2118,0 8px 20px #2a252129}
.bk-tip:after{content:"";background:#fffbe8;border-top:2px solid #2b2118;border-right:2px solid #2b2118;width:12px;height:12px;margin-top:-6px;position:absolute;top:50%;right:-8px;transform:rotate(45deg)}
.bk-tip kbd{text-align:center;background:#fff;border:1.5px solid #2b2118;border-radius:4px;min-width:18px;padding:0 4px;font:800 13px/1.3 ui-monospace,Consolas,monospace;display:inline-block;box-shadow:0 2px #2b2118}
.bk-tip-x{color:#6b5a44;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;width:24px;height:24px;font-size:18px;line-height:1}
.bk-tip-x:hover{color:#2b2118;background:#f1e6c8}
@media (prefers-reduced-motion:reduce){.bk-tip, .stage-tools .fx-toggle.bk-btn.is-hint{animation:none}}
.stage-tools .fx-toggle.invite-top{color:#fff;background:#ff7a1a;gap:5px;padding:0 10px 0 8px}
.stage-tools .fx-toggle.invite-top:hover{color:#fff;background:#f06a0a}
.stage-more-dot{background:#e0452b;border:1.5px solid #fff;border-radius:50%;width:9px;height:9px;position:absolute;top:-4px;right:-4px}
.stage-more-pop{z-index:40;background:var(--bg-card);border:2px solid #2b2118;border-radius:12px;flex-direction:column;gap:6px;padding:8px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 4px #2b2118,0 10px 24px #2a25212e}
.stage-more-pop .fx-toggle{justify-content:flex-start;gap:8px;min-width:96px;width:auto!important;padding:0 12px!important}
.stage-more-pop .fx-label-sr{clip:auto;width:auto;height:auto;position:static;overflow:visible}
.stage-more-pop .skin-btn-new{margin-left:2px;position:static}