/* Schnuffibär - Edles Grau Edition v5.0 */
/* Zeitloses, hochwertiges Design in edlen Grautönen */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Edle Grautöne - Premium Palette */
    --primary-color: #2d3748;          /* Anthrazit */
    --primary-hover: #1a202c;          /* Dunkel-Anthrazit */
    --secondary-color: #4a5568;        /* Mittleres Grau */
    --accent-color: #718096;           /* Helles Grau */
    --success-color: #48bb78;          /* Dezentes Grün */
    --warning-color: #ed8936;          /* Warmes Orange */
    --danger-color: #f56565;           /* Sanftes Rot */
    
    /* Hochwertige Hintergründe */
    --bg-main: #f7fafc;                /* Sehr helles Grau */
    --bg-secondary: #ffffff;           /* Reines Weiß */
    --bg-card: #ffffff;                /* Card-Hintergrund */
    --bg-hover: #edf2f7;               /* Subtiler Hover */
    --bg-accent: #e2e8f0;              /* Leichter Akzent */
    
    /* Professionelle Texttöne */
    --text-primary: #1a202c;           /* Fast Schwarz */
    --text-secondary: #4a5568;         /* Mittleres Grau */
    --text-muted: #a0aec0;             /* Helles Grau */
    --border-color: #e2e8f0;           /* Subtile Border */
    --border-dark: #cbd5e0;            /* Dunklere Border */
    
    /* Elegante Schatten */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.08);
    
    /* Abstände */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    position: relative;
    min-height: 100vh;
}

/* Container Styles */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Typography - Elegant und Klar */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.game-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(var(--shadow-md));
}

.game-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

h2, h3, h4 {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Buttons - Modern und Clean */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-warning:hover {
    background: #dd6b20;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-kick {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-kick:hover {
    background: #e53e3e;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Game Code Display - Elegant und reduziert */
.game-code-display {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
}

.game-code-display .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-code-display .code {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    color: var(--primary-color);
}

.game-code-badge {
    background: var(--bg-secondary);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
}

.game-code-badge .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.game-code-badge .code {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.15rem;
    font-family: 'Poppins', sans-serif;
}

/* Player List - Modern Cards */
.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.player-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.player-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.player-card .avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-accent);
}

.player-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.player-card .score {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================================
   JOIN SCREEN ENHANCEMENTS
   ================================== */

.join-container-enhanced {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.join-container-enhanced h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

/* Avatar-Vorschau-Card */
.avatar-preview-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(74, 85, 104, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.avatar-preview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.avatar-preview-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.avatar-preview-large {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.avatar-preview-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.avatar-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name-preview {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Eingabe-Card */
.join-input-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Avatar-Auswahl-Card */
.avatar-selection-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.avatar-selection-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.avatar-selection-card .avatar-grid {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
    margin: 0;
}

/* Scrollbar styling */
.avatar-selection-card .avatar-grid::-webkit-scrollbar {
    width: 8px;
}

.avatar-selection-card .avatar-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.avatar-selection-card .avatar-grid::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 10px;
}

.avatar-selection-card .avatar-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.avatar-option {
    background: var(--bg-secondary);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: white;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.avatar-option:hover {
    border-color: #4a5568;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.3);
}

.avatar-option:hover img {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #4a5568;
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.1), rgba(45, 55, 72, 0.1));
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.2), 0 6px 20px rgba(74, 85, 104, 0.3);
    transform: scale(1.05);
}

.avatar-option.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4a5568;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Form-Group Styling */
.join-input-card .form-group {
    margin-bottom: 1.25rem;
}

.join-input-card .form-group:last-child {
    margin-bottom: 0;
}

.join-input-card label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.join-input-card input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.join-input-card input:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

/* Button-Group im Join-Screen */
.join-container-enhanced .button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.join-container-enhanced .btn {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.join-container-enhanced .btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.4);
}

.join-container-enhanced .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.5);
}

.join-container-enhanced .btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #4a5568;
}

.join-container-enhanced .btn-secondary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.avatar-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.avatar-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

/* Avatar Display in Player Cards etc */
.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar in verschiedenen Kontexten */
.avatar img,
.avatar span img,
span.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#player-avatar,
#winner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#player-avatar img,
#winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Final Score Items - Game Over Screen */
.final-score-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.final-score-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Items - Lobby Lists */
.player-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Selection Buttons - Buzzer Screen */
.player-selection-btn .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-selection-btn .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Management Info - Dashboard */
.player-mgmt-info .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-mgmt-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scoreboard Item - Dashboard */
.scoreboard-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scoreboard-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Generic Avatar Fallback - für alle nicht spezifizierten Fälle */
span.avatar,
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

span.avatar img,
.avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}


/* Forms - Elegant Input Design */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Question Display */
.question-display {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.question-display .category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.question-display .text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.answer-option {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.answer-option:hover {
    border-color: var(--secondary-color);
    background: var(--bg-hover);
    transform: translateX(4px);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--bg-accent);
    box-shadow: var(--shadow-md);
}

.answer-option.correct {
    border-color: var(--success-color);
    background: #f0fff4;
}

.answer-option.incorrect {
    border-color: var(--danger-color);
    background: #fff5f5;
}

.answer-option .number {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
    min-width: 30px;
}

.answer-option .text {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Timer Display */
.timer-display {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.timer-display.warning {
    border-color: var(--warning-color);
    background: #fffaf0;
}

.timer-display.danger {
    border-color: var(--danger-color);
    background: #fff5f5;
    animation: pulse 1s ease-in-out infinite;
}

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

.timer-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.timer-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scoreboard Items - Dashboard Punktestand */
.scoreboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.scoreboard-item .rank {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 30px;
}

.scoreboard-item .name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.scoreboard-item .score {
    font-weight: 700;
    color: var(--primary-color);
}

/* Final Score Items - Game Over Screen */
.final-score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.final-score-item.winner {
    background: linear-gradient(135deg, #fef5e7 0%, #fff9e6 100%);
    border-color: #f39c12;
    border-width: 2px;
}

.final-score-item .rank {
    font-size: 1.5rem;
    font-weight: 700;
}

.final-score-item .info {
    flex: 1;
}

.final-score-item .info .name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.final-score-item .info .score {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Player Items - Lobby Lists */
.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.player-item .name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

/* Player Selection Buttons */
.player-selection-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 0.75rem;
}

.player-selection-btn:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
    transform: translateX(4px);
}

.player-selection-btn .name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Player Management Info */
.player-mgmt-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.player-mgmt-info .name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-mgmt-info .score {
    color: var(--text-secondary);
    font-size: 0.875rem;
}


.timer-display-large {
    background: var(--bg-secondary);
    border: 3px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.timer-display-large .timer-value {
    font-size: 5rem;
    color: var(--primary-color);
}

/* Player Management */
.player-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.player-mgmt-item {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.player-mgmt-item:hover {
    box-shadow: var(--shadow-md);
}

.player-mgmt-item .info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-mgmt-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-mgmt-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-mgmt-item .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Modal - Clean Design */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

/* Buzzer Styles */
.buzzer-button {
    padding: 4rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Poppins', sans-serif;
}

.buzzer-button:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.buzzer-button:active {
    transform: scale(0.97);
}

.buzzer-button:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.buzzer-info {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    border: 1.5px solid var(--border-color);
}

/* Waiting Screen */
.waiting-screen .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.progress-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Animations */
@keyframes kickOut {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(100px) rotate(10deg) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translateX(200px) rotate(20deg) scale(0.7);
        opacity: 0;
    }
}

.player-mgmt-item.kicked {
    animation: kickOut 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

body.kicked {
    animation: shake 0.4s;
}

/* Player Selection List */
.player-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-selection-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.player-selection-item:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.player-selection-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-selection-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-selection-item .name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Accusation Styles */
.accusation-result {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.accusation-result.correct {
    background: #f0fff4;
    border-color: var(--success-color);
}

.accusation-result.wrong {
    background: #fff5f5;
    border-color: var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn-accuse {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: var(--shadow-button);
}

.btn-accuse:hover {
    background: #dd6b20;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-accuse:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.accusation-indicator {
    background: var(--bg-accent);
    border: 1.5px solid var(--border-dark);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 1.5rem 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.avatar-large {
    font-size: 5rem;
    display: block;
}

.player-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.accusation-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #4a5568;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: #92400e;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

/* Info Text */
.info-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.info-text-error {
    text-align: center;
    color: var(--danger-color);
    padding: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Sound Toggle Button */
.btn-toggle-sound {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-toggle-sound:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

/* Start Screen Special Styling */
#start-screen .game-title {
    font-size: 4rem;
}

/* Container Overrides für Screens */
#join-screen .container,
#player-lobby-screen .container,
#answer-input-screen .container,
#voting-screen .container,
#buzzer-screen .container,
#waiting-screen .container {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* Question Selection Radio Styles */
.question-select-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.question-select-radio input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.question-select-radio label {
    flex: 1;
    cursor: pointer;
}

.question-select-item.selected {
    background: var(--bg-accent);
    border-color: var(--primary-color);
}

.custom-question-form .form-group {
    margin-bottom: 1rem;
}

.custom-question-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.custom-question-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    transition: all 0.2s ease;
}

.custom-question-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

/* Dashboard Optimierungen */
.container-full-width {
    max-width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    min-height: 100vh;
}

.dashboard-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.header-left h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.game-code-badge-new {
    background: var(--bg-accent);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 1.5px solid var(--border-dark);
}

.round-info-badge {
    background: var(--bg-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

/* Roadmap */
.phase-roadmap {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.phase-roadmap h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.roadmap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    flex: 1;
    max-width: 100px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
}

.roadmap-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.roadmap-step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.roadmap-step.completed {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.roadmap-icon {
    font-size: 1.5rem;
}

.roadmap-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
}

.roadmap-arrow {
    font-size: 1rem;
    color: var(--text-muted);
}

.roadmap-info {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Split View */
.split-view-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .split-view-container {
        grid-template-columns: 1fr;
    }
}

.control-panel, .player-view-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-card-new {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dashboard-card-new h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* Player Status Compact - Fortschritt Bereich */
.player-status-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.player-status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.player-status-item.current-player {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15);
}

.player-status-item.completed {
    background: #f0fff4;
    border-color: var(--success-color);
}

.player-status-item .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-status-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-status-item .name {
    font-weight: 500;
    color: var(--text-primary);
}

.player-status-item .status {
    margin-left: auto;
    font-size: 1rem;
}


.phase-controls {
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
    border-color: var(--warning-color);
}

.manual-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.current-question-card {
    background: var(--bg-accent);
    border-color: var(--border-dark);
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.question-item {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-item:hover {
    border-color: var(--secondary-color);
    background: var(--bg-hover);
}

.question-item.current {
    border-color: var(--primary-color);
    background: var(--bg-accent);
}

.player-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mirror-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
}

.mirror-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.mirror-content {
    padding: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .game-title {
        font-size: 2.25rem;
    }

    #start-screen .game-title {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .player-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timer-display-large {
        font-size: 3rem;
        padding: 2rem;
    }

    .btn-toggle-sound {
        bottom: 1rem;
        right: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    @keyframes kickOut {
        0% {
            transform: translateX(0) rotate(0deg) scale(1);
            opacity: 1;
        }
        50% {
            transform: translateX(50px) rotate(8deg) scale(1.03);
            opacity: 0.5;
        }
        100% {
            transform: translateX(120px) rotate(15deg) scale(0.7);
            opacity: 0;
        }
    }

    #join-screen .container,
    #player-lobby-screen .container,
    #answer-input-screen .container,
    #voting-screen .container,
    #buzzer-screen .container,
    #waiting-screen .container {
        padding: 1.75rem;
    }

    /* Mobile Avatar-Grid Optimierungen */
    .avatar-grid {
        max-width: 100%;
        gap: 0.5rem;
        grid-template-columns: repeat(5, 1fr);
    }

    .avatar-option {
        padding: 0.3rem;
    }
    
    /* Mobile Join-Screen Optimierungen */
    .join-container-enhanced {
        padding: 1rem;
    }
    
    .join-container-enhanced h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .avatar-preview-card {
        padding: 2rem 1.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .avatar-preview-large {
        width: 165px;
        height: 165px;
        border-width: 4px;
    }
    
    .player-name-preview {
        font-size: 1.25rem;
    }
    
    .join-input-card,
    .avatar-selection-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .avatar-selection-card .avatar-grid {
        max-height: 300px;
        gap: 0.5rem;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .join-container-enhanced .btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Footer Links - Zentriert und Einheitlich */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* Warten auf Spieler - Klarere Abtrennung */
.game-settings-panel {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.game-settings-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.setting-group {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.setting-group label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.setting-input,
.points-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.setting-input:focus,
.points-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.custom-points-panel {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.setting-row:last-child {
    margin-bottom: 0;
}

.setting-row label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-row input {
    width: 100px;
}

.info-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

/* Enhanced Player Screens - Schönes zentrales Layout */
.player-screen-enhanced {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.player-screen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}


/* ==================================
   SPIELER-STATUS-HEADER
   ================================== */

.players-status-header {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.players-status-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.player-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    min-width: 60px;
}

.player-status-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.player-status-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status-Varianten */
.player-status-item.waiting .player-status-avatar {
    border-color: #9ca3af;
    opacity: 0.7;
}

.player-status-item.typing .player-status-avatar {
    border-color: #3b82f6;
    animation: pulse 1.5s ease-in-out infinite;
}

.player-status-item.ready .player-status-avatar {
    border-color: #10b981;
}

.player-status-item.active .player-status-avatar {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

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

.player-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-status-item.waiting .player-status-text {
    color: #9ca3af;
}

.player-status-item.typing .player-status-text {
    color: #3b82f6;
}

.player-status-item.ready .player-status-text {
    color: #10b981;
}

.player-status-item.active .player-status-text {
    color: #f59e0b;
}

.game-branding {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.player-header-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.player-header-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.round-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.round-info {
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 0.9375rem;
}

.points-info {
    background: linear-gradient(135deg, var(--success-color), #38a169);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.9375rem;
}

.category-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.question-text {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 2px solid var(--border-dark);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
    text-align: center;
    font-size: 1.5rem;
}

.question-reminder {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 2px solid var(--border-dark);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
    text-align: center;
    font-size: 1.5rem;
}

/* Answer Input Screen spezieller Stil */
#answer-input-screen h3,
#voting-screen h3,
#buzzer-screen h3 {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Attraktives Formular-Styling */
#answer-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

#answer-input,
#answer-form textarea {
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s ease;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 120px;
}

#answer-input:focus,
#answer-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
    background: var(--bg-secondary);
}

.char-count {
    position: absolute;
    bottom: -1.5rem;
    right: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Formular Button Zentrierung */
#answer-form .btn {
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto 0;
    display: block;
}

/* Answers List für Voting/Buzzer */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Anpassungen für Player Screens */
@media (max-width: 768px) {
    .player-screen-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .player-header-avatar {
        width: 70px;
        height: 70px;
    }
    
    .player-header-title {
        font-size: 2rem;
    }
    
    .player-header-subtitle {
        font-size: 1rem;
    }
    
    .question-reminder {
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
    
    #answer-form {
        padding: 1.5rem;
    }
    
    #answer-input-screen h3,
    #voting-screen h3,
    #buzzer-screen h3 {
        font-size: 1rem;
    }
}

/* Admin Panel Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.admin-actions {
    margin-bottom: 2rem;
}

.questions-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    overflow-x: auto;
}

#questions-table {
    width: 100%;
    border-collapse: collapse;
}

#questions-table thead {
    background: var(--bg-accent);
}

#questions-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

#questions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

#questions-table tbody tr:hover {
    background: var(--bg-hover);
}

#questions-table tbody tr:last-child td {
    border-bottom: none;
}

#questions-table td:nth-child(2),
#questions-table td:nth-child(3) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#questions-table td:last-child {
    white-space: nowrap;
}

/* Modal Anpassungen für Admin */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

/* Admin Modal Formular Styles */
#question-form .form-group {
    margin-bottom: 1.75rem;
}

#question-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

#question-form textarea,
#question-form input[type="text"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#question-form textarea {
    resize: vertical;
    line-height: 1.6;
}

#edit-question {
    min-height: 120px;
}

#edit-answer {
    min-height: 80px;
}

#question-form textarea:focus,
#question-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
    background: var(--bg-secondary);
}

#question-form .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

#question-form .button-group .btn {
    flex: 1;
}

/* Admin Login Screen */
#admin-login-screen .container {
    max-width: 400px;
}

#admin-login-screen h2 {
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .questions-table {
        padding: 1rem;
    }
    
    #questions-table th,
    #questions-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    #questions-table td:nth-child(2),
    #questions-table td:nth-child(3) {
        max-width: 150px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    #question-form .button-group {
        flex-direction: column;
    }
    
    #question-form .button-group .btn {
        width: 100%;
    }
}

/* Desktop Optimierung */
@media (min-width: 769px) {
    .avatar-grid {
        max-width: 550px;
    }
}
/* ==========================================
   NEUE BESCHULDIGUNGS-FUNKTIONEN STYLES
   ========================================== */

/* Dezenter Floating Button */
.btn-accuse-floating {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-accuse-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-accuse-floating:active {
    transform: translateY(0);
}

/* Modal Antwort/Spieler Items */
.accusation-answer-item,
.accusation-player-item {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accusation-answer-item:hover,
.accusation-player-item:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: translateX(4px);
}

.accusation-answer-item .index {
    background: #f59e0b;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.accusation-answer-item .text {
    flex: 1;
    color: #1f2937;
    font-size: 0.95rem;
}

.accusation-player-item .player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accusation-player-item .player-name {
    flex: 1;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
}

/* Player Selection List */
.player-selection-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Responsiv: Button auf Mobile unten zentriert */
@media (max-width: 768px) {
    .btn-accuse-floating {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 20px;
    }
    
    .btn-accuse-floating:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Modal Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ============================================
   Ausgelagert aus index.html - Inline Styles
   ============================================ */

/* Question Selection Radio Styles */
.question-select-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.question-select-radio input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.question-select-radio label {
    flex: 1;
    cursor: pointer;
}

.question-select-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.custom-question-form .form-group {
    margin-bottom: 12px;
}

.custom-question-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.custom-question-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

.custom-question-form textarea:focus {
    outline: none;
    border-color: #6366f1;
}

/* Optimiertes Dashboard */
.container-full-width {
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
    min-height: 100vh;
}

.dashboard-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    color: #1a202c;
    margin-bottom: 15px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-left h2 {
    margin: 0;
    font-size: 1.3rem;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.game-code-badge-new {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.round-info-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Roadmap */
.phase-roadmap {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.phase-roadmap h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.roadmap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    flex: 1;
    max-width: 100px;
}

.roadmap-step:hover {
    transform: translateY(-1px);
}

.roadmap-step.active {
    background: #2d3748;
    color: white;
    transform: scale(1.02);
    border: 2px solid #2d3748;
}

.roadmap-step.completed {
    background: #718096;
    color: white;
    border-color: #4a5568;
}

.roadmap-icon {
    font-size: 1.5em;
}

.roadmap-label {
    font-weight: 600;
    font-size: 0.75em;
    text-align: center;
    line-height: 1.2;
}

.roadmap-arrow {
    font-size: 1.2em;
    color: #6366f1;
}

.roadmap-info {
    text-align: center;
    font-size: 0.8em;
    margin-top: 8px;
}

/* Split View - Dark */
.split-view-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    align-items: start;
}

@media (max-width: 1200px) {
    .split-view-container {
        grid-template-columns: 1fr;
    }
}

.control-panel, .player-view-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-card-new {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-card-new h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #1a202c;
}

.phase-controls {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.manual-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-control {
    font-size: 1em;
    padding: 12px 20px;
    font-weight: 600;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-control:hover {
    transform: translateY(-1px);
    background: #1a202c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.control-hint {
    text-align: center;
    font-size: 0.75em;
    color: #4a5568;
    line-height: 1.3;
}

.player-management-list-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.player-status-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    color: #4a5568;
}

.dashboard-scoreboard-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Player View Panel - Light and Readable */
.player-view-panel {
    position: sticky;
    top: 15px;
}

.player-view-header {
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-bottom: none;
}

.player-view-header h3 {
    margin: 0;
    color: #1a202c;
}

#player-screen-mirror {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    min-height: 400px;
    color: #1a202c;
}

.player-view-content {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 1.5px solid #e2e8f0;
    border-top: none;
}

.player-view-content.hidden {
    display: none;
}

.player-screen-mirror {
    min-height: 400px;
    max-height: 500px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.mirror-placeholder {
    text-align: center;
    color: #4a5568;
}

.mirror-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.mirror-content {
    padding: 15px;
    width: 100%;
}

.mirror-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a202c;
}

/* [v4.3] Buzzer Player Modal Styles */
.player-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-selection-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.player-selection-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateX(5px);
}

.player-selection-btn .avatar {
    font-size: 24px;
    flex-shrink: 0;
}

.player-selection-btn .name {
    font-size: 16px;
    font-weight: 500;
    color: #1a202c;
}

/* [v4.3] Results Container */
.results-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.answer-result {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* [v4.4] Animierte Punkteübersicht */
#animated-points-container {
    display: none;
    margin: 20px 0;
    padding: 0;
}

.no-points-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 16px;
    color: white;
}

.no-points-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.no-points-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

.points-player-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.points-player-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    gap: 14px;
}

.points-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.points-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.points-avatar-emoji {
    font-size: 1.8rem;
}

.points-player-name {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.points-total {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
}

.points-total.positive {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.points-total.negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.points-total.neutral {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.points-events-list {
    padding: 12px 20px 16px;
}

.points-event {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    gap: 12px;
    animation: fadeInSlide 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.points-event:last-child {
    margin-bottom: 0;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.event-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-points {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 55px;
    text-align: center;
}

.event-points.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.event-points.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Highlight für eigenen Spieler */
.points-player-card.is-current-player {
    border: 2px solid #667eea;
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.4);
}

.points-player-card.is-current-player .points-player-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    .points-player-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .points-avatar {
        width: 42px;
        height: 42px;
    }

    .points-player-name {
        font-size: 1.05rem;
    }

    .points-total {
        font-size: 1.25rem;
        padding: 6px 12px;
        min-width: 60px;
    }

    .points-events-list {
        padding: 10px 16px 14px;
    }

    .points-event {
        padding: 10px 12px;
        gap: 10px;
    }

    .event-icon {
        font-size: 1.3rem;
        width: 32px;
    }

    .event-text {
        font-size: 0.88rem;
    }

    .event-points {
        font-size: 0.95rem;
        padding: 5px 10px;
        min-width: 48px;
    }
}
