:root {
    --bg-1: #fff9f5;
    --bg-2: #fdf2f8;
    --bg-3: #edf7ff;
    --text-strong: #1f2937;
    --text-soft: #4b5563;
    --brand-1: #ff6b6b;
    --brand-2: #ff8e53;
    --brand-3: #ff3f87;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-border: rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text-strong);
    background: linear-gradient(130deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
    overflow: hidden;
}

.theme-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.theme-bg::before,
.theme-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.7;
}

.theme-bg::before {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle at center, rgba(255, 99, 132, 0.5), rgba(255, 99, 132, 0));
}

.theme-bg::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -70px;
    background: radial-gradient(circle at center, rgba(99, 163, 255, 0.38), rgba(99, 163, 255, 0));
}

.intro-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.intro-card {
    width: min(540px, 100%);
    padding: 30px 26px;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.15);
    text-align: center;
}

.brand-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
}

.intro-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.7vw, 2.2rem);
    line-height: 1.2;
}

.intro-subtitle {
    margin: 10px auto 22px;
    color: var(--text-soft);
    max-width: 36ch;
    font-size: 0.97rem;
}

.pill-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.08);
    color: var(--text-soft);
    font-size: 0.83rem;
}

.heart-loader {
    margin: 0 auto 16px;
    position: relative;
    width: 72px;
    height: 64px;
    animation: beat 1.1s infinite ease-in-out;
}

.heart-loader::before,
.heart-loader::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 56px;
    border-radius: 36px 36px 0 0;
    background: linear-gradient(180deg, var(--brand-1), var(--brand-3));
}

.heart-loader::before {
    left: 36px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-loader::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.progress-track {
    height: 8px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    animation: loading 1s linear forwards;
}

.loading-note {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
}

@keyframes beat {
    0%,
    100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.14);
    }
}

@keyframes loading {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .intro-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .brand-logo {
        width: 72px;
        height: 72px;
    }
}
