/* Mobile game shell — portrait composition based on the supplied game mockup. */
body{background:#0a130e;font-family:'Segoe UI',Arial,sans-serif}
body:before{content:'';position:fixed;inset:-30px;background:linear-gradient(#07130bb0,#07130be6),url('../assets/forest-clean.webp') center/cover;filter:blur(13px);z-index:-1}
.game-icon{width:24px;height:24px;display:block;flex-shrink:0}
.game-surround{height:100dvh;display:flex;justify-content:center;align-items:center}
.app-frame{width:100%;max-width:480px;height:100dvh;max-height:960px;display:flex;flex-direction:column;position:relative;isolation:isolate;background:#101b12;border:1px solid #96815455;overflow:hidden;box-shadow:0 22px 100px #000a}
.app-frame:before{content:'';position:absolute;inset:0;background:linear-gradient(#06140bd9,#132010c4 35%,#10170be0),url('../assets/forest-clean.webp') 46% center/cover;z-index:-1}
.player-hud{display:flex;gap:12px;align-items:center;flex-shrink:0;min-height:75px;padding:12px 15px;border-bottom:1px solid #d1bc7438;background:linear-gradient(180deg,#0b160ee8,#102015c9)}
.player-profile{display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;text-align:left;flex:1;min-width:0}
.explorer-avatar{width:44px;height:44px;flex-shrink:0;border:2px solid #cab275;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 45% 25%,#566641,#19291e 75%);box-shadow:0 0 0 3px #0a140e,0 3px 10px #0008;color:#e0ca8e}
.explorer-avatar svg{width:30px;height:30px;stroke-width:1.2}
.player-info{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:190px;flex:1}.player-info strong{font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.player-info small{font-size:9px;color:#c5ccb7;white-space:nowrap}.player-info small span{font-size:8px;color:#9fac96}.player-xp{height:7px;background:#08110b;border:1px solid #b9b88f8c;border-radius:20px;width:100%;max-width:160px;overflow:hidden}.player-xp>span{height:100%;min-width:2px;display:block;background:linear-gradient(#b6d76b,#659634);border-radius:20px}
.player-coins{display:flex;align-items:center;gap:5px;color:#efdcab;white-space:nowrap}.player-coins .game-icon{width:23px;height:23px;stroke:#d4a83f;fill:#b7842040}.player-coins strong{font-size:15px;font-weight:600}.hud-settings{padding:8px;border:0;background:none;color:#dcdcc7;min-width:40px;min-height:44px}.hud-settings .game-icon{width:24px;height:24px}
.game-page{max-width:none;width:100%;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#99815444 transparent;padding:20px 16px 24px;margin:0}
.game-dock{display:grid;grid-template-columns:repeat(4,1fr);flex-shrink:0;min-height:67px;border-top:1px solid #c2ae654d;background:linear-gradient(#171e11f2,#0c140bed);padding:8px 10px max(8px,env(safe-area-inset-bottom));position:relative;z-index:2}
.game-dock button{background:none;border:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#a8ac93;min-height:46px;padding:0;font-size:10px}.game-dock svg{width:24px;height:24px}.game-dock button.selected{color:#f0d07e;text-shadow:0 0 12px #dbb35755}.game-dock button.selected svg{filter:drop-shadow(0 0 6px #b9874260);fill:#d3b35c18}
.screen-home .game-page{display:flex;flex-direction:column;gap:11px;padding:10px 15px 15px;overflow:hidden}
.menu-brand{height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.menu-brand .brand-art{width:180px;height:78px;background-size:1039.4px auto;background-position:-9.47px -257.82px;mask-image:radial-gradient(ellipse,#000 52%,#000a 68%,transparent 83%)}
.menu-heading{font-family:'Segoe UI',Arial,sans-serif;font-size:11px;letter-spacing:.12em;text-transform:uppercase;text-align:center;color:#c4ccad;line-height:20px;flex-shrink:0;font-weight:500}
.game-mode-menu{display:grid;grid-template-rows:repeat(4,minmax(65px,1fr));gap:10px;flex:1;min-height:300px;max-height:520px}
.game-banner{border:1px solid #d2bb7e9c;border-radius:9px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;width:100%;text-align:left;padding:15px 19px;background:#152319;box-shadow:inset 0 0 0 2px #0a140b99,0 5px 12px #0005;transition:border-color .18s,filter .18s}
.game-banner:before{position:absolute;inset:0;content:'';z-index:-2;background:linear-gradient(90deg,#0a140df2 15%,#122519d9 48%,#192e1355 100%),url('../assets/forest-clean.webp') center 61%/cover;filter:saturate(.7)}
.game-banner:after{content:'';position:absolute;inset:2px;pointer-events:none;border:1px solid #9b88462b;border-radius:6px;background:linear-gradient(180deg,#d6ce9c0c,transparent 45%,#0002)}
.game-banner:hover{filter:brightness(1.15);border-color:#f5d78d}.game-banner:active{filter:brightness(.95);transform:translateY(1px)}.banner-caption{display:flex;flex-direction:column;gap:6px;position:relative;z-index:2;max-width:65%;text-shadow:0 2px 8px #000}.banner-caption strong{font-family:'Segoe UI',Arial,sans-serif;font-weight:600;font-size:25px;line-height:1.1;letter-spacing:-.03em}.banner-caption small{font-size:11px;color:#d0d5bf;line-height:1.2}
.banner-mushroom{position:absolute;height:120%;width:44%;object-fit:contain;right:9px;bottom:-18%;filter:drop-shadow(0 5px 7px #0009);transform:rotate(-6deg);z-index:-1}.banner-arrow{position:absolute;right:11px;top:calc(50% - 9px);width:16px;height:16px;color:#e3c57b;opacity:.75}.banner-light{position:absolute;right:0;bottom:0;width:48%;height:100%;z-index:-1;background:radial-gradient(ellipse at 60% 80%,#b79a4f2e,transparent 65%)}
.banner-memory:before{background-position:center 88%;filter:brightness(.75)}.banner-memory .banner-light{background:radial-gradient(ellipse,#f5a84e50,transparent 67%)}.banner-memory .banner-mushroom{height:105%;right:22px;filter:drop-shadow(0 0 13px #eeb25e88);bottom:-8%;transform:rotate(4deg)}.banner-roulette .banner-light{border-radius:50%;background:radial-gradient(ellipse at 70% 65%,#8eb83f3d,transparent 65%)}.banner-roulette .banner-mushroom{height:110%;right:24px}.banner-second{position:absolute;height:65%;width:24%;object-fit:contain;right:6px;bottom:-2px;z-index:-1}.banner-map:before{background-image:linear-gradient(90deg,#0a160df5 0%,#1027167a 65%,transparent),url('../assets/forest-clean.webp');background-position:center,85% 17%;filter:saturate(.9)}.banner-map{border-color:#e3c16f}.banner-map .banner-caption strong{color:#f1e5c6}.banner-map .banner-light{background:radial-gradient(ellipse at 80% 20%,#efc46d55,transparent 80%);height:160%;width:60%}
.menu-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex-shrink:0;height:88px}.menu-shortcuts button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(140deg,#29301a99,#0e1a11d9);border:1px solid #b9ad7a70;border-radius:7px;box-shadow:inset 0 0 12px #0004;color:#e5e4d2}.menu-shortcuts .game-icon{color:#d9d7b5;width:27px;height:27px;stroke-width:1.35}.menu-shortcuts button>span{font-size:11px;line-height:1.25}.menu-shortcuts small{position:absolute;right:6px;top:5px;color:#d4c17c;font-size:8px}.menu-shortcuts button:hover{border-color:#dfc47c;background-color:#33432a}
/* The remaining app screens share the same fixed shell and compact typography. */
.game-page .heading{margin-bottom:20px;display:block}.game-page .heading h1{font-family:'Segoe UI',Arial,sans-serif;font-size:25px;line-height:1.2;font-weight:600;letter-spacing:-.03em}.game-page .heading .eyebrow{font-size:8px;letter-spacing:.15em;margin-bottom:8px}.game-page .heading p{font-size:11px;line-height:1.6;margin-top:10px}.game-page .heading>.pill{margin-top:12px;display:inline-flex;font-size:10px}.game-page .toolbar{margin:16px 0;gap:6px}.game-page .field{min-width:0;min-height:44px;font-size:11px;padding:11px 10px}.game-page .chip{font-size:10px;padding:11px 10px}.game-page .species-grid{grid-template-columns:repeat(2,1fr);gap:10px}.game-page .species-card{padding:12px;border-radius:7px;background:linear-gradient(160deg,#34452860,#101c13cf)}.game-page .species-card img{height:130px}.game-page .species-card h3{font:600 15px/1.3 'Segoe UI',Arial,sans-serif;margin:12px 0 6px}.game-page .species-card small{font-size:10px}.game-page .species-card .status{font-size:9px;line-height:1.4;margin-top:12px}.game-page .safety{font-size:9px!important;margin:20px 0!important}.game-page .equipment-grid,.game-page .account-grid{grid-template-columns:1fr;gap:12px}.game-page .equipment-card{padding:18px;border-radius:8px;background:#132118c9}.game-page .equipment-card>span{font-size:25px}.game-page .equipment-card h3{font:600 18px/1.3 'Segoe UI',Arial,sans-serif;margin:10px 0}.game-page .equipment-card p{min-height:0;margin-bottom:15px;font-size:11px}.game-page .subheading{font:600 21px 'Segoe UI',Arial,sans-serif;margin:27px 0 16px}.game-page .panel{padding:18px;border-radius:8px;background:#132118c9}.game-page .panel h3{font:600 19px 'Segoe UI',Arial,sans-serif}.game-page .sale-row h3{font-size:14px;line-height:1.3}.game-page .sale-row{gap:10px}.game-page .sale-row .btn{padding:10px;font-size:10px}.game-page .sale-row img{width:48px}.game-page .rank-row{padding:18px 10px;font-size:12px}.game-page .empty{padding:35px 15px}.game-page .empty h3{font:600 20px 'Segoe UI',Arial,sans-serif}.game-page .empty p{font-size:11px}.btn{border-radius:7px;background:linear-gradient(#efcc7b,#c49843);box-shadow:inset 0 1px #ffebae80,0 3px 8px #0003}.btn.secondary{background:linear-gradient(#293725d9,#152319);box-shadow:inset 0 1px #d6d6a218}.game-page .btn{font-size:11px}.game-page .form-row label{font-size:11px}.game-page .panel p{font-size:11px}.game-page .toggle-row{font-size:11px}.owned-equipment{display:flex;flex-direction:column;gap:10px}.owned-item{display:flex;gap:15px;padding:17px 13px;border:1px solid #b9a56b55;border-radius:8px;background:#122117bc}.equipment-symbol{width:46px;height:46px;display:grid;place-items:center;border:1px solid #c3b17a66;background:#273422;border-radius:8px;color:#e2c17d;flex-shrink:0}.equipment-symbol .game-icon{width:29px;height:29px}.owned-item h3{font-size:15px;font-weight:600}.owned-item p{font-size:10px;line-height:1.6;margin:6px 0;color:#bdc5af}.owned-item small{font-size:9px;color:#dcc384}.owned-item.unowned{opacity:.55}.inventory-shop{width:100%;margin-top:20px}
.screen-result .game-page{padding:14px}.adventure-results{height:100%;min-height:560px;display:flex;flex-direction:column;border:1px solid #bca36c80;border-radius:12px;overflow:hidden;background:#132116d9}.adventure-result-art{min-height:145px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;padding:22px;background:linear-gradient(transparent,#132116),url('../assets/forest-clean.webp') 60% 45%/cover}.adventure-result-art h1{font:600 26px 'Segoe UI',Arial,sans-serif;margin-top:8px}.adventure-result-art .eyebrow{font-size:9px}.adventure-result-panel{text-align:center;padding:0 20px 23px}.adventure-result-panel>.rating{font-size:31px;letter-spacing:5px}.adventure-result-panel h2{font:600 20px 'Segoe UI',Arial,sans-serif;margin:18px 0}.harvest-count{display:flex;justify-content:center;align-items:center;gap:9px}.harvest-count>strong{font-size:58px;color:#efd188;line-height:1.1}.harvest-count>span{font-size:24px;color:#bec9ac;text-align:left}.harvest-count small{display:block;font-size:8px;letter-spacing:1px;margin-top:3px}.harvest-mission{display:flex;justify-content:center;gap:7px;align-items:center;padding:14px 0;font-size:10px;color:#d4ddb1}.harvest-mission svg{width:16px;height:16px}.harvest-rewards{display:flex;gap:12px;justify-content:center;margin:0 0 16px}.harvest-rewards>span{padding:10px 15px;border:1px solid #b5a97866;border-radius:6px;font-size:10px;color:#bec5aa;background:#30402260}.harvest-rewards strong{display:block;font-size:16px;margin-top:6px;color:#efd188}.adventure-result-panel>p{font-size:10px;color:#b7c2a6;line-height:1.6;margin-bottom:20px}.adventure-result-panel>.btn{display:flex;width:100%;justify-content:space-between;margin-top:10px}.adventure-result-panel>.btn svg{width:18px;height:18px}
/* Adventure: interactive nodes over clean illustrated terrain, never baked-in labels. */
.screen-map .game-page{padding:0;display:flex;flex-direction:column;overflow:hidden}.map-title{padding:12px 18px 10px;flex-shrink:0;background:#0e1c13a3}.map-title .eyebrow{font-size:8px}.map-title h1{font:600 22px/1.2 'Segoe UI',Arial,sans-serif;margin-top:4px}.world-map{flex:1;min-height:270px;position:relative;isolation:isolate;background:linear-gradient(#0b1b1122,#0b170b33),url('../assets/world-map-clean.webp'),url('../assets/forest-clean.webp');background-position:center;background-size:cover;border-top:1px solid #bca26a33;border-bottom:1px solid #bca26a55}.world-map:after{content:'';position:absolute;inset:0;z-index:-1;box-shadow:inset 0 0 45px #04100b99}.forest-node{position:absolute;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;width:150px;height:95px;filter:drop-shadow(0 3px 4px #000b)}.node-0{left:2%;top:0%}.node-1{right:1%;top:19%}.node-2{left:1%;top:38%}.node-3{right:2%;top:57%}.node-4{left:3%;top:74%}.forest-node-art{height:53px;width:60px;position:relative;border:2px solid #a6ac8a;border-radius:50%;background:radial-gradient(#456238c9,#17271b);display:grid;place-items:center;box-shadow:0 0 0 3px #0d190aa8}.forest-node-art>img{height:62px;width:62px;object-fit:contain;transform:translateY(-7px)}.node-name{padding:3px 12px;background:linear-gradient(#293326,#0c180e);border:1px solid #b0b29799;border-radius:20px;font-size:11px;font-weight:600;z-index:1;margin-top:-5px;white-space:nowrap}.rating{font-size:14px;letter-spacing:1px;color:#e9be5b;text-shadow:0 2px 4px #000;margin-top:2px;line-height:1}.rating>span{color:#acb39a}.forest-node.selected .forest-node-art{border-color:#f0cc6e;box-shadow:0 0 0 3px #0d190ac9,0 0 18px #efc14c77}.forest-node.selected .node-name{border-color:#f0cc6e;color:#fff0c6;background:linear-gradient(#526027,#17240b)}.forest-node.locked .forest-node-art>img{filter:brightness(.5) saturate(.5)}.node-lock{position:absolute;inset:0;display:grid;place-items:center;background:#0d170d77;border-radius:50%;color:#f4ecd4}.node-lock svg{width:22px;height:22px}.map-route{position:absolute;left:32%;right:31%;top:15%;bottom:11%;border:2px dashed #ebbc6966;border-radius:40% 20% 35% 20%;transform:rotate(7deg);filter:drop-shadow(0 0 4px #a37c29);z-index:-1}.forest-detail{margin:10px 12px 12px;border:1px solid #c9ae6e88;border-radius:12px;padding:13px;background:linear-gradient(120deg,#25301ee8,#0f1c12ed);flex-shrink:0;box-shadow:0 4px 14px #0006}.forest-detail-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.forest-detail-top .eyebrow{font-size:8px}.forest-detail h2{font:600 22px/1.2 'Segoe UI',Arial,sans-serif;margin-top:5px}.forest-pool{display:flex;gap:1px}.forest-pool img{width:35px;height:43px;object-fit:contain}.forest-detail>p{font-size:10px;line-height:1.6;color:#c1c7b2;margin:8px 0}.forest-detail-meta{display:flex;gap:8px;justify-content:space-between;font-size:8px;color:#cfc7a4;margin:9px 0 12px}.forest-detail-meta>span:first-child{display:flex;gap:5px;align-items:center}.forest-detail-meta svg{width:12px;height:12px}.forest-enter{width:100%;min-height:45px;justify-content:space-between;font-size:14px!important;font-weight:700}.forest-enter svg{height:18px;width:18px}
/* Full game canvas remains portrait on a desktop, like the other screens. */
.forest-screen{left:50%;right:auto;width:min(100%,480px);transform:translateX(-50%);border-inline:1px solid #a48d5855}.forest-top{left:14px;right:14px;top:14px}.forest-name{gap:9px}.forest-name h2{font:600 23px/1.2 'Segoe UI',Arial,sans-serif}.forest-name .eyebrow{font-size:8px}.forest-top .icon-btn{width:44px;height:44px;font-size:22px}.forest-stats .hud-pill{display:none}.forest-name .stars{font-size:17px;letter-spacing:1px;margin:8px 0}.mission{top:114px;left:14px;padding:12px;max-width:240px}.mission p{font-size:10px}.minimap{top:114px;right:14px;width:90px;height:70px}.forest-tools{right:14px;gap:12px}.forest-tools .icon-btn{width:47px;height:47px}.forest-bottom{left:14px;right:14px;bottom:18px;gap:10px}.basket-hud{padding:10px 12px;gap:8px}.basket-hud img{width:31px;height:37px}.basket-hud .basket-count{font-size:22px}.forest-bottom .btn{font-size:10px;padding:12px;gap:8px}.forest-hint{font-size:9px;padding:10px 14px;bottom:105px}.compass-indicator{right:14px;top:190px;width:90px;font-size:9px}.found-flash{width:240px}.found-flash p{font-size:20px}
dialog{width:min(92vw,440px);border-radius:12px;padding:24px;font-family:'Segoe UI',Arial,sans-serif}dialog h2{font:600 25px/1.2 'Segoe UI',Arial,sans-serif}dialog p{font-size:12px}#toast{bottom:85px;border-radius:8px;max-width:min(90vw,420px);font-size:11px}.icon-btn{font-family:'Segoe UI',Arial,sans-serif}
@media(min-width:520px){.app-frame{border-radius:17px}.game-surround{padding:14px 0}.app-frame{height:calc(100dvh - 28px)}.forest-screen{top:50%;bottom:auto;height:min(calc(100dvh - 28px),960px);transform:translate(-50%,-50%);border-radius:17px}}
@media(max-height:740px){.player-hud{min-height:65px;padding-block:8px}.screen-home .game-page{gap:8px;padding-top:4px;padding-bottom:10px}.menu-brand{height:52px}.menu-brand .brand-art{width:150px;height:60px;background-size:866.165px auto;background-position:-7.895px -214.85px}.menu-heading{font-size:10px;line-height:16px}.game-mode-menu{min-height:256px;gap:7px}.banner-caption strong{font-size:23px}.banner-caption small{font-size:10px}.menu-shortcuts{height:74px}.menu-shortcuts button{gap:5px}.menu-shortcuts svg{width:23px;height:23px}.game-dock{min-height:59px;padding-top:5px;padding-bottom:5px}.game-dock svg{width:22px;height:22px}.forest-detail{margin:8px;padding:11px}.forest-detail>p{display:none}.world-map{min-height:235px}.forest-node{height:80px;width:140px}.forest-node-art{height:43px;width:48px}.forest-node-art>img{height:52px;width:52px}.node-name{font-size:10px}.rating{font-size:12px}.map-title{padding:8px 15px}.map-title h1{font-size:20px}}
@media(max-height:620px){.screen-home .game-page{overflow:auto;gap:6px}.menu-brand{height:36px}.menu-brand .brand-art{width:125px;height:49px;background-size:721.805px auto;background-position:-6.579px -179.041px}.menu-heading{font-size:9px;line-height:12px}.game-mode-menu{flex:1;min-height:244px;grid-template-rows:repeat(4,minmax(52px,1fr));gap:6px}.game-banner{padding:10px 14px}.banner-caption{gap:4px}.banner-caption strong{font-size:20px}.banner-caption small{font-size:9px}.menu-shortcuts{height:62px}.menu-shortcuts button{gap:4px}.menu-shortcuts .game-icon{width:22px;height:22px}.menu-shortcuts button>span{font-size:10px}.screen-map .game-page{overflow:auto}.world-map{flex:none;height:330px}}
