/* Valorant-themed CSS styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F1419 0%, #FF4654 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styl    animation: dramaticSpin 3s cubic-bezier(0.25, 0.1, 0.25, 1), wheelPulse 1s ease-in-out infinite;s */
header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #FF4654, #FFFFFF, #00D4FF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #CCCCCC;
    margin-bottom: 10px;
}

.rule-info {
    background: rgba(255, 70, 84, 0.1);
    border: 1px solid rgba(255, 70, 84, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
}

.rule-info p {
    margin: 0;
    color: #FF4654;
    font-size: 1rem;
    text-align: center;
}

.rule-info strong {
    color: #FFFFFF;
}

.sound-controls {
    text-align: center;
    margin-top: 15px;
}

.sound-button {
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid #00D4FF;
    border-radius: 25px;
    color: #00D4FF;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-button:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.sound-button.disabled {
    background: rgba(255, 70, 84, 0.2);
    border-color: #FF4654;
    color: #FF4654;
}

/* Input Section */
.input-section {
    background: rgba(15, 20, 25, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #FF4654;
    box-shadow: 0 10px 30px rgba(255, 70, 84, 0.3);
}

.input-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #FF4654;
    font-size: 1.8rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.player-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-input label {
    font-weight: bold;
    color: #00D4FF;
    font-size: 1.1rem;
}

.player-input input {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00D4FF;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.player-input input:focus {
    outline: none;
    border-color: #FF4654;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 70, 84, 0.5);
}

.player-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.spin-button, .reset-button {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    background: linear-gradient(45deg, #FF4654, #FF6B7A);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.4);
}

.spin-button:hover, .reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 70, 84, 0.6);
    background: linear-gradient(45deg, #FF6B7A, #FF4654);
}

.spin-button:active, .reset-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Role Requirements Section */
.role-requirements {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 70, 84, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 70, 84, 0.3);
}

.role-requirements h3 {
    color: #FF4654;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.role-chip {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.role-chip.duelist {
    background: rgba(255, 70, 84, 0.2);
    color: #FF4654;
    border-color: rgba(255, 70, 84, 0.3);
}

.role-chip.sentinel {
    background: rgba(0, 255, 135, 0.2);
    color: #00FF87;
    border-color: rgba(0, 255, 135, 0.3);
}

.role-chip.initiator {
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.3);
}

.role-chip.controller {
    background: rgba(157, 78, 221, 0.2);
    color: #9D4EDD;
    border-color: rgba(157, 78, 221, 0.3);
}

.role-chip.filled {
    opacity: 0.6;
    text-decoration: line-through;
    border-style: solid;
}

.role-chip.needed {
    animation: roleNeeded 1s ease-in-out infinite alternate;
}

.role-chip.blocked {
    opacity: 0.4;
    border-style: dashed;
    position: relative;
    filter: grayscale(0.5);
}

.role-chip.blocked::after {
    content: '🚫';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

@keyframes roleNeeded {
    from {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

.phase-indicator {
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phase-indicator.free-pick {
    background: rgba(0, 255, 135, 0.2);
    border-color: rgba(0, 255, 135, 0.3);
    color: #00FF87;
}

/* Players Status Section */
.players-status {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.players-status h3 {
    color: #00D4FF;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.remaining-players {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.player-chip {
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00D4FF;
    border-radius: 20px;
    color: #00D4FF;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.player-chip.selected {
    background: rgba(255, 70, 84, 0.3);
    border-color: #FF4654;
    color: #FF4654;
    animation: chipGlow 0.2s ease;
    transform: scale(1.15);
    font-weight: bold;
}

.player-chip.completed {
    background: rgba(0, 255, 135, 0.2);
    border-color: #00FF87;
    color: #00FF87;
    opacity: 0.8;
    text-decoration: none; /* Remove line-through since we'll show agent info */
}

.player-assignment-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-assignment-info .player-name {
    font-weight: bold;
}

.player-assignment-info .agent-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-style: italic;
}

.player-assignment-info .checkmark {
    color: #00FF87;
    font-weight: bold;
    margin-left: 4px;
}

@keyframes chipGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 70, 84, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 70, 84, 0.8);
    }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) translateY(-1px); }
    50% { transform: translateX(2px) translateY(1px); }
    75% { transform: translateX(-1px) translateY(-2px); }
}

@keyframes burstExplosion {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes victoryFlash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes finalGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 70, 84, 0.6));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 40px rgba(255, 215, 0, 1));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(0, 255, 135, 0.8));
    }
}

@keyframes celebrationExplosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(4) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced wheel styling for dramatic effect */
#wheelCanvas.spinning {
    animation: dramaticSpin 10s cubic-bezier(0.25, 0.1, 0.25, 1), wheelPulse 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes soundPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Excitement overlay effects */
.excitement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

/* Progress bar for spin duration */
.spin-progress {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

.spin-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF4654, #00D4FF, #00FF87, #9D4EDD);
    width: 0%;
    animation: progressFill 12s linear;
    border-radius: 4px;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Wheel Section */
.wheel-section {
    text-align: center;
    background: rgba(15, 20, 25, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #00D4FF;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.wheel-section h2 {
    color: #00D4FF;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* CS:GO Style Horizontal Scroll Wheel */
.scroll-wheel-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.scroll-wheel-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(30, 35, 40, 0.95));
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #FF4654;
    box-shadow: 
        0 0 30px rgba(255, 70, 84, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.scroll-wheel-container::before,
.scroll-wheel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 9;
    pointer-events: none;
}

.scroll-wheel-container::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(15, 20, 25, 1) 0%, 
        rgba(15, 20, 25, 0.8) 30%,
        transparent 100%);
}

.scroll-wheel-container::after {
    right: 0;
    background: linear-gradient(270deg, 
        rgba(15, 20, 25, 1) 0%, 
        rgba(15, 20, 25, 0.8) 30%,
        transparent 100%);
}

.scroll-wheel {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    align-items: center;
    gap: 15px;
    padding: 0 450px; /* Padding to center the first and last items */
    will-change: transform;
}

.scroll-wheel-selector {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 180px;
    transform: translateX(-50%);
    border-left: 3px solid #FFD700;
    border-right: 3px solid #FFD700;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 215, 0, 0.3) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.scroll-wheel-selector::before,
.scroll-wheel-selector::after {
    content: '▼';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: selectorBounce 1s ease-in-out infinite;
}

.scroll-wheel-selector::before {
    top: -5px;
}

.scroll-wheel-selector::after {
    bottom: -5px;
    content: '▲';
}

@keyframes selectorBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

.agent-card {
    flex-shrink: 0;
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-card.duelist {
    border-color: rgba(255, 70, 84, 0.5);
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.15), rgba(255, 70, 84, 0.05));
}

.agent-card.sentinel {
    border-color: rgba(0, 255, 135, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.15), rgba(0, 255, 135, 0.05));
}

.agent-card.initiator {
    border-color: rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
}

.agent-card.controller {
    border-color: rgba(157, 78, 221, 0.5);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.05));
}

.agent-card.selected-agent {
    transform: scale(1.15);
    border-width: 3px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    z-index: 5;
    animation: selectedPulse 1s ease-in-out infinite;
}

.agent-card.banned-agent {
    opacity: 0.5;
    filter: grayscale(70%);
}

.agent-card.used-agent {
    opacity: 0.6;
    filter: grayscale(50%);
}

.banned-overlay,
.used-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    border-radius: 12px;
    line-height: 1.4;
}

.used-overlay {
    background: rgba(0, 255, 135, 0.6);
    color: white;
}

@keyframes selectedPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        transform: scale(1.15);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 215, 0, 1);
        transform: scale(1.2);
    }
}

.agent-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 100%;
    height: 100%;
}

.agent-card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.agent-card-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00D4FF, #9D4EDD);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.agent-card-name {
    font-size: 1rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
    text-align: center;
}

.agent-card-role {
    font-size: 0.85rem;
    color: #CCCCCC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CS:GO Style Scroll Animation */
@keyframes csgoScroll {
    0% {
        transform: translateX(0px);
    }
    20% {
        transform: translateX(-200px);
    }
    40% {
        transform: translateX(-800px);
    }
    60% {
        transform: translateX(-1600px);
    }
    80% {
        transform: translateX(-2600px);
    }
    95% {
        transform: translateX(-3200px);
    }
    100% {
        transform: translateX(-3350px);
    }
}

/* Legacy wheel styles - keeping for backwards compatibility */
.wheel {
    position: relative;
    width: 400px;
    height: 400px;
    display: none; /* Hidden by default, using scroll wheel now */
}

#wheelCanvas {
    border-radius: 50%;
    border: 4px solid #FF4654;
    box-shadow: 0 0 20px rgba(255, 70, 84, 0.5);
    animation: spin 3s ease-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1440deg);
    }
}

@keyframes dramaticSpin {
    0% {
        transform: rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 70, 84, 0.5));
    }
    25% {
        transform: rotate(1800deg);
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 70, 84, 0.8));
    }
    50% {
        transform: rotate(3600deg);
        filter: brightness(1.4) drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
    }
    75% {
        transform: rotate(5400deg);
        filter: brightness(1.2) drop-shadow(0 0 25px rgba(0, 255, 135, 0.8));
    }
    100% {
        transform: rotate(7200deg);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 70, 84, 0.6));
    }
}

@keyframes wheelPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 70, 84, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 70, 84, 1);
    }
}

@keyframes spinningIntensity {
    0%, 100% {
        background: rgba(0, 212, 255, 0.1);
        border-color: rgba(0, 212, 255, 0.3);
    }
    25% {
        background: rgba(255, 70, 84, 0.2);
        border-color: rgba(255, 70, 84, 0.5);
    }
    50% {
        background: rgba(0, 255, 135, 0.2);
        border-color: rgba(0, 255, 135, 0.5);
    }
    75% {
        background: rgba(157, 78, 221, 0.2);
        border-color: rgba(157, 78, 221, 0.5);
    }
}

@keyframes spinFast {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 70, 84, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 70, 84, 0.8);
    }
}

@keyframes playerSelectionGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 70, 84, 0.4);
        transform: scale(1.05);
    }
    25% {
        box-shadow: 0 0 25px rgba(255, 70, 84, 0.6);
        transform: scale(1.08);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 70, 84, 0.8);
        transform: scale(1.1);
    }
    75% {
        box-shadow: 0 0 25px rgba(255, 70, 84, 0.6);
        transform: scale(1.08);
    }
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #FF4654;
    z-index: 10;
}

.spinning-text {
    font-size: 1.4rem;
    color: #00D4FF;
    animation: pulse 1s infinite;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.spinning-text.player-result {
    animation: pulseGlow 1s ease-in-out;
    background: rgba(0, 255, 135, 0.2);
    border-color: rgba(0, 255, 135, 0.5);
    color: #00FF87;
}

.spinning-text.player-selection {
    animation: playerSelectionGlow 1.5s ease-in-out;
    background: rgba(255, 70, 84, 0.2);
    border-color: rgba(255, 70, 84, 0.5);
    color: #FF4654;
    font-weight: bold;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Results Section */
.results-section {
    background: rgba(15, 20, 25, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00FF87;
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.3);
}

.results-section h2 {
    text-align: center;
    color: #00FF87;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.1), rgba(0, 212, 255, 0.1));
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.5s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.result-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.player-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00D4FF;
    margin-bottom: 10px;
}

.agent-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.agent-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #FF4654;
    margin-bottom: 10px;
    object-fit: cover;
    background-color: #0F1419;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 70, 84, 0.6);
}

.agent-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF4654;
    margin-bottom: 5px;
}

.agent-role {
    font-size: 1rem;
    color: #00FF87;
    padding: 5px 15px;
    background: rgba(0, 255, 135, 0.2);
    border-radius: 20px;
    border: 1px solid #00FF87;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .wheel {
        width: 300px;
        height: 300px;
    }
    
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-wheel-container {
        height: 200px;
    }
    
    .agent-card {
        width: 130px;
        height: 180px;
    }
    
    .agent-card-image,
    .agent-card-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .agent-card-name {
        font-size: 0.9rem;
    }
    
    .agent-card-role {
        font-size: 0.75rem;
    }
    
    .scroll-wheel-selector {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    #wheelCanvas {
        width: 250px;
        height: 250px;
    }
    
    .input-section, .wheel-section, .results-section {
        padding: 20px;
    }
}

/* Reroll Dialog Styles */
.reroll-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeInDialog 0.3s ease-in-out;
}

.reroll-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #FF4654;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideInDialog 0.3s ease-out;
}

.reroll-content h3 {
    color: #FF4654;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.agent-display {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.agent-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #00D4FF;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.agent-display h4 {
    color: #00D4FF;
    margin: 10px 0;
    font-size: 1.3rem;
}

.agent-role {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.reroll-content p {
    color: #cccccc;
    margin: 20px 0;
    font-size: 1.1rem;
}

.countdown-timer {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #FFA500;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 0;
    text-align: center;
    font-size: 1rem;
}

.countdown-text {
    color: #FFA500;
    font-weight: bold;
}

.countdown-number {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 5px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.countdown-number.countdown-warning {
    color: #FF4654;
    background: rgba(255, 70, 84, 0.2);
    animation: countdownPulse 0.5s ease-in-out infinite;
}

.countdown-seconds {
    color: #FFA500;
    font-weight: bold;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reroll-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.reroll-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.reroll-button.accept {
    background: linear-gradient(135deg, #00FF87, #00D4FF);
    color: #000;
}

.reroll-button.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 135, 0.4);
}

.reroll-button.reroll {
    background: linear-gradient(135deg, #FF4654, #FF8A80);
    color: #fff;
}

.reroll-button.reroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.4);
}

.reroll-button.dont-own {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    color: #fff;
}

.reroll-button.dont-own:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 167, 38, 0.4);
}

@keyframes fadeInDialog {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDialog {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Agent Banning Dialog Styles */
.ban-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeInDialog 0.3s ease-in-out;
}

.ban-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #FF4654;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: slideInDialog 0.3s ease-out;
}

.ban-content h3 {
    color: #FF4654;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.ban-content p {
    color: #cccccc;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.ban-info {
    color: #00D4FF !important;
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    font-style: italic;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.ban-agent-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ban-agent-card:hover {
    border-color: #00D4FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.ban-agent-card.banned-selected {
    border-color: #FF4654;
    background: rgba(255, 70, 84, 0.2);
    transform: scale(0.95);
}

.ban-agent-card.banned-selected::after {
    content: '⛔';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
}

.ban-agent-card.already-banned {
    opacity: 0.6;
    border-color: #888;
}

.ban-agent-card.already-banned::before {
    content: '👥';
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1rem;
}

.ban-agent-card.already-banned:hover {
    border-color: #FF4654;
}

.ban-agent-card {
    position: relative;
}

.ban-agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #00D4FF;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.ban-agent-name {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ban-agent-role {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ban-progress {
    color: #00D4FF;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0;
}

.ban-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.ban-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.ban-button.confirm {
    background: linear-gradient(135deg, #FF4654, #FF8A80);
    color: #fff;
}

.ban-button.confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.4);
}

.ban-button.confirm:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

.ban-button.skip {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
}

.ban-button.skip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 136, 136, 0.4);
}

/* Image placeholder styles */
.agent-icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #00D4FF;
    background: linear-gradient(135deg, #00D4FF, #9D4EDD);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.agent-icon-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #00D4FF;
    background: linear-gradient(135deg, #00D4FF, #9D4EDD);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

/* Game Mode Selection Styles */
.game-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.game-mode-card {
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(255, 70, 84, 0.3);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.game-mode-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 70, 84, 0.4);
    border-color: #FF4654;
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.game-mode-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FF4654;
}

.mode-description {
    font-size: 0.95rem;
    color: #CCCCCC;
    margin-bottom: 15px;
    line-height: 1.6;
}

.role-list {
    display: block;
    margin-top: 10px;
    color: #00D4FF;
    font-weight: bold;
}

.role-limit {
    display: block;
    margin-top: 10px;
    color: #FFD700;
    font-weight: bold;
}

.mode-pros {
    font-size: 0.85rem;
    color: #00FF87;
    text-align: left;
    padding: 10px;
    background: rgba(0, 255, 135, 0.05);
    border-radius: 8px;
    line-height: 1.8;
}

/* Role Count Display for Flex Mode */
.role-count {
    font-weight: bold;
    margin-left: 5px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
}

.role-chip.filled .role-count {
    background: rgba(255, 70, 84, 0.3);
    color: #FF4654;
}

.role-chip.needed .role-count {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}
