body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #101226 0%, #050505 60%);
    color: #fff;
    overflow-x: hidden;
}

.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 255, 213, 0.25), transparent 60%);
    filter: blur(4px);
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    top: 10%;
    left: 5%;
}

.orb-2 {
    bottom: 15%;
    right: 8%;
    animation-duration: 15s;
    background: radial-gradient(circle, rgba(255, 0, 149, 0.2), transparent 60%);
}

.floating-words {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 1rem;
    opacity: 0.1;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    animation: swirl 30s linear infinite;
}

.floating-words span {
    display: block;
}

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

@keyframes swirl {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container#app {
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(10, 10, 10, 0.88);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #f0f0f0;
}

.login-card .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.title-glow {
    font-weight: 800;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    background: linear-gradient(120deg, #00ffd5, #6f7dff, #ff64c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0, 255, 213, 0.25);
}

.text-glimmer {
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00ffd5;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 213, 0.15);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffd5, #00a2ff);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    box-shadow: 0 10px 30px rgba(0, 255, 213, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.game-toolbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.5rem 0;
    background: rgba(5, 5, 5, 0.95);
}

.stage-card {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: #fff;
    border-radius: 14px;
}

.full-card {
    min-height: calc(100vh - 160px);
}

.stage-card .card-body {
    min-height: 80px;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: none;
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.big-word {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.round-timer {
    text-align: center;
    margin-top: 0.5rem;
}

.round-timer .timer-value {
    display: block;
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 700;
}

.round-timer .timer-value.urgent {
    color: #ff5f5f;
    animation: pulse 1s infinite;
}

.round-timer small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.countdown-number {
    font-size: clamp(4rem, 20vw, 6rem);
    font-weight: 700;
}

.vote-button {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
}

.vote-button.active {
    border-width: 3px;
    border-color: #28a745 !important;
}

#status-message {
    position: sticky;
    top: 0;
    z-index: 1100;
}

#admin-start-stage .card-body {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#admin-start-alone {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.sidebar-panel {
    width: 100%;
    position: fixed;
    top: 110px;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(5, 5, 5, 0.95);
    border-radius: 18px;
    padding: 1rem;
    overflow-y: auto;
    z-index: 1055;
}

@media (min-width: 992px) {
    .sidebar-panel {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        background: transparent;
        width: 320px;
        padding: 0;
        z-index: auto;
    }
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
}

.icon-button .material-symbols-outlined {
    vertical-align: middle;
}

#stage-results .card-body {
    position: relative;
    overflow: hidden;
}

#stage-results.celebrate .card-body::before,
#stage-results.celebrate .card-body::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 0deg,
        rgba(0, 255, 213, 0.4),
        rgba(255, 100, 200, 0.4),
        rgba(0, 162, 255, 0.35),
        rgba(255, 214, 0, 0.4),
        rgba(0, 255, 213, 0.4)
    );
    animation: celebration-spin 6s linear infinite;
    filter: blur(6px);
    opacity: 0.25;
}

#stage-results.celebrate .card-body::after {
    animation-direction: reverse;
    animation-duration: 8s;
}

#stage-results.celebrate .card-body > * {
    position: relative;
    z-index: 2;
}

.celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    background: rgba(0, 255, 213, 0.2);
    border: 1px solid rgba(0, 255, 213, 0.4);
    margin-bottom: 1rem;
    box-shadow: 0 0 25px rgba(0, 255, 213, 0.35);
}

.celebration-badge .material-symbols-outlined {
    font-size: 1.2rem;
}

.celebration-badge.neon-pop {
    animation: neon-pop 1.2s ease, neon-glow 2s ease-in-out infinite alternate;
}

.celebration-badge.badge-loss {
    background: rgba(255, 95, 95, 0.2);
    border-color: rgba(255, 95, 95, 0.5);
    box-shadow: 0 0 25px rgba(255, 95, 95, 0.35);
    animation: loss-pop 0.9s ease, loss-pulse 1.8s ease-in-out infinite alternate;
}

.celebration-badge.badge-loss .material-symbols-outlined {
    color: #ff5f5f;
}

@keyframes celebration-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.05);
    }
}

@keyframes neon-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes neon-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 213, 0.3), 0 0 20px rgba(0, 162, 255, 0.25);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 213, 0.55), 0 0 40px rgba(255, 100, 200, 0.45);
    }
}

@keyframes loss-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loss-pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 95, 95, 0.3), 0 0 20px rgba(255, 150, 150, 0.25);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 95, 95, 0.55), 0 0 40px rgba(255, 150, 150, 0.45);
    }
}
