:root {
    --bg-1: #e7ecff;
    --bg-2: #dff8ff;
    --text: #111827;
    --muted: #4b5563;
    --accent: #4f46e5;
    --accent-2: #06b6d4;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-border: rgba(255, 255, 255, 0.72);
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 900px at 10% 10%, rgba(79, 70, 229, 0.14), transparent 48%),
        radial-gradient(900px 700px at 90% 90%, rgba(6, 182, 212, 0.18), transparent 52%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(52px);
    opacity: 0.5;
    animation: float 11s cubic-bezier(.45, .05, .55, .95) infinite;
}

.blob-1 {
    top: -180px;
    left: -130px;
    background: #60a5fa;
}

.blob-2 {
    bottom: -180px;
    right: -130px;
    background: #22d3ee;
    animation-delay: 1.4s;
}

.container {
    width: min(92vw, 720px);
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.1rem 2.2rem 2.3rem;
    border-radius: 24px;
    background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.84));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: cardIn 720ms cubic-bezier(.16, 1, .3, 1);
}

.container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(79, 70, 229, 0.45), rgba(6, 182, 212, 0.35), rgba(79, 70, 229, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.02em;
}

.intro {
    color: var(--muted);
    margin: 0.8rem 0 0;
    line-height: 1.55;
}

.hidden {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.meanwhile,
.redirect-notice {
    transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .8, .2, 1), max-height 560ms ease;
}

.meanwhile {
    margin-top: 1.7rem;
}

.meanwhile-text {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
}

.primary-link {
    display: inline-block;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 0.76rem 1.16rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.33);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.primary-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.38);
    filter: saturate(1.08);
}

.primary-link:active {
    transform: translateY(0) scale(1);
}

.redirect-notice {
    margin-top: 1.4rem;
}

.countdown-wrap {
    display: inline-grid;
    place-items: center;
    width: auto;
    height: auto;
    margin: 0.38rem 0 0.45rem;
}

.countdown {
    font-size: 1.98rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--accent);
}

.small {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 320px;
    pointer-events: auto;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(28px) translateX(12px) scale(1.09);
    }
}

@media (max-width: 520px) {
    body {
        padding: 14px;
    }

    .container {
        padding: 1.45rem 1rem 1.65rem;
        border-radius: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
