*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #060720;
    --bg-accent: #101233;
    --card-bg: rgba(10, 12, 40, 0.92);
    --accent: #ffb347;
    --accent-2: #ff6b6b;
    --text-main: #f8f9ff;
    --text-muted: #a5b0ff;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --radius-xl: 24px;
    --radius-pill: 999px;
    --transition-fast: 200ms ease-out;
    --border-soft: 1px solid rgba(255, 255, 255, 0.06);
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #2a1a5e, #060720 55%, #050513);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.wrapper {
    position: relative;
    max-width: 720px;
    width: 100%;
    z-index: 2;
}

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 32px 28px 28px;
    text-align: center;
    backdrop-filter: blur(14px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Decorative blobs */
.bg-decoration {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.9;
    z-index: 0;
}

.bg-decoration--top-left {
    top: -80px;
    left: -40px;
    background: radial-gradient(circle, #ff6b6b 0, transparent 65%);
}

.bg-decoration--bottom-right {
    bottom: -80px;
    right: -40px;
    background: radial-gradient(circle, #4dabff 0, transparent 65%);
}

/* Icon pan (CSS illustration) */
.icon-pan {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
}

.pan-body {
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 90px;
    height: 38px;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #222a52, #151a38);
    border-radius: 0 0 45px 45px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pan-body::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 16px;
    background: radial-gradient(circle at 20% 0, #ffffff44, #2b356b 45%, #141733);
    border-radius: 999px 999px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pan-handle {
    position: absolute;
    right: 4px;
    bottom: 36px;
    width: 52px;
    height: 10px;
    background: linear-gradient(90deg, #1b2146, #101426);
    border-radius: 999px;
    transform-origin: left center;
    transform: rotate(6deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Steam animation */
.steam {
    position: absolute;
    bottom: 48px;
    left: 50%;
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.8));
    opacity: 0;
    filter: blur(1px);
    animation: steam 2.5s infinite ease-in-out;
}

.steam-1 {
    transform: translateX(-24px);
    animation-delay: 0s;
}

.steam-2 {
    transform: translateX(-4px);
    animation-delay: 0.5s;
}

.steam-3 {
    transform: translateX(16px);
    animation-delay: 1s;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translate(var(--x, 0), 10px) scale(0.7);
    }
    20% {
        opacity: 0.7;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--x, 0), -26px) scale(1.1);
    }
}

/* Heading & text */
h1 {
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.lead {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lead strong {
    color: var(--accent);
}

/* Loading bar */
.loading {
    margin-bottom: 18px;
}

.loading-bar {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 8px;
    border-radius: var(--radius-pill);
    margin: 0 auto 10px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.04)
    );
    overflow: hidden;
}

.loading-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: inherit;
    transform-origin: left center;
    animation: loading 2.4s infinite ease-in-out;
}

@keyframes loading {
    0% {
        transform: translateX(-60%) scaleX(0.2);
    }
    40% {
        transform: translateX(-20%) scaleX(0.9);
    }
    70% {
        transform: translateX(5%) scaleX(1);
    }
    100% {
        transform: translateX(120%) scaleX(0.4);
    }
}

.loading-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Note text */
.note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(165, 176, 255, 0.8);
}

/* Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 24px 18px 20px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .lead {
        font-size: 0.92rem;
    }
}
