/* WarmUp Game - Player View Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --devyt-primary: #0066CC;
    --devyt-secondary: #00A3E0;
    --devyt-dark: #0a1628;
    --devyt-mid: #0d2137;
    --devyt-gold: #FFD700;
    --devyt-glow: rgba(0, 163, 224, 0.5);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, var(--devyt-dark) 0%, var(--devyt-mid) 50%, var(--devyt-dark) 100%);
    color: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Circuit pattern overlay - matching mockup */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 163, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 163, 224, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, transparent 0%, var(--devyt-dark) 100%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

.glass-card {
    background: rgba(13, 33, 55, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 163, 224, 0.2);
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
}

.spin-loader {
    border: 4px solid rgba(0, 163, 224, 0.1);
    border-top: 4px solid var(--devyt-secondary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Multi-ring glow button - matching mockup */
.btn-click-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.btn-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 163, 224, 0.3);
    animation: ring-pulse 2s ease-out infinite;
}

.btn-ring:nth-child(1) {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    animation-delay: 0s;
}

.btn-ring:nth-child(2) {
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    animation-delay: 0.3s;
    border-color: rgba(0, 163, 224, 0.2);
}

.btn-ring:nth-child(3) {
    top: -55px;
    left: -55px;
    right: -55px;
    bottom: -55px;
    animation-delay: 0.6s;
    border-color: rgba(0, 163, 224, 0.1);
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-click {
    background: linear-gradient(135deg, #2196F3 0%, var(--devyt-primary) 50%, var(--devyt-secondary) 100%);
    box-shadow:
        0 0 60px var(--devyt-glow),
        0 0 100px rgba(0, 102, 204, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.btn-click:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px var(--devyt-glow);
}

.btn-click::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 50%;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
        margin: -200px;
    }
}

/* Progress bar with glow */
.progress-track {
    background: rgba(0, 163, 224, 0.1);
    border: 2px solid rgba(0, 163, 224, 0.3);
    border-radius: 20px;
    height: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    background: linear-gradient(90deg, var(--devyt-primary), var(--devyt-secondary), var(--devyt-gold));
    height: 100%;
    border-radius: 18px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--devyt-glow);
}

.horse-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    height: 50px;
    width: 50px;
    transition: left 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    animation: horse-run 0.3s steps(2) infinite;
}

@keyframes horse-run {
    0% {
        transform: translateY(-50%) translateX(-50%);
    }

    50% {
        transform: translateY(-52%) translateX(-50%);
    }

    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}

input:focus {
    outline: none;
    border-color: var(--devyt-secondary) !important;
    box-shadow: 0 0 20px var(--devyt-glow);
}

.title-gradient {
    background: linear-gradient(90deg, #00A3E0, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Countdown animation */
.countdown-display {
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--devyt-secondary), var(--devyt-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdown-pulse 1s ease-in-out infinite;
    text-shadow: 0 0 60px var(--devyt-glow);
}

@keyframes countdown-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Connection Status Badge - Glassmorphism Design */
.connection-badge {
    position: fixed;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.connection-badge.show {
    opacity: 1;
    transform: translateY(0);
}

.connection-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.connection-badge.connected {
    background: rgba(0, 163, 224, 0.15);
    color: var(--devyt-secondary);
    border: 1px solid rgba(0, 163, 224, 0.3);
    box-shadow: 0 0 20px var(--devyt-glow);
}

.connection-badge.connected .status-dot {
    background: var(--devyt-secondary);
    box-shadow: 0 0 8px var(--devyt-secondary);
    animation: dot-pulse 2s ease-in-out infinite;
}

.connection-badge.reconnecting {
    background: rgba(255, 215, 0, 0.15);
    color: var(--devyt-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.connection-badge.reconnecting .status-dot {
    background: var(--devyt-gold);
    box-shadow: 0 0 8px var(--devyt-gold);
    animation: dot-spin 1s linear infinite;
}

.connection-badge.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.connection-badge.disconnected .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes dot-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(0.8);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}