.startup-loading {
    --startup-bg: #f8f6f0;
    --startup-surface: #ffffff;
    --startup-text: #23443f;
    --startup-muted: #667771;
    --startup-line: #dce4de;
    --startup-skeleton: #edf1ee;
    --startup-accent: #315f53;
    min-height: 100vh;
    background: var(--startup-bg);
    color: var(--startup-text);
    font-family: system-ui, "Microsoft JhengHei", sans-serif;
}

:root[data-theme="dark"] .startup-loading {
    --startup-bg: #17221e;
    --startup-surface: #21302a;
    --startup-text: #edf3ef;
    --startup-muted: #b4c4b9;
    --startup-line: #44564b;
    --startup-skeleton: #304139;
    --startup-accent: #a1cbb9;
}

.startup-loading * {
    box-sizing: border-box;
}

.startup-header {
    padding: 20px 5%;
    border-bottom: 1px solid var(--startup-line);
}

    .startup-header[hidden] {
        display: none;
    }

.startup-brand {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fffdf8;
}

    .startup-brand.is-park {
        background: #23443f;
    }

    .startup-brand img {
        display: block;
        width: 216px;
        max-width: 100%;
        height: auto;
    }

.startup-main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 30px;
}

.startup-eyebrow {
    margin: 0 0 12px;
    color: var(--startup-muted);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.startup-title {
    margin: 0 0 32px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.5;
    text-wrap: balance;
}

.startup-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.startup-contact,
.startup-panel {
    padding: 28px;
    border-radius: 16px;
}

.startup-contact {
    background: #315f53;
    color: #ffffff;
}

    .startup-contact h2,
    .startup-panel h2 {
        margin: 0 0 16px;
        font-size: 21px;
        line-height: 1.6;
    }

    .startup-contact a {
        display: block;
        margin: 12px 0;
        color: inherit;
        overflow-wrap: anywhere;
    }

    .startup-contact p {
        margin: 16px 0 0;
        line-height: 1.8;
    }

.startup-panel {
    border: 1px solid var(--startup-line);
    background: var(--startup-surface);
}

.startup-description,
.startup-slow-hint {
    color: var(--startup-muted);
    font-size: 14px;
    line-height: 1.8;
}

.startup-progress {
    height: 6px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--startup-skeleton);
}

.startup-progress-fill {
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--startup-accent);
}

.startup-percent {
    margin: 8px 0 24px;
    text-align: right;
    font-size: 13px;
    color: var(--startup-muted);
    font-variant-numeric: tabular-nums;
}

    .startup-percent::after {
        content: var(--blazor-load-percentage-text, "準備中…");
    }

.startup-skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

    .startup-skeleton span {
        display: block;
        height: 54px;
        border-radius: 8px;
        background: var(--startup-skeleton);
        animation: startup-breathe 1.8s ease-in-out infinite;
    }

    .startup-skeleton .startup-skeleton-wide {
        grid-column: 1 / -1;
        height: 110px;
    }

.startup-slow-hint {
    margin: 20px 0 0;
    visibility: hidden;
    animation: startup-show-hint 0s 4s forwards;
}

@keyframes startup-breathe {
    50% {
        opacity: 0.5;
    }
}

@keyframes startup-show-hint {
    to {
        visibility: visible;
    }
}

@media (max-width: 700px) {
    .startup-main {
        padding: 28px 20px;
    }

    .startup-layout,
    .startup-skeleton {
        grid-template-columns: minmax(0, 1fr);
    }

    .startup-contact,
    .startup-panel {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-skeleton span {
        animation: none;
    }
}
