/* A quiet, dedicated incubation scene. Existing layered egg art stays intact. */
body[data-view="incubate"] .app { min-height:100svh; height:auto; overflow:visible; }
.view--incubate { display:flex; flex-direction:column; gap:0; min-height:0; padding:24px 0 12px; }
.view--incubate .habitat-label { display:flex; justify-content:space-between; padding-bottom:14px; font-size:9px; letter-spacing:.14em; }
.view--incubate .online { font:11px var(--font-display); letter-spacing:.04em; }
.view--incubate .eggtitle { display:flex; justify-content:space-between; align-items:center; }
.view--incubate .eggtitle__name { font-size:28px; }
.view--incubate .eggtitle__meta { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.view--incubate .stage { flex:none; width:100%; height:clamp(290px,43svh,400px); min-height:0; margin:0; overflow:hidden; }
.view--incubate .incubator { width:min(116cqw,132cqh); max-width:460px; left:50%; top:46%; }
.view--incubate .side,.view--incubate .motes { display:none; }
.incubation-omen { margin:-10px 0 14px; padding:0 10px; text-align:center; white-space:pre-line; color:#cfe0f0; font:11px/1.8 var(--font-display); letter-spacing:.04em; }
.incubation-message { min-height:42px; margin:0 0 16px; padding:0 10px; text-align:center; color:var(--pearl); font:12px/1.9 var(--font-display); letter-spacing:.04em; }
.view--incubate .vitals { display:grid; grid-template-columns:1fr auto; gap:12px; padding:16px 0; border-top:1px solid #b9a0bb40; border-bottom:0; }
.view--incubate .vitals__zh { display:flex; align-items:center; gap:12px; font:12px var(--font-display); }
#incubation-percent { font:15px var(--font-body); color:var(--ivory); }
.view--incubate .vitals__meter { grid-row:2; grid-column:1 / -1; width:100%; }
.view--incubate .bar { height:4px; border-radius:2px; overflow:hidden; }
.view--incubate .vitals__num { grid-row:1; grid-column:2; }
.incubation-controls { display:flex; flex-direction:column; gap:10px; }
.incubation-budget { display:flex; justify-content:space-between; align-items:center; align-self:center; flex-wrap:wrap; gap:6px 12px; width:min(100%,280px); padding:4px 0; }
.incubation-budget__balance { display:flex; align-items:baseline; gap:10px; color:var(--pearl); font:13px var(--font-display); }
#incubation-energy { color:var(--ivory); font:500 24px/1.4 var(--font-body); font-variant-numeric:tabular-nums; }
#incubation-cost { color:var(--silver); font:11px/1.7 var(--font-display); }
.view--incubate #cultivate { display:flex; align-items:center; justify-content:center; gap:12px; align-self:center; width:min(100%,280px); min-height:58px; padding:14px 24px; font:400 17px var(--font-display); letter-spacing:.08em; color:#f5e9f5; background:linear-gradient(135deg,#51425e,#383343); border:1px solid #ad91b578; border-radius:14px; clip-path:none; box-shadow:0 5px 16px #09091238,inset 0 1px #ead4ef1f; transition:transform .18s ease,background .18s ease,border-color .18s ease; }
.view--incubate #cultivate::after { content:none; }
#cultivate svg { width:22px; height:22px; stroke:#eaccc6; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.view--incubate #cultivate:active:not(:disabled) { transform:scale(.97); background:#594563; border-color:#e1c5e6; }
.view--incubate #cultivate:focus-visible { outline:2px solid #efdaef; outline-offset:4px; }
@media(hover:hover) { .view--incubate #cultivate:hover:not(:disabled) { background:linear-gradient(135deg,#60506e,#44394e); } }
@media(prefers-reduced-motion:reduce) { .view--incubate #cultivate { transition:none; } }
#cultivate:disabled { opacity:.65; cursor:wait; }
.feed-all { align-self:center; width:min(100%,280px); min-height:44px; padding:8px 16px; border:1px solid color-mix(in srgb,var(--pearl) 45%,transparent); border-radius:3px; background:none; color:var(--pearl); font:14px var(--font-display); letter-spacing:.08em; }
.feed-all span { font-size:12px; margin-left:4px; }
.feed-all:active:not(:disabled) { transform:scale(.97); }
.feed-all:disabled { opacity:.4; }
.feed-all[hidden] { display:none; }
#incubate-wishes { display:flex; justify-content:center; align-items:center; gap:14px; min-height:46px; padding:8px; border:0; background:none; color:var(--pearl); font:12px var(--font-display); }
#incubate-wish-progress { font:10px var(--font-body); color:var(--silver); }
body[data-view="incubate"] .game-footer { min-height:70px; padding-top:8px; padding-bottom:calc(var(--safe-bottom) + 18px); }
@media(max-width:374px) { .view--incubate { padding-top:18px; } .view--incubate .eggtitle__name { font-size:25px; } }
@media(max-height:700px) { .view--incubate .stage { height:280px; } }
body[data-view="incubate"] { background-image:linear-gradient(180deg,#151722c9,#151722a6 45%,#151722e8),url('../assets/scene/home-bg.webp'); }
.egg-select-entry { align-self:center; display:flex; align-items:center; gap:8px; min-height:44px; margin:0 0 8px; padding:6px 12px; border:1px solid #aa94b14d; border-radius:24px; background:#282532; color:var(--pearl); font:11px var(--font-display); }
.egg-select-entry:active { background:#43374e; }
.egg-picker { max-height:85svh; overflow-y:auto; }
#egg-choices { display:flex; flex-direction:column; gap:12px; }
.egg-choice { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:10px; width:100%; min-height:146px; padding:12px; text-align:left; color:var(--pearl); border:1px solid #8e7d984d; border-radius:12px; background:#25232f; }
.egg-choice[aria-pressed="true"] { background:#393044; border-color:#b79bc4; }
.egg-choice:disabled { cursor:default; }
.egg-choice:disabled:not([aria-pressed="true"]) { background:#20202b; color:#bbb2c1; }
.egg-choice__art { position:relative; width:88px; height:112px; overflow:hidden; }
.egg-choice__art .egg { width:200px; height:200px; inset:auto; left:50%; top:50%; transform:translate(-50%,-50%); }
.egg-choice h3 { margin:0 0 8px; font:17px var(--font-display); }
.egg-choice p { margin:3px 0; font:11px/1.7 var(--font-display); }
.egg-choice__state { display:block; margin-top:10px; color:#dcc5e5; font:11px var(--font-display); }
#egg-picker-feedback { font:12px/1.7 var(--font-display); color:var(--pearl); }

.egg-choices__heading { margin:14px 2px 8px; font:400 13px var(--font-display); letter-spacing:.14em; color:var(--pearl); }
.egg-choices__heading:first-child { margin-top:4px; }

.egg-cats { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.egg-cat { display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 4px 10px; border:1px solid #8e7d984d; border-radius:12px; background:#25232f; color:var(--pearl); }
.egg-cat .egg-choice__art { width:72px; height:88px; }
.egg-cat .egg-choice__art .egg { width:160px; height:160px; }
.egg-cat b { font:400 14px var(--font-display); color:var(--ivory); }
.egg-cat small { font:10px var(--font-body); color:var(--silver); text-align:center; }
.egg-cat.has-eggs { border-color:#c9a8ff99; }
.egg-cat.has-eggs small { color:#e7cdf2; }
.egg-cat[aria-pressed="true"] { background:#393044; border-color:#b79bc4; }
.egg-cat:disabled { opacity:.55; }
.egg-back { align-self:flex-start; min-height:40px; padding:0 4px; border:0; background:none; color:var(--pearl); font:14px var(--font-display); }

.egg-offer { text-align:center; }
.egg-offer h2 { margin:4px 0; font:400 21px var(--font-display); }
.egg-offer__list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:8px; }
.offer-egg { display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 4px 10px; border:1px solid #8e7d984d; border-radius:12px; background:#25232f; color:var(--ivory); }
.offer-egg .egg-choice__art { width:72px; height:88px; }
.offer-egg .egg-choice__art .egg { width:160px; height:160px; }
.offer-egg b { font:400 13px var(--font-display); }
.offer-egg small { font-size:10px; line-height:1.5; color:var(--pearl); }
.offer-egg.is-shiny { border-color:#ffd27a; box-shadow:0 0 14px #ffd27a55; }
.offer-egg.is-shiny .egg-choice__art { filter:drop-shadow(0 0 8px #ffe7a6); }
.offer-egg.is-naughty { border-color:#9fe3d9aa; }
.offer-egg.is-naughty .egg-choice__art { animation:naughty-wobble 1.4s ease-in-out infinite; }
@keyframes naughty-wobble { 0%,100% { transform:rotate(0); } 20% { transform:rotate(-6deg); } 40% { transform:rotate(5deg); } 60% { transform:rotate(-3deg); } }
.stage.is-shiny .incubator { filter:drop-shadow(0 0 18px #ffe7a6aa); }
.stage.is-shiny .egg { animation:shiny-pulse 2.4s ease-in-out infinite; }
@keyframes shiny-pulse { 50% { filter:brightness(1.18) saturate(1.2); } }
.stage.is-naughty .egg { animation:naughty-wobble 2.6s ease-in-out infinite; transform-origin:50% 68%; }
.egg-request { display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:10px 12px; border:1px solid #9fe3d988; border-radius:12px; background:#1b2a2a; font:13px/1.6 var(--font-display); color:var(--ivory); }
.egg-request span { flex:1; }
.egg-request__btn { width:auto !important; min-height:38px; padding:0 14px; display:inline-flex; align-items:center; white-space:nowrap; cursor:pointer; }
@media (prefers-reduced-motion:reduce) { .stage.is-shiny .egg, .stage.is-naughty .egg, .offer-egg.is-naughty .egg-choice__art { animation:none; } }

/* 放到主畫面 */
.install-dialog { text-align: center; }
.install-dialog__icon { width: 72px; height: 72px; border-radius: 18px; margin: 4px auto 10px; display: block; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.install-steps { text-align: left; margin: 4px 0 14px; padding-left: 1.4em; line-height: 1.7; }
.install-steps b { color: var(--accent, #f0b03a); font-weight: 700; }
