/* One clear overview, with each baby's actions on its own card. */
.welcome[data-view="babies"] .welcome-card{width:min(600px,100%);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;max-height:calc(100dvh - 24px)}
.welcome[data-view="babies"] #welcomeArt{display:none!important}
.welcome[data-view="babies"] .welcome-copy{padding:24px;overflow-y:auto;justify-content:flex-start}
.welcome[data-view="babies"] #profilePicker>.difficulty-heading{display:none}
.welcome[data-view="babies"] .baby-profiles{max-height:none;overflow:visible;gap:10px}
.baby-profile-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;border:2px solid #dfeae4;border-radius:18px;background:#fbfdfa;padding:7px;color:#244f50}
.baby-profile-card[data-selected="true"]{background:#edf7f0;border-color:#5a9e8b;box-shadow:0 0 0 1px #5a9e8b14}
.baby-profile-card .baby-profile{display:flex;justify-content:flex-start;gap:10px;min-width:0;min-height:78px;padding:6px;background:transparent;border:0;border-radius:12px;box-shadow:none}
.baby-profile-card .baby-profile[aria-pressed="true"]{background:transparent;border:0}
.baby-profile-card .profile-copy{min-width:0;display:flex;flex-direction:column;gap:4px;text-align:left}
.baby-profile-card .profile-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 1.08rem/1.2 'Nunito',sans-serif;color:#173e48}
.baby-profile-card .profile-meta{font-size:.73rem;line-height:1.3;color:#627e77}
.baby-profile-card .profile-progress{font-size:.74rem;font-weight:800;color:#3f7669}
.baby-profile-card .profile-portrait{display:block;flex:none;width:52px;height:52px;max-height:none;border-radius:50%;background:#fffaf0;filter:none;transform:none;pointer-events:none}
.profile-portrait,.profile-portrait *{animation:none!important}
.profile-portrait .head{transform:none!important}
.profile-tools{display:flex;align-items:center;gap:2px}
.profile-tool{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:11px;background:transparent;color:#46786c;touch-action:manipulation}
.profile-tool svg{display:block;width:23px;height:23px}
.profile-tool:hover{background:#dcece3}
.profile-tool.profile-delete{color:#a16c5d}
.profile-tool.profile-delete:hover{background:#f6e9e3}
.profile-tool:disabled{opacity:.45}
.welcome[data-view="babies"] #continueGame{min-height:46px;margin-top:16px}
.welcome[data-view="babies"] #newBabyButton{min-height:44px;margin-top:8px;border:1px dashed #c5d9ce;border-radius:12px;background:#fbfdf9;color:#3e7167}
.welcome[data-view="babies"] #newBabyButton::before{content:'+';font-size:1.2rem;margin-right:7px;vertical-align:-1px}
.welcome-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;flex:none;margin-top:16px;padding-top:10px;border-top:1px solid #e0eae2}
.welcome-footer[hidden]{display:none}
.welcome-footer .settings-link{width:auto;min-height:44px;margin:0;padding:8px 3px;text-align:left;font-size:.75rem}
.welcome-footer .settings-link:last-child{margin-left:auto}
.welcome #menuFeedback:not(:empty){margin-top:8px;font-size:.76rem;color:#427669}

/* Per-baby choices have their own short page, separate from game preferences. */
.welcome[data-view="babysettings"] .welcome-card{width:min(540px,100%);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;max-height:calc(100dvh - 24px)}
.welcome[data-view="babysettings"] #welcomeArt{display:none!important}
.welcome[data-view="babysettings"] .welcome-copy{justify-content:flex-start;overflow-y:auto;padding:24px}
#babySettingsPanel{flex:none;min-height:0}
.baby-settings-summary{font-size:.78rem;color:#678278}
#babySettingsPanel .selected-baby-profile{margin:0;padding:16px;background:#f3f8f1;border-color:#dbe7dc}
#babySettingsPanel .feeding-options button{min-height:44px;border:1px solid #cbded1;border-radius:10px;padding:8px;color:#365f59;background:#fffdf5;font-size:.8rem}
#babySettingsPanel .feeding-options button[aria-pressed="true"]{border-color:#518f7d;background:#e3f0e5}
#babySettingsPanel .feeding-options button:disabled{opacity:.5}
#babySettingsPanel .feeding-note{font-size:.75rem;line-height:1.45}
#babySettingsBack{min-height:44px;margin-top:18px}

/* Calm full-screen ending, with saved progress and a distinct new-baby action. */
.game-outcome{position:fixed;inset:0;z-index:60;display:grid;place-items:center;overflow-y:auto;overscroll-behavior:contain;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 30%,#fffaf0,var(--season-page,#e7f2eb));color:#244f50}
.game-outcome[hidden]{display:none}
.outcome-card{width:min(510px,100%);margin:auto;border:1px solid #d7e5d8;border-radius:28px;background:#fffdf8;padding:26px 30px;box-shadow:0 18px 65px #31534612;text-align:center}
.outcome-illustration{width:118px;height:98px;margin:0 auto 8px}
.outcome-illustration svg{display:block;width:100%;height:100%}
.outcome-kicker{font-size:.68rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#6c8d7c}
.outcome-card h2{font:900 clamp(1.45rem,5vw,1.9rem)/1.14 'Nunito',sans-serif;letter-spacing:-.025em;color:#173e48;margin:9px 0 12px}
.outcome-card>p{font-size:.87rem;line-height:1.5;margin:0;color:#5c7a71}
.outcome-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:17px 0;margin:21px 0 16px;border-top:1px solid #e0eadd;border-bottom:1px solid #e0eadd}
.outcome-stats>div{min-width:0;padding:0 4px}
.outcome-stats dt{font-size:.67rem;color:#748b7b;margin-bottom:6px}
.outcome-stats dd{font:900 .96rem/1.2 'Nunito',sans-serif;color:#315d53;margin:0}
.outcome-card .outcome-saved{font-size:.75rem;line-height:1.4;max-width:340px;margin:0 auto 20px;color:#6a8376}
.outcome-actions{display:flex;flex-direction:column;gap:9px}
.outcome-actions button{width:100%;min-height:46px;padding:12px;border-radius:12px;font-size:.86rem;font-weight:800;border:1px solid #c9ddd0;color:#37695e}
.outcome-actions .outcome-primary{background:#255d52;border-color:#255d52;color:#fffdf5}
.outcome-actions .outcome-primary:hover{background:#326f61}
.outcome-actions .outcome-secondary{background:#f5f9f1}
.outcome-actions .outcome-memories{background:transparent;border:0;min-height:40px;font-size:.78rem;padding:9px}

/* Confirm the named baby, with a safe default focus and room for touch targets. */
.profile-delete-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;overflow-y:auto;overscroll-behavior:contain;padding:20px;background:#193e4859;backdrop-filter:blur(4px)}
.profile-delete-modal[hidden]{display:none}
.profile-delete-card{width:min(400px,100%);margin:auto;background:#fffdf8;border:1px solid #eadbd1;border-radius:23px;padding:24px;color:#365b56;box-shadow:0 20px 60px #193e482b}
.profile-delete-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#f6e9e2;color:#a9715e;margin-bottom:15px}
.profile-delete-symbol svg{width:25px;height:25px}
.profile-delete-card h2{font:900 1.4rem/1.2 'Nunito',sans-serif;color:#244f50;margin:0 0 10px;overflow-wrap:anywhere}
.profile-delete-card p{font-size:.84rem;line-height:1.45;color:#698177;margin:0 0 17px}
.profile-delete-card #deleteError{color:#a15d4e}
.profile-delete-card #deleteError:empty{display:none}
.profile-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-delete-actions button{min-height:46px;padding:10px;border-radius:11px;border:1px solid #cadbd0;background:#f2f7ef;color:#315f53;font-size:.8rem;font-weight:800;overflow-wrap:anywhere}
.profile-delete-actions #deleteBaby{border-color:#ab715e;background:#ab715e;color:#fffdf7}

@media(max-width:610px){.welcome[data-view="babies"] .welcome-copy,.welcome[data-view="babysettings"] .welcome-copy{padding:18px}.outcome-card{padding:23px 20px}.outcome-illustration{width:106px;height:89px}.profile-delete-card{padding:22px}}
@media(max-height:600px){.welcome[data-view="babies"] .welcome-copy,.welcome[data-view="babysettings"] .welcome-copy{padding:14px 16px}.welcome[data-view="babies"] #welcomeIntro{margin-bottom:9px;font-size:.77rem}.welcome-footer{margin-top:9px;padding-top:4px}.baby-profile-card .baby-profile{min-height:66px}.outcome-card{padding:19px 22px}.outcome-illustration{display:none}.outcome-stats{margin:15px 0 12px;padding:13px 0}.outcome-card .outcome-saved{margin-bottom:15px}}

/* Compact profile rows keep identity and actions together on phones. */
.welcome[data-view="babies"] .welcome-card{width:min(760px,100%)}
.welcome[data-view="babies"] .welcome-copy{padding:clamp(14px,2.5vh,24px)}
.welcome[data-view="babies"] .welcome-kicker{margin-bottom:3px}
.welcome[data-view="babies"] #welcomeIntro{font-size:.8rem;line-height:1.4;margin:4px 0 14px;max-width:520px}
.welcome[data-view="babies"] #profilePicker{justify-content:flex-start;gap:0}
.welcome[data-view="babies"] .baby-profiles{gap:8px}
.baby-profile-card{padding:5px;gap:0;border-radius:15px}
.baby-profile-card .baby-profile{flex-direction:row;align-items:center;min-height:72px;padding:5px;gap:9px}
.baby-profile-card .profile-copy{gap:3px;flex:1;text-align:left!important}
.baby-profile-card .profile-copy strong{font-size:1rem}
.baby-profile-card .profile-meta{font-size:.68rem}
.baby-profile-card .profile-progress{font-size:.7rem}
.baby-profile-card .profile-portrait{width:48px;height:48px}
.profile-tools{gap:0}.profile-tool{width:44px;height:44px;padding:9px}.profile-tool svg{width:21px;height:21px}
.welcome[data-view="babies"] #profilePages{margin:8px 0 0}
.welcome[data-view="babies"] #continueGame{margin-top:12px}
.welcome[data-view="babies"] #newBabyButton{margin-top:6px}
.welcome[data-view="babies"] .welcome-footer{margin-top:12px;padding-top:5px}
@media(min-width:800px){.welcome[data-view="babies"] .baby-profiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.baby-profile-card .profile-portrait{width:40px;height:40px}.profile-tool{width:44px;padding:9px}.baby-profile-card .baby-profile{gap:6px}.baby-profile-card .profile-meta{font-size:.64rem}}
