* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #a8a8a8;
    margin-top: 10px;
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.game-setup, .player-input, .game-board {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.setup-section h2, .player-input h2, .game-board h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4ecdc4;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a8a8a8;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 5px;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #96ceb4, #4ecdc4);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(150, 206, 180, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #a8a8a8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.game-mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.game-mode-selector .btn {
    min-width: 150px;
}

.game-mode-selector .btn.active {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    transform: scale(1.05);
}

.game-mode-content {
    margin-top: 20px;
}

.game-mode-content h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.online-games-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    min-height: 200px;
}

.loading-text {
    text-align: center;
    color: #a8a8a8;
    font-style: italic;
}

.online-game-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.online-game-item:hover {
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
}

.online-game-item h4 {
    color: #4ecdc4;
    margin-bottom: 8px;
}

.online-game-item p {
    color: #a8a8a8;
    margin: 5px 0;
    font-size: 0.9rem;
}

.create-online-game {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-online-game h4 {
    color: #4ecdc4;
    margin-bottom: 20px;
    text-align: center;
}

.online-game-lobby {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.game-info p {
    margin: 10px 0;
    color: #a8a8a8;
}

.game-info strong {
    color: #4ecdc4;
}

.players-list {
    margin-bottom: 30px;
}

.players-list h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    text-align: center;
}

#playersGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.player-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.player-item h4 {
    color: #4ecdc4;
    margin-bottom: 5px;
}

.player-item p {
    color: #a8a8a8;
    font-size: 0.9rem;
}

.join-game-section, .host-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.join-game-section h3, .host-controls h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
}

.host-controls {
    border: 2px solid #4ecdc4;
}

.no-games-message {
    text-align: center;
    color: #a8a8a8;
    font-style: italic;
    padding: 40px 20px;
}

#playerInputs {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.player-input-field {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-input-field input {
    flex: 1;
}

.player-number {
    background: #4ecdc4;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

#playerGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.player-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
}

.player-card.disabled-card {
    opacity: 0.5;
    pointer-events: none;
}
.player-card.disabled-card p { opacity: 0.7; }

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.player-card:hover::before {
    left: 100%;
}

.player-card h3 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.player-card p {
    color: #a8a8a8;
    font-size: 0.9rem;
}

.game-info {
    text-align: center;
    color: #a8a8a8;
    margin-bottom: 20px;
    font-style: italic;
}

.role-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.role-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #4ecdc4;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.role-card h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.role-display {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#roleText {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#roleText.impostor {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

#roleText.crewmate {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .game-setup, .player-input, .game-board {
        padding: 20px;
    }
    
    #playerGrid {
        grid-template-columns: 1fr;
    }
    
    .player-input-field {
        flex-direction: column;
        align-items: stretch;
    }
    
    .player-number {
        align-self: center;
    }
} 