* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #111827;
    --color-subtext: #6b7280;
    --color-border: #e5e7eb;
    --color-primary: #111827;
    --color-primary-hover: #1f2937;
    --color-progress-gradient: linear-gradient(to right, #f97316, #eab308, #9333ea);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 1rem;
}

.footer_content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer_link {
    color: var(--color-subtext);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer_link:hover {
    color: var(--color-text);
}

.page_main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1rem 2rem;
}

.progress {
    width: 100%;
    max-width: 20rem;
    margin: 2rem auto 2.5rem;
    background-color: var(--color-border);
    border-radius: 9999px;
    height: 0.6rem;
    overflow: hidden;
}

.progress_bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(270deg, #f97316, #eab308, #9333ea, #f97316);
    background-size: 400% 400%;
    transform: scaleX(0);
    transform-origin: left;
    animation: fillBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        gradientMove 10s linear infinite;
    will-change: transform, background-position;
}

.redirect_button {
    position: relative;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.redirect_button:hover {
    transform: scale(1.03);
}

.redirect_button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.redirect_button:hover::after {
    animation: shine 0.9s ease forwards;
}

.redirect_button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.redirect_logo {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.redirect_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.redirect_subtitle {
    font-size: 1rem;
    color: var(--color-subtext);
    margin-bottom: 2rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

.redirect_title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    user-select: none;
}

.redirect_wrapper {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    max-width: 34rem;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

@media (max-width: 480px) {
    .footer_content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer_link {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .redirect_wrapper {
        padding: 2rem 1.5rem;
    }

    .redirect_title {
        font-size: 1.5rem;
    }

    .redirect_subtitle {
        font-size: 0.9rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111827;
        --color-text: #f9fafb;
        --color-subtext: #9ca3af;
        --color-border: #374151;
        --color-primary: #f9fafb;
        --color-primary-hover: #e5e7eb;
        --color-progress-gradient: linear-gradient(to right, #f97316, #eab308, #9333ea);
    }

    footer {
        background-color: var(--color-bg);
        border-top: 1px solid var(--color-border);
    }

    .redirect_wrapper {
        background: rgba(17, 24, 39, 0.85);
        border: 1px solid var(--color-border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .redirect_button {
        background-color: var(--color-primary);
        color: #111827;
    }

    .redirect_button::after {
        background: linear-gradient(120deg, rgba(249, 115, 22, 0) 0%, rgba(234, 179, 8, 0.35) 45%, rgba(147, 51, 234, 0.35) 55%, rgba(249, 115, 22, 0) 100%
        );
    }

    .redirect_button:hover::after {
        animation: shine 1s ease forwards;
    }
}