/* Stage 1: a readable field of play. Paper and cobalt stay at the edges. */
.in-game .game-top{top:18px;left:20px;right:20px;gap:12px}
.in-game .trainer-chip{min-width:152px;padding:8px 12px 8px 8px;border-radius:14px;gap:9px}
.in-game .trainer-avatar{width:32px;height:32px;font-size:17px}
.in-game .trainer-chip b{font-size:12px}.in-game .trainer-chip small{font-size:9px}
.in-game .xp-track{width:84px;margin-top:5px}
.in-game .game-top .wordmark{font-size:21px;padding:4px 10px 4px 4px;box-shadow:none}
.in-game .game-top .wordmark img{width:27px;height:27px;border-radius:7px}
.in-game .social-chip{left:20px;top:78px;min-height:26px;padding:5px 10px}
.in-game .route-card{left:20px;top:117px;width:245px;padding:17px 18px 16px;border-radius:15px;background:#f9f7eceb;border-color:#fff9;box-shadow:0 5px 20px #243d5d12}
.in-game .route-card .tiny{font-size:9px;line-height:1.3;letter-spacing:0;padding-right:28px;color:#687b93}
.in-game .route-card h3{font-size:15px;line-height:1.45;letter-spacing:-.3px;margin:8px 20px 8px 0;color:#263d61}
.in-game .route-card p:not(.tiny){font-size:12px;line-height:1.7;color:#526880}
.in-game .route-progress{font-size:10px;gap:12px;margin-top:11px;color:#687b93}
.in-game .route-progress button{font-size:10px;min-height:28px;line-height:1.5;text-align:right;flex-shrink:0}
.in-game .trail-toggle{position:absolute;top:11px;right:11px;display:grid;place-items:center;width:30px;height:30px;background:#e8edf5;color:#42618c;border:1px solid #d4ddea;border-radius:8px;font-size:18px;text-decoration:none;pointer-events:auto}
.in-game .route-card.is-collapsed p:not(.tiny){display:none}
.in-game .route-card.is-collapsed h3{margin-bottom:2px}
.in-game .route-card.is-collapsed .route-progress{margin-top:5px}
.in-game .region-card{right:20px;top:96px;width:132px}
.in-game .minimap{width:98px;height:98px;border-width:3px;box-shadow:0 3px 12px #263f701a}
.in-game .region-card strong{font-size:11px;line-height:1.5;margin-top:8px;letter-spacing:0}
.in-game .region-card>small{font-size:9px;line-height:1.5;margin-top:2px}
.map-shortcuts{position:relative;margin:9px 0 0;pointer-events:auto;font-size:10px;color:#46618f}
.map-shortcuts summary{cursor:pointer;list-style:none;padding:6px 9px;border-radius:8px;background:#f9f7eceb;border:1px solid #fff9;display:inline-block;min-height:29px}
.map-shortcuts summary::-webkit-details-marker{display:none}.map-shortcuts summary:after{content:' +';padding-left:3px}.map-shortcuts[open] summary:after{content:' −'}
.map-shortcuts .habitat-routes{justify-content:center;display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;padding:7px;background:#f9f7ecef;border-radius:10px}
.map-shortcuts .habitat-routes button{font-size:10px;padding:7px;min-height:31px}
.view-controls{display:flex;gap:4px;justify-content:center;margin-top:8px;pointer-events:auto}
.view-controls button{display:grid;place-items:center;width:39px;height:37px;background:#f9f7eceb;border:1px solid #fff9;color:#46618f;font-size:19px;border-radius:9px;box-shadow:0 2px 7px #243d5d0d}
.view-controls button:hover:not(:disabled){background:#e2eaf7}.view-controls button:disabled{opacity:.35}
.in-game .bottom-nav{left:50%;bottom:23px;transform:translateX(-50%);gap:5px;padding:5px;background:#f9f7eceb;border:1px solid #fff9;border-radius:16px;box-shadow:0 5px 20px #243d5d16;white-space:nowrap}
.in-game .nav-tool{padding:11px 14px;min-height:42px;border:0;background:transparent;box-shadow:none;border-radius:11px;font-size:11px;gap:8px}
.in-game .nav-tool:hover{background:#e5ebf5}.in-game .nav-tool>span{font-size:17px}.in-game .nav-tool small{font-size:9px;margin-left:0}
.in-game .target-card{right:auto;left:50%;bottom:98px;transform:translateX(-50%);width:300px;border-radius:17px;background:#faf8eff5;border-color:#fff;box-shadow:0 6px 25px #243d5d26;padding:18px}
.in-game .target-card h2{font-size:19px;line-height:1.35;letter-spacing:-.5px}
.in-game .target-card .tip{font-size:11px;line-height:1.6;color:#65758c}
.in-game .nearby-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:max-content;max-width:min(580px,calc(100% - 48px));padding:13px 15px 13px 20px}
.in-game .nearby-card .trace-kicker,.in-game .nearby-card>p{display:none}
.in-game .nearby-card h2{font-size:15px;line-height:1.5;letter-spacing:-.2px;margin:0;max-width:245px}
.in-game .nearby-card .btn{width:auto;margin:0;min-height:42px;font-size:11px;padding:10px 16px;max-width:245px}
.in-game .dig-card .trace-kicker{font-size:9px}.in-game .dig-card .soil-layers{margin-top:14px}.in-game .dig-card .soil-layers>small{font-size:10px}
.in-game .lantern-control{left:20px;bottom:24px;min-height:45px;font-size:11px;box-shadow:0 4px 14px #243d5d15}
.in-game .save-status{position:absolute;left:20px;right:auto;bottom:78px;transform:none;font-size:9px;padding:5px 8px;max-width:260px;background:#f9f7ecc9;color:#516b84;opacity:.75}
.in-game .save-status:hover,.in-game .save-status:focus-visible{opacity:1}.in-game .save-status.save-error{opacity:1;color:#a55343;background:#fff1e8}
.in-game .trace-marker{opacity:.8;box-shadow:none}.in-game .trace-marker:hover{opacity:1}
.in-game:has(.result-card) .view-controls,.in-game .aiming .view-controls{display:none}
.arrival-card{position:absolute;left:4vw;top:50%;transform:translateY(-40%);background:#f9f7ecef;padding:30px 34px;border:1px solid #fff9;border-radius:23px;max-width:360px;color:#263d61}
.arrival-card img{width:52px;height:52px;border-radius:13px;margin-bottom:22px}.arrival-card h1{font-size:32px;line-height:1.15;letter-spacing:-1.3px;margin-bottom:13px}.arrival-card p{font-size:13px;line-height:1.8;color:#65758c}
@media(max-width:900px) and (min-width:701px){.in-game .nav-tool{padding:10px}.in-game .bottom-nav{bottom:18px}.in-game .lantern-control{bottom:84px}.in-game .save-status{bottom:23px;max-width:150px}}
@media(max-width:700px){
 .in-game .game-top{top:12px;left:12px;right:12px;gap:8px}.in-game .trainer-chip{min-width:130px;padding:7px 9px 7px 7px;gap:7px}.in-game .trainer-avatar{width:29px;height:29px;font-size:15px}.in-game .trainer-chip b{font-size:11px}.in-game .trainer-chip small{font-size:8px}.in-game .xp-track{width:67px}
 .in-game .game-top .wordmark{display:none}.in-game .top-tools{gap:6px}.in-game .coin-chip{padding:8px 10px;gap:5px;font-size:11px}.in-game .round-btn{width:34px;height:34px}
 .in-game .social-chip{left:12px;top:69px;padding:5px 9px;font-size:9px;min-height:25px}
 .in-game .route-card{left:12px;top:108px;width:calc(100% - 138px);max-width:235px;padding:13px 14px;border-radius:13px}.in-game .route-card .tiny{font-size:8px}.in-game .route-card h3{font-size:13px;line-height:1.45;margin-top:7px}.in-game .route-card p:not(.tiny){font-size:11px;line-height:1.65}.in-game .route-progress{font-size:9px;gap:8px}.in-game .route-progress button{font-size:9px;min-height:29px}.in-game .trail-toggle{top:9px;right:9px;width:28px;height:28px;font-size:17px}
 .in-game #ui:has(.field-hud) .route-card{top:159px}.in-game #cooperation-hud{left:12px;top:105px;max-width:calc(100% - 138px)}
 .in-game .region-card{right:12px;top:108px;width:104px}.in-game .minimap{width:75px;height:75px;border-width:3px}.in-game .region-card strong{font-size:10px;margin-top:6px}.in-game .region-card>small{font-size:8px;line-height:1.5}.map-shortcuts{font-size:9px;margin-top:7px}.map-shortcuts summary{min-height:29px;padding:6px 9px}.map-shortcuts .habitat-routes{gap:3px;padding:4px}.map-shortcuts .habitat-routes button{font-size:9px;padding:6px;min-height:30px}.view-controls{gap:3px;margin-top:7px}.view-controls button{width:32px;height:32px;border-radius:8px;font-size:18px}
 .in-game .bottom-nav{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 24px);justify-content:space-between;padding:4px;border-radius:14px;gap:2px}.in-game .nav-tool{padding:10px 8px;min-height:42px;font-size:10px;gap:6px;border-radius:10px}.in-game .nav-tool>span{font-size:16px}.in-game .nav-tool small{display:none}
 .in-game .dpad{left:12px;bottom:89px;width:120px;height:120px;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(3,38px);gap:3px}.in-game .dpad button{background:#f9f7ecd9;font-size:15px;border-color:#fff9;border-radius:11px;box-shadow:0 2px 8px #243d5d15}
 .in-game .target-card{left:auto;right:12px;bottom:89px;transform:none;width:calc(100% - 158px);max-width:240px;padding:13px;border-radius:14px}.in-game .target-card h2{font-size:16px;line-height:1.4}.in-game .target-card .tip{font-size:10px;line-height:1.6}.in-game .target-card .btn{font-size:11px;padding:10px;min-height:43px;margin-top:12px}
 .in-game .nearby-card{display:block;min-width:0;max-width:240px}.in-game .nearby-card h2{font-size:13px;line-height:1.5;max-width:none;margin-bottom:9px}.in-game .nearby-card .btn{width:100%;margin:0;max-width:none;font-size:10px;line-height:1.6;padding:9px 10px}.in-game .nearby-card .btn kbd{display:none}
 .in-game .lantern-control{left:auto;right:12px;top:69px;bottom:auto;min-height:27px;padding:5px 8px;font-size:9px}.in-game .lantern-control svg{width:19px;height:19px}.in-game .save-status{left:12px;bottom:65px;max-width:calc(100% - 24px);font-size:8px;padding:4px 7px}
 .arrival-card{left:14px;right:14px;max-width:360px;padding:26px;top:45%}.arrival-card h1{font-size:29px}
}
@media(max-width:360px){.in-game .trainer-chip{min-width:112px}.in-game .trainer-avatar{display:none}.in-game .coin-chip{padding:8px}.in-game .nav-tool{font-size:9px;padding:9px 6px;gap:4px}.in-game .route-card{width:calc(100% - 130px);padding:12px}.in-game .route-card h3{font-size:12px}.in-game .route-progress{flex-wrap:wrap;gap:0}.in-game .route-progress button{text-align:left}.in-game .region-card{width:94px}.in-game .view-controls button{width:29px}}
.in-game #toast{bottom:auto;top:79px;max-width:min(460px,calc(100% - 560px));font-size:11px;line-height:1.6;border-radius:12px;box-shadow:0 4px 15px #263f7017}
.in-game:has(.field-hud) #toast{top:130px}
@media(max-width:700px){.in-game #toast,.in-game:has(.field-hud) #toast{top:auto;bottom:265px;max-width:calc(100% - 36px);font-size:11px;padding:11px 15px}}
.in-game .trainer-chip b{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.in-game .trainer-chip b{max-width:75px}.in-game .dpad{width:138px;height:138px;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px)}.in-game .target-card{width:calc(100% - 174px)}}
@media(max-width:360px){.in-game .trainer-chip{min-width:100px}.in-game .trainer-chip b{max-width:70px}.in-game .energy-chip{min-width:70px;padding:7px 6px}.in-game .top-tools{gap:4px}.in-game .coin-chip{padding:7px}.in-game .coin-chip .coin{width:16px;height:16px;font-size:8px}}
