:root{--paper:#f7f4e9;--ink:#344c3b;--green:#4c8457;--dark:#315e42;--line:#d9dfca;font-family:'Trebuchet MS','Yu Gothic',Meiryo,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--paper);background-image:radial-gradient(#73874b12 .7px,transparent .7px);background-size:9px 9px}.app{max-width:560px;min-height:100vh;margin:auto;padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom);display:flex;flex-direction:column}header{height:62px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}header>div{display:flex;gap:8px}.logo{font-weight:bold;color:var(--dark);font-size:1.08rem;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}header button,.gamebar button{border:1px solid var(--line);background:#fffaf0;border-radius:13px;min-height:40px;padding:0 10px}.screen{display:none;flex:1;animation:appear .25s}.screen.active{display:flex;flex-direction:column}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.eyebrow{text-align:center;font-size:.77rem;letter-spacing:.08em;color:#77856e;margin:24px 0 4px}.screen h1{text-align:center;margin:0;color:var(--dark);font-size:clamp(2rem,8vw,2.7rem);letter-spacing:.08em}.intro{text-align:center;line-height:1.8;color:#65735d;margin:9px 0}.scene{height:310px;width:min(100%,420px);position:relative;margin:0 auto;overflow:hidden}.scene:before{content:'';position:absolute;width:285px;height:250px;top:15px;left:50%;transform:translateX(-50%);border-radius:50%;background:#e8efdb}.scene:after{content:'';position:absolute;bottom:20px;left:8%;right:8%;height:16px;border-radius:50%;background:#7b925026;filter:blur(3px)}.sun{position:absolute;right:25px;top:12px;color:#dcae54;font-size:2.6rem;z-index:3}.canopy{position:absolute;z-index:2;left:50%;top:27px;transform:translateX(-50%);height:228px;width:300px;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:7px;padding:12px}.canopy i{display:block;border-radius:52% 48% 48% 15%;background:#79a96f;transform:rotate(var(--r));box-shadow:inset -4px -3px #315e4212}.canopy i:nth-child(3n){background:#699c69}.canopy i:nth-child(4n){background:#8ab774}.canopy i:nth-child(5n){background:#65966a}.canopy i:nth-child(7n){background:#a0be76}.trunk{position:absolute;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);height:126px;width:62px;background:#a66e4d;clip-path:polygon(34% 0,65% 0,70% 28%,100% 49%,86% 54%,68% 44%,72% 100%,27% 100%,34% 49%,2% 54%,25% 33%)}.flower{position:absolute;bottom:20px;z-index:3;color:#d47f79}.f1{left:18%}.f2{right:17%;color:#e4b755}.home-buttons{display:grid;gap:10px;width:min(100%,380px);margin:0 auto}.primary,.secondary{border-radius:17px;padding:11px 16px;min-height:54px;font-size:1rem;font-weight:bold;box-shadow:0 4px #274d321c}.primary{background:#4f885b;color:white;border:0}.secondary{background:#fffdf6;border:1px solid #dbe2cf;color:var(--dark)}.home-buttons button{display:flex;justify-content:space-between;align-items:center;text-align:left}.home-buttons small{font-size:.72rem;font-weight:normal;opacity:.8}.collection-line{display:flex;align-items:center;gap:6px;width:min(100%,380px);margin:16px auto 0;font-size:.82rem;color:#66755e}.link{border:0;background:none;color:#527a52;text-decoration:underline;text-underline-offset:3px;padding:8px}.collection-line .link{margin-left:auto}.disclaimer{text-align:center;color:#8a8e7b;font-size:.68rem;margin:12px 0 8px}footer{font-size:.66rem;color:#99a08c;padding:12px 0 8px;display:flex;justify-content:space-between}.gamebar{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:.78rem}.gamebar #mode{border-radius:18px;background:#e4edda;padding:6px 9px;color:#456a47}.gamebar .back{border:0;background:none;padding:4px;color:#59705a}.streak{border-radius:11px;background:#f8e8a9;text-align:center;padding:7px;color:#825c25;font-size:.78rem;margin-bottom:4px;animation:glow 1.6s alternate infinite}.streak[data-tier="2"]{background:#f5d2a0}.streak[data-tier="3"]{background:linear-gradient(90deg,#f6b2a9,#f2dc8a,#b1ddbd,#b6d6ed,#d0b6df)}@keyframes glow{to{filter:saturate(1.3);box-shadow:0 0 13px #e9bb5644}}.prompt{text-align:center;display:flex;flex-direction:column;gap:3px;margin:10px 0}.prompt b{font-size:1.05rem;color:#3e5d42}.prompt small{font-size:.75rem;color:#89917e}.playtree{position:relative;height:min(76vw,410px);max-height:410px;min-height:300px;width:min(100%,430px);margin:0 auto;display:grid;place-items:center}.playtree:before{content:'';position:absolute;bottom:12px;left:10%;right:10%;height:20px;border-radius:50%;background:#7b925022;filter:blur(4px)}.playtrunk{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);height:32%;width:52px;background:#a77851;clip-path:polygon(32% 0,66% 0,69% 28%,100% 47%,90% 54%,68% 43%,74% 100%,25% 100%,33% 48%,3% 56%,30% 31%)}.leaves{position:relative;width:min(94%,400px);height:min(94%,390px);display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:clamp(3px,1.5vw,9px);z-index:1;padding:4px}.leaf{border:0;background:none;padding:0;min-width:0;min-height:0;display:grid;place-items:center}.leafshape{width:85%;height:77%;border-radius:56% 50% 50% 17%;background:var(--c);transform:rotate(var(--r));box-shadow:inset -4px -5px #1d49360b,0 1px 2px #344c3b16;transition:transform .12s}.leaf:active .leafshape{transform:rotate(var(--r)) scale(.9)}.leaf:focus-visible .leafshape{outline:3px solid #fff1b2;outline-offset:2px}.leaf.missed .leafshape{animation:shake .35s}.leaf.found .leafshape{animation:shrink .55s forwards}@keyframes shake{25%{translate:-4px}75%{translate:4px}}@keyframes shrink{to{transform:scale(.2);opacity:0}}#feedback{height:36px;text-align:center;color:#63845d;font-weight:bold;padding-top:5px;margin:0}#feedback.wrong{color:#b67568}#feedback.rare{color:#8e69a1}.scoreline{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding:4px 8px 0;font-size:.78rem;color:#75816e}.scoreline b{font-size:1.3rem;color:#3d7048}.scoreline #misses{color:#df927d;letter-spacing:.06em}.result-card{margin:18px 0 5px;background:#fffdf7;border:1px solid #e4e4d7;border-radius:25px;padding:20px 17px;box-shadow:0 12px 35px #4b65431b;text-align:center}.bigicon{font-size:2.2rem}.result-card .eyebrow{margin:4px 0}.result-card h2{font-size:1.55rem;margin:0;color:var(--dark)}#rank{display:block;color:#aa7b2f;margin:4px 0 13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px dashed #d8dfce;padding:12px 0;margin-bottom:12px}.stats div{display:flex;flex-direction:column}.stats b{font-size:1.2rem;color:#456e4b}.stats small{font-size:.62rem;color:#7d8674}.discover{position:relative;background:#f5f5ea;border-radius:15px;padding:10px;text-align:left;font-size:.78rem}.discover>small{float:right;color:#bc8562}.discover #sessionBugs{display:flex;gap:7px;overflow:auto;padding-top:7px;min-height:46px}.bugchip{min-width:48px;text-align:center;font-size:.62rem}.bugchip i{font-style:normal;display:block;font-size:1.5rem}.sharehead{font-size:.78rem;margin:12px 0 7px}.sharebuttons{display:flex;gap:7px}.sharebuttons button,.saveimg{flex:1;border:1px solid #dce2d4;background:white;border-radius:11px;padding:8px 3px;font-size:.71rem;min-height:39px}.sharebuttons #shareX{background:#27332b;color:white}.sharebuttons #shareLine{background:#16ba62;color:white}.saveimg{width:100%;margin-top:7px;background:#f4f0e4}.status{font-size:.68rem;color:#648758;min-height:1em;margin:4px 0}.result-actions{display:grid;gap:7px}.result-actions button{min-height:43px}.ad{border:1px dashed #d2d8c9;border-radius:12px;min-height:55px;margin-top:18px;color:#8a957d;font-size:.75rem;align-items:center;justify-content:center}.ad:not([hidden]){display:flex}.backdrop{position:fixed;inset:0;background:#24362dbb;z-index:20;display:flex;align-items:flex-end;justify-content:center;padding:12px 8px 0}.backdrop[hidden]{display:none}.modal{width:min(100%,560px);height:min(88vh,760px);background:#fbf9f0;border-radius:24px 24px 0 0;padding:18px 15px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column}.modalhead{display:flex;justify-content:space-between;align-items:center}.modalhead .eyebrow{text-align:left;margin:0 0 3px}.modalhead h2{font-size:1.35rem;margin:0;color:#3b6142}.modalhead h2 small{font-size:.7rem;color:#87917c;font-weight:normal}.modalhead button{border:0;background:#ecf0e5;color:#536c52;width:38px;height:38px;border-radius:50%;font-size:1.5rem}.progressline{display:flex;align-items:center;gap:9px;font-size:.73rem;color:#66735e;padding:13px 0}.progressline>div{height:8px;background:#e4e8db;border-radius:20px;flex:1;overflow:hidden}.progressline i{display:block;width:0;height:100%;background:#75a16d;border-radius:20px}.progressline b{color:#49734d}#buggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow:auto;padding:2px 2px 13px;overscroll-behavior:contain}.bugcard{background:#fffdf7;border:1px solid #e5e7db;border-radius:15px;min-height:112px;padding:8px 4px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.bugart{font-size:1.9rem}.bugname{font-size:.7rem;font-weight:bold;margin-top:3px}.bugrarity{font-size:.64rem;color:#b0884d}.bugseen{font-size:.59rem;color:#89917f;margin-top:2px}.locked .bugart{filter:grayscale(1);opacity:.45}.locked .bugname{color:#919889;font-weight:normal}.toast{position:fixed;bottom:calc(17px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,14px);background:#344c3b;color:white;border-radius:30px;padding:10px 17px;font-size:.78rem;opacity:0;transition:.2s;pointer-events:none;z-index:40;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-height:700px){.scene{height:260px}.eyebrow{margin-top:14px}.playtree{height:min(68vw,340px);min-height:270px}.result-card{margin-top:8px;padding:14px}.bugcard{min-height:100px}}@media(max-width:360px){.app{padding-inline:12px}.stats small{font-size:.56rem}.sharebuttons button{font-size:.65rem}}
