/* A compact mobile-first shell around the existing account and game. */
.shell-legacy-tabs{display:none!important}.shell-primary{display:flex;gap:6px;padding:8px;background:#171b30;border:1px solid #494565;margin:0 0 22px;position:sticky;top:0;z-index:25}.shell-primary button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;background:transparent;border:0;box-shadow:none;min-height:48px;color:var(--muted);font-size:18px}.shell-primary button.is-active{background:#38305a;color:#fff;box-shadow:inset 0 -3px var(--cyan)}.shell-primary .pixel-icon{width:21px;height:21px;flex-shrink:0}.shell-primary button:hover{transform:none;box-shadow:none}.shell-heading{margin:10px 0 14px}.shell-heading h2{font-size:32px;line-height:1.15;margin:0 0 5px;color:var(--text)}.shell-heading p{font-size:17px;color:var(--muted);margin:0}.shell-heading h2:focus{outline:none}.shell-secondary{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}.shell-subtab{background:transparent!important;color:var(--muted);border:1px solid var(--line);box-shadow:none!important;min-height:44px;padding:8px 14px;font-size:17px}.shell-subtab.is-active{border-color:var(--cyan);color:var(--cyan);background:#24383f!important}.shell-fold{border:0;border-top:1px solid var(--line);background:transparent;margin:14px 0;padding:0}.shell-fold>summary{font-size:19px;font-weight:700;min-height:52px;padding:14px 4px;color:var(--text);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.shell-fold>summary::-webkit-details-marker{display:none}.shell-fold>summary:after{content:'＋';font-size:22px;color:var(--cyan)}.shell-fold[open]>summary:after{content:'−'}.shell-fold-content{margin:0!important}.shell-fold>.panel{border:0!important;box-shadow:none!important;background:transparent!important;padding:12px 4px!important}.shell-fold-title{display:none!important}.shell-fold>.shell-fold-content .shell-fold-title{display:none!important}.shell-overview{padding:8px 0}.shell-overview .hero{margin-top:0}.shell-balance{margin-bottom:16px;padding:20px!important}.shell-balance .calories-big{font-size:25px}.shell-balance .remaining-panel{padding:0;border:0;background:none;margin:12px 0 0}.shell-balance .remaining-value{font-size:34px}.shell-balance .eyebrow,.shell-balance .remaining-label{display:none}.shell-balance>.hint:last-child{display:none}.shell-balance .activity-balance{font-size:15px;margin-top:12px}.shell-diary-layout{align-items:start}.shell-diary-layout>.panel{padding-top:4px}.shell-diary-layout>div:last-child{gap:0!important}.shell-diary-layout .shell-fold:first-child{border-top:0}.shell-ready .app{padding-top:18px;padding-bottom:45px}.shell-ready .panel{box-shadow:none;border-width:1px}.shell-ready .topbar{margin-bottom:16px;min-height:70px}.shell-ready .brand-logo{width:90px;height:60px;object-fit:contain}.shell-ready .brand-title{font-size:24px!important;letter-spacing:.03em}.shell-ready .brand p{display:none}.shell-ready #openLanguage{display:none}.shell-ready .top-actions button{font-size:15px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-ready .diet-intro{padding:16px;margin-bottom:14px}.shell-ready .diet-intro h2{font-size:22px}.shell-ready .diet-intro .eyebrow,.shell-ready .diet-intro .pill,.shell-ready .diet-intro>.hint:not(.diet-safety){display:none}.shell-ready .diet-metrics{grid-template-columns:repeat(3,1fr)}.shell-ready .diet-metrics>div:nth-child(n+4){display:none}.shell-ready .diet-metrics>div{border:0;background:none;padding:7px}.shell-ready .diet-layout{grid-template-columns:minmax(0,1fr);gap:10px}.shell-ready .diet-layout>.panel{border:0;padding:4px;background:transparent}.shell-ready .diet-day-nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}.shell-ready #dietToday{grid-column:1/-1;justify-self:center}.shell-ready .diet-meals{gap:12px}.shell-ready .diet-meal{box-shadow:none;border-width:1px;padding:16px}.shell-ready .diet-meal h4{font-size:21px;line-height:1.25}.shell-ready .diet-day-nav button{font-size:15px}.shell-ready #dietDayTitle{font-size:18px;text-align:center}.shell-ready .pet-home-head h3,.shell-ready .pet-home-head>div>p{display:none}.shell-ready .pet-home-head{margin-bottom:12px}.shell-ready .pet-layout{grid-template-columns:minmax(0,1fr);gap:10px}.shell-ready .pet-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.shell-ready .pet-toolbar{display:flex;gap:8px;flex-wrap:wrap}.shell-ready .pet-toolbar>button{flex:1}.shell-more-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}.shell-ready .projection-heading h2,.shell-ready .projection-heading .eyebrow{display:none}.shell-ready .projection-heading p{font-size:15px;margin-top:0}.shell-ready .projection-layout{display:block}.shell-ready .projection-layout>.shell-fold{margin:12px 0}.shell-ready .share-launch{display:block}.shell-ready .share-launch>div{display:none}.shell-ready .section-title h3{font-size:23px}.shell-ready .hint{font-size:15px;line-height:1.45}.shell-ready input,.shell-ready select,.shell-ready textarea{font-size:17px;min-height:46px}.shell-ready label{font-size:16px}.shell-ready #foodForm .form-actions>button{width:100%}.shell-ready .welcome-guide{margin-bottom:16px;padding:16px}.shell-ready .welcome-steps{gap:5px}.shell-ready .welcome-steps li{font-size:15px;padding:9px}.shell-ready .welcome-guide h2{font-size:23px}.shell-ready .welcome-guide .form-actions{gap:7px}.shell-ready .welcome-guide .form-actions button{font-size:16px}.shell-ready .welcome-guide #welcomeStatus{font-size:16px}body.account-locked .shell-primary,body.account-locked .shell-heading,body.account-locked .shell-secondary{display:none!important}.shell-ready #tab-cuenta{padding:0}.shell-ready #accountSessionPanel{margin-bottom:18px}.shell-ready #tab-cuenta>.panel{margin-bottom:16px}.shell-ready #tab-cuenta>.account-intro[hidden]{display:none}
@media(max-width:700px){html{scroll-padding-top:16px;scroll-padding-bottom:calc(var(--shell-nav-height,86px) + 16px)}.shell-ready .app{padding:12px 14px calc(102px + env(safe-area-inset-bottom))}.shell-primary{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:60;margin:0;padding:7px 5px calc(7px + env(safe-area-inset-bottom));border-width:1px 0 0;background:#171b30fa;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;box-shadow:0 -5px 20px #0004}.shell-primary button{flex-direction:column;gap:5px;font-size:14px;line-height:1.15;padding:6px 1px;min-width:0;min-height:56px}.shell-primary button.is-active{box-shadow:inset 0 3px var(--cyan)}.shell-primary .pixel-icon{width:20px;height:20px}.shell-heading{margin:10px 0 16px}.shell-heading h2{font-size:30px}.shell-heading p{font-size:16px}.shell-secondary{gap:6px;margin-bottom:18px}.shell-subtab{flex:1;min-width:0;padding:9px 6px;font-size:15px;white-space:nowrap}.shell-ready .topbar{min-height:56px;gap:8px;margin-bottom:8px;align-items:center}.shell-ready .brand{gap:6px}.shell-ready .brand-logo{width:55px;height:42px}.shell-ready .brand-title{font-size:20px!important}.shell-ready .top-actions button{font-size:14px;max-width:132px;padding:8px;min-height:40px}.shell-ready .layout,.shell-ready .activity-layout,.shell-ready .calendar-shell{grid-template-columns:minmax(0,1fr)}.shell-ready .panel{padding:16px}.shell-ready .section-title{gap:8px;align-items:flex-start}.shell-ready .section-title h3{font-size:22px}.shell-ready .form-grid{grid-template-columns:minmax(0,1fr)}.shell-ready .form-grid .field.full{grid-column:1}.shell-ready .shell-balance{padding:16px!important}.shell-ready .shell-balance .remaining-value{font-size:32px}.shell-ready .shell-diary-layout{gap:0}.shell-ready .pet-side{grid-template-columns:1fr;gap:0}.shell-ready .pet-toolbar>button{font-size:17px}.shell-ready .world-room{min-height:330px!important}.shell-ready .pet-home-head .pet-money{font-size:15px;padding:8px}.shell-ready .pet-home-head .exp-jump{font-size:15px}.shell-ready .welcome-steps{display:flex;overflow-x:auto;scrollbar-width:thin;padding-bottom:5px}.shell-ready .welcome-steps li{min-width:100px}.shell-ready .welcome-guide .form-actions button{width:100%}.shell-ready .diet-metrics small{font-size:14px}.shell-ready .diet-metrics strong{font-size:20px}.shell-ready .diet-day-nav button{font-size:14px;padding:8px}.shell-ready #dietDayTitle{font-size:16px}.shell-ready .diet-meal-head{font-size:14px}.shell-ready .diet-intro h2{font-size:21px}.shell-ready .projection-stats{grid-template-columns:1fr 1fr}.shell-ready .calendar-days{gap:4px}.shell-ready .calendar-day{min-height:43px}.shell-ready .calendar-weekdays{gap:4px}.shell-ready .calendar-day strong{font-size:16px}.shell-ready .toast{bottom:100px;max-width:calc(100% - 28px);z-index:80}.shell-ready .meal{gap:8px}.shell-ready .meal-kcal{font-size:16px}.shell-ready .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid .stat{min-width:0;overflow-wrap:anywhere}.shell-ready .hero{grid-template-columns:1fr}.shell-ready .hero-main h2{font-size:26px}.shell-ready .hero-logo{max-width:130px}.shell-ready .pet-stats{grid-template-columns:1fr 1fr}.shell-ready .shell-fold>summary{font-size:18px}.shell-ready .projection-benefits{grid-template-columns:1fr}.shell-ready table{min-width:440px}}
@media(prefers-reduced-motion:reduce){.shell-primary *,.shell-secondary *{transition:none!important}}
/* Final density and label pass. */
.shell-ready .topbar{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}.shell-ready .brand-title{display:block!important}.shell-diary-layout>.panel{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}.shell-balance .remaining-panel .eyebrow{display:block;font-size:14px;letter-spacing:.08em;margin-bottom:4px}.shell-balance .calories-row .hint{display:none}.shell-balance .activity-balance{display:none}.shell-balance .section-title{margin-bottom:10px}.shell-balance .bar{margin:9px 0}.shell-balance .remaining-panel{margin-top:8px}.shell-ready #shellFoodEntry{margin:2px 0 12px;border-top:0}.shell-ready #shellFoodEntry>summary{background:#34294e;border:1px solid #8d78b7;padding:12px;font-size:20px}.shell-ready #shellFoodEntry>summary:after{content:'⌄';margin-left:auto}.shell-ready #shellFoodEntry[open]>summary:after{content:'⌃'}.shell-ready #shellFoodEntry .food-custom{margin-top:15px}.shell-ready #foodForm{padding:15px 2px!important}.shell-ready #shellFoodEntry~div[style*="height:1px"]{display:none}.shell-ready .shell-diary-layout>.panel>.section-title{margin-top:20px}.shell-ready .brand-logo{width:70px;height:48px}
@media(max-width:700px){.shell-primary button{font-size:16px;min-height:60px}.shell-primary .pixel-icon{width:22px;height:22px}.shell-ready .brand-title{font-size:22px!important}.shell-ready .brand-logo{width:60px;height:44px}.shell-ready .shell-balance{padding:15px!important}.shell-ready .shell-balance .calories-big{font-size:27px}.shell-ready .shell-balance .remaining-value{font-size:35px}}
.shell-ready #tab-proyecciones[data-has-projection="false"] #projectionResults,.shell-ready #tab-proyecciones[data-has-projection="false"] .shell-projection-chart,.shell-ready #tab-proyecciones[data-has-projection="false"] .projection-stats{display:none}.shell-ready #shellProjectionStatus{margin:0 0 12px}.shell-ready #shellProjectionStatus .projection-status{font-size:16px;margin-top:0}.shell-ready #shellProjectionSetup>summary{color:var(--cyan)}.shell-ready .shell-fold>.projection-heading{padding:10px 4px}
.shell-ready .brand{flex-direction:row;align-items:center}.shell-ready .brand .brand-title{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip-path:none;white-space:nowrap}
.shell-ready .diet-intro{border:0!important;background:transparent!important;padding:0 0 12px!important}.shell-ready .diet-intro .section-title{display:none}.shell-ready #dietSafetyNote[data-needs-review="false"]{display:none}.shell-ready .diet-metrics{margin:0;border:0}.shell-ready .diet-metrics>div{padding:6px 8px!important;min-width:0}.shell-ready .diet-metrics small{line-height:1.2}.shell-ready #dietPortionScale{display:none}.shell-ready .diet-day-nav{grid-template-columns:44px minmax(0,1fr) 44px;align-items:center}.shell-ready .diet-day-nav>*{order:0!important;min-width:0}.shell-ready .diet-day-nav button{font-size:22px;padding:5px;min-height:44px}.shell-ready #dietDayTitle{font-size:20px;line-height:1.2}.shell-ready #dietToday{padding:8px;font-size:16px;min-height:40px}.shell-ready #dietToday:disabled{display:none}.shell-ready .diet-day-summary{margin:5px 0;font-size:16px}.shell-ready .diet-day-summary span{font-size:18px}.shell-ready .diet-layout>.panel>.section-title{align-items:center;margin-bottom:10px}.shell-ready #dietDateStatus{font-size:14px;margin:8px 0}
.shell-ready .diet-shopping-list{max-height:none;overflow:visible}.shell-ready .pet-care-meter{padding:14px;border:0;background:transparent;box-shadow:none}.shell-ready .care-meters{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shell-ready .care-meters label{font-size:15px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px}.shell-ready .pet-care-meter>small{display:none}.shell-ready .world-tools{flex-wrap:wrap;gap:8px}.shell-ready .world-tools>button{font-size:16px;min-height:44px}.shell-ready .world-tools>.shell-subtab{flex:initial;padding:8px 14px}
.shell-ready .pet-layout,.shell-ready .pet-layout>div,.shell-ready .pet-side{min-width:0}.shell-ready .world-room{width:100%;min-width:0}.shell-ready .pet-scene-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.shell-ready .pet-scene-tabs button{font-size:15px;padding:8px 2px;min-width:0;overflow-wrap:anywhere}.shell-ready .pet-home-head>div{min-width:0}.shell-ready .world-selection{flex-wrap:wrap}

/* v42: all companion controls belong to the game console, without covering the map. */
.shell-ready .world-console{border:2px solid #75628e;background:#18192d;padding:10px;min-width:0;box-shadow:4px 4px 0 #0d1020}
.shell-ready .world-console .pet-care-meter{margin:0;padding:4px 4px 12px;background:none}
.shell-ready .world-console .care-meters{margin:0;gap:14px}
.shell-ready .world-console .care-track{height:12px;margin-top:5px}
.shell-ready .world-console .pet-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.shell-ready .world-console .pet-toolbar>button{min-width:0;min-height:46px;font-size:18px;padding:9px 7px;line-height:1.15;white-space:normal}
.shell-ready .world-console #petPlay,.shell-ready .world-console #petNap,.shell-ready .world-console .world-console-feature{background:#403455;border:2px solid #b9a0da;color:#fff4dc;box-shadow:2px 3px 0 #080c1c}
.shell-ready .world-console .world-console-feature[aria-expanded=true]{border-color:#71e4d4;background:#244846}
.shell-ready .world-console .pet-toolbar>button:nth-child(n+5){font-size:16px;background:#23263d;border:1px solid #625777;box-shadow:none}
.shell-ready .world-console #petLogActivity{grid-column:span 2}
.shell-ready .world-console #petLifeHost:has(> :not([hidden])){padding-top:14px}
.shell-ready .world-console #petLifeHost>[hidden]{display:none!important}
.shell-ready .world-console .pet-life-card,.shell-ready .world-console .companion-settings{margin:0;border:1px solid #746584;padding:14px;background:#11172a}
.shell-ready .world-console .life-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.shell-ready .world-console .life-actions button{font-size:18px;min-width:0}
.shell-ready .world-console .life-needs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shell-ready .world-console .life-needs label,.shell-ready .world-console .companion-settings label{font-size:18px}
.shell-ready .world-console .life-status{font-size:20px}
.shell-ready .world-console .life-status span{font-size:17px}
.shell-ready .world-console .pet-life-card .eyebrow{display:none}
.shell-ready .world-console .companion-settings>summary{font-size:21px}
.shell-ready .world-console .companion-settings p,.shell-ready .world-console .pet-life-card details p{font-size:16px;line-height:1.4}
.shell-ready .world-console .life-scene-controls{display:none}
@media(max-width:520px){.shell-ready .world-console{padding:7px}.shell-ready .world-console .pet-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shell-ready .world-console .care-meters{gap:7px}.shell-ready .world-console .care-meters label{font-size:14px}.shell-ready .world-console .pet-toolbar>button{font-size:17px}.shell-ready .world-console .pet-toolbar>button:nth-child(n+5){font-size:16px}}

.shell-ready .world-console .pet-toolbar>.companion-chat{position:static;grid-column:span 2}

/* v45: visible needs and direct care actions. Existing action nodes keep their handlers. */
.shell-ready .world-console-archived{display:none!important}
.shell-ready .world-vitals{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#302b47;border-bottom:2px solid #8a75a5;margin-bottom:12px}
.shell-ready .world-vitals .life-status{font-size:23px;color:#ffe293;min-width:0}
.shell-ready .world-vitals #petLifePhase{font-size:18px;white-space:nowrap;border:1px solid #c3a7e2;background:#1b2239;color:#fff4ce;padding:7px 10px}
.shell-ready .world-console>.life-needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 4px 10px;padding:10px;background:#23283c;border:1px solid #625b7a;gap:16px}
.shell-ready .world-console>.life-needs label{font-size:18px;color:#e8e1f2;min-width:0}
.shell-ready .world-console>.life-needs meter{height:20px;margin-top:4px;accent-color:#71e4d4}
.shell-ready .world-console #petLifeHint{font-size:15px;margin:6px 4px 12px;line-height:1.3}
.shell-ready .world-console #petLifeResult{font-size:16px;margin:9px 4px 0;color:#ffe293}
.shell-ready .world-console #petLifeResult:empty{display:none}
.shell-ready .world-console #petLifeAge{display:block;font-size:17px;color:var(--muted);margin-top:10px}
.shell-ready .world-console #petLifeDigest{margin:10px 0;font-size:16px}
@media(max-width:520px){.shell-ready .world-vitals{padding:9px;gap:7px}.shell-ready .world-vitals .life-status{font-size:20px}.shell-ready .world-vitals #petLifePhase{font-size:16px;padding:7px}.shell-ready .world-console>.life-needs{gap:10px;padding:9px}.shell-ready .world-console>.life-needs label{font-size:16px}}
.shell-ready .world-console .pet-care-meter>strong{display:none!important}

/* v47: scene tools and currencies stay with their game. */
.shell-ready .world-scene-hud{position:absolute;top:7px;left:7px;right:7px;display:grid;grid-template-columns:minmax(0,1fr) repeat(4,44px);align-items:center;gap:5px;z-index:10;background:#171c31ed;padding:5px;border:1px solid #9c86b4}
.shell-ready .game-icon-button{display:grid!important;place-items:center;font-size:0!important;min-width:44px!important;min-height:44px!important;padding:8px!important;line-height:1!important;color:#fff;background:#38304f;border:2px solid #a18abc;box-shadow:2px 2px #17192b}
.shell-ready .game-icon-button .pixel-icon{width:24px;height:24px;flex-shrink:0}
.shell-ready .game-icon-button[aria-pressed=true],.shell-ready .game-icon-button[aria-expanded=true]{border-color:#71e4d4;background:#24504b}
.shell-ready .game-icon-button:focus-visible{outline:3px solid #ffe293;outline-offset:2px}
.shell-ready .world-scene-hud #petWallet{margin:0;padding:5px;min-width:0;font-size:18px;display:flex;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#ffe293;box-shadow:none;white-space:nowrap}
.shell-ready #petWallet .pixel-icon,.shell-ready #adventureCrystals .pixel-icon{width:22px;height:22px;flex-shrink:0}
.shell-ready .world-console .world-room{min-height:400px!important}
.shell-ready .world-room #worldViewport{top:65px}
.shell-ready .world-room .world-location{top:72px;font-size:12px;padding:4px 7px;max-width:65%}
.shell-ready .world-scene-overlay{position:absolute;inset:67px 7px 7px;z-index:22;overflow:auto;margin:0!important;padding:12px!important;background:#171c31fa!important;border:2px solid #a18abc!important;box-shadow:3px 3px #111525;min-width:0;max-height:none}
.shell-ready .world-scene-overlay[hidden],.shell-ready .world-scene-overlay.hidden{display:none!important}
.shell-ready .world-character-overlay>summary{display:none!important}
.shell-ready .world-overlay-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#e5cef5;font-size:21px}
.shell-ready .world-overlay-heading button{min-width:44px;min-height:44px;padding:4px;font-size:24px}
.shell-ready .world-character-overlay>.panel{padding:0!important;background:none!important;border:0!important}
.shell-ready .world-scene-overlay .pet-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.shell-ready .world-scene-overlay .world-inventory-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}
.shell-ready .world-room .pet-game-shop{top:67px}
.shell-ready .expedition-game-frame{position:relative;min-width:0;background:#161d31;border:2px solid #8e7caa;padding:6px}
.shell-ready .expedition-scene-funds{display:flex;justify-content:flex-end;min-height:38px;align-items:center;padding:3px 5px 9px}
.shell-ready .expedition-scene-funds #adventureCrystals{display:flex;align-items:center;gap:6px;font-size:20px;line-height:1;white-space:nowrap;color:#a8f4e9;padding:5px 10px;background:#23394a;border:1px solid #76c5c1}
.shell-ready #petAdventurePanel .expedition-game-frame .adventure-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 3px;gap:8px}
.shell-ready #petAdventurePanel .expedition-game-frame .adventure-actions>button{grid-column:auto;min-height:44px}
@media(max-width:360px){.shell-ready .world-scene-hud{gap:3px;padding:3px;left:4px;right:4px}.shell-ready .world-scene-hud #petWallet{font-size:16px;gap:2px;padding:0}.shell-ready #petWallet .pixel-icon{width:17px;height:17px}}
@media(max-width:600px){.shell-ready #petAdventurePanel .adventure-layout{grid-template-columns:minmax(0,1fr)}.shell-ready #petAdventurePanel .adventure-layout>div,.shell-ready #petAdventurePanel .adventure-upgrade{min-width:0}.shell-ready #petAdventurePanel .adventure-upgrade-copy{min-width:0;overflow-wrap:anywhere}.shell-ready #petAdventurePanel .adventure-upgrades{grid-template-columns:minmax(0,1fr)}}
.daily-reward-dialog{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;background:#202039;color:#fff1db;border:3px solid #b39ad3;box-shadow:7px 7px #0b1020;font-family:var(--pixel-font)}
.daily-reward-dialog::backdrop{background:#080c20c9}.daily-reward-dialog h2{font-size:30px;line-height:1.1;margin:18px 35px 12px 0}.daily-reward-close{position:absolute;right:10px;top:10px;min-width:44px;min-height:44px;font-size:25px}.daily-reward-streak{color:#a8f4e9;font-size:23px}.daily-reward-amount{font-size:34px;color:#ffe293;margin:16px 0}.daily-reward-dialog p{line-height:1.3}.daily-reward-dialog .hint{font-size:17px}.daily-reward-dialog ol{padding:0;list-style:none;display:flex;gap:6px;overflow:auto}.daily-reward-dialog li{flex:0 0 95px;padding:10px 6px;background:#34304b;border:1px solid #7d6a97;text-align:center;font-size:17px}.daily-reward-dialog li:first-child{border-color:#ffe293;color:#ffe293}.daily-reward-dialog #dailyRewardClaim{width:100%;min-height:48px;font-size:21px}.shell-ready #dailyRewardOpen{min-width:44px;min-height:44px;padding:8px;flex-shrink:0}.shell-ready #dailyRewardOpen[hidden]{display:none}.shell-ready #dailyRewardOpen .pixel-icon{width:26px;height:26px}.reward-available{border-color:#ffe293!important;box-shadow:0 0 0 2px #ffe29344}
/* v49: reward chest shares the in-game toolbar. */
.shell-ready .world-scene-hud{grid-template-columns:minmax(60px,1fr) repeat(5,44px)}
@media(max-width:600px){.shell-ready .world-scene-hud{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:4px}.shell-ready .world-scene-hud #petWallet{grid-column:1/-1;justify-self:start;padding:0 4px;min-height:24px}.shell-ready .world-room #worldViewport{top:98px}.shell-ready .world-room .world-location{top:105px}.shell-ready .world-scene-overlay{top:100px}.shell-ready .world-room .pet-game-shop{top:100px}}
.shell-ready .shell-secondary[hidden]{display:none!important}
/* v51: independent loyalty club and matching currency frames. */
.shell-ready .world-scene-hud{grid-template-columns:minmax(60px,1fr) repeat(6,44px)}
.shell-ready .world-scene-hud #petWallet{justify-self:start;display:flex;align-items:center;gap:6px;font-size:20px;line-height:1;white-space:nowrap;color:#ffe293;padding:5px 10px;background:#493b23;border:1px solid #c5a576;border-radius:0;box-shadow:none}
.shell-ready #petWallet .pixel-icon{width:22px;height:22px}
.shell-ready .world-loyalty-overlay .section-title{margin:0 0 12px}.shell-ready .world-loyalty-overlay h3[hidden]{display:none}.shell-ready .world-loyalty-overlay #petLoyaltyProgress{font-size:17px}.shell-ready .world-loyalty-overlay .hint{font-size:17px}.shell-ready .world-loyalty-overlay .loyalty-reward{min-width:0;flex-wrap:wrap}.shell-ready .world-loyalty-overlay .loyalty-copy{min-width:0;flex:1}.shell-ready .world-loyalty-overlay .loyalty-copy strong{font-size:19px}.shell-ready .world-loyalty-overlay .loyalty-copy small{font-size:16px}.shell-ready .world-loyalty-overlay .loyalty-reward button{min-height:44px;font-size:17px;margin-left:0}
@media(max-width:600px){.shell-ready .world-scene-hud{grid-template-columns:repeat(6,minmax(0,1fr))}.shell-ready .world-scene-hud #petWallet{min-height:32px}.shell-ready .world-room #worldViewport{top:106px}.shell-ready .world-room .world-location{top:113px}.shell-ready .world-scene-overlay,.shell-ready .world-room .pet-game-shop{top:108px}}
@media(max-width:400px){.shell-ready .world-scene-hud{grid-template-columns:repeat(3,minmax(0,1fr))}.shell-ready .world-room #worldViewport{top:154px}.shell-ready .world-room .world-location{top:161px}.shell-ready .world-scene-overlay,.shell-ready .world-room .pet-game-shop{top:156px}.shell-ready .world-console .world-room{min-height:460px!important}}

.plan-action{margin:12px 0}.plan-action>button{margin-bottom:10px}.plan-action>[hidden]{display:none!important}

/* Plan tools: grouped actions below the daily menu. */
.shell-ready .plan-tools{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.shell-ready .plan-tool-group{padding:20px;border:1px solid var(--line);background:#1c1c34;min-width:0}
.shell-ready .plan-tool-group:last-child{grid-column:1/-1}
.shell-ready .plan-tool-group h3{margin:0 0 8px;font-size:23px}
.shell-ready .plan-tool-group>.hint{margin:0 0 16px}
.shell-ready .plan-tool-group .form-actions,.shell-ready .plan-tool-group .plan-action{margin:10px 0}
.shell-ready .plan-tool-group .plan-action>button,.shell-ready .plan-tool-group .form-actions>button{width:100%;text-align:left}
.shell-ready .plan-tool-group .reminder-shortcut{text-align:left;margin:16px 0 0}
.shell-ready .plan-tool-group #professionalImport{margin:12px 0;padding:16px}
.shell-ready .plan-tool-group #personalPlanEditor{margin:0}
.shell-ready .plan-action>button[aria-expanded="false"]+*{display:none!important}
.shell-ready #tab-dieta>.footer{margin:24px 0;font-size:13px;line-height:1.6}
@media(max-width:700px){.shell-ready .plan-tools{grid-template-columns:1fr}.shell-ready .plan-tool-group{padding:16px}}

.notification-bell{position:relative;min-width:48px!important;overflow:visible}.notification-count{position:absolute;top:-8px;right:-8px;background:#c82648;color:white;border-radius:12px;padding:2px 5px;font-size:13px;line-height:18px}.notification-dot{position:absolute;bottom:4px;right:4px;background:#ff405b;border:2px solid #171b30;border-radius:50%;width:10px;height:10px}.notification-inbox{color:var(--text,#fff);background:#1c1c34;border:1px solid #8d78b7;width:min(540px,calc(100% - 32px));max-height:80vh;overflow:auto;padding:20px}.notification-inbox::backdrop{background:#0009}.notification-item{padding:14px;margin-top:12px;border:1px solid #555;overflow-wrap:anywhere}.notification-item.unread{border-left:4px solid #ff405b}.notification-item p{white-space:pre-wrap}.notification-inbox [hidden],.notification-bell [hidden]{display:none!important}

[data-day-phase]{position:relative;isolation:isolate}[data-day-phase]::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:8}[data-day-phase="night"]::after{background:#101c604d}[data-day-phase="evening"]::after{background:#f48a422b}[data-weather="cloudy"]::after{background:#60708033}[data-weather="rain"]::after{background:repeating-linear-gradient(110deg,transparent 0 30px,#b9dfff44 31px 32px,transparent 33px 60px);animation:world-rain 1s linear infinite}.world-atmosphere{position:absolute;left:12px;top:12px;z-index:10;background:#171b30dd;color:white;padding:6px 9px;font-size:14px;pointer-events:none}.world-event-chest{position:absolute;z-index:12;transform:translate(-50%,-50%);border:2px solid #ffd363;background:#684921;color:#fff1b0;box-shadow:0 0 16px #ffdf6377;min-height:44px}@keyframes world-rain{to{background-position:-30px 60px}}@media(prefers-reduced-motion:reduce){[data-weather="rain"]::after{animation:none}}

[data-day-phase="night"][data-weather="rain"]::after{background-color:#101c604d}[data-day-phase="evening"][data-weather="rain"]::after{background-color:#f48a422b}
.world-atmosphere{top:auto;bottom:12px;left:12px}

.world-atmosphere.expedition-atmosphere{position:static;display:block;align-self:start;width:fit-content;max-width:100%;margin:8px 0;padding:6px 10px;pointer-events:none;z-index:auto}

.notification-bell-icon{display:block;min-width:22px;pointer-events:none}.notification-bell{display:inline-flex!important;align-items:center;justify-content:center}

/* Keep unread indicators above the pixel button frame. */
.shell-ready .top-actions{overflow:visible!important}
.shell-ready .top-actions .notification-bell{overflow:visible!important;isolation:isolate;z-index:2}
.shell-ready .notification-bell .notification-count{z-index:5;top:-9px;right:-9px;min-width:22px;height:22px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:2px solid #171b30;line-height:1;padding:2px 5px;pointer-events:none}
.shell-ready .notification-bell .notification-dot{z-index:5;pointer-events:none}
.shell-ready .notification-bell .notification-count[hidden]{display:none!important}

/* Individual falling drops end at scattered isometric ground points. */
[data-weather="rain"]::after{background:#70849b18;animation:none}
.world-rain-layer{position:absolute;inset:0;z-index:9;overflow:hidden;pointer-events:none}
.world-rain-layer svg{display:block;width:100%;height:100%;overflow:hidden}
.world-raindrop{stroke:#d4ecff;stroke-width:1.6;stroke-linecap:round;fill:none;animation:rain-fall var(--rain-time) linear infinite;animation-delay:var(--rain-delay)}
.world-rainsplash{stroke:#c4e6ff;stroke-width:1;fill:none;transform-origin:0 0;animation:rain-impact var(--rain-time) linear infinite;animation-delay:var(--rain-delay)}
@keyframes rain-fall{0%{transform:translate(26px,-120px);opacity:0}10%{opacity:.65}69%{transform:translate(0,0);opacity:.65}70%,100%{transform:translate(0,0);opacity:0}}
@keyframes rain-impact{0%,68%{opacity:0;transform:scale(.3)}72%{opacity:.7;transform:scale(.5)}98%,100%{opacity:0;transform:scale(1.7)}}
@media(prefers-reduced-motion:reduce){.world-raindrop,.world-rainsplash{animation:none;opacity:.2}.world-raindrop{display:none}}

/* Outdoor night lighting stays dark in every weather condition. */
.world-room.scene-park[data-day-phase="night"],.world-room.scene-beach[data-day-phase="night"]{background:#101b35!important}
.world-room:is(.scene-park,.scene-beach)[data-day-phase="night"] #worldViewport{filter:brightness(.48) saturate(.65) contrast(1.08)}
.world-room:is(.scene-park,.scene-beach)[data-day-phase="night"]::after{background:linear-gradient(#0b15384d,#20315b24);animation:none}
.world-room:is(.scene-park,.scene-beach)[data-day-phase="night"] .world-atmosphere{background:#0b132beb;color:#e5edff}
.world-room:is(.scene-park,.scene-beach)[data-day-phase="night"] .world-raindrop,.world-room:is(.scene-park,.scene-beach)[data-day-phase="night"] .world-rainsplash{stroke:#92b5dc}

/* Travel stays inside the game, beneath its tool row. */
.shell-ready .world-scene-hud #petSceneTabs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:4px 0 0;width:100%}
.shell-ready .world-scene-hud #petSceneTabs button{min-width:0;padding:7px 3px;font-size:14px;min-height:40px;white-space:nowrap}
.shell-ready .world-room #worldViewport{top:var(--world-hud-bottom,118px)}
.shell-ready .world-room .world-location{top:calc(var(--world-hud-bottom,118px) + 7px)}
.shell-ready .world-room .world-scene-overlay,.shell-ready .world-room .pet-game-shop{top:var(--world-hud-bottom,118px)}
.shell-ready .world-console .world-room{min-height:500px!important}
@media(max-width:400px){.shell-ready .world-scene-hud #petSceneTabs{grid-template-columns:repeat(2,minmax(0,1fr))}.shell-ready .world-console .world-room{min-height:560px!important}}
.shell-ready .world-scene-hud #petSceneTabs{order:10}.shell-ready .world-scene-hud{grid-template-columns:minmax(0,1fr) repeat(6,44px)}@media(max-width:520px){.shell-ready .world-scene-hud{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Some account sections live directly under body, outside .app. */
body.shell-ready{padding-bottom:calc(var(--shell-nav-height,0px) + 24px)}

.projection-share [data-share-card="projection"] { min-height: 48px; font-weight: bold; }
.account-primary-provider { margin-block: 14px; }
#accountMoreProviders { margin-top: 16px; }
#accountMoreProviders summary { cursor: pointer; padding-block: 8px; }
#accountMoreProviders .account-social { margin-block: 10px; }
#accountAuthPanel .account-consent a { color: var(--accent, #71e4d4); }
#accountResetPassword[hidden] { display: none !important; }

.world-scene-hud .world-atmosphere {
 position: static;
 grid-column: 1 / -1;
 justify-self: start;
 max-width: 100%;
 box-sizing: border-box;
 margin: 0;
 pointer-events: none;
}

/* Full-width menus below the scene keep its play area clear. */
.shell-ready .world-scene-menus > :is(.world-scene-overlay,.pet-game-shop){
 position:static;inset:auto;max-height:none;overflow:visible;margin:10px 0 0!important;
 scroll-margin-top:12px;
}
.shell-ready .world-scene-menus > .pet-game-shop > .pet-shop{max-height:none;overflow:visible}
.shell-ready .world-scene-menus button{min-height:44px}
.shell-ready .world-scene-menus .pet-game-shop-close{min-width:44px}
.shell-ready .world-scene-menus .pet-sections{flex-wrap:wrap;overflow:visible}
.shell-ready .world-scene-menus .pet-sections button{font-size:14px}
@media(max-width:520px){
 .shell-ready .world-scene-menus .world-inventory-list{grid-template-columns:1fr}
}

.shell-ready .world-scene-menus .pet-shop,
.shell-ready .world-scene-menus .world-inventory-list{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(125px,100%),1fr));gap:8px;
}
.shell-ready .world-scene-menus :is(.pet-product,.world-inventory-item){padding:7px;gap:4px;min-width:0}
.shell-ready .world-scene-menus .pet-product h4{font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.shell-ready .world-scene-menus :is(.world-product-preview,.world-inventory-item > svg){display:block;width:100%;height:48px;object-fit:contain;image-rendering:pixelated}
.shell-ready .world-scene-menus .pet-product .pet-hint{min-height:0}
.shell-ready .world-scene-menus .pet-product > button{margin-top:auto;font-size:13px;line-height:1.2;white-space:normal}
.shell-ready .world-scene-menus #petShopSearch{min-height:44px;width:100%;min-width:0}
.shell-ready .world-scene-menus #petShopPages{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.shell-ready .world-scene-menus #petShopPages[hidden]{display:none}
.shell-ready .world-scene-menus #petShopPages button{min-width:44px;min-height:44px}
.shell-ready .world-scene-menus #petShopPages [aria-current=page]{border-color:#71e4d4;background:#244846;color:#f3fffc;box-shadow:inset 0 -3px #71e4d4}
#petShopPages button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* Show the original room palette. */
#petRoom::after,
#petRoom .life-ambient{display:none}
#petRoom #worldViewport,
#petRoom #worldStage{filter:none}
.shell-tour {
  position: fixed;
  z-index: 100;
  inset-inline-end: 12px;
  inset-block-end: calc(var(--shell-nav-height, 0px) + env(safe-area-inset-bottom) + 12px);
  width: min(24rem, calc(100vw - 24px));
  box-sizing: border-box;
  max-height: 50dvh;
  overflow: auto;
  padding: 12px;
  color: var(--text, #f4efff);
  background: #1c1c34;
  border: 2px solid #9b83c0;
  box-shadow: 0 6px 24px #080613a0;
}
.shell-tour[hidden] { display: none; }
.shell-tour h2 { margin-block: .35rem; }
.shell-tour .form-actions { flex-wrap: wrap; gap: .5rem; }
.shell-tour-target {
  outline: 3px solid #8af2e0 !important;
  outline-offset: 3px;
  scroll-margin-block-start: calc(env(safe-area-inset-top) + 18px);
}
.shell-ready .plan-tools > .shell-fold { margin: 0; min-width: 0; }
.shell-ready .plan-tools .plan-tool-group { border: 0; padding: .65rem; }
.shell-primary [data-shell-group="misiones"] { position: relative; }
.shell-primary [data-shell-group="misiones"][data-mission-count]::after {
  content: attr(data-mission-count);
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 3px;
  min-width: 1.25rem;
  padding-inline: .15rem;
  border: 1px solid #ffe2a1;
  border-radius: 999px;
  background: #ffd66e;
  color: #2d1c0b;
  font-size: .75rem;
  line-height: 1.2rem;
  text-align: center;
}
.mission-hub-group { border-block-start: 1px solid var(--line); padding-block: .65rem; }
.mission-hub-group summary, .daily-mission-panel summary { cursor: pointer; min-height: 44px; align-content: center; }
button.mission-claim-ready:not(:disabled), .diet-mission-card.ready button[data-diet-claim]:not(:disabled) {
  background: #ffe095;
  color: #2d1c0b;
  border-color: #ffeab6;
  box-shadow: 0 0 0 2px #9b6e2b;
  font-weight: 700;
}

/* Account settings */
#tab-cuenta .account-wallet-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
#tab-cuenta .account-identity > summary,
#tab-cuenta .vip-account-perks > summary {
  cursor: pointer;
  color: var(--accent, #8de9de);
}
#tab-cuenta .account-identity code {
  display: block;
  margin-top: .5rem;
  overflow-wrap: anywhere;
}
#tab-cuenta .vip-account-perks {
  margin-top: .75rem;
}
#tab-cuenta .vip-account-perks ul {
  display: grid;
  gap: .4rem;
  padding-inline-start: 1.25rem;
}
#tab-cuenta .account-danger {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid #f075854d;
}
#accountDelete,
#accountDeleteSubmit {
  color: #ffe6e9;
  background: #652934;
  border-color: #f07585;
}
#vipAccountCancel:hover,
#accountDelete:hover,
#accountDeleteSubmit:not(:disabled):hover {
  background: #823141;
}
#petLifeAntidote {
  color: #e8fff6;
  border-color: #75daba;
}

#petLifeAntidote[hidden] { display: none; }

.life-particle-layer > g > g { animation: life-pixel-drift 2s steps(5,end) infinite; }
.life-particle-layer > g:nth-child(2n) > g { animation-delay: -.7s; }
.life-particle-layer > g:nth-child(3n) > g { animation-delay: -1.3s; }
@keyframes life-pixel-drift {
 0% { transform: translateY(3px); opacity: .32; }
 50% { opacity: .88; }
 100% { transform: translateY(-7px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .life-particle-layer > g > g { animation: none; opacity: .75; }
}

#tab-dieta.plan-setup-only > :not(#personalPlanHost) { display: none !important; }
#tab-dieta.plan-setup-only.plan-import-during-setup > :is(#professionalImport, :has(#professionalImport)) { display: revert !important; }
#planAllergySearch { display: block; width: 100%; }
#planAllergyMatches, #planAllergySelected {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
#planAllergyMatches:not(:empty), #planAllergySelected:not(:empty) { margin-top: .5rem; }

.plan-adult-guide { color: #ff9ba9; }

#foodForm .food-kcal-estimate input { color: #ffe39b; border-color: #cba760; background: #30283a; font-weight: 700; font-size: 1.25rem; }

/* Status and care bars share the room HUD background. */
.shell-ready .world-care-meta {
 grid-column:1/-1;order:8;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 10px;
}
.shell-ready .world-care-meta .life-status,
.shell-ready .world-care-meta .world-atmosphere {
 display:inline-flex;align-items:center;gap:4px;margin:0;padding:0;
 background:none;border:0;box-shadow:none;font-size:13px;line-height:1.2;color:#e8e1f2;
}
.shell-ready .world-care-meta .life-status span{font-size:inherit}
.shell-ready .world-care-meta .pixel-icon{width:15px;height:15px}
.shell-ready .world-console .world-care-meters{
 grid-column:1/-1;order:9;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px 8px;margin:0;
}
.shell-ready .world-care-meters label{
 display:block;min-width:0;font-size:13px;line-height:1.2;color:#e8e1f2;overflow-wrap:anywhere;
}
.shell-ready .world-care-meters label :is(span,strong){font-size:inherit}
.shell-ready .world-console .world-care-meters :is(.care-track,meter){
 display:block;width:100%;height:6px;margin:4px 0 0;border:0;border-radius:2px;
}
.shell-ready .world-care-meters meter{appearance:none;background:#28243d}
.shell-ready .world-care-meters meter::-webkit-meter-bar{height:6px;background:#28243d;border:0;border-radius:2px}
.shell-ready .world-care-meters meter::-webkit-meter-optimum-value{background:#72d7bc;border-radius:2px}
.shell-ready .world-care-meters meter::-moz-meter-bar{background:#72d7bc;border-radius:2px}
@media(max-width:520px){
 .shell-ready .world-console .world-care-meters{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.shell-ready .world-room .world-scene-hud {
 grid-template-columns:minmax(88px,clamp(88px,22%,130px)) minmax(0,1fr) 44px;
 grid-template-areas:"meters wallet tools" "meters meta tools" "places places places";
 align-items:start;
}
.shell-ready .world-scene-hud #petWallet{grid-area:wallet;justify-self:start}
.shell-ready .world-console .world-scene-hud .world-care-meters{
 grid-area:meters;display:grid;grid-template-columns:minmax(0,1fr);gap:5px;order:0;
}
.shell-ready .world-scene-hud .world-care-meta{
 grid-area:meta;align-self:start;justify-content:start;order:0;
}
.shell-ready .world-scene-hud #petSceneTabs{grid-area:places;order:0}
.shell-ready .world-tool-cascade{grid-area:tools;position:relative;z-index:2}
.shell-ready .world-tool-cascade summary {
 display:grid;place-items:center;list-style:none;min-height:44px;
 cursor:pointer;border:2px solid #a18abc;background:#38304f;color:#fff;
}
.shell-ready .world-tool-cascade summary::-webkit-details-marker{display:none}
.shell-ready .world-tool-cascade[open] summary{border-color:#71e4d4;background:#24504b}
.shell-ready .world-tool-cascade summary:focus-visible{outline:3px solid #ffe293;outline-offset:2px}
.shell-ready .world-tool-options{
 position:absolute;top:calc(100% + 4px);right:0;display:grid;gap:3px;
 max-height: min(320px, 55dvh);overflow:auto;padding:2px;
}
.shell-ready .world-tool-options button[hidden]{display:none!important}
.shell-ready .world-tool-cascade:not([open]) .world-tool-options{display:none}

.shell-ready .world-room .world-scene-hud {
 grid-template-columns:minmax(0,1fr) minmax(0,2fr) 44px;
 grid-template-areas:"wallet meta tools" "places places places";
}
.shell-ready .world-console .world-room > .world-care-meters {
 position:absolute;z-index:5;top:calc(var(--world-hud-bottom,118px) + 42px);left:12px;
 display:grid;grid-template-columns:minmax(0,1fr);gap:7px;
 width:clamp(76px,19%,128px);pointer-events:none;
}
.shell-ready .world-room > .world-care-meters label {
 color:#fff;text-shadow:0 1px 2px #10162e,0 0 4px #10162e;
}
.shell-ready .world-tool-options .game-icon-button {
 display:flex!important;align-items:center;justify-content:flex-start;gap:7px;
 width:100%;min-width:112px!important;font-size:14px!important;line-height:1.2!important;text-align:start;
}

.shell-ready .world-room .world-scene-hud {
 grid-template-columns:minmax(0,1fr) minmax(0,2fr);
 grid-template-areas:"wallet meta";
}
.shell-ready .world-room > .world-tool-cascade {
 position:absolute;top:calc(var(--world-hud-bottom,118px) + 7px);right:8px;
 bottom:65px;z-index:15;width:44px;pointer-events:none;
}
.shell-ready .world-room > #petSceneTabs {
 position:absolute;z-index:13;left:8px;right:auto;bottom:8px;margin:0;
 display:flex;gap:3px;width:auto;
}
.shell-ready .world-room > #petSceneTabs button {width:44px;padding:5px!important}
.shell-ready .world-room > #petSceneTabs button.active {border-color:#71e4d4;background:#24504b}
.shell-ready .world-room:has(> #petSceneTabs) .pet-nametag {bottom:60px}

.shell-ready .world-room > .world-tool-cascade summary {pointer-events:auto}
.shell-ready .world-room > .world-tool-cascade .world-tool-options {
 top:48px;bottom:auto;max-height:calc(100% - 48px);
 min-width:124px;padding:5px;
 background:#191c32;border:1px solid #a18abc;
 overscroll-behavior:contain;pointer-events:auto;
}
/* Shared game palette and controls. */
.shell-ready {
 --shell-night:#161a2e;
 --shell-surface:#222740;
 --shell-edge:#55496f;
 --shell-violet:#7359b1;
 --shell-mint:#8be6d9;
}
.shell-ready .shell-primary {
 background:var(--shell-night);
 border-color:var(--shell-edge);
}
.shell-ready .shell-primary button {
 border-radius:6px;
}
.shell-ready .shell-primary button.is-active {
 background:#372c54;
 color:#fff;
}
.shell-ready :is(.shell-primary,.shell-secondary,.diet-meal,.pet-toolbar,.world-tool-options,.world-room,.shell-fold) :is(button,summary):focus-visible {
 outline:2px solid var(--shell-mint);
 outline-offset:2px;
}
.shell-ready .shell-subtab {
 border-radius:5px;
}
.shell-ready .hero-main {
 background:var(--shell-surface);
 border-color:var(--shell-edge);
}
.shell-ready .hero-main::after {content:none}
.shell-ready :is(.shell-balance,.diet-meal) {
 background:var(--shell-surface);
 border-color:var(--shell-edge);
}
.shell-ready .diet-meal h4 {color:#f5efff}
.shell-ready .shell-balance .bar {border-color:var(--shell-edge)}
.shell-ready .world-tool-options .game-icon-button,
.shell-ready .world-room > #petSceneTabs .game-icon-button {
 border:1px solid var(--shell-edge);
 border-radius:4px;
 box-shadow:none;
}
.shell-ready .world-room > #petSceneTabs .game-icon-button.active {
 border-color:var(--shell-mint);
}
@media(max-width:700px) {
 .shell-ready .shell-primary {padding-inline:7px}
 .shell-ready .shell-primary button {
  font-size:clamp(11px, 3.5vw, 15px);
  overflow-wrap:anywhere;
  padding-inline:2px;
 }
}
/* Companion controls echo the square silhouettes in the scene. */
.shell-ready .world-room > .world-tool-cascade summary,
.shell-ready .world-room > #petSceneTabs .game-icon-button,
.shell-ready .world-tool-options .game-icon-button {
 border-radius:2px;
 background:#25213c;
 border:1px solid #8474a7;
 box-shadow:inset 0 -3px #171429;
}
.shell-ready .world-room > .world-tool-cascade[open] summary,
.shell-ready .world-room > #petSceneTabs .game-icon-button.active,
.shell-ready .world-tool-options .game-icon-button[aria-expanded=true],
.shell-ready .world-tool-options .game-icon-button[aria-pressed=true] {
 color:#fff;
 background:#39315c;
 border-color:#8be6d9;
 box-shadow:inset 0 -3px #276562;
}
.shell-ready .world-tool-cascade summary .pixel-icon,
.shell-ready #petSceneTabs .pixel-icon {width:26px;height:26px}
.shell-ready .world-room .world-tool-options {
 background:#18152a;
 border-color:#8474a7;
 box-shadow:3px 3px #121020;
}
.appearance-layout{display:grid;grid-template-columns:minmax(150px,.6fr) minmax(0,1fr);gap:16px;margin:12px 0}
.appearance-stage{display:grid;justify-items:center;align-content:center;gap:8px;padding:10px;background:#22243c;border:1px solid #756491}
#appearancePreview svg{width:110px;height:var(--appearance-height,130px);display:block}
.appearance-colors{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.appearance-colors button,.appearance-colors input[type=color]{min-width:34px;width:34px;height:34px;padding:3px;box-sizing:border-box}
.appearance-colors button{background:var(--swatch);border:2px solid #b9a4d5;box-shadow:none}
.appearance-colors button[aria-pressed=true]{outline:2px solid #8be6d9;outline-offset:1px}
@media(max-width:600px){.appearance-layout{grid-template-columns:minmax(0,1fr)}}
#petAppearanceForm [data-look-for][hidden]{display:none!important}
.appearance-layout{align-items:start}
.appearance-stage{position:sticky;top:76px;min-height:216px}
#appearanceTurn{min-height:44px}
.appearance-group{border-bottom:1px solid #55496f}
.appearance-group summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#f4edff;padding:8px 4px}
.appearance-group summary::after{content:"+";color:#8be6d9}
.appearance-group[open] summary::after{content:"−"}
.appearance-group .form-grid{padding:4px 2px 14px}
.appearance-colors{gap:8px}
.appearance-colors button,.appearance-colors input[type=color]{min-width:44px;width:44px;height:44px}
.appearance-layout :is(button,input,select,summary):focus-visible{outline:2px solid #8be6d9;outline-offset:2px}
@media(max-width:600px){
 .appearance-stage{top:0;z-index:1;min-height:0;grid-template-columns:1fr 1fr;align-items:center}
 #appearancePreview svg{width:72px;height:calc(var(--appearance-height,130px) * .67)}
 #petAppearanceForm select{min-height:44px;font-size:16px}
}
.companion-mission-link{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;grid-column:1/-1}
.companion-mission-link[hidden],#worldHint[hidden]{display:none!important}
.companion-mission-link[data-ready]:not([data-ready="0"]){color:#fff1c6;border-color:#ffd479;background:#4b3650}
@media(max-width:380px){
 .shell-ready .world-room > #petSceneTabs{gap:2px;left:5px}
 .shell-ready .world-room > #petSceneTabs .game-icon-button{min-width:44px!important;width:44px;margin:0}
 .shell-ready .world-scene-menus .pet-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .shell-ready .world-scene-menus .pet-sections button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
}
#dailyMissions-mascota .notification-item{min-width:0;overflow-wrap:anywhere}
#dailyMissions-mascota :is(button,summary){min-height:44px}
#dailyMissions-mascota :is(button,summary):focus-visible{outline:2px solid #8be6d9;outline-offset:2px}
#shellExpedition,#dailyMissions-mascota{scroll-margin-block-start:80px}
@media(max-width:700px){#shellExpedition,#dailyMissions-mascota{scroll-margin-block-start:8px}}
#shellExpedition > summary:focus-visible{outline:2px solid #8be6d9;outline-offset:2px}
@media(max-width:700px){
 .shell-ready .shell-primary button{min-width:0}
 .shell-ready .shell-primary button > span{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}
}
@media(max-width:700px){.shell-ready #shellNav{width:min(100%,100dvw);max-width:100%;box-sizing:border-box;grid-template-columns:repeat(5,minmax(0,1fr))}}
.shell-ready .pet-toolbar > .companion-mission-link{min-width:0;white-space:normal}
.companion-mission-link > span{min-width:0;overflow-wrap:anywhere}
.companion-mission-link > .pixel-icon{flex-shrink:0}
#petRoom .companion-icon,.world-scene-menus .companion-icon,.expedition-game-frame .companion-icon{flex-shrink:0}
#petRoom :is(.world-expand,.world-fullscreen-close) .companion-icon,
.world-overlay-heading .companion-icon,.expedition-overlay header .companion-icon{width:22px;height:22px}
.nutrition-face .companion-icon{width:26px;height:26px}
#petCategories [data-petcat]{display:inline-flex;align-items:center;justify-content:center;gap:5px}
#petCategories .companion-icon{width:18px;height:18px}
#petCategories span{min-width:0;overflow-wrap:anywhere}
#petRoom [data-companion-glyph]{display:inline-flex;vertical-align:middle} #petRoom [data-companion-glyph] .companion-icon{display:block;width:14px;height:14px}
#nutritionChat #nutritionClose{min-width:44px;min-height:44px;display:grid;place-items:center} #nutritionChat #nutritionClose .companion-icon,#nutritionChat #nutritionSend .companion-icon{display:inline-block;width:22px;height:22px;vertical-align:middle}
.adventure-upgrade-icon .companion-icon{width:26px;height:26px;vertical-align:middle}
[data-adventure-upgrade] .companion-icon{width:16px;height:16px;vertical-align:middle}
.companion-effect-preview{position:relative;display:block;width:100%;min-height:48px}
.companion-effect-preview > .companion-icon{position:absolute;inset:0 0 auto auto;width:20px;height:20px}
.skill-bubble .companion-icon{display:block;width:22px;height:22px;margin-inline:auto}
.community-hub-nav .companion-icon,#communityMessages .companion-icon,#communityChatClose .companion-icon{display:inline-block;width:19px;height:19px;vertical-align:middle}
.community-hub-nav .pixel-glyph,#communityMessages .pixel-glyph{margin-inline-end:5px}
#tab-comunidad button > .companion-icon{width:20px;height:20px;vertical-align:middle}
#tab-comunidad .visit-direction .companion-icon{transform:rotate(var(--visit-arrow))}
.daily-mission-panel .companion-icon,.mission-hub-group .companion-icon{display:inline-block;width:16px;height:16px;vertical-align:middle}
#tab-comunidad .house-item-display{display:grid;place-items:center;min-width:28px;min-height:28px;pointer-events:none;border-color:#9482bd}
#tab-comunidad .house-item-display .companion-icon{width:20px;height:20px}
.shell-ready .pet-toolbar > :is(.world-console-feature,.companion-mission-link) > .companion-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;vertical-align:middle}

.shell-primary button > span,
.shell-subtab {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shell-primary button:focus-visible,
.shell-subtab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .shell-primary button { font-size: clamp(12px, 3.6vw, 14px); }
  .shell-primary .companion-icon { width: 22px; height: 22px; }
  .shell-subtab { white-space: normal; }
}

body[data-app-section="dieta"] .shell-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body[data-app-section="dieta"] .shell-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.15;
}
.shell-subtab .companion-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
@media (max-width: 540px) {
  body[data-app-section="dieta"] .shell-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shell-secondary .shell-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.15;
}
@media (max-width: 540px) {
  body[data-app-section="medidas"] .shell-secondary,
  body[data-app-section="proyecciones"] .shell-secondary,
  body[data-app-section="calendario"] .shell-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#shellFoodEntry > summary .companion-icon,
.plan-recipe-button .companion-icon,
#foodPhotoFeature button[type="submit"] .companion-icon {
 width:20px;
 height:20px;
 vertical-align:middle;
 margin-inline-end:6px;
}
.plan-recipe-button {max-width:100%;white-space:normal}

#shellFoodEntry > summary .companion-icon { flex:none; margin-inline-end:0 }
#shellFoodEntry > summary::after { margin-inline-start:auto }

.shell-ready #tab-dieta > .reminder-shortcut {
 margin-block:12px 0;
 padding:12px;
 grid-template-columns:48px minmax(0,1fr);
}
.shell-ready #tab-dieta > .reminder-shortcut img {
 width:48px;
 height:48px;
}
#openReminders {
 min-height:44px;
 max-width:100%;
 white-space:normal;
}
#openReminders:focus-visible {
 outline:2px solid var(--cyan);
 outline-offset:2px;
}

.daily-mission-card .companion-icon {
 width:18px;
 height:18px;
 vertical-align:middle;
}
.daily-mission-card[data-mission-state="ready"] {
 border-inline-start:3px solid var(--gold);
 padding-inline-start:10px;
}
.daily-mission-card .mission-claim-ready .companion-icon {margin-inline-end:6px}
.daily-mission-card button {min-height:44px;max-width:100%}

.shell-tour .form-actions {
 display:grid;
 grid-template-columns:1fr 1fr;
}
.shell-tour [data-tour-next]:only-of-type,
.shell-tour [data-tour-back][hidden] + [data-tour-next] {
 grid-column:1/-1;
}
.shell-tour .form-actions button {
 min-height:44px;
 min-width:0;
 white-space:normal;
}
.shell-tour [data-tour-skip] {
 grid-column:1/-1;
 justify-self:center;
 background:transparent;
 border-color:transparent;
 box-shadow:none;
 color:var(--muted);
 text-decoration:underline;
}
.shell-tour button:focus-visible {
 outline:2px solid var(--cyan);
 outline-offset:2px;
}

.calendar-toolbar button {
 min-height:44px;
 min-width:44px;
}
.calendar-toolbar .companion-icon {
 width:20px;
 height:20px;
 vertical-align:middle;
}
.calendar-toolbar #goToday .companion-icon {margin-inline-end:5px}
.calendar-toolbar button:focus-visible {
 outline:2px solid var(--cyan);
 outline-offset:2px;
}
:dir(rtl) .calendar-toolbar :is(#prevMonth,#nextMonth) .companion-icon {
 transform:scaleX(-1);
}

.diet-day-nav :is(#dietPrev,#dietNext) {
 min-inline-size:44px;
 min-block-size:44px;
}
.diet-day-nav .companion-icon {
 width:20px;
 height:20px;
 vertical-align:middle;
}
:dir(rtl) .diet-day-nav .companion-icon {transform:scaleX(-1)}

:is(#measureForm,#activityForm) :is(input,select) {min-block-size:44px;min-inline-size:0}
:is(#measureForm,#activityForm) button[type="submit"] {min-height:44px;white-space:normal}
:is(#measureForm,#activityForm) button .companion-icon {
 width:20px;
 height:20px;
 vertical-align:middle;
 margin-inline-end:6px;
}
@media(max-width:540px) {
 :is(#measureForm,#activityForm) button[type="submit"] {width:100%}
}

.shell-ready .top-actions button.notification-bell {
 min-width:44px;
 min-height:44px;
}
.notification-bell .companion-icon {
 width:22px;
 height:22px;
 pointer-events:none;
}
.notification-bell:focus-visible {
 outline:2px solid var(--cyan);
 outline-offset:2px;
}

.shell-ready .world-room > .world-care-meters label {
 font-size:clamp(13px, 1.55vw, 15px);
 color:#fff;
 text-shadow:1px 1px 0 #10162e,-1px -1px 0 #10162e,0 0 3px #10162e;
}
.shell-ready .world-console .world-room > .world-care-meters :is(.care-track,meter),
.shell-ready .world-room > .world-care-meters meter::-webkit-meter-bar {
 height:8px;
}

.shell-ready .world-room #petNameTag {
 white-space:normal;
 overflow-wrap:anywhere;
 text-align:center;
}

#dietToday {min-height:44px;white-space:normal}
#dietToday .companion-icon {
 width:18px;
 height:18px;
 vertical-align:middle;
 margin-inline-end:6px;
}
:is(.diet-day-nav button,#dietToday):focus-visible {
 outline:2px solid var(--cyan);
 outline-offset:2px;
}

.appearance-stage > * {min-inline-size:0}
#appearanceTurn {max-width:100%;white-space:normal;overflow-wrap:anywhere}
#appearanceTurn .pixel-glyph,
#appearanceTurn .companion-icon {width:20px;height:20px;vertical-align:middle}
#appearanceTurn .pixel-glyph {margin-inline-end:6px}
.appearance-group summary {gap:8px;overflow-wrap:anywhere}

.diet-logged-ingredients {
  margin-block: .5rem;
  padding-inline-start: 1.25rem;
  overflow-wrap: anywhere;
}
.diet-logged-ingredients li + li {
  margin-block-start: .25rem;
}

:is(#shellShopping > button,[data-heading-icon]) .pixel-icon {
  width:20px;
  height:20px;
  margin-inline-end:6px;
  vertical-align:middle;
}

#freeStyleHistory,
#freeStyleCalorieDistribution { display:none; }
#tab-dieta.plan-free-style :is(#freeStyleHistory,#freeStyleCalorieDistribution) { display:block; }
.free-style-history-header { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.free-style-history-header > input, .free-style-history-header > button { min-height:44px; max-width:100%; }

#tab-dieta.plan-free-style > :not(.diet-layout,.plan-tools),
#tab-dieta.plan-free-style .diet-layout > :not(#shellFoodEntry,#planFoodShortcuts,#freeStyleHistory,#freeStyleCalorieDistribution),
body[data-app-section="dieta"]:has(#tab-dieta.plan-free-style) #shellSecondary,
body:not(:has(#tab-dieta.plan-free-style)) [data-shell-target="shellFoodEntry"] { display:none !important; }
#tab-dieta.plan-free-style :is(.diet-layout,.plan-tools) { grid-template-columns:minmax(0,1fr); }
.shell-ready .hero > .profile-level-card {
 position: relative;
 display: grid;
 align-content: center;
 gap: .65rem;
 min-inline-size: 0;
 min-block-size: 0;
 padding: clamp(.85rem,2.2vw,1.35rem);
 border-color: #886daf;
 background: linear-gradient(145deg,#2d2546,#1a2037 68%);
}
.profile-level-card h3 { margin: 0; color: #e3d5ff; }
.profile-level-rank { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; }
.profile-level-card .level-number { font-size: clamp(2.3rem,5vw,3.5rem); }
.profile-level-rank #rankName { color: #fff0c3; font-size: 1.2rem; overflow-wrap:anywhere; }
.profile-level-logros {
 display: grid;
 grid-template-columns: 42px minmax(0,1fr) auto;
 align-items: center;
 gap: .5rem;
 padding-block-start: .65rem;
 border-block-start: 1px solid #625283;
}
#profileLevelBadge { display:grid; place-items:center; inline-size:42px; block-size:42px; background:#49385d; border:1px solid #9574b8; }
#profileLevelBadge .companion-icon { inline-size:26px; block-size:26px; }
#profileAchievementCount { display:block; color:#a4efdb; }
.profile-level-logros button { min-block-size:44px; white-space:normal; }
@media (max-width:360px) {
 .profile-level-logros { grid-template-columns: 42px minmax(0,1fr); }
 .profile-level-logros button { grid-column: 2; justify-self:start; }
}

.diet-day-nav-bottom{margin-top:16px}.diet-day-nav-bottom #dietPrevBottom{grid-column:1}.diet-day-nav-bottom #dietNextBottom{grid-column:3}

/* Keep untranslated recipe labels indistinct without moving their controls. */
[data-recipe-text]{transition:opacity 160ms ease-out}
[data-recipe-text][aria-busy="true"]{filter:blur(5px);opacity:.12;transition:none}
@media(prefers-reduced-motion:reduce){[data-recipe-text]{transition:none}}

/* A persistent, decorative stamp supplements the existing diary status text. */
.shell-ready .diet-meal.is-logged{position:relative;border-color:#75e0a0;box-shadow:inset 0 0 0 1px #75e0a066,0 0 12px #75e0a014}
.diet-meal.is-logged .diet-logged-status{color:#a4ffc0}
.diet-meal.is-logged .oz-recipe-photo{position:relative}
.diet-meal.is-logged .oz-recipe-photo:after,
.diet-meal.is-logged:not(:has(.oz-recipe-photo)):after{content:"";position:absolute;width:clamp(76px,42%,128px);aspect-ratio:1;left:50%;top:50%;transform:translate(-50%,-50%);background:url("assets/meal-registered.svg") center/contain no-repeat;pointer-events:none}
.diet-meal.is-logged .oz-recipe-photo:after{opacity:.84}
.diet-meal.is-logged:not(:has(.oz-recipe-photo)):after{opacity:.12}

.pet-shop-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.pet-shop-tools label{display:grid;gap:5px;min-width:0}
.pet-shop-tools :is(input,select){min-width:0;min-height:44px;width:100%}
.pet-item-tier{align-self:center;padding:2px 7px;border:1px solid #8c86a5;color:#dcd6ef;border-radius:5px;font-size:11px}
.pet-item-tier[data-rarity="uncommon"]{border-color:#62bba5;color:#b1e6d6}
.pet-item-tier[data-rarity="rare"]{border-color:#729dd2;color:#b7d4f4}
.pet-item-tier[data-rarity="epic"]{border-color:#a185d4;color:#d6bff4}
.pet-item-tier[data-rarity="legendary"]{border-color:#dcac62;color:#ffe0a0}
.shell-ready .world-scene-menus .pet-product .world-product-preview{height:72px}
@media(max-width:380px){.pet-shop-tools{grid-template-columns:1fr}}

/* Keep navigation targets clear of rounded screens and the home gesture area. */
@media (max-width:700px) {
 .shell-ready .shell-primary {
  padding-top:8px;
  padding-right:max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
  padding-bottom:max(22px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  padding-left:max(16px, calc(env(safe-area-inset-left, 0px) + 12px));
  column-gap:4px;
 }
 .shell-ready .shell-primary button {min-height:60px;touch-action:manipulation}
}

/* Diary rows keep names readable and destructive actions comfortably tappable. */
.shell-ready :is(#mealList,#activityList) .meal{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:start}
.shell-ready :is(#mealList,#activityList) .meal-main{min-width:0;grid-column:2;overflow-wrap:anywhere}
.shell-ready :is(#mealList,#activityList) .meal-kcal{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin:0}
.shell-ready :is(#mealList,#activityList) :is([data-diary-delete],[data-activity-delete]){min-width:44px;min-height:44px;margin:0;padding:8px}
.shell-ready #mealList .diary-notes{margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.shell-ready #mealList .diary-notes summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:14px}
.shell-ready #mealList .diary-notes p{margin:4px 0 0;font-size:14px;line-height:1.5}
 .shell-ready #mealList .diary-notes summary::after{content:"＋";margin-inline-start:auto}
.shell-ready #mealList .diary-notes[open] summary::after{content:"−"}

#measureRows [data-measure-delete]{min-width:44px;min-height:44px}

#tab-cuenta #accountDanger:not([hidden]) {display:flex;align-items:stretch;gap:8px}
#communityProfileBlock:not([hidden],.hidden),
#tab-cuenta #accountSignOut:not([hidden],.hidden),
#accountDanger :is(#accountDelete,#vipAccountCancel):not([hidden],.hidden) {
 display:inline-flex;flex-flow:row nowrap;align-items:center;justify-content:center;
 flex:1 1 0;min-width:0;max-width:16rem;min-height:46px;gap:6px;padding:6px;
 color:#ffe6e9;background:#652934;border-color:#f07585;line-height:1.1;
}
#communityProfileBlock:hover,
#tab-cuenta #accountSignOut:hover,
#accountDanger :is(#accountDelete,#vipAccountCancel):hover {background:#823141}
#accountDanger #vipAccountCancel > svg {position:static;flex:0 0 24px;width:24px;height:24px;margin:0}

.shell-ready .world-console .pet-toolbar>#worldCharacterToggle{grid-column:-2/-1}

/* Everyday care, play and conversation, then account shortcuts. */
.shell-ready .world-console .pet-toolbar>button:not([hidden]){
 display:flex;align-items:center;justify-content:center;gap:.4em;min-height:46px;
}
.shell-ready .world-console .pet-toolbar>#petLifeAntidote{grid-column:1/-1}
.shell-ready .world-console .pet-toolbar>:is(.companion-mission-link,#worldCharacterToggle){
 grid-column:span 2;border-top:2px solid #9884bb;margin-top:4px;
}
@media(max-width:520px){
 .shell-ready .world-console .pet-toolbar>:is(.companion-mission-link,#worldCharacterToggle){grid-column:span 1}
}


/* Compact Plan shortcuts expand naturally when a form or result needs more space. */
#planFoodShortcuts {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: clamp(8px, 2vw, 16px);
 inline-size: min(100%, 640px);
 margin: 0 auto .75rem;
 align-items: stretch;
}
#planFoodShortcuts:has(#optionalSnack:not([hidden])) {
 grid-template-columns: repeat(2, minmax(0, 1fr));
}
#planFoodShortcuts > * { min-inline-size: 0; }
#planFoodShortcuts #planFoodPhotoHost { display: flex; }
#tab-dieta #planFoodShortcuts #foodPhotoFeature,
#tab-dieta #planFoodShortcuts #optionalSnack:not([hidden]) {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 justify-content: center;
 gap: .35rem;
 border: 1px solid #9981bd;
 background: #27213a;
 border-radius: 12px;
 inline-size: 100%;
 min-inline-size: 0;
 margin: 0;
 padding: clamp(8px, 2vw, 16px);
}
#planFoodShortcuts:has(#optionalSnack:not([hidden])) :is(#foodPhotoFeature,#optionalSnack) {
 aspect-ratio: 1;
}
#planFoodShortcuts :is(#foodPhotoFeature,#optionalSnack) > img {
 display: block;
 align-self: center;
 order: -1;
 object-fit: contain;
 inline-size: 70%;
 block-size: clamp(24px, 9vw, 86px);
 margin: 0;
}
#planFoodShortcuts :is(#foodPhotoFeature,#optionalSnack) h3 {
 margin: 0 0 .25rem;
 text-align: center;
 font-size: clamp(13px, 3.5vw, 22px);
 line-height: 1.22;
 overflow-wrap: anywhere;
}
#planFoodShortcuts :is(#foodPhotoFeature,#optionalSnack) :is(button,select) {
 inline-size: 100%;
 max-inline-size: 100%;
 min-inline-size: 0;
 min-block-size: 44px;
 white-space: normal;
 margin: 0;
 padding: .3rem .35rem;
 font-size: clamp(12px, 3.2vw, 16px);
}
#planFoodShortcuts #optionalSnack select { margin-block: .35rem; }
#planFoodShortcuts #foodPhotoFeature > form { margin: 0; }
#planFoodShortcuts #foodPhotoFeature > :empty:not(form) { display: none; }
#planFoodShortcuts:has(#optionalSnack:not([hidden])) :is(#foodPhotoFeature > p:not([role]), #optionalSnack .snack-copy > p) {
 position: absolute;
 inline-size: 1px;
 block-size: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
