:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#59351e;background:#fff1da;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 5% 5%,#eddcff 0,transparent 42%),radial-gradient(ellipse at 100% 70%,#ffd6dd 0,transparent 48%),linear-gradient(#fff6e1,#ffe7d0);min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #287457;outline-offset:4px}[hidden]{display:none!important}.pf-shell{width:min(100%,590px);margin:auto;padding:12px 18px max(22px,env(safe-area-inset-bottom))}.pf-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#865735;gap:6px}.pf-top>a{padding:10px 0;min-height:44px}.pf-top>div{display:flex;gap:6px}.pf-top button{width:40px;height:40px;border:1px solid #d4ae71;border-radius:50%;color:#79501e;background:#fff9e9;font-weight:700;font-size:20px}.pf-title{text-align:center;margin:8px 0 17px}.pf-eyebrow{font-size:11px;letter-spacing:.2em;color:#a06835}.pf-title h1{font-size:clamp(36px,8vw,50px);letter-spacing:.12em;margin:1px 0;font-weight:900;color:#a65328;text-shadow:0 2px #fff5c4,2px 3px #f2c275}.pf-title p{margin:4px 0 0;font-size:12px;color:#9b6746}.pf-modes{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:16px}.pf-modes button{padding:9px 0;min-height:52px;background:#fff8e8;border:1px solid #e3c291;border-radius:12px;color:#81552e;font-size:14px;font-weight:700;box-shadow:0 3px 0 #e5c292}.pf-modes button small{display:block;font-size:9px;margin-top:3px;font-weight:400}.pf-modes button[aria-pressed=true]{background:#a84f2d;color:#fff9d7;border-color:#8c3c22;box-shadow:0 3px 0 #773b23}.pf-hud{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin:0 2px 14px;font-size:12px}.pf-hud>div{display:flex;gap:12px;align-items:center}.pf-hud strong{font-weight:700;color:#773d25}.pf-hud #pfCount{color:#966746}.pf-hud #pfPercent{font-weight:900;color:#528047}.pf-hud progress{appearance:none;width:100%;height:9px;border:none;border-radius:8px;overflow:hidden;background:#e8cfab}.pf-hud progress::-webkit-progress-bar{background:#e8cfab}.pf-hud progress::-webkit-progress-value{background:linear-gradient(90deg,#82ad67,#4e825a);border-radius:8px}.pf-hud progress::-moz-progress-bar{background:#5f915c}.pf-board-wrap{position:relative;background:#f7ce7a;padding:9px;border:3px solid #c8863d;outline:2px solid #ffe9a8;border-radius:17px;box-shadow:0 7px 0 #cb8a50,0 16px 28px #7d4b241c,inset 0 0 0 2px #fff1ba;overflow:hidden}.pf-board-wrap:before{content:'';position:absolute;inset:4px;border:1px dashed #e4aa4a;border-radius:11px;pointer-events:none}canvas{display:block;width:100%;height:auto;touch-action:none;border-radius:7px;background:#eccb88;user-select:none}.pf-message{font-size:12px;line-height:1.8;min-height:44px;text-align:center;color:#8c5b34;margin:15px 0 7px;overflow-wrap:anywhere}.pf-tools{display:flex;justify-content:center;gap:18px}.pf-tools>div{width:132px;text-align:center}.pf-tools>div>button:first-child{width:100%;display:flex;justify-content:center;align-items:center;gap:8px;min-height:68px;background:linear-gradient(#fffaf0,#ffe0a2);border:2px solid #c58b46;border-radius:14px;box-shadow:0 4px 0 #b57b42;color:#77502c}.pf-tools span{font-size:32px}.pf-tools b{font-size:15px}.pf-tools small{display:block;font-size:12px;font-weight:400;margin-top:2px}.pf-tools .pf-buy{border:0;background:transparent;color:#925738;font-size:11px;padding:12px 0;min-height:42px}.pf-wallet{text-align:center;font-size:11px;line-height:1.8;color:#946a4d;min-height:24px}.pf-wallet a{margin-left:6px;color:#487355;text-decoration:underline}.pf-wallet button{display:block;margin:6px auto;border:1px solid #c58b46;background:#fff7e5;padding:10px;min-height:44px;border-radius:8px;color:#774b2c}.pf-bottom{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:14px}.pf-bottom button{font-size:12px;min-height:44px;padding:8px 13px;background:#fff9ed;border:1px solid #d7af76;color:#865329;border-radius:9px}.pf-bottom span{font-size:10px;color:#a17a5b}.pf-note{font-size:10px;line-height:1.8;color:#a27b5b;text-align:center;margin:12px 0 0}footer{margin:20px 0 0;border-top:1px solid #dfbf99;padding-top:14px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#96704d}dialog{width:min(350px,calc(100% - 36px));border:3px solid #c98b49;border-radius:21px;background:#fff4db;color:#663f25;padding:26px 22px;box-shadow:0 12px 70px #4c261d55}dialog::backdrop{background:#4b261d88;backdrop-filter:blur(3px)}dialog h2{margin:0 0 12px;text-align:center;font-size:23px}dialog p{font-size:13px;line-height:1.9;white-space:pre-line;margin:0 0 20px}dialog button{display:block;width:100%;min-height:46px;margin-top:10px;border:1px solid #98512e;border-radius:10px;background:#ae532d;color:#fff7e8;font-size:14px}dialog button.secondary{background:#fff6e2;color:#805530;border-color:#d1ac72}.pf-sr{position:absolute;left:0;top:0;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.pf-board-wrap.shake{animation:pf-shake .16s ease-in-out}@keyframes pf-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@media(min-width:700px){.pf-shell{padding-top:20px}.pf-title{margin:12px 0 20px}.pf-board-wrap{margin:0 12px}.pf-title h1{font-size:48px}}@media(max-width:350px){.pf-shell{padding:8px 12px 20px}.pf-top>span{font-size:10px}.pf-modes{gap:4px}.pf-modes small{font-size:8px}.pf-tools{gap:12px}.pf-title h1{font-size:35px}.pf-bottom button{padding:8px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.pf-rank-entry{text-align:center;margin:16px 0 6px}.pf-rank-entry button{background:#fff5dd;border:1px solid #d3a464;border-radius:12px;color:#865329;padding:10px 25px;min-height:44px;font:inherit;font-weight:700}.pf-rank-entry small{display:block;margin-top:7px;font-size:10px;color:#956c49}.pf-credit{text-align:center;font-size:9px;line-height:1.8;color:#9b7856;margin-top:18px}.pf-credit a{text-decoration:underline}dialog{max-height:85dvh;overflow:auto}

.pf-loading{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px 24px;text-align:center;gap:16px;color:#865329}.pf-load-icon{font-size:54px}.pf-loading h1{font-size:40px;letter-spacing:.1em;color:#a65328;margin:0;text-shadow:0 2px #fff5c4,2px 3px #f2c275}.pf-loading p{font-size:13px;margin:0;min-height:28px;line-height:1.8}.pf-loading progress{appearance:none;width:min(280px,80vw);height:12px;border:none;border-radius:10px;overflow:hidden;background:#e8cfab}.pf-loading progress::-webkit-progress-bar{background:#e8cfab}.pf-loading progress::-webkit-progress-value{background:linear-gradient(90deg,#9abb75,#52835c);border-radius:10px}.pf-loading progress::-moz-progress-bar{background:#52835c}.pf-loading strong{font-size:15px;color:#52835c}.pf-loading small{font-size:11px;color:#a17a5b}.pf-loading button{min-height:46px;min-width:140px;padding:10px 22px;border:1px solid #98512e;border-radius:10px;background:#ae532d;color:#fff7e8}
