:root{color-scheme:light;--ink: #282b24;--paper: #f8f7ef;--yellow: #ffda58;--muted: #696c60;--border: 1.5px solid var(--ink);--shadow: 3px 3px 0 var(--ink);font-family:Noto Sans SC,Microsoft YaHei,PingFang SC,system-ui,sans-serif;color:var(--ink);background-color:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:300px;min-height:100vh;background-image:linear-gradient(#5052370a 1px,transparent 1px),linear-gradient(90deg,#5052370a 1px,transparent 1px);background-size:26px 26px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #af6b03;outline-offset:3px}svg{display:block}[data-icon]{display:inline-flex;flex-shrink:0;align-items:center}[data-icon] svg{width:19px;height:19px}[hidden]{display:none!important}.wrap{width:min(1200px,calc(100% - clamp(44px,8vw,136px)));margin-inline:auto}.site-header{background:var(--ink);color:var(--paper);border-bottom:3px solid #151811}.header-inner{height:65px;display:flex;align-items:center;justify-content:space-between}.brand,.header-actions,.header-btn,.title-row,.mode,.eyebrow,h2,.best,.best>span,.stability-row,.stability-badge,.live-badge,.view-label,.view-hint,.stage-selection,.guide-title,.button{display:flex;align-items:center}.brand{gap:10px}.brand-mark svg{width:37px;height:37px}.wordmark{font:900 29px/.95 Arial Black,Arial,sans-serif;letter-spacing:-1.9px;transform:skew(-5deg)}.wordmark span{color:var(--yellow)}.brand-zh{margin-left:6px;padding-left:16px;border-left:1px solid #75776a;font-size:13px;font-weight:650;letter-spacing:.1em;color:#ecece0}.header-actions{gap:10px}.header-btn{background:transparent;color:#eeeee4;border:1px solid #66695b;border-radius:7px;gap:8px;padding:8px 13px;font-size:12px;font-weight:650}.header-btn svg{width:16px;height:16px}.header-btn:hover{background:#45483d;border-color:#b6b7a8}.intro{padding:clamp(24px,3.4vh,38px) 0 22px}.eyebrow{gap:8px;font:800 11px/1.2 Arial,sans-serif;letter-spacing:.16em}.eyebrow span{width:23px;height:6px;background:var(--yellow);border:1px solid var(--ink);transform:skew(-20deg)}.title-row{gap:17px;margin-top:7px}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,3.6vw,49px);font-weight:900;line-height:1.2;letter-spacing:-.055em}.mode{gap:5px;border:var(--border);background:var(--yellow);padding:4px 9px;border-radius:5px;font-size:12px;font-weight:800;transform:rotate(-4deg);box-shadow:1.5px 1.5px 0 var(--ink)}.mode svg{width:14px;height:14px}.intro p{margin-top:9px;color:#63665b;font-size:14px;font-weight:500}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(246px,27%);gap:clamp(17px,2vw,27px);align-items:stretch}.stage-frame,.panel,.guide{border:var(--border);border-radius:11px;box-shadow:var(--shadow)}.stage-frame{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fbfaf3}.stage{flex:1;position:relative;isolation:isolate;overflow:hidden;min-height:408px;background-color:#efe6c6;background-image:radial-gradient(circle at 1px 1px,#8d805b48 .85px,transparent .95px),radial-gradient(ellipse at 45% 36%,#faf3db,#f3ebd0 48%,#e9dfbe);background-size:14px 14px,100% 100%}#scene{position:absolute;inset:0;z-index:1;touch-action:none}#scene:focus-visible{outline-offset:-4px}.stage-top{position:absolute;left:20px;right:20px;top:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:2}.live-badge{gap:8px;border:1px solid #676c50;background:#fffdf1;padding:5px 10px;font-size:11px;font-weight:700;border-radius:5px}.live-badge b,.stability-badge b{display:inline-block;width:7px;height:7px;background:#609758;border-radius:50%}.live-badge b{box-shadow:0 0 0 2.5px #63976123}.live-badge.finished b{background:#af6e37}.view-label{gap:5px;color:#666452;font:700 10px/1 Consolas,monospace;letter-spacing:.13em}.view-label svg{width:14px;height:14px}.ruler{position:absolute;left:0;top:23%;height:51%;width:8px;opacity:.38;background:repeating-linear-gradient(to bottom,#8b805e 0 1px,transparent 1px 10px);pointer-events:none}.ruler:after{content:"";display:block;height:100%;width:13px;background:repeating-linear-gradient(to bottom,#81775a 0 1px,transparent 1px 50px)}.first-hint{position:absolute;z-index:2;right:calc(50% + clamp(88px,13vh,132px));top:38%;width:128px;pointer-events:none;color:#716a4f}.first-hint span{display:inline-block;transform:rotate(-7deg);padding:2px 5px;font-size:12px;font-weight:650;letter-spacing:.05em;background:#fff0a9;border-bottom:1px solid #b5a45c}.first-hint svg{width:70px;height:31px;margin:1px 0 0 51px}.axis{position:absolute;z-index:2;left:19px;bottom:12px;width:53px;pointer-events:none}.view-tools{position:absolute;z-index:2;right:18px;bottom:16px;display:flex;border:var(--border);border-radius:6px;box-shadow:1.5px 1.5px #4b4d40;overflow:hidden;background:#fbfaf1}.view-tools button{display:grid;place-items:center;border:0;background:transparent;width:33px;height:31px}.view-tools button+button{border-left:1px solid #c5c4b8}.view-tools svg{width:15px;height:15px}.view-tools button:hover{background:var(--yellow)}.stage-footer{min-height:43px;border-top:var(--border);padding:9px 18px;display:flex;align-items:center;gap:19px}.view-hint,.stage-selection{gap:6px;color:#646759;font-size:11px;font-weight:580;white-space:nowrap}.view-hint svg,.stage-selection svg{width:15px;height:15px}.stage-selection{margin-left:auto;color:#434638}.touch-hint{display:none}.sidebar{display:flex;flex-direction:column;gap:15px;min-width:0}.panel{background:#fffef6}h2{font-size:17px;font-weight:800;line-height:1.5;gap:9px;letter-spacing:-.025em}h2 [data-icon] svg{width:20px;height:20px}.score-panel{background:var(--yellow);overflow:hidden}.score-top{position:relative;padding:17px 20px 10px;display:flex;align-items:center;justify-content:space-between;min-height:117px}.score-line{display:flex;align-items:baseline;gap:9px;margin-top:1px}.score-line strong,.metrics strong,.best strong,.result-number{font-family:Bahnschrift,Arial,sans-serif;font-variant-numeric:tabular-nums}.score-line strong{font-size:64px;line-height:1;font-weight:800;letter-spacing:-.08em}.score-line>span{font-size:15px;font-weight:750}.medal{width:clamp(76px,7vw,100px);transform:rotate(6deg);margin:2px 0 0 7px}.best{border-top:1px dashed #898044;justify-content:space-between;margin:0 19px;padding:10px 1px 11px;font-size:12px;font-weight:650}.best>span{gap:7px}.best svg{width:15px;height:15px}.best strong{font-size:17px}.best small{font:600 11px system-ui}.status-panel{padding:17px 20px 15px;flex:1;display:flex;flex-direction:column;justify-content:center}.stability-row{justify-content:space-between;margin-top:15px;font-size:12px;font-weight:550;color:#646858}.stability-badge{border-radius:4px;background:#e5efd8;color:#416b38;padding:2px 7px;gap:5px;font-size:11px;font-weight:750}.stability-badge b{width:5px;height:5px;background:currentColor}.meter{display:grid;grid-template-columns:repeat(18,minmax(0,1fr));gap:3px;margin:8px 0 15px}.meter span{height:9px;border-radius:1.5px;background:#65975d}.meter span.off{background:#e2e3d8!important}.status-panel[data-state=caution] .meter span{background:#d6a534}.status-panel[data-state=caution] .stability-badge{background:#faedc8;color:#8b690e}.status-panel[data-state=risk] .meter span{background:#c7734c}.status-panel[data-state=risk] .stability-badge{background:#f6e0d4;color:#934321}.metrics{border-top:1px dashed #c7c9b9;display:grid;grid-template-columns:1fr 1fr;padding-top:12px}.metrics>div+div{border-left:1px solid #d5d7c8;padding-left:20px}.metrics>div>span{font-size:11px;color:#646858;font-weight:600}.metrics p{margin-top:4px;display:flex;align-items:baseline;gap:6px}.metrics strong{font-size:27px;font-weight:750;letter-spacing:-.045em;line-height:1}.metrics small{font-size:11px;color:#656859}.action-area{display:grid;gap:10px}.button{justify-content:center;border:var(--border);border-radius:7px;gap:9px;font-size:14px;font-weight:700;position:relative;transition:transform .13s,box-shadow .13s,background .13s}.main-button{background:var(--ink);color:#fff;height:46px;box-shadow:2.5px 2.5px #928956}.main-button>i:first-child{color:var(--yellow)}.main-button .button-arrow{position:absolute;right:15px;color:var(--yellow)}.main-button:hover{background:#424635}.restart-button{background:#fcfbf3;height:41px;box-shadow:2px 2px 0 var(--ink)}.restart-button:hover{background:#f0efdf}.button:active:not(:disabled){transform:translate(2px,2px);box-shadow:none}.guide{margin:25px 0 36px;box-shadow:2px 2px #a3a492;background:#fffdf3;padding:18px 20px;display:grid;grid-template-columns:.83fr 1.35fr 1.48fr 1.4fr;align-items:center}.guide-title{gap:9px}.guide-title h2{font-size:16px;white-space:nowrap}.guide-symbol{width:29px;height:29px;background:var(--yellow);border:1.2px solid var(--ink);border-radius:6px;display:grid;place-items:center;transform:rotate(-5deg)}.guide-symbol svg{width:18px;height:18px}.guide-step{display:flex;gap:10px;align-items:center;padding:0 8px 0 16px;border-left:1px dashed #bebfaf}.step-art{width:40px;flex-shrink:0}.step-art svg,.medal svg{width:100%;height:auto}.guide-step h3{font-size:13px;font-weight:780}.guide-step p{font-size:11px;color:#6a6c60;margin-top:4px}.sr-only{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}.scene-error{position:absolute;z-index:3;inset:35% 12% auto;background:#fffdf2;border:var(--border);padding:20px;border-radius:8px;text-align:center;font-size:14px}dialog{color:var(--ink);background:#fffdf3;padding:0;width:min(420px,calc(100% - 32px));max-height:85dvh;border:2px solid var(--ink);border-radius:12px;box-shadow:5px 5px 0 var(--ink)}dialog::backdrop{background:#22261b70;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-inner{padding:28px}.dialog-close{display:grid;place-items:center;position:absolute;right:14px;top:14px;width:30px;height:30px;background:transparent;border:0;border-radius:4px}.dialog-close:hover{background:#eeeeda}dialog h2{margin:5px 28px 12px 0;font-size:24px}dialog p{font-size:14px;line-height:1.8;color:#595e4e}dialog .button{margin-top:20px;width:100%;height:42px;color:var(--ink);box-shadow:2px 2px 0 var(--ink);background:var(--yellow)}.help-list{margin:0;padding-left:1.4em;color:#555b4c;font-size:14px;line-height:1.8}.help-list li+li{margin-top:8px}.pick-list{margin-top:16px;max-height:51vh;overflow:auto;overscroll-behavior:contain;padding-right:4px}.pick-level{display:grid;grid-template-columns:45px repeat(3,1fr);align-items:center;gap:8px;margin-bottom:9px}.pick-level>span{font:700 13px Consolas,monospace;color:#636953}.pick-level button{background:#ebd0a3;border:1px solid #5b503b;border-radius:4px;padding:6px;font-size:12px}.pick-level button:hover{background:var(--yellow)}.pick-level button:disabled{background:transparent;opacity:.45;border-style:dashed;cursor:default}.result-number{font-size:56px;font-weight:800;margin:12px 0;line-height:1}.result-number small{font:600 15px system-ui}@media(min-width:1160px)and (min-height:850px){.intro{padding-top:34px;padding-bottom:26px}.stage{min-height:min(51vh,535px)}.score-top{padding-top:20px;padding-bottom:15px}.sidebar{gap:18px}.guide{padding-block:22px}}@media(max-width:960px){.first-hint{display:none}.guide{grid-template-columns:repeat(3,1fr);row-gap:15px}.guide-title{grid-column:1 / -1}.guide-step:nth-child(2){padding-left:0;border:none}.guide-step{gap:6px}.step-art{width:34px}.score-top,.status-panel{padding-inline:16px}}@media(max-width:720px){.wrap{width:calc(100% - 32px)}.header-inner{height:57px}.brand-mark svg{width:30px;height:30px}.brand{gap:7px}.wordmark{font-size:24px}.brand-zh{display:none}.header-btn{padding:7px 9px;font-size:11px}.header-actions{gap:6px}.intro{padding:22px 0 16px}.intro p{font-size:12px}.title-row{gap:13px;margin-top:5px}h1{font-size:37px}.game-layout{display:flex;flex-direction:column;gap:15px}.stage{min-height:0;height:clamp(310px,90vw,430px);flex:none}.stage-top{left:13px;right:13px;top:12px}.stage-footer{padding:8px 10px;gap:12px;min-height:38px}.view-hint,.stage-selection{font-size:10px;gap:4px}.axis{left:10px;width:43px}.view-tools{right:11px;bottom:12px}.sidebar{display:grid;grid-template-columns:.95fr 1.05fr;gap:12px}.score-top{min-height:85px;padding:11px 12px 6px}.score-line strong{font-size:45px}.score-line{gap:5px}.score-line>span{font-size:12px}.medal{width:46px;margin-left:0}.best{margin-inline:10px;font-size:10px;padding:6px 1px}.status-panel{padding:10px 12px}h2{font-size:14px;gap:5px}h2 [data-icon] svg{width:16px;height:16px}.stability-row{margin-top:6px;font-size:10px}.stability-badge{font-size:9px}.meter{gap:2px;margin:5px 0 7px}.meter span{height:6px}.metrics{padding-top:5px}.metrics>div>span{font-size:9px}.metrics>div+div{padding-left:9px}.metrics p{margin-top:2px;gap:4px}.metrics strong{font-size:18px}.metrics small{font-size:9px}.action-area{grid-column:1 / -1;grid-template-columns:1.35fr 1fr}.action-area .button{height:41px}.guide{margin-top:18px;padding:14px;grid-template-columns:1fr;gap:10px}.guide-title{grid-column:auto;padding-bottom:3px}.guide-step,.guide-step:nth-child(2){border:0;padding:0;gap:12px}.guide-step>div{display:flex;align-items:baseline;gap:10px}.guide-step p{margin:0}.step-art{width:30px}}@media(hover:none){.touch-hint{display:inline}.desktop-hint{display:none}}@media(max-width:360px){.header-btn span{display:none}.medal{width:34px}.stage-footer{gap:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important}}
