:root{color:#354332;font-synthesis:none;-webkit-font-smoothing:antialiased;--paper:#f7f2e7;--ink:#354332;--muted:#737964;--green:#638544;--border:#ddd7c6;--serif:"Songti SC", "STSong", "SimSun", serif;background:#f7f2e7;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border:0}button:disabled{cursor:default}button,[role=button]{outline-offset:3px}:focus-visible{outline:3px solid #4e792d}[hidden]{display:none!important}.icon{vertical-align:middle;flex-shrink:0;width:22px;height:22px}.game-shell{width:min(100%,600px);height:100vh;height:100dvh;max-height:960px;padding:max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));flex-direction:column;gap:8px;margin:0 auto;display:flex}.masthead{flex:0 0 48px;justify-content:space-between;align-items:center;gap:10px;display:flex}#chapter{letter-spacing:1px;margin:0;font-size:22px;font-weight:700;line-height:1.3}.icon-button{color:#71765f;background:#fffaf0;border:1px solid #e3dccb;border-radius:16px;place-items:center;width:48px;min-width:48px;height:48px;display:inline-grid}.icon-button:hover{background:#efe9d9}.level-menu{background:#fffaf0;border:1px solid #e3dccb;border-radius:16px;align-items:center;gap:7px;min-width:82px;height:48px;padding:0 12px;font-size:15px;font-weight:600;display:flex}.level-menu .icon{width:19px;height:19px}.masthead #help{margin-left:34px}.answer-section{flex:none;width:100%;max-width:366px;margin-inline-start:auto;margin-inline-end:auto}.section-label{color:#777c68;justify-content:space-between;align-items:center;min-height:22px;margin-bottom:5px;font-size:14px;display:flex}#found-counter{font-variant-numeric:tabular-nums;color:#777c68;font-size:15px}#found-counter b{color:#537b35;font-size:18px}.answers{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;display:grid}.answer-slot{aspect-ratio:1;background:#fffcf4;border:1.5px dashed #d7cfb9;border-radius:11px;place-items:center;min-width:0;display:grid}.answer-slot.found{color:#426b2b;font:600 32px/1 var(--serif);background:#e6f0d7;border:1.5px solid #a9c48b}.answer-glyph{pointer-events:none;transform-origin:50%;display:inline-block}.answer-slot.found:hover{background:#dcebc8}.board-section{flex-direction:column;flex:1;gap:4px;min-width:0;min-height:238px;display:flex}.board-stage{flex:1;place-items:center;min-width:0;min-height:190px;display:grid;container-type:size}.board-frame{aspect-ratio:1;background:#fffcf2;border:2px solid #ded4bc;border-radius:24px;width:min(100%,360px);padding:6px;position:relative;box-shadow:0 3px #e8dfcd}@supports (width:1cqw){.board-frame{width:min(100cqw,100cqh,560px)}}@supports not (width:1cqw){.game-shell{height:auto;min-height:100vh;max-height:none}.board-stage{min-height:0}}#board{aspect-ratio:1;width:100%}.character-svg{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y pinch-zoom;width:100%;height:100%;display:block;overflow:visible}.rice-grid{fill:none;stroke:#d8cfb8;stroke-width:2.5px;stroke-dasharray:13 13;opacity:.6}.ink-stroke{fill:#aaa796;transition:fill .12s}.ink-stroke.selected{fill:#355a32}.hit-stroke{cursor:pointer;outline:none}.hit-stroke:focus-visible{stroke:#b28b3c;stroke-opacity:.8;stroke-width:5px}.board-tools{flex:0 0 44px;justify-content:space-between;align-items:center;gap:8px;width:100%;max-width:560px;margin-inline-start:auto;margin-inline-end:auto;display:flex}.text-button{color:#616b50;background:#ecebdc;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-width:80px;min-height:44px;padding:0 10px;font-size:15px;display:inline-flex}.text-button .icon{width:18px;height:18px}.text-button:disabled{opacity:.45}.selection-count{color:#7a806b;font-size:14px}.play-controls{flex:none;width:100%}.feedback{color:#6c735e;justify-content:center;align-items:center;height:28px;padding:0 0 4px;font-size:15px;font-weight:500;line-height:1.4;display:flex}.feedback.success{color:#4c772e}.feedback.gentle{color:#a06632}.feedback.hint-feedback{color:#547731}.game-toast{top:auto;bottom:auto;left:auto;right:auto;top:max(70px, calc(env(safe-area-inset-top) + 60px));z-index:10000;color:#6e5127;text-align:center;pointer-events:none;overflow-wrap:anywhere;background:#fff1cc;border:1px solid #e4c680;border-radius:16px;width:max-content;max-width:min(420px,100vw - 28px);margin:0;padding:13px 19px;font-size:16px;font-weight:600;line-height:1.5;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 5px 24px #55452629}.game-toast.error{color:#894d32;background:#fff0e7;border-color:#dfb398}.game-toast:not([hidden]){animation:.18s ease-out toast-arrive}.action-row{grid-template-columns:74px minmax(0,1fr) 74px;gap:8px;padding-bottom:3px;display:grid}.primary{background:var(--green);color:#fffef8;letter-spacing:1px;border:1px solid #56793b;border-radius:16px;justify-content:center;align-items:center;gap:10px;width:100%;min-height:54px;padding:12px 16px;font-size:18px;font-weight:700;transition:transform .12s,background .12s;display:flex;box-shadow:0 3px #4d7034}.primary:hover:not(:disabled){background:#557b37}.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #4d7034}.primary:disabled{color:#fffef9;background:#b9c7a6;border-color:#afbe9c;box-shadow:0 3px #a3b38f}.side-action{border-radius:15px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:44px;min-height:54px;font-size:14px;font-weight:600;display:flex}.side-action .icon{width:20px;height:20px}.hint-button{color:#98702e;background:#f8e8b8}.skip-button{color:#687f89;background:#e6edef}.side-action:disabled{opacity:.4}.storage-alert{color:#935e31;background:#ffedcf;border-radius:10px;flex:none;justify-content:space-between;align-items:center;min-height:44px;padding:0 10px;font-size:14px;display:flex}.recovery-link{color:#7e542e;background:0 0;min-width:72px;min-height:44px;padding:0 8px;font-size:14px;text-decoration:underline}.sheet{width:min(460px,100% - 24px);max-height:90vh;max-height:90dvh;color:var(--ink);overscroll-behavior:contain;background:#fffaf0;border:1px solid #e0d6c4;border-radius:24px;padding:0;box-shadow:0 18px 80px #322b2233}.sheet::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#37402f66}#dialog-content{padding:20px}.sheet-header{justify-content:space-between;align-items:center;gap:10px;display:flex}h2{margin:0;font-size:23px;font-weight:700;line-height:1.4}.sheet-description{color:#747b65;margin:12px 0 18px;font-size:15px;line-height:1.7}.level-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.level-pager{z-index:1;background:#fffaf0;align-items:center;gap:10px;margin:0 0 14px;padding-block-start:5px;padding-block-end:5px;display:flex;position:sticky;top:0}.page-button{background:#ecebdc;border-radius:12px;flex:0 0 44px;height:44px;font-size:28px}.page-button:disabled{opacity:.35}#level-range{min-width:0;min-height:44px;color:inherit;font:inherit;background:#fffdf7;border:1px solid #d7cfb9;border-radius:12px;flex:1;padding:8px 12px}.credits-link{color:#747b65;width:-moz-fit-content;width:fit-content;margin:10px auto 0;padding:10px;font-size:13px;display:block}.level-card{background:#f2eddf;border:1.5px solid #e1d9c6;border-radius:13px;flex-direction:column;align-items:center;gap:6px;padding:8px 3px;display:flex}.level-number{color:#777c68;align-self:flex-start;padding-left:6px;font-size:12px}.level-character{font:600 33px var(--serif)}.level-progress{color:#7c816d;font-size:12px}.level-card.current{background:#e9f2da;border-color:#83a660}.level-card.done{background:#e2edcf}.level-card.done .level-number{color:#547f34}.sheet-note{color:#81816e;margin:16px 0 0;font-size:13px;line-height:1.7}.help-body{margin-top:18px}h3{margin:0 0 8px;font-size:17px;font-weight:600}.help-step p,.install-card p{color:#727a62;margin:0;font-size:15px;line-height:1.8}.install-card{background:#f0efdf;border-radius:14px;gap:12px;margin-top:20px;padding:16px;display:flex}.install-card>.icon{color:#6c8750;margin-top:2px}.install-card .offline-status{color:#8a743e;margin-top:9px;font-size:14px}.install-card .offline-status.ready{color:#4b782f}.sheet-primary{margin-top:22px}.storage-warning{color:#9c6632;font-size:14px;line-height:1.7}.completion-content{text-align:center;padding:12px 0 0;position:relative}.completion-close{position:absolute;top:-8px;right:-6px}.completion-seal{outline-offset:5px;width:88px;height:88px;font:58px var(--serif);color:#557934;background:#e4efcf;border:1px solid #b9ce99;border-radius:20px;outline:1px solid #dbe7c6;place-items:center;margin:10px auto 25px;display:grid;position:relative}.completion-seal>span{color:#fff;background:#718f49;border:3px solid #fffaf0;border-radius:50%;place-items:center;width:30px;height:30px;display:grid;position:absolute;bottom:-8px;right:-8px}.completion-seal .icon{width:17px}.completion-sparkles{pointer-events:none;contain:paint;border-radius:20px;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.completion-sparkle{opacity:0;pointer-events:none;background:#c4a35c;border-radius:3px;width:8px;height:12px;position:absolute;top:56px;left:calc(50% - 4px)}.completion-sparkle.leaf{background:#8ca567}.completion-sparkle.peach{background:#d6a27d}.completion-answers{flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0;display:flex}.completion-answers span{font:29px var(--serif);background:#edf0dd;border-radius:9px;place-items:center;width:44px;height:46px;display:grid}.quiet-button{color:#748062;background:0 0;width:100%;min-height:48px;margin-top:8px;font-size:15px;display:block}.recovery-actions{margin-top:20px}.startup-error{text-align:center;max-width:380px;margin:15vh auto;padding:24px}.startup-error h1{font-size:24px}.startup-error p{color:#727a62;margin-bottom:24px;font-size:16px;line-height:1.8}.brand-seal{width:40px;height:44px;font:30px var(--serif);color:#a47a4b;border:2px solid #a47a4b;border-radius:8px;place-items:center;display:inline-grid}@keyframes toast-arrive{0%{opacity:0;transform:translate(-50%,-7px)}to{opacity:1;transform:translate(-50%)}}@media (min-width:700px){.game-shell{gap:14px;margin-block-start:max(0px,50dvh - 480px);margin-block-end:max(0px,50dvh - 480px);padding:20px}#chapter{font-size:26px}.answer-slot.found{font-size:36px}.board-frame{border-radius:30px}.text-button{min-width:96px;font-size:16px}.action-row{grid-template-columns:92px minmax(0,1fr) 92px;gap:12px}.primary,.side-action{min-height:60px}.side-action{font-size:16px}}@media (min-width:900px),(min-width:680px) and (max-height:600px){.game-shell{width:min(1000px,100% - 32px);height:calc(100vh - 32px);background:#fbf7ed;border:1px solid #e1d8c5;border-radius:28px;grid-template-rows:48px minmax(0,1fr) auto;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:14px 24px;height:calc(100dvh - 32px);max-height:720px;margin:max(16px,50dvh - 360px) auto;padding:22px;display:grid}.masthead{grid-area:1/1/auto/-1}.answer-section{grid-area:2/1;align-self:center}.board-section{grid-area:2/2/4;align-self:stretch;min-height:0}.board-stage{min-height:0}.play-controls{grid-area:3/1}.storage-alert{grid-area:2/1/auto/-1}.game-shell:has(.storage-alert:not([hidden])){grid-template-rows:48px auto minmax(0,1fr) auto}.game-shell:has(.storage-alert:not([hidden])) .answer-section{grid-row:3}.game-shell:has(.storage-alert:not([hidden])) .board-section{grid-row:3/5}.game-shell:has(.storage-alert:not([hidden])) .play-controls{grid-row:4}.action-row{grid-template-columns:72px minmax(0,1fr) 72px;gap:8px}}@media (min-width:680px) and (max-height:600px){.game-shell{width:100%;height:100vh;border:0;border-radius:0;gap:8px 18px;height:100dvh;margin:0;padding:8px 14px}.primary,.side-action{min-height:52px}.board-tools{flex-basis:44px}#chapter{font-size:22px}}@media (max-width:359px){#chapter{font-size:20px}.game-shell{gap:6px}.feedback{font-size:14px}#dialog-content{padding:16px}.level-grid{gap:7px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
