@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-1: #060816;
    --bg-2: #0d1328;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.14);
    --text: #f8fafc;
    --muted: #aeb8d0;
    --cyan: #3ee7ff;
    --violet: #8b5cf6;
    --pink: #ec4899;
    --green: #22c55e;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(62, 231, 255, 0.18), transparent 22%),
        radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.18), transparent 24%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.12), transparent 26%),
        linear-gradient(145deg, var(--bg-1), var(--bg-2));
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: 60px;
    left: -80px;
    background: rgba(62, 231, 255, 0.22);
}

body::after {
    right: -90px;
    bottom: 40px;
    background: rgba(139, 92, 246, 0.22);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1.4rem 1rem;
    margin: 1.2rem auto 0;
    width: min(92%, 900px);
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

h1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    animation: shine 4s linear infinite;
}

.choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    margin-top: 4.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.choice {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.choice::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(62,231,255,0.9), rgba(139,92,246,0.8), rgba(236,72,153,0.85));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.choice:hover {
    cursor: pointer;
    transform: translateY(-10px) scale(1.05);
    box-shadow:
        0 0 0 1px rgba(62,231,255,0.18),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(62, 231, 255, 0.18),
        0 0 55px rgba(139, 92, 246, 0.18);
    border-color: rgba(255,255,255,0.22);
}

.choice:hover::before {
    opacity: 1;
}

.choice:active {
    transform: translateY(-2px) scale(0.98);
}

img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.choice:hover img {
    transform: scale(1.07) rotate(-3deg);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.score-board {
    margin: 4rem auto 0;
    width: min(92%, 520px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 1.6rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.score-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-100%);
    animation: shine 5s linear infinite;
}

.score {
    flex: 1;
    position: relative;
    z-index: 1;
}

.score p:last-child {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

#user-score,
#comp-score {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 48%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.12);
}

.msg-container {
    margin-top: 2.7rem;
    padding: 0 1rem;
}

#msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    background-color: #4f46e5;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

#msg:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(79, 70, 229, 0.32),
        0 0 30px rgba(139, 92, 246, 0.2);
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    h1 {
        border-radius: 1rem;
        padding: 1.1rem 0.8rem;
        letter-spacing: 1px;
    }

    .choices {
        gap: 1.3rem;
        margin-top: 3rem;
    }

    .choice {
        width: 145px;
        height: 145px;
    }

    img {
        width: 112px;
        height: 112px;
    }

    .score-board {
        width: min(94%, 420px);
        padding: 1.4rem 1.2rem;
        gap: 1rem;
    }

    #msg {
        min-width: auto;
        font-size: 1rem;
        padding: 0.95rem 1.4rem;
    }
}

@media (max-width: 480px) {
    .choices {
        gap: 1rem;
    }

    .choice {
        width: 120px;
        height: 120px;
    }

    img {
        width: 90px;
        height: 90px;
    }

    #user-score,
    #comp-score {
        font-size: 2.7rem;
    }

    .score p:last-child {
        font-size: 0.9rem;
    }
}