@charset "UTF-8";
:root{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#19573d;background:#751e26;font-synthesis:none;--green:#145d3d;--gold:#d5a348;--red:#bf3934;--cream:#fff3e1}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 45%,#ac5342 0%,#79252a 50%,#541821 100%);overflow-x:hidden}body:before,body:after{content:"";position:fixed;width:600px;height:600px;border:1px solid #e3ad7140;transform:rotate(45deg);border-radius:80px;pointer-events:none}body:before{left:-330px;top:-240px}body:after{right:-330px;bottom:-240px}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,canvas:focus-visible{outline:3px solid #4f967a;outline-offset:4px}button:disabled{cursor:wait;opacity:.55}.hidden{display:none!important}.phone{position:relative;width:min(100vw,440px);height:min(94svh,850px);overflow:hidden;background:#fff1dd url('assets/background.svg') center/cover;box-shadow:0 25px 100px #26050d66,0 0 0 1px #d9ab6755;border-radius:24px;isolation:isolate}.paper-grain{position:absolute;inset:0;pointer-events:none;z-index:1;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.3' filter='url(%23n)'/%3E%3C/svg%3E")}.foreground{position:absolute;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:2}#game{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;z-index:3;outline:none}.brand{position:absolute;top:4.4%;left:34%;width:32%;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:4;pointer-events:none}.brand img:first-child{width:85%;height:45px;object-fit:contain}.brand .wordmark{height:21px;max-width:86px;object-fit:contain}.icon-button{width:38px;height:38px;border-radius:50%;border:1px solid #dab167;background:#fff7e9d9;display:grid;place-items:center;color:var(--green);box-shadow:0 2px 8px #9b552315}.sound-button{position:absolute;top:5.2%;right:6%;z-index:7;padding:8px}.sound-button svg{width:22px;height:22px}.edition{position:absolute;top:15.3%;width:100%;text-align:center;font-size:12px;letter-spacing:.3em;color:#a77a43;font-weight:600;z-index:4;pointer-events:none}.headline{position:absolute;top:17.6%;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:9px;z-index:4;pointer-events:none}.headline h1{font-family:"STKaiti","Kaiti SC","Songti SC",serif;font-size:clamp(39px,11vw,52px);line-height:1.25;letter-spacing:1px;margin:0;color:#115635;font-weight:900;text-shadow:0 2px 0 #fffbed,1px 2px 0 #c4bc86}.title-flower{font-size:19px;color:#c64d36}.title-sub{position:absolute;top:26%;width:100%;font-size:13px;text-align:center;letter-spacing:2px;color:#8b6543;z-index:4;pointer-events:none}.home-info{position:absolute;top:32.2%;left:15%;width:70%;height:43px;display:flex;align-items:center;justify-content:space-around;border-top:1px solid #dab77d8a;border-bottom:1px solid #dab77d8a;font-size:13px;color:#8b6348;z-index:4}.home-info b{font-size:24px;font-family:Georgia,serif;color:var(--green);padding-right:3px}.home-info i{height:17px;width:1px;background:#d6b383}.float-note{position:absolute;top:73%;left:9%;width:82%;text-align:center;color:#876344;font-size:13px;letter-spacing:2px;z-index:4;pointer-events:none}.home-actions{position:absolute;bottom:6.6%;width:100%;padding:0 11%;z-index:5}.primary{position:relative;width:100%;border:1px solid #e0bb70;border-radius:32px;background:linear-gradient(110deg,#1f704b,#105334);color:#fff4d8;font-weight:700;font-size:21px;letter-spacing:3px;min-height:59px;box-shadow:inset 0 0 0 3px #f6dca65c,0 5px 0 #bc874b55,0 7px 20px #80502025;overflow:hidden;transition:transform .15s}.primary:active{transform:translateY(3px);box-shadow:inset 0 0 0 3px #f6dca65c,0 1px 0 #bc874b55}.primary:before,.primary:after{content:"✿";position:absolute;top:15px;font-size:20px;color:#e9bd6d;font-weight:400}.primary:before{left:18px}.primary:after{right:18px}.button-shine{position:absolute;left:-35%;top:0;width:20%;height:100%;background:linear-gradient(90deg,transparent,#ffffff20,transparent);transform:skewX(-25deg);animation:shine 5s infinite}.home-links{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:17px;white-space:nowrap}.home-links button,.text-button{border:0;background:none;color:#80583d;font-size:13px;padding:4px 0}.home-links span{color:#c7a270}.quiet{text-align:center;font-size:11px;letter-spacing:2px;color:#b0987b;margin:10px 0 0}.bottom-note{position:absolute;bottom:2.3%;width:100%;text-align:center;font-size:10px;letter-spacing:3px;color:#9d896d;z-index:4;pointer-events:none}.hud{position:absolute;left:7%;width:86%;top:31%;display:flex;justify-content:space-between;z-index:4;pointer-events:none}.hud-pill{display:flex;align-items:center;justify-content:center;gap:6px;width:43%;height:47px;border:2px solid #e4bd73;background:linear-gradient(#237547,#125334);color:#fff1cc;box-shadow:0 2px 0 #bd884e66,inset 0 0 0 2px #fff8cd22;border-radius:27px;font-size:15px}.hud-pill b{font-size:31px;font-family:Georgia,serif;line-height:1}.hud-pill.urgent{background:#b43c30;animation:pulse .6s infinite alternate}.round-mode{position:absolute;top:58px;width:100%;text-align:center;color:#9e8061;font-size:11px;letter-spacing:1px}.game-actions{position:absolute;bottom:5.6%;left:8%;width:84%;z-index:5;pointer-events:none}.gesture{background:linear-gradient(90deg,transparent,#fffcf1cc,transparent);font-weight:600;font-size:17px;text-align:center;color:var(--green);padding:5px}.gesture span{display:inline-block;font-size:27px;vertical-align:middle;margin-right:8px;animation:slide 1.6s infinite ease-in-out}.gesture.dim{opacity:0;transition:opacity 1s}.game-controls{display:flex;align-items:center;justify-content:space-between;margin-top:9px;color:#ad9274;font-size:10px}.game-controls button{pointer-events:auto;background:#fff9eeaa;border:1px solid #d3b78c;border-radius:20px;padding:5px 14px;color:#7f684c;font-size:12px}.countdown{position:absolute;inset:0;z-index:15;background:#fff2de7a;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--green)}.countdown>span{font-size:22px;letter-spacing:5px}.countdown>b{font-size:110px;line-height:1.5;font-family:Georgia,serif;text-shadow:2px 4px #dbc081}.countdown>p{font-size:15px;color:#816749}.loading{position:absolute;inset:0;background:#fff3e5f5;display:flex;align-items:center;justify-content:center;gap:20px;flex-direction:column;z-index:25}.loading b{font-size:16px;font-weight:500}.loading progress{appearance:none;border:0;width:50%;height:5px;border-radius:5px;overflow:hidden}.loading progress::-webkit-progress-bar{background:#ead9bb}.loading progress::-webkit-progress-value{background:#22724a}.loader{width:38px;height:38px;border:2px solid #dec69c;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}.toast{position:absolute;bottom:22%;left:10%;width:80%;padding:13px 18px;border-radius:12px;background:#244d3eec;color:#fff6e8;text-align:center;font-size:14px;z-index:40;box-shadow:0 5px 20px #42231320}.modal-backdrop{position:absolute;inset:0;z-index:30;background:#402b2170;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px}.modal{position:relative;background:#fff8ea;border:1px solid #e3c488;box-shadow:0 12px 45px #44251e30;border-radius:24px;padding:33px 25px 27px;width:100%;max-height:85%;overflow:auto;color:#375a46;overscroll-behavior:contain}.modal-close{position:absolute;top:9px;right:14px;line-height:1;border:0;background:none;font-size:28px;color:#a28a67;padding:5px}.modal h2{font-family:"Songti SC",serif;font-size:26px;color:var(--green);margin:0 0 20px;text-align:center}.modal p{font-size:14px;line-height:1.9;margin:12px 0;color:#7c694f}.modal .primary{min-height:49px;font-size:16px;letter-spacing:1px;margin-top:14px}.rule-row{display:flex;gap:14px;align-items:center;margin:17px 0;font-size:14px;line-height:1.65}.rule-row b{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#f6e7c9;color:#93692a;font-family:Georgia,serif;font-size:20px}.rule-mini{display:flex;justify-content:center;gap:20px;align-items:center;padding:9px 0}.rule-mini img{width:65px;height:65px;object-fit:contain}.rule-mini small{font-size:12px;color:#a17f56}.secondary{border:1px solid #c7a467;background:#fff8e8;color:var(--green);border-radius:28px;min-height:48px;font-size:16px;font-weight:600;letter-spacing:1px;width:100%}.result-screen{position:absolute;inset:0;z-index:20;background:#fff3e1 url('assets/poster-background.svg') center/cover;padding:5.2% 9%;text-align:center}.result-top{color:#a88347;font-size:13px;letter-spacing:5px;margin:8px 0 12px}.result-screen h2{font-family:"STKaiti","Kaiti SC","Songti SC",serif;font-weight:900;font-size:39px;letter-spacing:3px;margin:0;color:var(--green)}.score-seal{position:relative;width:148px;height:148px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:20px auto 12px;border:1px solid #e0b973;border-radius:50%;outline:4px double #e0b973;outline-offset:5px;background:radial-gradient(#fffaf0,#fae4bb)}.score-seal:before,.score-seal:after{content:"✦";position:absolute;color:#bd8f43;font-size:18px;top:58px}.score-seal:before{left:12px}.score-seal:after{right:12px}.score-seal b{font-family:Georgia,serif;color:#ba3b31;line-height:1;font-size:73px;font-weight:400}.score-seal span{font-size:13px;color:#a27c47;margin-top:5px;letter-spacing:2px}.result-comment{font-size:14px;color:#8e714b;margin:19px 0 12px;line-height:1.7}.result-meta{display:flex;justify-content:center;gap:10px;font-size:11px;color:#a28357}.result-meta span{border:1px solid #dfc79e;border-radius:20px;padding:4px 12px}.result-art{position:absolute;left:12%;width:76%;height:21%;top:51%;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.result-art img:first-child{width:56%;height:100%;object-fit:contain}.result-art img:last-child{width:44%;height:100%;object-fit:contain;margin-left:-7%}.result-actions{position:absolute;bottom:5%;left:11%;width:78%;display:flex;flex-direction:column;gap:12px}.result-actions .primary{font-size:18px;min-height:55px}.result-actions .text-button{font-size:12px;margin-top:-2px}.desktop-caption{position:fixed;right:32px;bottom:30px;display:flex;flex-direction:column;gap:8px;color:#edccac99;font-size:11px;letter-spacing:3px}.poster-preview{display:block;width:100%;border-radius:14px;margin:0 auto 13px;box-shadow:0 4px 12px #66482030}.poster-links{display:flex;gap:10px;align-items:center;justify-content:center}.poster-links a{display:grid;place-items:center;text-decoration:none;min-height:42px;padding:0 20px;border-radius:25px;background:var(--green);color:#fff1d1;font-size:14px}.record-list{list-style:none;margin:0;padding:0}.record-list li{border-bottom:1px solid #e7d8be;padding:13px 0;display:flex;justify-content:space-between;align-items:center;color:#8b7253;font-size:13px}.record-list b{color:var(--green);font-size:21px}.field{display:block;width:100%;padding:13px;border:1px solid #d9c29e;background:#fffdf7;border-radius:10px;font-size:16px;color:#315642;margin:12px 0}.consent{display:flex;gap:8px;align-items:start;font-size:12px;line-height:1.7;color:#958063;margin:15px 0}.unavailable-tag{display:inline-block;border:1px solid #d6bf91;border-radius:20px;padding:5px 12px;color:#937749;font-size:12px}.debug-legend{position:absolute;top:40%;font-size:11px;color:red;z-index:5;pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes shine{0%,65%{left:-35%}100%{left:130%}}@keyframes pulse{to{filter:brightness(1.3)}}@keyframes slide{50%{transform:translateX(6px)}}
@media(max-width:600px){body{display:block;background:#fff1dd}.phone{height:100svh;width:100vw;max-width:none;border-radius:0;box-shadow:none}.desktop-caption{display:none}body:before,body:after{display:none}.brand{top:calc(3.4% + env(safe-area-inset-top)/2)}.sound-button{top:calc(4.6% + env(safe-area-inset-top)/2)}.headline h1{font-size:12vw}.quiet{font-size:11px}.bottom-note{bottom:calc(1.4% + env(safe-area-inset-bottom)/4)}}
@media(max-height:650px){.brand{top:3%}.brand img:first-child{height:33px}.brand .wordmark{height:16px}.edition{top:14%}.headline{top:17%}.headline h1{font-size:40px}.title-sub{top:27%;font-size:11px}.home-info{top:32%;height:36px}.home-info b{font-size:20px}.home-actions{bottom:6%}.primary{min-height:49px;font-size:18px}.home-links{margin-top:12px}.quiet{display:none}.result-top{margin:0 0 8px}.result-screen h2{font-size:31px}.score-seal{width:112px;height:112px;margin:16px auto 9px}.score-seal b{font-size:55px}.score-seal:before,.score-seal:after{top:43px}.result-comment{margin:15px 0 10px;font-size:12px}.result-actions{gap:8px}.result-actions .primary{min-height:45px;font-size:16px}.secondary{min-height:40px}.hud-pill{height:41px}.hud-pill b{font-size:27px}.round-mode{top:48px}.modal{padding:27px 21px 20px}.game-controls span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.float-note{display:none}

.headline h1{color:var(--green)}.primary,.hud-pill{background:linear-gradient(115deg,color-mix(in srgb,var(--green),white 12%),var(--green))}.hud-pill.urgent{background:#b43c30}.sound-button img{width:22px;height:22px;object-fit:contain}.gesture>img{width:38px;height:24px;vertical-align:middle;object-fit:contain;animation:slide 1.6s infinite ease-in-out}.gesture>.tutorial-hand{width:26px;margin-left:-10px;margin-right:4px}

/* Three simple difficulty choices and model-matched baskets. */
.difficulty-select{position:absolute;top:30.3%;left:10%;width:80%;z-index:5}.difficulty-options{display:flex;gap:8px}.difficulty-options button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 3px;border:1px solid #d6b47b;border-radius:12px;background:#fffaf0c9;color:#8d704d;min-height:51px}.difficulty-options b{font-size:15px;letter-spacing:2px}.difficulty-options span{font-size:10px;letter-spacing:1px}.difficulty-options button[aria-pressed=true]{background:var(--green);color:#fff2d4;border-color:#bd9a54;box-shadow:inset 0 0 0 2px #f4dba342,0 3px 8px #8b60201f}.home-info{top:37.2%;height:29px;left:13%;width:74%;border:0;font-size:12px}.home-info b{font-size:20px}.home-info i{height:13px}.prize-hint{position:absolute;top:41.5%;left:8%;width:84%;text-align:center;font-size:11px;color:#a16f38;letter-spacing:1px;z-index:4;pointer-events:none}.game-actions{bottom:5.2%;left:7%;width:86%}.basket-selector{display:flex;justify-content:center;gap:9px;margin-bottom:7px;pointer-events:auto}.basket-selector button{display:flex;justify-content:center;align-items:center;gap:7px;background:#fffaf0e8;border:1px solid #d3bb90;border-radius:24px;min-height:40px;padding:5px 14px;color:#856b4b;min-width:80px;font-size:13px}.basket-selector button strong{font:700 16px Georgia,serif;display:grid;place-items:center;min-width:23px;height:23px;border-radius:50%;color:var(--model-color);background:color-mix(in srgb,var(--model-color),white 91%)}.basket-selector button[aria-pressed=true]{color:#fff9e6;background:var(--model-color);border-color:#d5b269;box-shadow:inset 0 0 0 2px #fff2d638,0 3px 8px #87672a1f}.basket-selector button[aria-pressed=true] strong{color:var(--model-color);background:#fff7e6}.basket-selector.single button{min-width:170px}.gesture{font-size:12px;padding:1px;line-height:22px;font-weight:500}.gesture>img{height:17px;width:27px}.gesture>.tutorial-hand{width:19px}.game-controls{margin-top:5px}.game-controls button{font-size:11px;padding:4px 12px}.game-controls span{font-size:9px}.round-mode{font-size:11px;letter-spacing:0;top:56px}.result-reward{position:absolute;top:48.6%;left:9%;width:82%;font-size:12px;color:#a16f38;line-height:1.7}.result-art{top:54%;height:18%}.result-meta{font-size:10px;gap:6px}.result-meta span{padding:4px 8px}.rule-models{display:flex;justify-content:center;gap:8px;margin:12px 0}.model-chip{display:inline-block;border-radius:15px;padding:4px 12px;font-size:12px;background:#e8f0df;color:#35684a}.difficulty-prize-note{font-size:12px!important;color:#a07e52!important;text-align:center}
@media(max-height:650px){.difficulty-select{top:30.6%}.difficulty-options button{min-height:43px;padding:5px 2px;gap:2px}.difficulty-options b{font-size:13px}.difficulty-options span{font-size:9px}.home-info{top:38.2%;height:20px;font-size:10px}.home-info b{font-size:17px}.prize-hint{top:42.3%;font-size:10px}.basket-selector{gap:7px;margin-bottom:3px}.basket-selector button{min-height:33px;padding:3px 10px;min-width:70px;font-size:11px}.basket-selector button strong{font-size:14px;height:21px;min-width:21px}.gesture{line-height:17px;font-size:11px}.game-actions{bottom:5.5%}.game-controls{margin-top:3px}.game-controls button{padding:3px 10px}.round-mode{top:47px;font-size:10px}.result-reward{top:48.5%;font-size:10px}.result-art{top:54%;height:18%}}

.prize-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-screen.has-prize .result-art{top:53%;height:13.5%}@media(max-height:650px){.result-screen.has-prize .result-art{top:54%;height:9%}}

/* Difficulty lives in a quiet secondary entry, keeping the hero for the game. */
.home-info{top:31.4%;height:29px}.prize-hint{top:36.4%}.home-links{gap:8px}.home-links button{font-size:12px}.difficulty-modal-options{display:grid;gap:10px}.difficulty-modal-options button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 10px;border:1px solid #d8bd88;border-radius:13px;background:#fffaf0;padding:13px 16px;text-align:left;color:#725e42}.difficulty-modal-options button b{font-size:17px;color:var(--green)}.difficulty-modal-options button span{font-size:12px}.difficulty-modal-options button small{font-size:12px;color:#a27b43;grid-column:1/-1}.difficulty-modal-options button[aria-pressed=true]{border-color:#3b7b57;background:#ecf2e6;box-shadow:inset 0 0 0 1px #3b7b5722}.difficulty-modal-options button[aria-pressed=true] b:after{content:' · 当前';font:500 11px sans-serif;color:#7a8d63}
@media(max-height:650px){.home-info{top:31.7%;height:24px;font-size:11px}.prize-hint{top:36.9%;font-size:10px}.home-links{gap:7px}.home-links button{font-size:11px}}

/* Compact information at the top; leave a taller, slower falling field. */
.brand{top:2%;left:35.5%;width:29%;gap:2px}.brand img:first-child{height:34px}.brand .wordmark{height:17px}.sound-button{top:3.1%}.edition{top:10.6%;font-size:11px}.headline{top:12.8%}.headline h1{font-size:40px;line-height:1.15}.title-sub{top:19.3%;font-size:12px;letter-spacing:1.5px}.home-info{top:23.3%;height:28px}.prize-hint{top:28.8%}.hud{top:22.7%}.hud-pill{height:42px}.hud-pill b{font-size:29px}.round-mode{top:51px;font-size:10px}
@media(max-width:600px){.brand{top:calc(2% + env(safe-area-inset-top)/4)}.sound-button{top:calc(3.1% + env(safe-area-inset-top)/4)}.headline h1{font-size:10.25vw;line-height:1.15}}
@media(max-height:650px){.brand img:first-child{height:28px}.brand .wordmark{height:14px}.edition{top:10.6%;font-size:10px}.headline{top:12.8%}.headline h1{font-size:36px;line-height:1.15}.title-sub{top:19.3%;font-size:11px}.home-info{top:23.3%;height:25px;font-size:11px}.prize-hint{top:28.8%;font-size:10px}.hud{top:22.7%}.hud-pill{height:36px}.hud-pill b{font-size:25px}.round-mode{top:42px;font-size:9px}}

.result-art img:first-child{width:52%}
