body[data-game=bugs]{background:#f5f3e8;color:#304c3a;font-family:system-ui,"Hiragino Kaku Gothic ProN",sans-serif}body[data-game=bugs] main{max-width:1120px;margin:20px auto;padding:24px;background:transparent;box-shadow:none}body[data-game=bugs] h1{font-size:clamp(28px,4vw,42px);letter-spacing:.07em;margin:15px 0}body[data-game=bugs] #instruction{line-height:1.9;font-size:16px;max-width:720px}body[data-game=bugs] button{font:inherit;min-height:46px;border:1px solid #cfdbc2;border-radius:16px;padding:11px 18px;background:#fffdf3;color:#304c3a;box-shadow:0 3px 0 #d7decb;cursor:pointer;touch-action:manipulation}body[data-game=bugs] button:focus-visible{outline:4px solid #d29f42;outline-offset:4px}body[data-game=bugs] button:disabled{cursor:default}body[data-game=bugs] button[aria-pressed=true],body[data-game=bugs] .safari-primary{background:#3b7056;color:#fffdf0;border-color:#3b7056}body[data-game=bugs] .bar{justify-content:flex-start;gap:10px}body[data-game=bugs] #status{font-size:15px;min-height:28px;padding:10px 0;color:#52725a;background:transparent}body[data-game=bugs] [hidden]{display:none!important}.safari-habitats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:15px 0}.safari-habitats button{overflow:hidden;padding:0!important;display:grid;grid-template-columns:76px 1fr auto;align-items:center;gap:10px;text-align:left}.safari-habitats img{width:76px;height:70px;object-fit:cover}.safari-habitats span{font-weight:750;font-size:15px}.safari-habitats small{padding-right:12px;white-space:nowrap}.safari-options{display:flex;gap:10px;margin:20px 0}.safari-play{background:#fffdf3;border:1px solid #dedfca;border-radius:28px;overflow:hidden;box-shadow:0 10px 35px #38462a0c}.walk-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 28px 0}.walk-heading h2{font-size:23px;margin:6px 0}.safari-eyebrow{font:700 11px system-ui;letter-spacing:.17em;color:#748267}.walk-counter{font:750 23px system-ui;background:#edf0df;border-radius:25px;padding:10px 18px}.walk-guide{padding:0 28px;margin:8px 0 18px;color:#728068;font-size:14px}.safari-scene{position:relative;isolation:isolate;background-image:var(--scene);background-size:cover;background-position:center;aspect-ratio:1.65;overflow:hidden;margin:0 12px;border-radius:19px}.safari-light{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,#fffed91a,transparent 65%)}.safari-place{position:absolute;left:var(--x);top:var(--y);width:clamp(74px,12vw,132px);height:clamp(76px,12vw,128px);transform:translate(-50%,-50%)}body[data-game=bugs] .safari-cover,body[data-game=bugs] .safari-bug{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;box-shadow:none;min-height:0}.safari-bug img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #2b422b55);pointer-events:none}.safari-bug:not(:disabled){animation:safari-flutter 4.8s ease-in-out infinite;animation-delay:var(--delay)}.safari-cover{z-index:2;transform-origin:13% 95%;transition:transform .48s ease,opacity .4s;touch-action:none!important}.safari-cover svg{width:100%;height:100%;filter:drop-shadow(0 8px 4px #30402944);pointer-events:none}.safari-cover span{position:absolute;bottom:2%;right:0;background:#fffbdc;color:#4c7353;font-size:23px;line-height:32px;width:32px;height:32px;border-radius:50%;box-shadow:0 2px 4px #273b2940}.is-revealed .safari-cover{transform:rotate(-55deg) translate(-15%,-12%);opacity:0;pointer-events:none}.is-caught .safari-bug{opacity:0;transform:scale(.3);transition:opacity .35s,transform .35s}.found-mark{position:absolute;left:35%;top:35%;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff9d8cc;color:#35613e;border:1px solid #8ba66b}.hinted:before{content:"";position:absolute;inset:-5px;border:3px dashed #fff9c9;border-radius:50%;box-shadow:0 0 0 4px #63885488}.motion-off .safari-bug{animation-play-state:paused}.net-dock{display:flex;align-items:center;gap:17px;padding:10px 24px}.net-dock p{flex:1;line-height:1.7;font-size:14px}.net-dock p strong,.net-dock p span{display:block}.net-dock p strong{font-size:17px}.net-tool{width:92px;height:98px;padding:3px!important;flex-shrink:0;background:#f6eed6!important;touch-action:none!important;border-radius:22px!important}.net-tool svg{width:100%;height:100%;pointer-events:none}.walk-dots{display:flex;justify-content:center;gap:12px;padding:0 16px 22px;color:#d3d7c6}.walk-dots .done{color:#457258}.bug-targets{display:flex;gap:12px;padding:8px 28px 18px}.bug-targets>span{display:flex;align-items:center;gap:7px;padding:4px 9px;background:#eff0e4;border-radius:14px;font-size:13px}.bug-targets img{width:44px;height:40px;object-fit:contain}.bug-targets b{color:#8b9a7d}.bug-targets .found{background:#dcecd6}.walk-complete{display:flex;align-items:center;gap:18px;background:#edf0dc;padding:24px;flex-wrap:wrap}.walk-complete h2{font-size:21px;margin:0}.walk-complete p{font-size:14px;margin:8px 0}.walk-complete>div{flex:1;min-width:190px}.safari-seal{font-size:45px;color:#a28138}.field-guide{margin-top:32px;border:1px solid #dedfca;background:#fffdf3;border-radius:25px;padding:25px}.guide-heading{display:flex;justify-content:space-between;align-items:center}.guide-heading h2{margin:6px 0 15px;font-size:25px}.guide-heading>strong{font-size:25px}.safari-meter{height:10px;background:#e7eadc;border-radius:9px;overflow:hidden}.safari-meter span{display:block;height:100%;background:linear-gradient(90deg,#89ab6e,#c8ad62);transition:width .5s}.reward-hint{font-size:14px}.safari-badges{display:flex;gap:15px;justify-content:center;margin:24px 0}.safari-badge{display:grid;justify-items:center;gap:5px;color:#929985}.safari-badge b{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:3px double #c9cfbd;font-size:28px;background:#f1f1e6}.safari-badge.earned b{background:#f4df9f;color:#85652c;border-color:#c1a056;box-shadow:0 3px 0 #d6c38e}.bug-book{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}body[data-game=bugs] .bug-entry{display:flex;flex-direction:column;align-items:center;padding:12px 8px;min-width:0;box-shadow:none;background:linear-gradient(135deg,#fffef7,#f0f2e6)}.bug-entry img{width:100%;height:110px;object-fit:contain}.bug-entry strong{font-size:14px}.bug-entry small{font-size:11px;margin-top:5px;color:#78856f}.unknown-bug{display:grid;place-items:center;height:110px;font:300 55px Georgia;color:#bdc8ad}.bug-entry.unknown{border-style:dashed!important}.safari-settings{margin-top:25px;border-top:1px solid #d9decb;padding:20px 5px;font-size:14px;line-height:1.8}.safari-settings summary{cursor:pointer;padding:8px}.clear-bug-confirm{background:#f4e9d7;border-radius:15px;padding:15px;margin-top:15px;display:flex;gap:10px;flex-wrap:wrap}.clear-bug-confirm p{width:100%}#saveNotice{color:#8b582d;font-size:14px}.bug-dialog{border:1px solid #d5d9be;border-radius:28px;padding:32px;max-width:440px;width:calc(100% - 36px);box-sizing:border-box;color:#344f3b;background:#fffdf0;text-align:center;box-shadow:0 20px 80px #24392744;max-height:90vh;overflow:auto}.bug-dialog::backdrop{background:#203c2bb0;backdrop-filter:blur(4px)}.bug-dialog h2{font-size:28px;margin:10px 0}.bug-dialog p{line-height:1.8;font-size:15px}.specimen{width:230px;height:210px;max-width:100%;margin:0 auto 12px;border-radius:50%;background:radial-gradient(ellipse,#e6edd0,#fffdf0 70%)}.specimen img{width:100%;height:100%;object-fit:contain}.specimen-count{color:#7c8b70}body[data-game=bugs] .safari-close{position:absolute;right:12px;top:12px;border:0;box-shadow:none;background:transparent;font-size:24px}#netGhost{position:fixed;width:135px;height:160px;transform:translate(-44%,-28%);pointer-events:none;z-index:10000;filter:drop-shadow(0 8px 5px #34442244)}#netGhost svg{width:100%;height:100%}@keyframes safari-flutter{0%,100%{transform:translate(0,0) rotate(-3deg)}50%{transform:translate(7px,-7px) rotate(4deg)}}@media(max-width:640px){body[data-game=bugs] main{padding:12px;margin:10px auto}.safari-habitats{gap:7px}.safari-habitats button{display:flex;flex-direction:column;gap:5px;padding-bottom:9px!important;text-align:center}.safari-habitats img{width:100%;height:60px}.safari-habitats span{font-size:12px}.safari-habitats small{padding:0;font-size:11px}.safari-options button{padding:10px!important;flex:1;font-size:13px!important}.safari-scene{aspect-ratio:.98;margin:0 7px;background-position:center}.walk-heading{padding:18px 17px 0}.walk-heading h2{font-size:19px}.walk-guide{padding:0 17px;font-size:12px}.walk-counter{font-size:18px;padding:8px 13px}.safari-place{width:78px;height:80px}.net-dock{padding:10px 13px;gap:9px;flex-wrap:wrap}.net-tool{width:68px;height:78px}.net-dock p{font-size:12px;min-width:130px}.net-dock p strong{font-size:14px}.net-dock>button:last-child{padding:10px!important;font-size:12px!important}.bug-book{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.field-guide{padding:18px 12px}.bug-entry img,.unknown-bug{height:75px}.bug-entry strong{font-size:11px}.bug-entry small{font-size:10px}.bug-targets{padding:8px 10px 12px;gap:5px}.bug-targets>span{flex:1;flex-direction:column;gap:1px;font-size:10px;padding:5px 3px}.bug-targets img{width:42px;height:36px}.bug-targets b{font-size:13px}.walk-complete{padding:18px}.walk-complete .safari-primary{width:100%}}@media(prefers-reduced-motion:reduce){.safari-bug{animation:none!important}.safari-cover,.safari-meter span{transition:none!important}}

.safari-cover img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 3px #31452d44);pointer-events:none}.net-tool img,#netGhost img{width:100%;height:100%;object-fit:contain;pointer-events:none}
