/* Global Input Reset - Entfernt alle Browser-Highlights */
input {
    outline: none !important;
    border-radius: 16px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

input:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.15) !important;
    border-color: #ff0033 !important;
    background-color: inherit !important;
}

input:active {
    background-color: inherit !important;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #181818;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible;
}

/* Minimal Header */
.header {
    background: transparent;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.logo {
    display: inline-block;
}

.logo-icon {
    font-size: 20px;
    margin-right: 6px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.header-subtitle {
    font-size: 12px;
    color: #666666;
    margin-top: 5px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 0;
    overflow: visible;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: #aaaaaa;
    font-weight: 400;
}

.back-button {
    display: inline-block;
    color: #aaaaaa;
    text-decoration: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.1s ease;
    font-size: 14px;
}

.back-button:hover {
    background: #3d3d3d;
    color: #ffffff;
}

/* Featured Game Card */
.featured-game-card {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 50, 50, 0.1) 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.featured-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 107, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-game-card:hover::before {
    opacity: 1;
}

.featured-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.4);
}

.featured-thumbnail {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
}

.featured-thumbnail .thumbnail-content {
    width: 100%;
    height: 100%;
}

.featured-thumbnail .imposter-thumbnail {
    background-image: url('/pictures/imposter-logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #212121;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.featured-game-card:hover .featured-thumbnail .imposter-thumbnail {
    background-image: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExeno1dm4xN7M0bjQwcG5qamo1NWkycWlmcGVhaXZvaDlkdTQ3a2JoYSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/S7nF0HAVEBxUu76pxR/giphy.gif');
    background-size: cover;
    transform: scale(1.02);
}

.featured-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-thumbnail .play-icon {
    color: white;
    font-size: 48px;
    transition: all 0.3s ease;
}

.featured-game-card:hover .featured-thumbnail .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.featured-game-card:hover .featured-thumbnail .play-icon {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff3333);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: featuredBadgePulse 2s infinite;
}

@keyframes featuredBadgePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }
}

.featured-details {
    flex: 1;
    min-width: 0;
}

.featured-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.featured-description {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
}

@media (max-width: 768px) {
    .featured-game-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .featured-thumbnail {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .featured-description {
        font-size: 14px;
    }
}

/* YouTube-Style Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* YouTube-Style Video Cards */
.video-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-card:hover .thumbnail {
    border-radius: 8px;
}

.video-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Thumbnail */
.thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: #323232;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Spezielle farbige Schatten für jedes Spiel */
.video-card:has(.imposter-thumbnail) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:has(.imposter-thumbnail):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: imposterGlowMove 2s infinite;
}

@keyframes imposterGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Werwolf - Rot (gleiche Farbe) */
.video-card:nth-child(1) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(1):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: werewolfGlowMove 2s infinite;
}

@keyframes werewolfGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Codenames - Rot (gleiche Farbe) */
.video-card:nth-child(2) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(2):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: codenamesGlowMove 2s infinite;
}

@keyframes codenamesGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Bluff - Rot */
.video-card:nth-child(3) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(3):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: bluffGlowMove 2s infinite;
}

/* Drawful - Rot */
.video-card:nth-child(4) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(4):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: drawfulGlowMove 2s infinite;
}

@keyframes drawfulGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Quiz Battle - Rot */
.video-card:nth-child(5) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(5):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: quizGlowMove 2s infinite;
}

@keyframes quizGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Scharade - Rot */
.video-card:nth-child(6) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(6):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: charadeGlowMove 2s infinite;
}

@keyframes charadeGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Mystery Detective - Rot */
.video-card:nth-child(7) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(7):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: mysteryGlowMove 2s infinite;
}

@keyframes mysteryGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

/* Musik-Rätsel - Rot */
.video-card:nth-child(8) .thumbnail {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.video-card:nth-child(8):hover .thumbnail {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: musicGlowMove 2s infinite;
}

@keyframes musicGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

@keyframes bluffGlowMove {
    0% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
    25% { 
        box-shadow: 2px 10px 28px rgba(255, 80, 80, 0.5), 
                    5px 0 35px rgba(255, 30, 30, 0.4);
    }
    50% { 
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                    0 0 40px rgba(255, 20, 20, 0.5);
    }
    75% { 
        box-shadow: -2px 10px 28px rgba(255, 80, 80, 0.5), 
                    -5px 0 35px rgba(255, 30, 30, 0.4);
    }
    100% { 
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4), 
                    0 0 30px rgba(255, 50, 50, 0.3);
    }
}

.thumbnail-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #3d3d3d, #212121);
}

.game-emoji {
    font-size: 64px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.imposter-thumbnail {
    background-image: url('/pictures/imposter-logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #212121;
    transition: all 0.3s ease;
}

.video-card:hover .imposter-thumbnail {
    background-image: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExeno1dm4xN7M0bjQwcG5qamo1NWkycWlmcGVhaXZvaDlkdTQ3a2JoYSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/S7nF0HAVEBxUu76pxR/giphy.gif');
    background-size: cover;
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    background: rgba(255,255,255,0.9);
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding-left: 2px;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.coming-soon-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff0033;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Video Details */
.video-details {
    padding-right: 24px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-name {
    font-weight: 400;
}

.separator {
    font-size: 12px;
}

.view-count {
    font-weight: 400;
}

.video-description {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Game Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    margin: 50px 0;
    position: relative;
    overflow: visible;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 50px 20px;
}

/* Mehrschichtiger animierter Hintergrund für Imposter-Seite */
body.imposter-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    background: 
        /* Große wandernde Lichter */
        radial-gradient(600px 600px at 20% 30%, rgba(255,0,51,0.05), transparent 50%),
        radial-gradient(400px 400px at 80% 70%, rgba(255,255,255,0.03), transparent 50%),
        radial-gradient(800px 800px at 60% 20%, rgba(255,0,51,0.04), transparent 50%),
        /* Matrix-ähnliche Partikel */
        radial-gradient(2px 2px at 10% 20%, rgba(255,0,51,0.4), transparent),
        radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.3), transparent),
        radial-gradient(3px 3px at 70% 60%, rgba(255,0,51,0.3), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 50% 10%, rgba(255,0,51,0.5), transparent),
        radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 80% 30%, rgba(255,0,51,0.4), transparent);
    background-size: 
        100% 100%,
        100% 100%, 
        100% 100%,
        400px 300px,
        350px 280px,
        500px 400px,
        300px 250px,
        450px 350px,
        380px 290px,
        420px 320px;
    animation: 
        cosmicDrift 20s ease-in-out infinite,
        particleFloat 8s linear infinite;
    pointer-events: none;
    z-index: -1000;
    opacity: 0.8;
}

body.imposter-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        /* Scanning Lines Effekt */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,0,51,0.02) 2px,
            rgba(255,0,51,0.02) 4px
        ),
        /* Diagonale Welle */
        linear-gradient(
            45deg,
            transparent 40%,
            rgba(255,0,51,0.05) 50%,
            transparent 60%
        );
    animation: 
        scanLines 3s linear infinite,
        diagonalWave 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -999;
}

@keyframes cosmicDrift {
    0%, 100% { 
        transform: translate(0%, 0%) rotate(0deg) scale(1);
        filter: hue-rotate(0deg) brightness(1);
    }
    25% { 
        transform: translate(-5%, -3%) rotate(1deg) scale(1.02);
        filter: hue-rotate(5deg) brightness(1.1);
    }
    50% { 
        transform: translate(-3%, 5%) rotate(-1deg) scale(0.98);
        filter: hue-rotate(10deg) brightness(0.9);
    }
    75% { 
        transform: translate(5%, -2%) rotate(0.5deg) scale(1.01);
        filter: hue-rotate(-5deg) brightness(1.05);
    }
}

@keyframes particleFloat {
    0% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 20%, 20% 40%, 40% 60%, 60% 80%, 80% 100%, 100% 0%;
    }
    25% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, -10% -5%, 5% 15%, 25% 35%, 45% 55%, 65% 75%, 85% 95%, 95% -5%;
    }
    50% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, -5% -10%, 10% 10%, 30% 30%, 50% 50%, 70% 70%, 90% 90%, 90% -10%;
    }
    75% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 5% -5%, 15% 5%, 35% 25%, 55% 45%, 75% 65%, 95% 85%, 85% -15%;
    }
    100% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 20%, 20% 40%, 40% 60%, 60% 80%, 80% 100%, 100% 0%;
    }
}

@keyframes scanLines {
    0% { 
        background-position: 0 0, 0 0;
        opacity: 0.3;
    }
    50% { 
        background-position: 0 -20px, 100px 0;
        opacity: 0.6;
    }
    100% { 
        background-position: 0 0, 200px 0;
        opacity: 0.3;
    }
}

@keyframes diagonalWave {
    0%, 100% { 
        background-position: -200% -200%;
    }
    50% { 
        background-position: 200% 200%;
    }
}

/* Zusätzlicher Glitch-Effekt (seltene Aktivierung) */
body.imposter-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,0,51,0.1) 50%, transparent 100%);
    animation: glitchSweep 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

@keyframes glitchSweep {
    0%, 90%, 100% { 
        opacity: 0;
        transform: translateX(-100%);
    }
    92%, 94% { 
        opacity: 0.8;
        transform: translateX(0%);
    }
    96%, 98% { 
        opacity: 0.4;
        transform: translateX(100%);
    }
}

.hero-overlay {
    background: transparent;
    padding: 15px 30px;
    width: 100%;
    position: absolute;
    bottom: -30px;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-icon {
    margin-bottom: 24px;
}

.imposter-logo {
    position: relative;
    display: inline-block;
    font-size: 120px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 0, 51, 0.2);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

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

@keyframes logoGlow {
    0% { 
        box-shadow: 0 0 20px rgba(255, 0, 51, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(255, 0, 51, 0.4);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #ff0033 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: #aaaaaa;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: #ffffff;
}

.feature-icon {
    font-size: 18px;
}

/* Hero Logo */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-logo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 200px;
    transition: all 0.3s ease;
}

/* Join Section */
.join-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.join-form-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

/* Join Form */
.join-form {
    background: #212121;
    border: 1px solid #3d3d3d;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #ffffff;
}

.form-header p {
    color: #aaaaaa;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
}

.label-icon {
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: #181818;
    border: 2px solid #3d3d3d;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.form-group input::placeholder {
    color: #777777;
}

.form-group input:focus {
    border-color: #ff0033;
    background: #181818 !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.15);
    transform: translateY(-1px);
}

.form-hint {
    margin-top: 8px;
    font-size: 14px;
    color: #aaaaaa;
    font-style: italic;
}

.primary-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff0033 0%, #cc0029 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(255, 0, 51, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, #e6002e 0%, #b30025 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4);
}

/* Beitreten-Modus Styles */
.primary-button.join-mode {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.primary-button.join-mode:hover {
    background: linear-gradient(135deg, #0055b3 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 20px;
}

/* Game Info */
.game-info {
    background: #212121;
    border: 1px solid #3d3d3d;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
}

.game-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #ff0033 0%, #cc0029 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #ffffff;
}

.step-content p {
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.5;
}

/* Legacy Join Form (wird überschrieben) */
.join-form.legacy {
    max-width: 400px;
    margin: 0 auto;
    background: #212121;
    padding: 24px;
    border-radius: 12px;
    border: none;
}

.join-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.join-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #3d3d3d;
    border-radius: 2px;
    background: #121212;
    color: white;
    font-size: 14px;
    transition: border-color 0.1s ease;
    box-sizing: border-box;
}

.join-form input::placeholder {
    color: #717171;
}

.join-form input:focus {
    outline: none;
    border-color: #3ea6ff;
}

.join-form button {
    width: 100%;
    background: #ff0033;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.join-form button:hover {
    background: #de0000;
}

/* Game Info Box */
.game-info-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.game-id-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.game-id {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff0033;
    margin: 0;
    text-shadow: 0 2px 4px rgba(255, 0, 51, 0.3);
    letter-spacing: 0.1em;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.2);
    position: relative;
}

.game-id:hover {
    background: rgba(255, 0, 51, 0.15);
    transform: scale(1.02);
}

.game-id::after {
    content: '📋 Klicken zum Kopieren';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.game-id:hover::after {
    opacity: 1;
}

.invitation-link-container {
    margin-bottom: 18px;
}

.invitation-text {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 10px;
    font-weight: 500;
}

.link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.link-container input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.link-container input:hover {
    background: rgba(255, 255, 255, 0.08);
}

.link-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.link-container::after {
    content: '📋 Klicken zum Kopieren';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.link-container:hover::after {
    opacity: 1;
}



.share-text {
    opacity: 0.8;
    margin: 0;
    font-size: 13px;
    color: #aaaaaa;
}

/* Players List */
.players-list {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 32px;
    border-radius: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.players-list h3 {
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.players-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.players-list li {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 100%);
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 14px;
}

.players-list li:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.15) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.players-list li.own-player {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.25) 0%, rgba(255, 0, 51, 0.15) 100%);
    border: 2px solid rgba(255, 0, 51, 0.5);
    color: #ff0033;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.25);
}

.players-list li.own-player:hover {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.35) 0%, rgba(255, 0, 51, 0.2) 100%);
    box-shadow: 0 8px 28px rgba(255, 0, 51, 0.35);
    transform: translateY(-3px);
}

/* Game Settings */
.game-settings {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 32px;
    border-radius: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-settings h3 {
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.setting-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 100%);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.setting-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.15) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Role Card */
.role-display {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 40px;
}

.role-card {
    background: #1a1a1a;
    padding: 40px 32px;
    border-radius: 24px;
    border: none;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 2;
    
    /* Versteckt am Anfang für Fade-in Animation */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* Fade-in Animation für Rollenkarte */
.role-card.fade-in {
    animation: roleCardFadeIn 1s ease-out forwards;
}

@keyframes roleCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typewriter Container für das Wort */
.word-container {
    font-size: 3rem;
    margin: 25px 0;
    padding: 30px 25px;
    border-radius: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-container.imposter {
    background: rgba(40, 15, 15, 0.98);
    border: 2px solid #ff3333;
    box-shadow: 
        0 10px 25px rgba(255, 51, 51, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 51, 51, 0.1);
    position: relative;
}

/* Animierte Border für Imposter */
.word-container.imposter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #ff3333 0%, 
        #ff6666 25%, 
        #ff3333 50%, 
        #ff6666 75%, 
        #ff3333 100%
    );
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    padding: 2px;
    animation: imposterBorderFlow 3s ease-in-out infinite;
}

.word-container.imposter::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(40, 15, 15, 0.98);
    border-radius: 18px;
    z-index: -1;
}

@keyframes imposterBorderFlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
    }
}

.word-container.crewmate {
    background: rgba(20, 30, 35, 0.98);
    border: 2px solid #4ecdc4;
    box-shadow: 
        0 10px 25px rgba(78, 205, 196, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Animierte Border für Crewmate */
.word-container.crewmate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #4ecdc4 0%, 
        #87e8de 25%, 
        #4ecdc4 50%, 
        #87e8de 75%, 
        #4ecdc4 100%
    );
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    padding: 2px;
    animation: crewmateBorderFlow 4s ease-in-out infinite;
}

.word-container.crewmate::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: 
        linear-gradient(135deg, 
            rgba(23, 37, 42, 0.95) 0%, 
            rgba(78, 205, 196, 0.2) 50%, 
            rgba(23, 37, 42, 0.95) 100%
        );
    border-radius: 18px;
    z-index: -1;
}

@keyframes crewmateBorderFlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
    }
}

/* Typewriter Text - Maximale Lesbarkeit */
.typewriter-text {
    font-family: 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: 3px;
    position: relative;
    opacity: 1;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(78, 205, 196, 0.5);
    transition: all 0.3s ease;
    /* Kein komplizierter Gradient - nur sauberer weißer Text */
}

.typewriter-text.active {
    opacity: 1;
    animation: typewriterBlink 1s ease-in-out infinite;
}

.typewriter-text:hover {
    transform: scale(1.02);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(78, 205, 196, 0.8);
}

/* Modern Cursor für Typewriter-Effekt */
.typewriter-text::after {
    content: '▌';
    font-weight: bold;
    animation: modernTypewriterCursor 1.2s infinite;
    color: #4ecdc4;
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.6));
    margin-left: 4px;
}

.typewriter-text.typing-complete::after {
    animation: cursorFadeOut 0.8s ease-out forwards;
}

@keyframes modernTypewriterCursor {
    0%, 45% { 
        opacity: 1; 
        transform: scaleY(1);
    }
    46%, 100% { 
        opacity: 0.2; 
        transform: scaleY(0.8);
    }
}

@keyframes cursorFadeOut {
    0% { 
        opacity: 1; 
        transform: scaleY(1);
    }
    100% { 
        opacity: 0; 
        transform: scaleY(0);
    }
}

@keyframes typewriterBlink {
    0%, 95% { 
        opacity: 1; 
        transform: scale(1);
    }
    96%, 100% { 
        opacity: 0.9; 
        transform: scale(1.01);
    }
}

/* Mystery placeholder für Imposters - Modern */
.mystery-word {
    font-family: 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 51, 51, 0.8),
        0 0 30px rgba(255, 51, 51, 0.4);
    animation: mysteryPulse 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.mystery-word:hover {
    transform: scale(1.02);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 51, 51, 1),
        0 0 40px rgba(255, 51, 51, 0.6);
}

/* Glitch-Effekt für scrambled text */
.mystery-word.glitching {
    animation: textGlitch 0.1s infinite;
    filter: blur(1px);
}

@keyframes textGlitch {
    0% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% { 
        transform: translate(-1px, 1px);
        filter: hue-rotate(90deg);
    }
    40% { 
        transform: translate(-1px, -1px);
        filter: hue-rotate(180deg);
    }
    60% { 
        transform: translate(1px, 1px);
        filter: hue-rotate(270deg);
    }
    80% { 
        transform: translate(1px, -1px);
        filter: hue-rotate(360deg);
    }
    100% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

/* Enhanced mystery pulse für bessere Integration */
@keyframes mysteryPulse {
    0%, 100% { 
        transform: scale(1) rotateZ(0deg);
        opacity: 0.9;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 15px rgba(255, 51, 51, 0.8),
            0 0 30px rgba(255, 51, 51, 0.4);
    }
    25% {
        transform: scale(1.01) rotateZ(-0.5deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.03) rotateZ(0deg);
        opacity: 1;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 51, 51, 1),
            0 0 40px rgba(255, 51, 51, 0.5);
    }
    75% {
        transform: scale(1.01) rotateZ(0.5deg);
        opacity: 1;
    }
}

/* Word reveal animation für Crewmates */
.word-container.crewmate.word-revealed {
    animation: wordRevealPulse 0.6s ease-out;
}

@keyframes wordRevealPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 15px 35px rgba(78, 205, 196, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 20px 50px rgba(78, 205, 196, 0.4),
            0 8px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 15px 35px rgba(78, 205, 196, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.12);
    }
}

/* Enhanced glow effect when typing completes */
.typewriter-text.typing-complete {
    animation: wordCompleteGlow 2s ease-out;
}

@keyframes wordCompleteGlow {
    0% {
        filter: drop-shadow(0 2px 4px rgba(78, 205, 196, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.6));
        transform: scale(1.02);
    }
    100% {
        filter: drop-shadow(0 2px 4px rgba(78, 205, 196, 0.3));
        transform: scale(1);
    }
}



/* Role Title - Modern Design */
.role-title {
    font-family: 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    position: relative;
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Imposter Role Title */
.role-title.imposter-title {
    background: linear-gradient(135deg, 
        rgba(255, 51, 51, 0.15) 0%, 
        rgba(40, 15, 15, 0.9) 50%, 
        rgba(255, 51, 51, 0.15) 100%
    );
    color: #ffffff;
    border-color: rgba(255, 51, 51, 0.3);
    text-shadow: 
        0 0 10px rgba(255, 51, 51, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 8px 20px rgba(255, 51, 51, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-title.imposter-title::before {
    content: '🔪';
    margin-right: 12px;
    font-size: 1.2em;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.6));
}

/* Crewmate Role Title */
.role-title.crewmate-title {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.15) 0%, 
        rgba(20, 30, 35, 0.9) 50%, 
        rgba(78, 205, 196, 0.15) 100%
    );
    color: #ffffff;
    border-color: rgba(78, 205, 196, 0.3);
    text-shadow: 
        0 0 10px rgba(78, 205, 196, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 8px 20px rgba(78, 205, 196, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-title.crewmate-title::before {
    content: '👨‍🚀';
    margin-right: 12px;
    font-size: 1.2em;
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.6));
}

/* Role Title Fade-in Animation */
.role-title.fade-in {
    animation: roleTitleFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes roleTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover Effects */
.role-title:hover {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.3s ease;
}

.role-title.imposter-title:hover {
    box-shadow: 
        0 12px 30px rgba(255, 51, 51, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 
        0 0 15px rgba(255, 51, 51, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.role-title.crewmate-title:hover {
    box-shadow: 
        0 12px 30px rgba(78, 205, 196, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 
        0 0 15px rgba(78, 205, 196, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Role Description Animation */
.role-description {
    opacity: 0;
    transform: translateY(15px);
}

.role-description.fade-in {
    animation: roleDescriptionFadeIn 0.6s ease-out 1.5s forwards;
}

@keyframes roleDescriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Presentation Order Animation */
.presentation-order {
    opacity: 0;
    transform: translateX(-20px);
}

.presentation-order.fade-in {
    animation: presentationOrderFadeIn 0.5s ease-out 2s forwards;
}

@keyframes presentationOrderFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.role-card.imposter {
    background: 
        linear-gradient(135deg, #2d0a0a 0%, #1a0505 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 0, 51, 0.5),
        inset 0 1px 0 rgba(255, 100, 120, 0.3);
}

.role-card.imposter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 24px;
    box-shadow: 
        0 0 20px rgba(255, 0, 51, 0.3),
        0 0 40px rgba(255, 0, 51, 0.1);
    z-index: -1;
    animation: imposterGlowPulse 4s ease-in-out infinite;
}



.role-card.imposter::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 51, 0.6) 20%, 
        rgba(255, 0, 51, 0.8) 50%, 
        rgba(255, 0, 51, 0.6) 80%, 
        transparent 100%);
    animation: imposterTopGlow 3s ease-in-out infinite;
}

.role-card.crewmate {
    background: 
        linear-gradient(135deg, #0a1a1d 0%, #051215 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(78, 205, 196, 0.4),
        inset 0 1px 0 rgba(120, 220, 210, 0.2);
}

.role-card.crewmate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 24px;
    box-shadow: 
        0 0 15px rgba(78, 205, 196, 0.3),
        0 0 30px rgba(78, 205, 196, 0.1);
    z-index: -1;
    animation: crewmateGlowPulse 5s ease-in-out infinite;
}



.role-card.crewmate::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(78, 205, 196, 0.5) 20%, 
        rgba(78, 205, 196, 0.7) 50%, 
        rgba(78, 205, 196, 0.5) 80%, 
        transparent 100%);
    animation: crewmateTopGlow 4s ease-in-out infinite;
}





@keyframes imposterGlowPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 0, 51, 0.3),
            0 0 40px rgba(255, 0, 51, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 0, 51, 0.5),
            0 0 60px rgba(255, 0, 51, 0.2);
    }
}

@keyframes crewmateGlowPulse {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(78, 205, 196, 0.3),
            0 0 30px rgba(78, 205, 196, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(78, 205, 196, 0.5),
            0 0 50px rgba(78, 205, 196, 0.2);
    }
}

@keyframes imposterTopGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes crewmateTopGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Role Card Content Styling */
.role-card h2 {
    margin: 0 0 20px 0;
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.role-card.imposter h2 {
    background: linear-gradient(135deg, #ff0033 0%, #ff6b6b 50%, #ff0033 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(255, 0, 51, 0.5));
    animation: imposterTitleGlow 3s ease-in-out infinite;
}

.role-card.crewmate h2 {
    background: linear-gradient(135deg, #4ecdc4 0%, #87e8de 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 4px rgba(78, 205, 196, 0.4));
    animation: crewmateTitleGlow 4s ease-in-out infinite;
}

.role-card p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-weight: 400;
}

.role-card.imposter p {
    color: rgba(255, 180, 180, 0.9);
    font-weight: 500;
}

.role-card.crewmate p {
    color: rgba(180, 255, 240, 0.9);
    font-weight: 450;
}

@keyframes imposterTitleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(255, 0, 51, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.8)) drop-shadow(0 0 12px rgba(255, 0, 51, 0.3));
    }
}

@keyframes crewmateTitleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 4px rgba(78, 205, 196, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 6px rgba(78, 205, 196, 0.6)) drop-shadow(0 0 10px rgba(78, 205, 196, 0.2));
    }
}

/* Players Status */
.players-status {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 28px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.players-status::before {
    display: none;
}

.players-status h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.player-status:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.player-status.own-player {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.2) 0%, rgba(255, 0, 51, 0.1) 100%);
    border: 2px solid rgba(255, 0, 51, 0.4);
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.2);
}

.player-status.own-player .player-name {
    color: #ff0033;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 0, 51, 0.3);
}

.player-status.own-player:hover {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.25) 0%, rgba(255, 0, 51, 0.15) 100%);
    box-shadow: 0 8px 28px rgba(255, 0, 51, 0.3);
    transform: translateY(-2px);
}

.player-status.dead {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(77, 43, 43, 0.4) 0%, rgba(45, 27, 27, 0.6) 100%);
    border-color: rgba(93, 61, 61, 0.6);
}

.player-status.dead .player-name {
    text-decoration: line-through;
    color: #ff6666;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.player-role-indicator {
    font-size: 12px;
    color: #cccccc;
    font-weight: 500;
}

.player-vote-status {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(61, 61, 61, 0.8) 0%, rgba(45, 45, 45, 0.9) 100%);
    color: #cccccc;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-vote-status.wants-voting {
    background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
    color: white;
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 2px 12px rgba(255, 0, 51, 0.3);
}

/* Voting Request Status */
#voting-request-status {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#voting-request-status h4 {
    margin-bottom: 16px;
    color: #ff0033;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 0, 51, 0.3);
}

#voting-request-status p {
    margin-bottom: 12px;
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

#voting-requesters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.voting-requester {
    background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 0, 51, 0.25);
    border: 1px solid rgba(255, 0, 51, 0.3);
}

#voting-progress {
    font-weight: 600;
    color: #ffffff !important;
    font-size: 14px;
}

/* Game Actions */
.game-actions {
    text-align: center;
    margin-top: 24px;
}

.game-actions button {
    background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 51, 0.3);
}

.game-actions button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1a4d 0%, #e60033 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 51, 0.35);
}

.game-actions button:disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #3d3d3d 100%);
    color: #999999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.game-actions .back-button {
    display: inline-block;
    margin-left: 16px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4a4a4a 0%, #3d3d3d 100%);
    color: #cccccc;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.game-actions .back-button:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #4d4d4d 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Live Chat */
.live-chat {
    background: #212121;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 550px;
    max-height: 550px;
    position: relative;
    z-index: 1;
}

.live-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #212121;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 4px 16px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #3d3d3d;
}

.chat-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #ffffff;
}

.chat-header p {
    margin: 0;
    font-size: 12px;
    color: #aaaaaa;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #3d3d3d #181818;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #181818;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

.chat-welcome {
    text-align: center;
    padding: 20px 12px;
    color: #aaaaaa;
    font-size: 14px;
    border-bottom: 1px solid #3d3d3d;
    margin-bottom: 12px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
}

.chat-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.chat-author {
    font-weight: 500;
    font-size: 13px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.chat-author.imposter {
    color: #ff6666;
}

.chat-author.crewmate {
    color: #66ccff;
}

.chat-author.system {
    color: #ffa500;
    font-weight: bold;
}

.chat-timestamp {
    font-size: 11px;
    color: #717171;
}

.chat-content {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid #3d3d3d;
}

.chat-input-container input {
    flex: 1;
    padding: 8px 12px;
    background: #181818;
    border: 1px solid #3d3d3d;
    border-radius: 18px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.chat-input-container input::placeholder {
    color: #717171;
}

.chat-input-container input:focus {
    border-color: #3ea6ff;
}

.chat-input-container button {
    background: #ff0033;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.chat-input-container button:hover {
    background: #de0000;
}

.chat-input-container button:disabled {
    background: #3d3d3d;
    color: #717171;
    cursor: not-allowed;
}

/* Voting */
.voting-info {
    text-align: center;
    margin-bottom: 30px;
}

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

.vote-option {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.vote-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.vote-option.selected {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

/* Elimination Screen */
.elimination-result {
    text-align: center;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.elimination-result h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

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

.eliminated-player {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    font-size: 1.5rem;
}

.eliminated-player.imposter {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff4757;
}

.eliminated-player.crewmate {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
}

/* Spezielle Styles für selbst-eliminierte Spieler */
.eliminated-player.self-eliminated {
    border-width: 3px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: selfEliminatedGlow 3s infinite alternate;
}

.eliminated-player.self-eliminated.imposter {
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
}

.eliminated-player.self-eliminated.crewmate {
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.5);
}

@keyframes selfEliminatedGlow {
    0% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

.vote-results {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vote-results h3 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

.vote-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    margin: 5px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.vote-item.own-vote {
    background: rgba(255, 255, 0, 0.1);
    border-color: rgba(255, 255, 0, 0.3);
}

/* Modern Winner Announcements */
.winner-announcement {
    font-family: 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 30px 0;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 3px solid;
    animation: victoryPulse 3s ease-in-out infinite;
}

/* Imposter Victory */
.winner-announcement.imposters {
    background: 
        linear-gradient(135deg, 
            rgba(40, 15, 15, 0.95) 0%, 
            rgba(255, 51, 51, 0.3) 50%, 
            rgba(40, 15, 15, 0.95) 100%
        );
    border-color: #ff3333;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 51, 51, 0.8),
        0 0 40px rgba(255, 51, 51, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 20px 50px rgba(255, 51, 51, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.winner-announcement.imposters::before {
    content: '🔪💀🔪';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: evilFloat 2s ease-in-out infinite;
}

.winner-announcement.imposters::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 51, 51, 0.1) 50%, 
        transparent 70%
    );
    background-size: 200% 200%;
    animation: imposterShimmer 2s linear infinite;
    z-index: -1;
}

/* Crewmate Victory */
.winner-announcement.crewmates {
    background: 
        linear-gradient(135deg, 
            rgba(20, 30, 35, 0.95) 0%, 
            rgba(78, 205, 196, 0.3) 50%, 
            rgba(20, 30, 35, 0.95) 100%
        );
    border-color: #4ecdc4;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(78, 205, 196, 0.8),
        0 0 40px rgba(78, 205, 196, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 20px 50px rgba(78, 205, 196, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.winner-announcement.crewmates::before {
    content: '🚀🎉🚀';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: heroFloat 2s ease-in-out infinite;
}

.winner-announcement.crewmates::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(78, 205, 196, 0.1) 50%, 
        transparent 70%
    );
    background-size: 200% 200%;
    animation: crewmateShimmer 2s linear infinite;
    z-index: -1;
}

/* Victory Animations */
@keyframes victoryPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

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

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

@keyframes imposterShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes crewmateShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Draw/Tie Announcement */
.winner-announcement.draw {
    background: 
        linear-gradient(135deg, 
            rgba(60, 50, 30, 0.95) 0%, 
            rgba(255, 165, 0, 0.3) 50%, 
            rgba(60, 50, 30, 0.95) 100%
        );
    border-color: #ffa500;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 165, 0, 0.8),
        0 0 40px rgba(255, 165, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 20px 50px rgba(255, 165, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.winner-announcement.draw::before {
    content: '🤝⚖️🤝';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: neutralFloat 2s ease-in-out infinite;
}

.winner-announcement.draw::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 165, 0, 0.1) 50%, 
        transparent 70%
    );
    background-size: 200% 200%;
    animation: drawShimmer 2s linear infinite;
    z-index: -1;
}

@keyframes neutralFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) scale(1);
    }
    50% { 
        transform: translateX(-50%) translateY(-3px) scale(1.05);
    }
}

@keyframes drawShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* End Screen */
.end-result {
    text-align: center;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.end-result h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.end-result button {
    background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.end-result button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.end-result button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1a4d 0%, #e60033 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 51, 0.35);
}

.end-result button:hover:not(:disabled)::before {
    left: 100%;
}

.end-result button:disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #3d3d3d 100%);
    color: #999999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.end-result button:disabled::before {
    display: none;
}

/* New Game Request Status */
#new-game-request-status {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#new-game-request-status h4 {
    margin-bottom: 12px;
    color: #ff0033;
    font-size: 1.1rem;
}

#new-game-request-status p {
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 14px;
}

#new-game-requesters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.new-game-requester {
    background: #ff0033;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#new-game-progress {
    font-weight: 500;
    color: #ffffff !important;
}

/* Final Roles Display */
.final-roles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.role-section {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.role-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 10px;
}

.imposters-section h3 {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.crewmates-section h3 {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
}

.player-final-role {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.player-final-role.imposter {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.player-final-role.crewmate {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.player-final-role.dead {
    opacity: 0.6;
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.4);
}

.player-final-role.dead .player-name {
    text-decoration: line-through;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.player-status {
    font-size: 0.9rem;
    opacity: 0.8;
}

.player-final-role.alive .player-status {
    color: #4ecdc4;
}

.player-final-role.dead .player-status {
    color: #ff6b6b;
}

/* Responsive für kleine Bildschirme */
@media (max-width: 768px) {
    .final-roles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* Responsive Design */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
    }
    
    .game-center {
        order: 1;
    }
    
    .game-right {
        order: 2;
    }
    
    .game-left {
        order: 3;
    }
    
    .live-chat {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 0 16px;
        height: 48px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .header-subtitle {
        display: none;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .thumbnail {
        height: 200px;
    }
    
    .video-details {
        padding-right: 16px;
    }
    
    .main-content {
        padding: 16px 0;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .game-layout {
        gap: 12px;
    }
    
    .live-chat {
        min-height: 300px;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .imposter-logo {
        font-size: 80px;
    }

    .logo-effect {
        width: 100px;
        height: 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-features {
        gap: 16px;
        justify-content: center;
    }

    .feature {
        font-size: 12px;
        padding: 8px 16px;
    }

    /* Join Section Mobile */
    .join-section {
        gap: 40px;
    }

    .join-form-container {
        max-width: 100%;
    }

    .join-form, .game-info {
        padding: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .primary-button {
        padding: 14px 20px;
        font-size: 16px;
    }

    .game-info h3 {
        font-size: 20px;
    }

    /* Mobile Optimierungen für Hintergrund */
    body.imposter-page::before {
        opacity: 0.6;
        background-size: 
            80% 80%,
            80% 80%, 
            80% 80%,
            300px 250px,
            280px 220px,
            350px 300px,
            250px 200px,
            320px 270px,
            300px 240px,
            340px 260px;
    }
    
    body.imposter-page::after {
        opacity: 0.4;
    }

    /* Hero Mobile */
    .hero-section {
        min-height: 280px;
    }
    
    .hero-overlay {
        padding: 10px 20px;
    }
}

/* Puls-Effekt für dramatische Momente */
body.imposter-page.dramatic-moment::before {
    animation: 
        cosmicDrift 20s ease-in-out infinite,
        particleFloat 8s linear infinite,
        dramaticPulse 2s ease-in-out infinite;
}

@keyframes dramaticPulse {
    0%, 100% { 
        opacity: 0.8;
        filter: brightness(1) contrast(1);
    }
    50% { 
        opacity: 0.95;
        filter: brightness(1.2) contrast(1.1) saturate(1.3);
    }
}

/* Reduzierte Animation für langsamere Geräte */
@media (prefers-reduced-motion: reduce) {
    body.imposter-page::before,
    body.imposter-page::after,
    body.imposter-page .hero-section::before {
        animation: none;
    }
    
    body.imposter-page::before {
        opacity: 0.3;
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header-content {
        padding: 0 12px;
    }
    
    .thumbnail {
        height: 180px;
    }
    
    .video-details {
        padding-right: 0;
    }
}

/* Secondary Button (für Words Toggle) */
.secondary-button {
    background: #3d3d3d;
    color: #aaaaaa;
    border: 2px solid #5a5a5a;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.secondary-button:hover {
    background: #5a5a5a;
    color: white;
    border-color: #aaaaaa;
    transform: translateY(-2px);
}

/* Words Modal */
.words-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.words-modal-content {
    background: #181818;
    border-radius: 12px;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
}

.words-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #3d3d3d;
    background: #212121;
    border-radius: 12px 12px 0 0;
}

.words-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.close-words-button {
    background: #3d3d3d;
    color: #aaaaaa;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-words-button:hover {
    background: #ff0033;
    color: white;
    transform: scale(1.1);
}

.words-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.words-category {
    background: #212121;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #3d3d3d;
}

.words-category h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.word-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.word-tag {
    background: #3d3d3d;
    color: #aaaaaa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.word-tag:hover {
    background: linear-gradient(135deg, #ff0033, #ff3366);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 51, 0.3);
}

.words-footer {
    padding: 20px 25px;
    border-top: 1px solid #3d3d3d;
    background: #212121;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.words-footer p {
    margin: 0;
    color: #aaaaaa;
    font-size: 14px;
}

.words-footer strong {
    color: #ff0033;
    font-weight: 700;
}

/* Responsive Design für Words Modal */
@media (max-width: 768px) {
    .words-modal {
        padding: 10px;
    }
    
    .words-modal-content {
        max-height: 95vh;
    }
    
    .words-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .words-header {
        padding: 15px 20px;
    }
    
    .words-header h2 {
        font-size: 20px;
    }
    
    .words-category {
        padding: 15px;
    }
}

/* Imposter Guess Screens */
.imposter-guess-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #660000, #330000);
    border-radius: 20px;
    border: 3px solid #ff0033;
    box-shadow: 
        0 0 30px rgba(255, 0, 51, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.8);
}

.imposter-guess-container h2 {
    color: #ff0033;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 0, 51, 0.8);
    animation: urgentPulse 1s ease-in-out infinite alternate;
}

.imposter-guess-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.guess-input-container {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.guess-input-container input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #ff0033;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    font-weight: 500;
}

.guess-input-container input:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.guess-input-container button {
    padding: 15px 25px;
    background: #ff0033;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.guess-input-container button:hover {
    background: #ff3366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.4);
}

.imposter-guessing-wait {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a1a1d, #051215);
    border-radius: 20px;
    border: 2px solid #4ecdc4;
    box-shadow: 
        0 0 20px rgba(78, 205, 196, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.6);
}

.imposter-guessing-wait h2 {
    color: #4ecdc4;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

.imposter-guessing-wait p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.guessing-timer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.guessing-timer p {
    font-size: 1.3rem;
    color: #4ecdc4;
    margin: 0;
    font-weight: 600;
}

@keyframes urgentPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 15px rgba(255, 0, 51, 0.8);
    }
    100% { 
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(255, 0, 51, 1);
    }
}

/* Clean Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    background: transparent;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    user-select: none;
    gap: 15px;
}

/* Custom Toggle Switch - Dezentes rotes Design */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch:hover {
    border-color: rgba(255, 0, 51, 0.5);
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.toggle-switch.active {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.3), rgba(255, 0, 51, 0.2));
    border-color: rgba(255, 0, 51, 0.6);
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::before {
    transform: translateX(24px);
    background: #ff0033;
}

.setting-content {
    flex: 1;
}

.setting-text {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.setting-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 5px;
}

.setting-description strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.setting-status {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.setting-status.enabled {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15), rgba(255, 0, 51, 0.05));
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: #ff3366;
}

.setting-status.disabled {
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.1), rgba(100, 100, 100, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.status-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.status-text {
    font-weight: 600;
}

.status-subtext {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
}

/* Verstecke die originale Checkbox */
.setting-label input[type="checkbox"] {
    display: none;
}

/* Game Controls */
.game-controls {
    text-align: center;
    margin-top: 8px;
}

.game-controls button {
    background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-controls button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1a4d 0%, #e60033 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 51, 0.35);
}

.game-controls button:disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #3d3d3d 100%);
    color: #999999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: none;
}

.instruction {
    opacity: 0.8;
    font-style: italic;
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}



.game-left {
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.game-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Copy Feedback */
.copy-feedback {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #00cc00 0%, #00aa00 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 204, 0, 0.3);
    z-index: 1000;
    animation: fadeInSlide 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    margin-left: 15px;
}

.copy-feedback.fade-out {
    animation: fadeOutSlide 0.3s ease-in;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}

/* Continue Button */
#continue-button {
    background: linear-gradient(135deg, #ff0033 0%, #cc002a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 0, 51, 0.5);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.25);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#continue-button:hover {
    background: linear-gradient(135deg, #ff1a4a 0%, #e6003d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 51, 0.35);
}

#continue-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.25);
}

/* Spezielle Container-Regel für Game-Screens */
#game-screen .container,
#end-screen .container {
    max-width: none;
    padding: 0;
}

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 450px 650px 350px;
    gap: 24px;
    height: calc(100vh - 200px);
}

/* Game Layout - Wortkarte perfekt zentriert */
#game-screen .game-layout,
#end-screen .game-layout {
    grid-template-columns: 400px 650px 400px;
    justify-content: center;
    margin: 0 auto;
}
/* Entferne die breite Flexbox-Regel */
