@font-face{font-family:SanheSourceSerif;src:url("/assets/mobile-ui/fonts/sanhe-ui-serif-heavy.woff2") format("woff2");font-weight:700 900;font-style:normal;font-display:swap;}
:root{--wordless-ink-art:url("/assets/treasure-ui/ink-header.png");--nav-background-paint:linear-gradient(to bottom,#fdfcf9ee 25%,#fbfaf798),var(--wordless-ink-art);--paper:#faf8f5;--ink:#11243f;--accent:#173f86;--muted:#858995;--line:#dedbd6;--surface:#fffdfa;--safe-bottom:env(safe-area-inset-bottom,0px);--nav-space:calc(100px + var(--safe-bottom));font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:#eeece8;font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #819ac1;outline-offset:3px}svg.icon{height:23px;width:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;height:1px;width:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mobile-shell{max-width:480px;margin:auto;min-height:100vh;min-height:100dvh;background:var(--paper);padding-bottom:var(--nav-space);box-shadow:0 0 35px #11243f08}.ink-header{background-color:var(--paper);background-image:linear-gradient(to bottom,#faf8f500,#faf8f540 50%,var(--paper)),url('/assets/treasure-ui/ink-header.png');background-size:100% auto;background-repeat:no-repeat}.masthead{min-height:100px;display:grid;grid-template-columns:88px 1fr 88px;align-items:center;padding:15px 16px 6px}.masthead h1{font-family:"Songti SC","Noto Serif CJK SC","SimSun",serif;font-weight:700;text-align:center;margin:0;color:var(--ink);font-size:30px;letter-spacing:3px;white-space:nowrap}.masthead.subpage{grid-template-columns:44px 1fr 44px;min-height:91px}.masthead.subpage h1{font-size:24px;letter-spacing:1px;overflow:hidden;text-overflow:ellipsis}.circle-control{width:41px;height:41px;display:flex;align-items:center;justify-content:center;border:1px solid #e4e0d8;border-radius:50%;color:var(--ink);background:linear-gradient(135deg,#fff,#f9f7f3);box-shadow:0 4px 13px #1d30421a}.masthead .right-control{justify-self:end}.download-entry{font-size:11px;display:flex;align-items:center;gap:5px;white-space:nowrap}.download-entry .icon{width:19px;height:19px}.flourish{height:18px;display:flex;align-items:center;justify-content:center;gap:3px;color:#c4baaa}.flourish:before,.flourish:after{content:"";height:1px;width:43px;background:linear-gradient(to right,transparent,#c4baaa)}.flourish:after{transform:rotate(180deg)}.flourish svg{width:31px;height:18px;fill:none;stroke:currentColor;stroke-width:1.35}
.game-bar{display:grid;grid-template-columns:repeat(3,1fr);margin:0 16px;height:58px}.game-bar button{position:relative;background:none;border:0;font-size:16px;font-weight:500;padding:12px 0 18px;color:#26354b}.game-bar button:not(:last-child):before{content:"";position:absolute;right:0;top:18px;width:1px;height:15px;background:#dedbd6}.game-bar button.selected{color:var(--accent);font-weight:650}.game-bar button.selected:after{content:"";position:absolute;bottom:5px;left:calc(50% - 23px);height:3px;width:46px;border-radius:3px;background:var(--accent)}
.surface{background:linear-gradient(145deg,#fffefc,#f7f5f1);border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 8px #21344c09,inset 0 1px 0 #fff}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 13px}.section-heading h2{font-family:"Songti SC","SimSun",serif;font-size:21px;font-weight:600;margin:0;display:flex;align-items:center;gap:9px}.section-heading h2:before{content:"";width:3px;height:20px;border-radius:3px;background:var(--accent)}.muted,.caption{color:var(--muted);font-size:11px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #173f86;border-radius:9px;background:var(--accent);color:#fff;font-size:12px;min-height:39px;padding:8px 15px;line-height:1.5}.button.secondary{background:#fffdf9;border-color:#d7d8de;color:var(--accent);box-shadow:0 2px 5px #1b2f4908}.button.small{min-height:32px;font-size:11px;padding:6px 10px}.button .icon{width:17px;height:17px}.chip{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:7px 12px;border-radius:8px;border:1px solid #dedbd6;background:#fffdf9;color:#647088;font-size:12px}.chip.selected{background:#e8ecf4;border-color:#cad4e6;color:var(--accent);font-weight:600}.filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 12px}.filter-row select{margin-left:auto;max-width:46%;height:35px;padding:0 10px;border:1px solid #d7d5d0;border-radius:8px;color:var(--ink);background:#fdfbf8;font-size:12px}.empty-state{text-align:center;padding:44px 18px 52px;line-height:1.9;color:var(--muted);font-size:12px}.empty-state>.icon{width:43px;height:43px;margin-bottom:12px;color:#9eabbc;stroke-width:1.2}.empty-state h2,.empty-state h3{font-family:"Songti SC","SimSun",serif;font-size:20px;color:#4d5c73;font-weight:500;margin:0 0 7px}.empty-state p{margin:0 0 15px}.loading{padding:47px 16px;text-align:center;font-size:12px;color:#8b909c}.loading:before{content:"";display:inline-block;vertical-align:-2px;width:13px;height:13px;border:1px solid #d8dee8;border-top-color:var(--accent);border-radius:50%;margin-right:9px;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.app-bottom-nav{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:grid;grid-template-columns:repeat(3,1fr);padding:13px 17px calc(19px + var(--safe-bottom));border:1px solid #dad6d0;border-bottom:0;border-radius:22px 22px 0 0;background-color:#faf9f6;background-image:var(--nav-background-paint);background-repeat:no-repeat;background-size:100% 100%,100% auto;background-position:center,center bottom;box-shadow:0 -4px 20px #11243f0b}.app-bottom-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:46px;font-size:12px;line-height:18px;color:#23334a}.app-bottom-nav .icon{width:25px;height:25px}.app-bottom-nav a[aria-current=page]{color:var(--accent);font-weight:600}.app-bottom-nav a[aria-current=page]:after{content:"";position:absolute;bottom:-9px;left:calc(50% - 16px);width:32px;height:3px;border-radius:3px;background:var(--accent)}.app-bottom-nav a[aria-current=page] .icon{stroke-width:2}
.toast{position:fixed;z-index:100;left:50%;bottom:calc(110px + var(--safe-bottom));transform:translateX(-50%);background:#152b48ed;color:white;font-size:12px;padding:11px 17px;max-width:88vw;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .15s;text-align:center}.toast.show{opacity:1}.error-hint{border:1px solid #e4d9d0;border-radius:10px;background:#fcf8f3;color:#8e7467;padding:13px;font-size:12px;line-height:1.8}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.loading:before{animation:none}.toast{transition:none}}

/* App/WebView scrolling keeps the full design width in desktop mobile preview. */
html{scrollbar-width:none}html::-webkit-scrollbar{display:none}
