@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;600;700&display=swap');

:root {
    --bg: #0a0a14;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);
    --accent: #7c3aed;
    --accent2: #06b6d4;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --win: #10b981;
    --lose: #ef4444;
    --draw: #f59e0b;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.6s ease;
}

/* ===== BG ORBS ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 8s ease-in-out infinite;
}

.orb1 {
    width: 400px; height: 400px;
    background: var(--accent);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.orb2 {
    width: 300px; height: 300px;
    background: var(--accent2);
    bottom: -80px; right: -80px;
    animation-delay: 3s;
}

.orb3 {
    width: 250px; height: 250px;
    background: #ec4899;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* ===== WRAPPER ===== */
.wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

/* ===== TITLE ===== */
h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
}

h1 span {
    color: var(--accent2);
}

.subtitle {
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* ===== CHOICES ===== */
.choices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.choice {
    cursor: pointer;
    border-radius: 20px;
    background: var(--card);
    border: 1.5px solid var(--border);
    padding: 1.2rem;
    width: 160px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
}

.choice:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.choice:active {
    transform: scale(0.95);
}

.choice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.choice img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.choice span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== SCORE BOARD ===== */
.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.score-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 2.5rem;
    backdrop-filter: blur(10px);
}

.score-card #user-score,
.score-card #comp-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--text);
}

.score-card p {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 4px;
}

.vs-badge {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

/* ===== MESSAGE ===== */
.msg-container {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#msg {
    background: var(--card);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

/* ===== WIN / LOSE / DRAW STATES ===== */
body.win {
    background-color: var(--bg);
}

body.win .orb1 {
    background: var(--win);
    opacity: 0.4;
}

body.win #msg {
    border-color: var(--win);
    color: var(--win);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

body.lose {
    background-color: var(--bg);
}

body.lose .orb1 {
    background: var(--lose);
    opacity: 0.4;
}

body.lose #msg {
    border-color: var(--lose);
    color: var(--lose);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

body.draw .orb1 {
    background: var(--draw);
    opacity: 0.4;
}

body.draw #msg {
    border-color: var(--draw);
    color: var(--draw);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* ===== SELECTED GLOW ===== */
.choice.selected {
    border-color: var(--accent2);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-10px) scale(1.05);
}