.egg-app{max-width:1660px;margin:auto;padding:12px 26px 20px}.egg-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.egg-heading h1{margin:1px 0;font-size:27px;line-height:1.2;letter-spacing:-.7px}.egg-wallet{display:flex;align-items:center;gap:8px;background:#26334d;border:1px solid #676947;padding:9px 15px;border-radius:13px;font-size:23px}.egg-wallet>span{color:#ffdc71;text-shadow:0 2px #b77829}.egg-wallet small{font-size:12px;color:#c0cde1}.egg-route{display:flex;gap:7px;align-items:center;flex:1;justify-content:center}.egg-route>span{display:flex;align-items:center;flex-direction:column;gap:2px;min-width:47px;color:#91a4bf;font-size:11px}.egg-route b{display:grid;place-items:center;width:27px;height:27px;border:2px solid #526278;border-radius:50%;background:#23304a;color:#b7c7da}.egg-route .visited b{border-color:var(--world-color)}.egg-route .here b{color:#152333;background:var(--world-color);box-shadow:0 0 0 4px #ffffff13}.egg-route .here{color:#fff}.egg-stage{position:relative;height:min(730px,calc(100dvh - 174px));min-height:460px;border-radius:24px;overflow:hidden;isolation:isolate;background:#b3e1eb;border:1px solid #a4d3da}.egg-stage canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}.egg-location{position:absolute;left:22px;top:19px;max-width:355px;background:#163b42e8;color:white;border:1px solid #d1ebe246;border-radius:16px;padding:13px 17px;pointer-events:none}.egg-location>span:first-child{display:block;font-size:10px;font-weight:bold;letter-spacing:2px;color:#caedc4}.egg-location strong{display:block;font-size:23px;line-height:1.1;margin:4px 0 8px}.egg-location #eggMission{font-size:13px;line-height:1.35;color:#e3f2ed}.egg-target{display:inline-block;font-size:11px;font-weight:bold;background:#ffffff15;border-radius:6px;padding:4px 7px;margin-top:8px;color:#ffdf92}.egg-top-actions{position:absolute;right:17px;top:17px;display:flex;gap:7px}.egg-top-actions button{background:#183544ea;color:white;border:1px solid #b8d4d84d;padding:10px 13px;border-radius:11px;font-size:13px;font-weight:bold}.egg-top-actions button b{color:#ddf0b4;margin-left:4px}.egg-top-actions button:hover{background:#305165}.egg-top-actions #eggCamera,.egg-top-actions #eggPause,.egg-top-actions #eggFullscreen{font-size:21px;line-height:1;padding:9px 13px}.egg-stats{position:absolute;right:18px;top:73px;display:flex;align-items:center;gap:15px;border-radius:12px;background:#183544d9;padding:10px 15px;font-size:12px;color:#cbdde5;pointer-events:none}.egg-stats b{color:white;font-size:17px;margin-left:5px}.egg-energy{display:flex;align-items:center;gap:7px}.egg-energy>div{width:84px;height:8px;border-radius:8px;background:#ffffff24;overflow:hidden}.egg-energy i{display:block;height:100%;background:#b5ef8b;width:100%;border-radius:8px}.egg-chase{position:absolute;top:128px;right:18px;background:#b34848ed;color:#fff3d3;border:1px solid #ffb090;border-radius:11px;padding:10px 14px;font-size:14px;font-weight:800}.egg-chase.safe{background:#2d715ddd;border-color:#a2d39d}.egg-toast{position:absolute;left:50%;bottom:167px;transform:translateX(-50%);background:#143442ed;color:#fff5dd;border:1px solid #d5f0da4a;border-radius:13px;padding:10px 17px;font-size:14px;text-align:center;width:max-content;max-width:76%;pointer-events:none;transition:opacity .2s;z-index:3}.egg-toast:empty{opacity:0}.egg-controls{position:absolute;left:24px;right:24px;bottom:19px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px;pointer-events:none}.egg-joystick{position:relative;width:106px;height:106px;border-radius:50%;background:#1e47564f;border:2px solid #ffffff85;box-shadow:0 4px 25px #203b4330;touch-action:none;user-select:none;pointer-events:auto;flex-shrink:0}.egg-stick-arrows{position:absolute;inset:0;display:grid;place-items:center;font-size:88px;font-weight:normal;color:#ffffff44;line-height:1}.egg-stick{position:absolute;left:50%;top:50%;margin:-24px;width:48px;height:48px;background:#f0fff1d9;border:2px solid white;border-radius:50%;box-shadow:0 4px 10px #1c3b4055;pointer-events:none}.egg-joystick small{position:absolute;left:0;right:0;bottom:-15px;text-align:center;font-size:9px;color:#173e47;letter-spacing:2px;font-weight:bold}.egg-key-hints{margin-right:auto;color:#254953;font-size:12px;line-height:1.7;padding:9px 12px;border-radius:10px;background:#f3fff2df;align-self:flex-end}.egg-action-pad{display:grid;grid-template-columns:70px 70px;gap:9px;pointer-events:auto}.egg-round{border:2px solid #ffffffaf;border-radius:50%;height:66px;width:66px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:29px;background:#e8f8efd9;color:#264251;font-weight:bold;touch-action:none;user-select:none;box-shadow:0 4px 10px #1d3c3c22}.egg-round small{font-size:10px;line-height:1}.egg-round.sprint{background:#ffd782f2;color:#705227}.egg-round.held{background:#fff1a0;transform:scale(.95)}.egg-interact{grid-column:1/-1;border-radius:12px;padding:10px 12px;background:#cffa8c;color:#233e25;box-shadow:0 3px 0 #80a655;font-size:13px;font-weight:bold;min-width:148px;min-height:41px;touch-action:manipulation}.egg-interact:disabled{background:#254656df;color:#d7e7e6;box-shadow:none;opacity:.83}.egg-training{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:310px;background:#173d49f2;border:1px solid #a9e4d0;border-radius:15px;padding:14px;text-align:center;color:white;z-index:4}.egg-training strong{display:block;font-size:16px}.egg-training span{display:block;font-size:12px;color:#c5e5d3;margin:5px 0}.egg-training>div{height:8px;background:#ffffff24;border-radius:8px;overflow:hidden;margin:9px 0}.egg-training i{display:block;height:100%;background:#d1f88b}.egg-training button{padding:7px 13px;background:#d1f88b;color:#314729;border-radius:8px;font-size:12px;font-weight:bold}.egg-sheet{position:absolute;inset:0;z-index:20;background:#1023359c;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px}.egg-sheet-card{background:#f3f7ee;color:#243d42;border-radius:22px;border:4px solid #fff;box-shadow:0 20px 65px #13284666;max-width:770px;width:100%;max-height:100%;overflow:auto;padding:22px 25px}.egg-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #cedbcf;padding-bottom:13px;margin-bottom:16px}.egg-sheet-head span{font-size:10px;letter-spacing:2px;font-weight:bold;color:#56866c}.egg-sheet-head h2{margin:3px 0 0;font-size:25px;line-height:1.1}.egg-sheet-head>button{width:35px;height:35px;border-radius:50%;background:#dce9dc;color:#3c5a4c;font-size:26px;flex-shrink:0}.egg-sheet-card p{font-size:14px;line-height:1.5;color:#55706c}.egg-sheet-card button{touch-action:manipulation}.egg-primary,.egg-secondary{padding:11px 17px;border-radius:10px;font-weight:bold;font-size:14px}.egg-primary{background:#4a4d9c;color:white;box-shadow:0 3px 0 #2f326f}.egg-secondary{background:#dbe8d9;color:#3d5a49}.egg-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.egg-upgrade,.egg-pet-card{border:1px solid #c7d7ca;background:white;border-radius:13px;padding:15px}.egg-upgrade h3{font-size:17px;margin:0}.egg-upgrade small{color:#689179;font-size:12px}.egg-upgrade p{font-size:13px;margin:7px 0 12px}.egg-upgrade button{width:100%}.egg-upgrade button:disabled{background:#dae4da;color:#7f9188;box-shadow:none}.egg-shop-balance{font-size:16px;font-weight:bold;color:#967131;background:#fcf1c9;padding:10px 14px;border-radius:10px;margin:0 0 15px}.egg-pet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.egg-pet-card{text-align:center;padding:12px}.egg-pet-card img{display:block;width:95px;height:90px;object-fit:contain;margin:auto}.egg-pet-card strong{font-size:14px;display:block;line-height:1.25;min-height:35px}.egg-pet-card small{display:block;font-size:12px;color:#67836e;margin:6px 0}.egg-pet-card button{padding:8px 10px;width:100%;font-size:12px}.egg-empty{padding:20px;text-align:center;background:#e4eee1;border-radius:13px}.egg-empty strong{font-size:20px;display:block}.egg-modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}.egg-help-list{padding-left:23px;color:#4b6766;font-size:14px}.egg-help-list li{margin:10px 0}.egg-muted{font-size:12px!important;color:#738a82!important}.egg-reset{display:block;background:none;color:#946664;text-decoration:underline;font-size:12px;margin:18px auto 0}.egg-orientation{display:none;color:#b9cbe0;font-size:13px;text-align:center}.egg-game-card .cover{background:linear-gradient(145deg,#3d7666,#364f78)}.egg-game-card .glyph{font-size:62px}.egg-game-card .card-body .subject{color:#f7da8e}.header-actions #openEggGame{background:#f6d284;color:#3c3822;border:0}.egg-app:fullscreen{background:#131c2c;max-width:none;width:100%;height:100%;padding:12px}.egg-app:fullscreen .egg-stage{height:calc(100dvh - 86px);min-height:0}
@media(min-width:951px){.cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:950px) and (orientation:landscape){.egg-app{padding:6px 12px 8px}.egg-heading{margin-bottom:7px;gap:10px}.egg-heading h1{font-size:19px}.egg-heading .game-tag{font-size:8px}.egg-wallet{padding:4px 9px;font-size:17px;gap:5px}.egg-wallet small{font-size:9px}.egg-route{gap:5px}.egg-route>span{min-width:26px;font-size:8px}.egg-route b{width:21px;height:21px;font-size:10px}.egg-stage{height:calc(100dvh - 123px);min-height:250px;border-radius:14px}.egg-location{left:10px;top:9px;padding:8px 10px;max-width:240px;border-radius:10px}.egg-location>span:first-child{font-size:8px;letter-spacing:1px}.egg-location strong{font-size:16px;margin:3px 0 5px}.egg-location #eggMission{font-size:10px;max-width:210px}.egg-target{font-size:9px;margin-top:5px;padding:2px 5px}.egg-top-actions{right:9px;top:9px;gap:4px}.egg-top-actions button{font-size:10px;padding:7px 9px;border-radius:8px}.egg-top-actions #eggCamera,.egg-top-actions #eggPause,.egg-top-actions #eggFullscreen{padding:6px 8px;font-size:17px}.egg-stats{right:9px;top:47px;padding:5px 9px;font-size:9px;gap:9px;border-radius:8px}.egg-stats b{font-size:12px;margin-left:2px}.egg-energy{gap:4px}.egg-energy>div{width:45px;height:6px}.egg-chase{right:9px;top:79px;padding:5px 8px;font-size:10px}.egg-controls{left:17px;right:12px;bottom:14px;gap:8px}.egg-joystick{height:76px;width:76px}.egg-stick{width:34px;height:34px;margin:-17px}.egg-stick-arrows{font-size:63px}.egg-joystick small{font-size:8px;bottom:-13px}.egg-key-hints{display:none}.egg-action-pad{grid-template-columns:48px 48px;gap:5px}.egg-round{height:45px;width:45px;font-size:23px;border-width:1px}.egg-round small{font-size:8px}.egg-interact{font-size:10px;min-width:100px;min-height:31px;padding:6px 8px;border-radius:8px}.egg-toast{top:82px;bottom:auto;padding:6px 9px;font-size:10px;max-width:34%;border-radius:9px}.egg-training{width:240px;bottom:15px;padding:9px}.egg-training strong{font-size:12px}.egg-training span{font-size:10px;margin:4px 0}.egg-training>div{height:6px;margin:6px 0}.egg-training button{font-size:10px;padding:5px 9px}.egg-sheet{padding:10px}.egg-sheet-card{padding:12px 17px;border-radius:15px;border-width:3px;max-width:690px}.egg-sheet-head{padding-bottom:8px;margin-bottom:10px}.egg-sheet-head h2{font-size:20px}.egg-sheet-head span{font-size:8px}.egg-sheet-head>button{width:28px;height:28px;font-size:21px}.egg-sheet-card p,.egg-help-list{font-size:12px}.egg-help-list li{margin:6px 0}.egg-sheet-grid{gap:7px}.egg-upgrade{padding:10px}.egg-upgrade h3{font-size:14px}.egg-upgrade p{font-size:11px;margin:4px 0 7px}.egg-primary,.egg-secondary{padding:8px 12px;font-size:12px}.egg-shop-balance{padding:7px 10px;font-size:13px;margin-bottom:9px}.egg-pet-card img{width:70px;height:60px}.egg-pet-card strong{font-size:12px;min-height:29px}.egg-pet-card small{font-size:10px}.egg-modal-actions{margin-top:11px}.egg-muted{font-size:10px!important}.header-actions #openEggGame{font-size:11px;padding:7px 9px}}
@media(max-width:650px) and (orientation:portrait){.egg-app{padding:12px}.egg-heading{flex-wrap:wrap;gap:9px}.egg-heading h1{font-size:23px}.egg-route{order:3;flex-basis:100%;justify-content:space-between;gap:3px}.egg-route>span{min-width:28px;font-size:9px}.egg-wallet{font-size:17px;padding:6px 9px}.egg-wallet small{font-size:10px}.egg-stage{height:590px;min-height:0;border-radius:15px}.egg-location{left:10px;top:9px;max-width:220px;padding:9px 12px}.egg-location strong{font-size:18px}.egg-location #eggMission{font-size:11px}.egg-top-actions{top:auto;bottom:140px;right:10px;flex-direction:column;gap:5px}.egg-top-actions button{font-size:11px;padding:8px}.egg-top-actions #eggCamera,.egg-top-actions #eggPause,.egg-top-actions #eggFullscreen{font-size:18px}.egg-stats{top:143px;left:10px;right:auto;font-size:10px;gap:8px;padding:7px 10px}.egg-stats b{font-size:13px}.egg-energy>div{width:47px}.egg-chase{top:184px;left:10px;right:auto;font-size:11px}.egg-controls{left:15px;right:12px;bottom:20px}.egg-key-hints{display:none}.egg-joystick{width:90px;height:90px}.egg-round{height:56px;width:56px;font-size:25px}.egg-action-pad{grid-template-columns:58px 58px;gap:6px}.egg-interact{min-width:120px;font-size:11px}.egg-toast{bottom:148px;font-size:12px;max-width:90%}.egg-training{bottom:130px;width:260px}.egg-sheet{padding:10px}.egg-sheet-card{padding:14px}.egg-sheet-grid{grid-template-columns:1fr}.egg-pet-grid{grid-template-columns:repeat(2,1fr)}.egg-orientation{display:block}.header-actions #headerPoster{display:none}.header-actions #openEggGame{padding:7px 8px;font-size:10px}.header-actions #otherGames{font-size:11px}}
/* Expanded route and runner shop. */
.egg-route{background:none;border:0;padding:5px 3px;min-width:0;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}.egg-route>span{flex-shrink:0;min-width:40px}.egg-heading>div:first-child,.egg-wallet{flex-shrink:0}.egg-backpack{position:absolute;right:18px;top:120px;display:flex;gap:7px;align-items:center;background:#19394be8;border:1px solid #b8d4d84d;padding:5px 9px;border-radius:10px;color:white;font-size:14px}.egg-backpack button{background:#eef6cd;border-radius:7px;padding:7px 10px;color:#304737;font-weight:bold}.egg-backpack button:disabled{opacity:.5}.egg-chase{top:179px}.egg-shop-tabs{display:flex;gap:8px;margin-bottom:13px}.egg-shop-tabs button{padding:10px 14px;background:#dce8df;color:#385447;border-radius:9px;font-size:14px;font-weight:bold}.egg-shop-tabs .selected{background:#414d91;color:white}.egg-item-icon{float:right;width:49px;height:49px;display:grid;place-items:center;font-size:31px;border-radius:12px;background:#eaf2ee;margin-left:8px}.egg-level-dots{display:flex;gap:4px;margin-bottom:14px}.egg-level-dots i{height:6px;flex:1;border-radius:6px;background:#e1e9e3}.egg-level-dots .owned{background:#588c6d}.egg-upgrade p{min-height:39px;font-size:14px}.egg-track-card{border-top:5px solid var(--track-color)}.egg-track-card p{font-size:13px;margin:6px 0}.egg-track-card>b{color:#827034;font-size:14px}
@media(max-width:950px) and (orientation:landscape){.egg-route>span{min-width:26px}.egg-route{gap:5px}.egg-backpack{right:9px;top:80px;padding:3px 6px;font-size:11px}.egg-backpack button{padding:5px 7px;font-size:11px}.egg-chase{top:116px}.egg-toast{top:117px;max-width:40%}.egg-shop-tabs button{padding:8px 10px;font-size:12px}.egg-item-icon{width:38px;height:38px;font-size:27px}.egg-upgrade p{font-size:12px;min-height:34px}.egg-level-dots{margin-bottom:9px}}
@media(max-width:650px) and (orientation:portrait){.egg-heading{flex-wrap:wrap}.egg-route{order:3;flex-basis:100%;justify-content:flex-start}.egg-route>span{min-width:32px}.egg-backpack{top:184px;left:10px;right:auto;font-size:12px}.egg-chase{top:230px}.egg-top-actions{bottom:144px}.egg-shop-tabs button{padding:9px;font-size:12px}.egg-item-icon{width:44px;height:44px;font-size:30px}}
.egg-item-icon{object-fit:contain;width:68px;height:62px}.egg-upgrade h3{line-height:1.2}.egg-sheet-head{position:sticky;top:-22px;z-index:2;background:#f3f7ee}
@media(max-width:950px) and (orientation:landscape){.egg-sheet-card{padding:8px 14px}.egg-sheet-head{top:-8px;padding:3px 0 7px;margin-bottom:7px}.egg-sheet-head h2{font-size:18px}.egg-shop-balance{padding:5px 9px;margin-bottom:6px}.egg-shop-tabs{margin-bottom:7px}.egg-shop-tabs button{padding:6px 9px}.egg-upgrade{padding:8px}.egg-item-icon{width:45px;height:44px}.egg-upgrade p{margin-top:5px;margin-bottom:6px}.egg-level-dots{margin-bottom:7px}}
@media(max-width:650px) and (orientation:portrait){.egg-sheet-head{top:-14px}}
@media(max-width:950px) and (orientation:landscape){.egg-sheet{position:fixed;inset:0;z-index:100;padding:12px 35px}.egg-sheet-card{max-width:740px}.egg-item-icon{width:59px;height:54px}}
.egg-stage canvas{cursor:grab}.egg-stage canvas.dragging{cursor:grabbing}.egg-top-actions #eggCamera,.egg-top-actions #eggCenterCamera{font-size:13px;line-height:1.2;padding:10px 12px}.egg-top-actions #eggCamera[aria-pressed=true]{background:#f6d284;color:#3c3822}
@media(max-width:950px) and (orientation:landscape){.egg-top-actions{gap:4px}.egg-top-actions #eggCamera,.egg-top-actions #eggCenterCamera{font-size:10px;padding:7px}.egg-location{max-width:230px}}
@media(max-width:650px) and (orientation:portrait){.egg-top-actions #eggCamera,.egg-top-actions #eggCenterCamera{font-size:11px;padding:8px}}
.egg-training-advice{font-size:12px;font-weight:bold;margin-top:7px;color:#ffe3a0;line-height:1.3}.egg-training-advice.ready{color:#c8f69c}.egg-track-training{margin:8px 0;padding:8px;border-radius:8px;background:#fff0c6;color:#735728}.egg-track-training.ready{background:#d9efce;color:#376346}.egg-track-training strong{font-size:13px;min-height:0}.egg-track-training span{display:block;font-size:12px;margin-top:4px}
@media(max-width:950px) and (orientation:landscape){.egg-training-advice{font-size:10px;margin-top:5px}.egg-track-training{padding:6px}.egg-track-training strong{font-size:12px}}

.egg-nest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.egg-settings-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.egg-settings-stats span{padding:12px;background:#edf6ef;border-radius:12px;font-size:12px;color:#395b50}.egg-settings-stats b{display:block;font-size:23px}.egg-settings-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.egg-control-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;padding:18px 0}.egg-control-guide dt{font-weight:700}.egg-control-guide dd{margin:0;color:#5d706d}#eggSettings{display:inline-flex;align-items:center;justify-content:center;min-width:40px}.egg-shop-tabs{flex-wrap:wrap}@media(max-width:650px){.egg-settings-stats,.egg-settings-buttons{grid-template-columns:repeat(2,1fr)}.egg-nest-grid{gap:6px}.egg-nest-grid .egg-pet-card{padding:10px 5px}.egg-nest-grid img{width:84px!important;max-width:100%}.egg-control-guide{font-size:12px}.egg-top-actions #eggTracks,.egg-top-actions #eggCenterCamera{display:none}}

.egg-income{display:grid;gap:8px;background:#edf6df;padding:18px;border-radius:18px;margin-bottom:16px}.egg-album{display:flex;gap:8px;flex-wrap:wrap}.egg-album span{padding:10px;background:#eef3f4;border-radius:12px;font-size:13px}.egg-decor-preview{height:90px;display:grid;place-items:center;background:var(--decor);color:var(--roof);font-size:90px;line-height:1;border-radius:14px}.egg-shop-tabs{flex-wrap:wrap}.egg-top-actions{max-width:75%;flex-wrap:wrap;justify-content:flex-end}.egg-pet-card button{margin-top:6px}.egg-online-controls{display:flex;gap:10px;flex-wrap:wrap}.egg-online-controls select{padding:10px;max-width:100%;border-radius:10px}.egg-online-card{background:#edf3f5;border-radius:14px;padding:14px;margin:12px 0}.egg-online-card button{margin:5px}.egg-online-status{font-size:13px;color:#365e58}.egg-race-hud{position:absolute;top:110px;left:50%;transform:translateX(-50%);background:#234d4be8;color:white;border-radius:16px;padding:10px 16px;font-weight:bold;pointer-events:none;z-index:3}.egg-race-hud[hidden]{display:none}@media(max-height:500px){.egg-top-actions{gap:4px;max-width:67%}.egg-top-actions button{font-size:11px;padding:6px}.egg-race-hud{top:80px;font-size:12px}}

/* Immersive HUD: edges carry controls; the track remains open. */
.egg-immersive{padding:8px 16px 12px;--hud-ink:#fffdf4;--hud-shadow:0 1px 3px #102b36,0 2px 9px #102b36a8}
.egg-immersive [hidden]{display:none!important}
.egg-immersive .egg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.egg-immersive .egg-stage{height:calc(100dvh - 130px);min-height:300px;max-height:900px;border-radius:20px;background:#a4d2df}
.egg-immersive .egg-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#10283a99,transparent 100px),linear-gradient(0deg,#10283a35,transparent 120px);z-index:0}
.egg-immersive svg{width:24px;height:24px;flex-shrink:0;vertical-align:middle}
.egg-immersive .egg-hud-top{position:absolute;z-index:2;inset:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) auto max(16px,env(safe-area-inset-left));display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none;color:var(--hud-ink);text-shadow:var(--hud-shadow)}
.egg-immersive .egg-navigation{min-width:0;max-width:50%}
.egg-immersive .egg-place{display:flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:0;background:none;border:0;color:inherit;text-shadow:inherit;text-align:left;pointer-events:auto}
.egg-immersive .egg-place>svg{width:30px;height:30px;color:#d7faab;filter:drop-shadow(0 2px 2px #15394080)}
.egg-immersive .egg-place>span{min-width:0}
.egg-immersive .egg-place small{display:block;font-size:10px;letter-spacing:1.5px;font-weight:800;color:#daf6c1}
.egg-immersive .egg-place strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:18px;line-height:1.35}
.egg-immersive .egg-objective{display:flex;align-items:center;gap:7px;margin:3px 0 0 39px;font-weight:700;font-size:13px;white-space:nowrap;color:#ffe7a3}
.egg-immersive #eggBearing{display:inline-flex;transition:transform .12s linear}
.egg-immersive #eggBearing svg{width:17px;height:17px;fill:#ffe7a344}
.egg-immersive .egg-hud-tools{display:flex;align-items:center;gap:8px;pointer-events:auto;flex-shrink:0}
.egg-immersive .egg-money{display:flex;align-items:center;gap:6px;padding:0 6px 0 0;pointer-events:none}
.egg-immersive .egg-money>svg{color:#ffdc6b;fill:#ecb63c66;width:29px;height:29px;filter:drop-shadow(0 2px 2px #59441d)}
.egg-immersive .egg-money b{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums}
.egg-immersive .egg-money small{display:block;font-size:9px;letter-spacing:.4px}
.egg-immersive .egg-icon-button{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;background:#153c4b66;color:#fffdf4;border:1px solid #ffffff70;border-radius:50%;padding:0;box-shadow:0 2px 7px #12344220;touch-action:manipulation;pointer-events:auto}
.egg-immersive .egg-icon-button:hover{background:#244c61cc}
.egg-immersive button:focus-visible{outline:3px solid #fff0a1;outline-offset:3px}
.egg-immersive .egg-icon-button[aria-pressed=true]{background:#ffdc83;color:#24434a;border-color:#ffeca7}
.egg-immersive .egg-controls{z-index:2;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));gap:18px}
.egg-immersive .egg-move-pad{display:flex;flex-direction:column;gap:10px;pointer-events:none}
.egg-immersive .egg-run-metrics{display:flex;gap:14px;color:var(--hud-ink);text-shadow:var(--hud-shadow);font-size:13px;align-items:center}
.egg-immersive .egg-run-metrics>span{display:flex;align-items:center;gap:4px}
.egg-immersive .egg-run-metrics svg{width:20px;height:20px;color:#e0facb;filter:drop-shadow(0 1px 1px #234754)}
.egg-immersive .egg-run-metrics small{font-size:10px;color:#fff}
.egg-immersive .egg-steering{display:flex;align-items:flex-end;gap:14px}
.egg-immersive .egg-joystick{width:102px;height:102px;background:#163e4b25;border-color:#fffff194;box-shadow:inset 0 0 18px #ffffff14,0 2px 9px #24465820}
.egg-immersive .egg-stick{width:46px;height:46px;margin:-23px;background:#f3ffebbf}
.egg-immersive .egg-stick-arrows{font-size:72px;color:#fffff146}
.egg-immersive .egg-look{width:48px;height:48px;margin-bottom:4px;flex-direction:column;gap:1px}
.egg-immersive .egg-look svg{width:23px;height:23px}
.egg-immersive .egg-look small{font-size:9px;line-height:1.1}
.egg-immersive .egg-action-pad{grid-template-columns:62px 62px;gap:7px;align-items:center;pointer-events:none}
.egg-immersive .egg-action-pad button{pointer-events:auto}
.egg-immersive .egg-supplies{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:36px;color:var(--hud-ink);text-shadow:var(--hud-shadow);font-size:12px}
.egg-immersive .egg-supplies>span,.egg-immersive .egg-supplies button{display:inline-flex;gap:3px;align-items:center}
.egg-immersive .egg-supplies svg{width:21px;height:21px}
.egg-immersive .egg-supplies button{background:#16405577;border:1px solid #fff8;border-radius:22px;min-height:44px;min-width:50px;justify-content:center;color:#fff;font-weight:800}
.egg-immersive .egg-supplies button:disabled{opacity:.5}
.egg-immersive .egg-stamina{grid-column:1/-1;display:flex;align-items:center;gap:5px;pointer-events:none}
.egg-immersive .egg-stamina>svg{width:16px;height:16px;color:#e2fab6;filter:drop-shadow(0 1px 2px #254837)}
.egg-immersive #eggEnergyMeter{flex:1;height:6px;background:#15364269;border-radius:9px;overflow:hidden;box-shadow:0 0 0 1px #ffffff50}
.egg-immersive #eggEnergyFill{display:block;height:100%;background:#c1f69a;border-radius:9px;transition:width .1s linear}
.egg-immersive #eggEnergyMeter.low #eggEnergyFill{background:#ffaf63}
.egg-immersive .egg-round{height:60px;width:60px;font-size:24px;background:#f4fff0aa;box-shadow:0 2px 6px #12344220;border:1px solid #ffffffc0;gap:3px}
.egg-immersive .egg-round svg{width:25px;height:25px}
.egg-immersive .egg-round small{font-size:9px}
.egg-immersive .egg-round.sprint{background:#ffda87df}
.egg-immersive .egg-interact{min-width:0;width:100%;min-height:44px;font-size:12px;padding:7px 6px;border-radius:22px;line-height:1.15}
.egg-immersive .egg-interact:disabled{visibility:hidden;pointer-events:none}
.egg-immersive .egg-chase{z-index:2;top:88px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:55%;border:0;border-radius:20px;padding:5px 12px;font-size:12px;background:#793020b8;text-align:center}
.egg-immersive .egg-chase.safe{background:#275f3eb5;color:#e8ffc6}
.egg-immersive .egg-chase.urgent{background:#a62f25e8;box-shadow:0 0 0 2px #ffd2a477}
.egg-immersive .egg-toast{z-index:3;top:auto;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 410px);width:max-content;background:#173947bd;padding:6px 12px;border:0;border-radius:20px;font-size:12px;line-height:1.3;pointer-events:none}
.egg-immersive .egg-training{bottom:65px;width:min(280px,calc(100% - 410px));padding:10px;background:#173d49cc;border-radius:16px}
.egg-immersive .egg-training strong{font-size:13px}
.egg-immersive .egg-training span{font-size:11px}
.egg-immersive .egg-training button{min-height:36px}
.egg-immersive .egg-race-hud{top:116px;padding:5px 12px;border-radius:20px;font-size:12px;max-width:65%;text-align:center}
.egg-immersive .egg-menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.egg-immersive .egg-menu-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #d2e2d6;background:#eaf3e7;color:#294c47;border-radius:16px;padding:14px 8px;min-height:106px}
.egg-immersive .egg-menu-grid button:hover{background:#d7ebd2}
.egg-immersive .egg-menu-grid svg{width:30px;height:30px;color:#527f60}
.egg-immersive .egg-menu-grid strong{font-size:15px}
.egg-immersive .egg-menu-grid small{font-size:11px;color:#526d61}
.egg-immersive .egg-menu-detail{padding:0 0 12px}
.egg-immersive .egg-menu-detail p{margin:5px 0;font-size:13px}
.egg-immersive .egg-settings-buttons{margin:14px 0}
.egg-app.egg-immersive:fullscreen{padding:0;width:100%;height:100dvh}
.egg-app.egg-immersive:fullscreen .egg-stage{height:100dvh;min-height:0;max-height:none;border-radius:0;border:0}
@media (max-height:540px) and (orientation:landscape){
 .egg-immersive{padding:4px 8px 6px}
 .egg-immersive .egg-stage{height:calc(100dvh - 94px);min-height:250px;border-radius:12px}
 .egg-immersive .egg-hud-top{top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:8px}
 .egg-immersive .egg-place strong{font-size:15px}
 .egg-immersive .egg-place small{font-size:8px}
 .egg-immersive .egg-place>svg{width:24px;height:24px}
 .egg-immersive .egg-objective{font-size:11px;margin:0 0 0 33px}
 .egg-immersive .egg-hud-tools{gap:5px}
 .egg-immersive .egg-money b{font-size:18px}
 .egg-immersive .egg-controls{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
 .egg-immersive .egg-joystick{width:80px;height:80px}
 .egg-immersive .egg-stick{width:36px;height:36px;margin:-18px}
 .egg-immersive .egg-stick-arrows{font-size:58px}
 .egg-immersive .egg-move-pad{gap:5px}
 .egg-immersive .egg-run-metrics{font-size:11px;gap:8px}
 .egg-immersive .egg-run-metrics svg{width:17px;height:17px}
 .egg-immersive .egg-steering{gap:8px}
 .egg-immersive .egg-action-pad{grid-template-columns:48px 48px;gap:4px}
 .egg-immersive .egg-round{width:48px;height:48px;gap:1px}
 .egg-immersive .egg-round svg{width:22px;height:22px}
 .egg-immersive .egg-round small{font-size:8px}
 .egg-immersive .egg-interact{font-size:10px}
 .egg-immersive .egg-supplies{height:28px;margin-bottom:5px;gap:6px}
 .egg-immersive .egg-chase{top:68px;font-size:11px}
 .egg-immersive .egg-toast{bottom:12px;font-size:11px;max-width:calc(100% - 300px)}
 .egg-immersive .egg-training{bottom:43px;width:min(250px,calc(100% - 310px));padding:8px}
 .egg-immersive .egg-race-hud{top:97px;font-size:11px;max-width:60%}
 .egg-immersive .egg-menu-grid{gap:7px}
 .egg-immersive .egg-menu-grid button{min-height:85px;padding:8px}
}
@media(max-width:520px) and (orientation:portrait){
 .egg-immersive{padding:5px 8px}
 .egg-immersive .egg-stage{height:calc(100dvh - 150px);min-height:440px}
 .egg-immersive .egg-hud-top{inset:10px 10px auto}
 .egg-immersive .egg-place{gap:5px}
 .egg-immersive .egg-place strong{font-size:13px;max-width:130px}
 .egg-immersive .egg-place small{font-size:8px;letter-spacing:.5px}
 .egg-immersive .egg-place>svg{width:20px;height:20px}
 .egg-immersive .egg-navigation{max-width:48%}
 .egg-immersive .egg-hud-tools{gap:5px}
 .egg-immersive #eggFullscreen{display:none}
 .egg-immersive .egg-money>svg{width:19px;height:19px}
 .egg-immersive .egg-money b{font-size:16px}
 .egg-immersive .egg-money small{font-size:8px}
 .egg-immersive .egg-money{gap:3px;padding:0}
 .egg-immersive .egg-objective{margin-left:0;font-size:11px}
 .egg-immersive .egg-controls{left:12px;right:12px;bottom:14px}
 .egg-immersive .egg-steering{gap:7px}
 .egg-immersive .egg-joystick{width:82px;height:82px}
 .egg-immersive .egg-stick{width:38px;height:38px;margin:-19px}
 .egg-immersive .egg-run-metrics{font-size:11px;gap:6px}
 .egg-immersive .egg-run-metrics svg{width:17px;height:17px}
 .egg-immersive .egg-action-pad{grid-template-columns:52px 52px;gap:5px}
 .egg-immersive .egg-round{width:52px;height:52px}
 .egg-immersive .egg-toast{bottom:224px;max-width:85%;font-size:11px}
 .egg-immersive .egg-training{bottom:222px;width:260px}
 .egg-immersive .egg-menu-grid{grid-template-columns:repeat(2,1fr)}
}

/* Automatic creature income: floating numbers, no modal or text box. */
.egg-immersive .egg-income-effects{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.egg-immersive .egg-income-float{position:absolute;pointer-events:none;transform:translate(-50%,-100%);white-space:nowrap}
.egg-immersive .egg-income-float>span{display:flex;align-items:center;gap:3px;font-size:20px;font-weight:900;color:#fff2a0;text-shadow:0 2px 1px #694716,1px 0 2px #694716,-1px 0 2px #694716;animation:egg-income-rise 1.8s ease-out both}
.egg-immersive .egg-income-float svg{width:19px;height:19px;fill:#e5ae42;stroke:#fff2a0;filter:drop-shadow(0 1px 1px #694716)}
.egg-immersive .egg-money{position:relative}
.egg-immersive .egg-wallet-gain{position:absolute;right:3px;top:100%;font-size:14px;font-weight:900;color:#d7ffad;text-shadow:var(--hud-shadow);pointer-events:none;white-space:nowrap}
.egg-immersive .egg-money.earning>svg{animation:egg-income-coin .45s ease-out}
@keyframes egg-income-rise{0%{opacity:0;transform:translateY(8px) scale(.8)}15%{opacity:1;transform:translateY(0) scale(1.05)}65%{opacity:1}100%{opacity:0;transform:translateY(-50px) scale(1)}}
@keyframes egg-income-coin{50%{transform:scale(1.24)}100%{transform:scale(1)}}
@media(max-height:540px){.egg-immersive .egg-income-float>span{font-size:16px}.egg-immersive .egg-income-float svg{width:15px;height:15px}.egg-immersive .egg-wallet-gain{font-size:12px}}
@media(prefers-reduced-motion:reduce){.egg-immersive .egg-income-float>span{animation:none}.egg-immersive .egg-money.earning>svg{animation:none}}


/* Training stays inside the HUD as one clock and a speed gain. */
.egg-app.egg-immersive .egg-training{display:flex;align-items:center;gap:8px;top:70px;left:max(16px,env(safe-area-inset-left));right:auto;bottom:auto;transform:none;width:auto;max-width:calc(100% - 32px);padding:0;background:none;border:0;border-radius:0;box-shadow:none;pointer-events:none;color:#fff4b5;text-shadow:var(--hud-shadow);z-index:2}
.egg-app.egg-immersive .egg-training-clock{width:34px;height:34px;filter:drop-shadow(0 1px 2px #15333c99);flex-shrink:0}
.egg-app.egg-immersive #eggTrainFill{transition:stroke-dashoffset .1s linear}
.egg-app.egg-immersive #eggTrainText{display:inline;margin:0;color:#fffdf1;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.egg-app.egg-immersive .egg-training-gain{display:inline;margin:0 0 0 5px;color:#d9ffaf;font-size:17px;font-weight:800;white-space:nowrap}
.egg-app.egg-immersive .egg-training-gain small{font-size:11px;font-weight:700}
@media(max-height:540px) and (orientation:landscape){.egg-app.egg-immersive .egg-training{top:61px;left:max(12px,env(safe-area-inset-left));gap:6px}.egg-app.egg-immersive .egg-training-clock{width:28px;height:28px}.egg-app.egg-immersive #eggTrainText{font-size:15px}.egg-app.egg-immersive .egg-training-gain{font-size:14px}}
@media(max-width:520px) and (orientation:portrait){.egg-app.egg-immersive .egg-training{top:68px;left:12px;gap:6px}.egg-app.egg-immersive .egg-training-clock{width:28px;height:28px}.egg-app.egg-immersive #eggTrainText{font-size:15px}.egg-app.egg-immersive .egg-training-gain{font-size:14px}}

/* The shove takes the existing action row only during a room race. */
.egg-immersive .egg-racing #eggInteract{display:none}
.egg-immersive .egg-push{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:6px;border:1px solid #fff2bd;border-radius:22px;background:linear-gradient(90deg,#ffd878 calc(var(--push-ready,1)*100%),#b8a276 0);color:#493913;font:800 13px system-ui;touch-action:manipulation;box-shadow:0 2px 6px #17364133}
.egg-immersive .egg-push[hidden]{display:none}
.egg-immersive .egg-push:disabled{filter:saturate(.4);color:#514936}
.egg-immersive .egg-push:not(:disabled):active{transform:scale(.96)}
.egg-immersive .egg-push svg{width:25px;height:25px;flex-shrink:0}
.egg-immersive .egg-push span{display:grid;gap:1px}
.egg-immersive .egg-push small{font-size:9px;font-weight:650}
@media(max-height:540px) and (orientation:landscape){.egg-immersive .egg-push{min-height:44px;gap:4px;font-size:11px}.egg-immersive .egg-push svg{width:21px;height:21px}.egg-immersive .egg-push small{font-size:8px}}

/* Two compact consumable slots; the scenery remains visible. */
.egg-ability-dock{position:absolute;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:10px;z-index:8;pointer-events:auto}
.egg-ability-button{position:relative;display:grid;place-items:center;width:58px;height:58px;padding:9px;border:1px solid #ffffff70;border-radius:50%;background:#132d49cf;color:var(--ability-color,#a3e5ee);box-shadow:0 3px 10px #061b2833;touch-action:manipulation}
.egg-ability-button svg{width:28px;height:28px}.egg-ability-button span{position:absolute;right:-5px;bottom:-4px;min-width:26px;border-radius:12px;background:#173149;color:#fff;padding:1px 5px;font-size:12px;font-weight:800}.egg-ability-button small{position:absolute;left:2px;top:0;font-size:10px;color:#fff}.egg-ability-button.active{opacity:1!important;background:conic-gradient(from 0deg,#467368 var(--ability-progress),#173149 0);box-shadow:0 0 12px #a3e5ee44}.egg-ability-button:disabled:not(.active){opacity:.45}.egg-ability-card .egg-secondary{width:100%;margin-top:7px}
#eggApp:has(.egg-sheet:not([hidden])) .egg-ability-dock{pointer-events:none}
@media(max-width:600px) and (orientation:portrait){.egg-ability-dock{bottom:158px}.egg-ability-button{width:48px;height:48px}}
@media(max-height:450px){.egg-ability-dock{bottom:14px;gap:8px}.egg-ability-button{width:48px;height:48px}}

#eggRideBonus{color:#9fe2b0;font-size:.65rem;font-weight:800;white-space:nowrap}
#eggJump.held{transform:translateY(2px);filter:brightness(1.12)}
