:root{color:#17354a;font-synthesis:none;--cream:#fff5db;--leaf:#4aae80;--gold:#f7bc55;background:#17354a;font-family:ui-rounded,Trebuchet MS,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}*{box-sizing:border-box}body{overscroll-behavior:none;background:radial-gradient(at 50% 25%,#446b6a,#17354a 70%);justify-content:center;align-items:center;min-height:100dvh;margin:0;display:flex}button,input,select{font:inherit}button{touch-action:manipulation;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline-offset:3px;outline:3px solid #365aba}input:focus-visible{outline-offset:3px;outline:3px solid #365aba}select:focus-visible{outline-offset:3px;outline:3px solid #365aba}a:focus-visible{outline-offset:3px;outline:3px solid #365aba}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{letter-spacing:-1px;font-size:34px;line-height:1.1}h2{letter-spacing:-.7px;font-size:27px;line-height:1.12}h3{font-size:18px;line-height:1.2}p{font-size:15px;line-height:1.5}.small{font-size:12px;line-height:1.5}.center{text-align:center}.spacer{flex:1}#game-root{width:min(450px,100vw,56.25dvh - 47.25px);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);position:relative}#stage{aspect-ratio:360/640;background:#17354a;border-radius:22px;width:100%;position:relative;overflow:hidden;box-shadow:0 25px 70px #001d2f60}#phaser{position:absolute;top:0;bottom:0;left:0;right:0}#phaser canvas{width:100%!important;height:100%!important;display:block!important}#menu{background-position:50%;background-size:cover;flex-direction:column;gap:12px;padding:18px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0;overflow:auto;container-type:inline-size}#menu>.scroll{flex-direction:column;flex:1;gap:10px;min-height:0;padding-bottom:8px;display:flex;overflow:auto}.panel{background:#fff5dbf7;border:1px solid #fff9e7;border-radius:22px;flex-shrink:0;padding:18px;box-shadow:0 8px 18px #17354a1c}.panel>*+*{margin-top:12px}.panel p{font-size:14px}.button{background:var(--leaf);color:#fffdf2;text-align:center;border:0;border-radius:15px;width:100%;min-height:48px;padding:12px 14px;font-size:14px;font-weight:800;line-height:1.35;text-decoration:none;display:block;box-shadow:inset 0 -4px #27795a}.button:active{transform:scale(.98)}.button.gold{background:var(--gold);color:#17354a;box-shadow:inset 0 -4px #dc9840}.button.soft{color:#17354a;background:#fffaf0;border:1px solid #e7d8b7;box-shadow:inset 0 -3px #d7c7a0}.button.risk{color:#715018;background:#f9dda0;box-shadow:inset 0 -4px #d4ae60}.button.danger{color:#8a3c30;background:#f7d5cb;box-shadow:inset 0 -3px #d3a398}.button.icon{color:#17354a;width:44px;height:44px;min-height:44px;box-shadow:none;background:#fff5db;border-radius:14px;flex-shrink:0;padding:9px;font-size:20px}.button.text{box-shadow:none;color:#245f4b;background:0 0;min-height:36px;padding:9px 6px;font-size:12px}.two{gap:8px;display:flex}.small-links{gap:4px;display:flex}.menu-header{flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;display:flex}.menu-header h2{color:#fffcf2;text-align:center;text-shadow:0 2px 5px #17354a80;font-size:19px}.home-heading{color:#fff5db;text-align:center;text-shadow:0 3px #17354a60;padding:13px 0 0}.home-heading h1{font-size:max(27px,min(10cqw,38px))}.home-heading p{letter-spacing:2px;font-size:13px}.home-hero{flex:1;justify-content:center;align-items:center;min-height:110px;display:flex}.portrait{width:100%;max-width:100%;height:100%;display:block;overflow:hidden}.home-hero .portrait{width:160px;height:min(200px,33cqh)}.result-hero{height:115px}.animal-large{height:220px;margin:0 auto}.partner-card{align-items:center;gap:12px;display:flex}.partner-card .portrait{flex-shrink:0;width:76px;height:85px}.partner-card p{margin-top:5px}.camp-friends{flex-wrap:wrap;flex:1;justify-content:center;align-items:end;gap:5px;min-height:100px;display:flex}.camp-friends .portrait{width:27%;height:85px;animation:2s ease-in-out infinite alternate idle}.camp-decorations{justify-content:center;gap:8px;min-height:45px;display:flex}.camp-decorations .board-item{width:45px;height:45px}.metric{border-bottom:1px solid #dfd0ab;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;font-size:13px;display:flex}.metric strong{font-size:19px}.tag{color:#275d48;background:#dcebd3;border-radius:20px;padding:4px 8px;font-size:11px;line-height:1.5;display:inline-block}.gold-tag{color:#6b4c1c;background:#fbe6a9}.soft-tag{color:#62694f;background:#efe5ce}.nodes{justify-content:space-between;gap:5px;margin-top:15px;display:flex}.node{color:#17354a;background:#fffaf0;border:1px solid #d5cdb8;border-radius:50%;width:38px;height:38px;font-weight:800}.node.complete{color:#fff;background:#4aae80}.filters{grid-template-columns:1fr 1fr;gap:7px;display:grid}select{color:#17354a;background:#fffcf2;border:1px solid #ddcfab;border-radius:10px;min-width:0;min-height:38px;padding:7px;font-size:12px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.animal-tile{color:#17354a;text-align:center;background:#fff5dbf2;border:1px solid #e8d9b6;border-radius:18px;flex-direction:column;align-items:center;min-height:154px;padding:9px;display:flex}.animal-tile>div{width:100%;height:100px}.animal-tile strong{font-size:13px}.animal-tile .small{margin-top:5px;display:block}.silhouette{filter:brightness(.05);opacity:.5}.pagination{color:#fff5db;justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.pagination .button{width:50px}.hatch-glow{background:radial-gradient(#f7bc5577,#0000 70%);border-radius:50%;height:200px;animation:.9s ease-in-out infinite cheer;position:relative}.hatch-glow .portrait{position:relative}.hatch-egg{justify-content:center;align-items:center;height:180px;animation:.7s ease-in-out infinite alternate egg-rock;display:flex;position:relative}.hatch-egg .board-item{width:140px;height:160px}.hatch-egg.cracked:after{content:"";filter:drop-shadow(0 0 4px #fff5db);border-left:3px solid #735531;width:16%;height:60%;position:absolute;top:20%;left:45%;transform:skew(-15deg)}.ending-friends{flex-wrap:wrap;justify-content:center;gap:3px;display:flex}.ending-friends .portrait{width:20%;height:55px;animation:.9s ease-in-out infinite alternate cheer}.decoration-item{align-items:center;gap:12px;display:flex}.decoration-item img{width:36px;height:36px}.board-item{display:block}.panel label{font-size:14px;display:block}.panel label input[type=range]{accent-color:#4aae80;width:100%;margin-top:10px;display:block}.panel label.check{justify-content:space-between;align-items:center;min-height:36px;display:flex}.panel input[type=checkbox]{accent-color:#4aae80;width:20px;height:20px}.import-label{cursor:pointer;position:relative}.import-label input{opacity:0;cursor:pointer;width:100%;position:absolute;top:0;bottom:0;left:0;right:0}#hud{pointer-events:none;flex-wrap:wrap;align-items:start;gap:7px;display:flex;position:absolute;top:10px;left:10px;right:10px}#hud button{pointer-events:auto;margin-left:auto}.hud-number{color:#17354a;background:#fff5dbed;border-radius:14px;padding:7px 10px;font-size:10px;font-weight:800}.hud-number strong{font-size:18px;display:block}.hud-small{background:#fff5dbdf;border-radius:10px;flex-basis:auto;padding:6px 9px;font-size:11px}#controls{background:#17354a;align-items:center;gap:8px;height:72px;padding:8px 5px;display:flex}#controls span{letter-spacing:1px;color:#c4dfd5;text-align:center;flex:1;font-size:9px}#controls button{color:#17354a;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff5db;border:0;border-radius:18px;flex:1.25;min-width:95px;min-height:56px;font-size:24px;box-shadow:inset 0 -4px #dbcba6}#controls button:active{background:#f7bc55}#controls.wide span{flex:1.7}#notification{z-index:20;color:#fff5db;opacity:0;pointer-events:none;background:#17354aee;border:1px solid #d5e8d022;border-radius:15px;padding:12px;font-size:12px;line-height:1.5;transition:all .2s;position:absolute;top:90px;left:16px;right:16px;transform:translateY(-10px)}#notification.visible{opacity:1;transform:translateY(0)}#storage-warning{color:#fff5db;max-width:100%;padding:3px 8px;font-size:11px;line-height:1.4;position:absolute;bottom:-20px;left:0;right:0}.reduced-motion *{transition:none!important;animation:none!important}@keyframes idle{0%{transform:scaleY(.98)}to{transform:scaleY(1.02)}}@keyframes cheer{0%,to{transform:translateY(0)rotate(-1deg)}50%{transform:translateY(-6px)rotate(1deg)}}@keyframes egg-rock{0%{transform:rotate(-3deg)}to{transform:rotate(3deg)}}@media (max-height:600px) and (orientation:landscape){#game-root{width:calc(56.25dvh - 4.5px);padding:0}#controls{pointer-events:none;background:0 0;height:72px;position:absolute;top:auto;bottom:14px;left:-130px;right:-130px}#controls button{pointer-events:auto;flex:none;width:95px;min-width:0}#controls span{visibility:hidden}#stage{border-radius:15px}}@media (max-width:360px){#menu{gap:9px;padding:13px}.panel{padding:14px}.home-hero .portrait{height:140px}.home-heading h1{font-size:29px}.button{min-height:44px;padding:10px;font-size:13px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}:root{--leaf:#287354}.node.complete{background:#287354}.home-heading{background:#17354abf;border-radius:18px;padding:10px 5px}.menu-header h2{background:#17354abf;border-radius:12px;padding:7px 9px}.button:not(.gold):not(.soft):not(.risk):not(.danger):not(.icon):not(.text),.nodes .node.complete{background:#287354}h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{outline:none}#controls{gap:8px}#controls button{flex:1;min-width:0}#controls #pulse{background:#f7bc55;flex:1.2;font-size:13px}#controls button:focus-visible{outline:3px solid #81cdeb}.mission-hud{color:#fff5db;background:#17354ae8;border-radius:8px;width:100%;padding:6px 9px;font-size:11px}.skill-hud{color:#fff5db;background:#17354acc;border-radius:8px;flex-wrap:wrap;align-items:center;gap:7px;padding:5px 8px;font-size:10px;display:flex}.skill-hud meter{accent-color:#f7bc55;width:80px;height:12px}.node{position:relative}.node small{color:#17354a;width:100%;font-size:9px;position:absolute;top:34px;left:0}.nodes{padding-bottom:15px}@media (max-height:600px) and (orientation:landscape){#controls{justify-content:space-between;gap:6px;top:auto;bottom:8px;left:-125px;right:-125px}#controls button{flex:0 0 65px;width:65px}#controls #pulse{flex:0 0 80px}#hud{gap:3px;top:4px}.mission-hud{font-size:10px}}#notification{max-height:90px;font-size:11px;top:auto;bottom:14px}.skill-hud{color:#fff5db}.mission-hud{line-height:1.35}.left-handed #controls{flex-direction:row-reverse}html:not([lang=en]) .button{overflow-wrap:anywhere;font-size:12px}html[lang=zh-Hans]{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Microsoft YaHei,sans-serif}.panel .metric{flex-wrap:wrap}.skill-hud{max-width:100%}.panel label.check{gap:10px}#controls button{overflow-wrap:anywhere}html[lang=zh-Hans] #pulse{font-size:12px}
