:root {
    --success-green: #4ade80;
    --font-display: 'Orbitron', sans-serif;
}

body {
    background: linear-gradient(180deg,
            var(--arctic-dark) 0%,
            var(--arctic-deep) 50%,
            var(--arctic-medium) 100%);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

#checkpoint-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.checkpoint-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(135, 206, 235, 0.15);
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success-green), #22c55e);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
    animation: pulseSuccIceBreakeress 2s ease-in-out infinite;
}

@keyframes pulseSuccess {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 4px 35px rgba(74, 222, 128, 0.6);
    }
}

.card-header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--ice-white), var(--ice-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

#captain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold-accent);
}

#captain-badge:empty {
    display: none;
}

.badge-icon {
    font-size: 1rem;
}

.scores-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.score-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.score-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.score-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ice-white);
}

.score-row.bonus .score-value {
    color: var(--success-green);
}

.separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice-cyan), transparent);
    margin: 0.5rem 0;
    border: none;
}

.score-row.total {
    padding-top: 1rem;
}

.score-row.total .score-label {
    font-weight: 600;
    color: var(--gold-accent);
}

.score-row.total .score-value {
    font-size: 1.5rem;
    color: var(--gold-accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ice-cyan), var(--arctic-light));
    color: var(--arctic-dark);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--ice-white);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--ice-cyan);
    color: var(--ice-cyan);
}

@media (max-width: 480px) {
    #checkpoint-main {
        padding: 1rem;
    }

    .checkpoint-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .card-header h1 {
        font-size: 1.3rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .score-row.total .score-value {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .footer-nav {
        gap: 1.5rem;
    }
}