html, body { margin: 0; }
body.app-booting { overflow: hidden; background: #f4f7f4; }
body.app-booting #app { visibility: hidden; }
body.app-ready #app { visibility: visible; }
.startup { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; overflow: auto; padding: 28px; box-sizing: border-box; color: #263b32; background: radial-gradient(ellipse at 50% 34%, #e4eedb, transparent 62%), #f4f7f4; font-family: system-ui, -apple-system, 'Microsoft YaHei', sans-serif; }
.startup::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4; background-image: radial-gradient(#7b9765 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse, transparent 28%, #000); }
.startup-card { position: relative; width: min(100%, 420px); text-align: center; animation: startup-arrive .7s both; }
.startup-eyebrow { margin: 0 0 28px; font-size: 11px; letter-spacing: 5px; color: #708563; }
.startup-plant { width: 136px; height: 136px; margin: auto; position: relative; display: grid; place-items: center; }
.startup-plant::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed #91ad78; animation: startup-orbit 20s linear infinite; }
.startup-plant svg { width: 100px; height: 100px; filter: drop-shadow(0 10px 12px #527c4226); overflow: visible; }
.plant-stem { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--growth, 0)); transition: stroke-dashoffset .08s linear; }
.plant-branch { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--branch-growth, 0)); transition: stroke-dashoffset .1s linear; }
.plant-leaf { fill-opacity: var(--leaf-fill, 0); stroke: #527c42; stroke-width: 1; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--leaf-growth, 0)); transition: stroke-dashoffset .1s linear, fill-opacity .16s ease; }
.plant-sprig { transform-box: view-box; }
.plant-sprig.is-grown { animation: leaf-breeze var(--leaf-duration, 2.7s) ease-in-out infinite; }
.plant-vein { opacity: 0; transition: opacity .16s ease; }
.plant-flower { opacity: 1; filter: drop-shadow(0 1px 3px #e6816870); }
.flower-petal { fill-opacity: var(--petal-fill, 0); stroke: #a94f43; stroke-width: .7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--petal-growth, 0)); transition: stroke-dashoffset .08s linear, fill-opacity .12s ease; }
.flower-center { fill-opacity: var(--center-fill, 0); stroke: #bd8c28; stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--center-growth, 0)); transition: stroke-dashoffset .12s linear, fill-opacity .16s ease; }
.startup h1 { margin: 26px 0 10px; font-size: clamp(24px, 6vw, 30px); letter-spacing: 2px; }
.startup-subtitle { margin: 0; font-size: 13px; color: #7a8778; letter-spacing: 2px; }
.startup-genes { display: flex; gap: 12px; justify-content: center; margin: 30px 0; }
.startup-genes span { width: 34px; height: 34px; border-radius: 50%; line-height: 34px; background: #95b738; color: white; font-size: 15px; font-weight: 700; animation: startup-gene 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .14s); }
.startup-genes span:nth-child(1), .startup-genes span:nth-child(3) { background: #ac4d39; }
.startup-progress { height: 4px; overflow: hidden; background: #dce5d5; border-radius: 4px; }
.startup-progress::after { content: ''; display: block; width: var(--progress, 0%); height: 100%; background: #79a94f; border-radius: inherit; transition: width .18s linear; }
.startup-status { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 20px; font-size: 12px; color: #63765d; }
#startup-message { text-align: left; }
#startup-value { font-variant-numeric: tabular-nums; }
.startup-tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: 11px; color: #8a9584; }
.startup-tasks span::before { content: '○'; margin-right: 5px; }
.startup-tasks .is-done { color: #527c42; }
.startup-tasks .is-done::before { content: '✓'; }
.startup-credit { margin: 40px 0 0; font-size: 11px; color: #8a9584; letter-spacing: 2px; }
#startup-retry { margin-top: 20px; padding: 10px 24px; border: 0; border-radius: 6px; background: #527c42; color: white; font: inherit; cursor: pointer; }
.startup-error #startup-message { color: #a24735; }
body.app-ready .startup { animation: startup-away .8s cubic-bezier(.65,0,.35,1) both; pointer-events: none; }
body.app-ready #app { animation: app-reveal .95s cubic-bezier(.2,.75,.2,1) both; }
body.app-ready .app-header { animation: startup-header .65s .15s both; }
body.app-ready .recode_box { animation: startup-arrive .75s .25s both; }
body.app-ready .info_box { animation: startup-arrive .75s .38s both; }
@keyframes startup-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes startup-header { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes startup-orbit { to { transform: rotate(360deg); } }
@keyframes startup-gene { 50% { transform: translateY(-6px); opacity: .65; } }
@keyframes leaf-breeze { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(var(--leaf-sway, 4deg)); } 70% { transform: rotate(calc(var(--leaf-sway, 4deg) * -.65)); } }
@keyframes startup-away { 35% { opacity: 1; filter: blur(0); transform: scale(1); } 100% { opacity: 0; filter: blur(12px); transform: scale(1.08); } }
@keyframes app-reveal { from { clip-path: circle(0 at 50% 34%); } to { clip-path: circle(150% at 50% 34%); } }
@media (prefers-reduced-motion: reduce) { .startup, .startup *, body.app-ready #app, body.app-ready .app-header, body.app-ready .recode_box, body.app-ready .info_box { animation: none !important; transition: none !important; } }
