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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.auth-card h1 {
    font-size: 2.2rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.auth-card h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin: 0.5rem 0;
    text-align: center;
    font-weight: normal;
}

.auth-card > p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#login-section h2 {
    color: #4a5568;
    margin-bottom: 1rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    border: 2px solid transparent;
}

.join-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Main Game Interface */
#game-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-logo {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.login-logo {
    width: 175px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Game Status Bar */
#game-status {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 1rem auto;
    max-width: 1400px;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.status-item strong {
    color: #4a5568;
}

#phase-timer {
    font-weight: bold;
    color: #e53e3e;
}

/* Phase Instructions */
.phase-info {
    background: white;
    margin: 1rem auto;
    max-width: 1400px;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#phase-title {
    color: #4a5568;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#phase-description {
    color: #666;
    font-size: 1.1rem;
}

/* Connected Users */
#connected-users {
    background: white;
    margin: 1rem auto;
    max-width: 1400px;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#connected-users h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.user-card {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-card.admin {
    border-color: #ffd700;
    background: #fffbf0;
}

.user-card.voted {
    border-color: #48bb78;
    background: #f0fff4;
}

.user-card img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-card .username {
    font-weight: 500;
}

.user-card .admin-badge {
    background: #ffd700;
    color: #744210;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Blurbs Grid */
.blurbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.blurb-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.blurb-card.revealed {
    border-color: #4299e1;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blurb-card.correct-real {
    border-color: #48bb78;
    background: linear-gradient(145deg, #f0fff4, #ffffff);
}

.blurb-card.the-lie {
    border-color: #e53e3e;
    background: linear-gradient(145deg, #fed7d7, #ffffff);
    animation: liePulse 2s ease-in-out;
}

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

.blurb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blurb-header h3 {
    font-size: 1.4rem;
    color: #4a5568;
}

.blurb-status {
    display: flex;
    gap: 0.5rem;
}

.reveal-badge {
    background: #4299e1;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lie-badge {
    background: #e53e3e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounceIn 0.6s ease;
}

.real-badge {
    background: #48bb78;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounceIn 0.6s ease;
}

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

.blurb-content {
    margin-bottom: 1.5rem;
}

.blurb-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
    font-style: italic;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    animation: slideIn 0.5s ease;
}

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

.book-cover {
    text-align: center;
    animation: flipIn 0.8s ease;
}

@keyframes flipIn {
    0% { transform: rotateY(-90deg); opacity: 0; }
    100% { transform: rotateY(0); opacity: 1; }
}

.cover-image {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

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

.book-title {
    display: block;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-author {
    color: #666;
    font-style: italic;
}

/* Voting Section */
.vote-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.vote-btn {
    width: 100%;
    background: #4299e1;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.vote-btn:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-2px);
}

.vote-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.vote-btn.voted {
    background: #48bb78;
}

.voters-list h4 {
    color: #4a5568;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.voter-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.voter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #48bb78;
    title: "Username";
}

/* Voter Boxes Container */
#voter-boxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Individual Voter Boxes */
.voter-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.voter-box.has-voters {
    border-color: #4299e1;
    background: #f8fafe;
}

.voter-box .voter-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.voter-box .voter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #4299e1;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.voter-box .voter-avatar:hover {
    transform: scale(1.1);
}

.voter-box:empty .voter-avatars::before {
    content: "No votes yet";
    color: #a0aec0;
    font-style: italic;
    display: block;
    text-align: center;
    width: 100%;
}

/* Admin Panel */
.admin-panel {
    background: #2d3748;
    color: white;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.admin-panel h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

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

.admin-section h3 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #4a5568;
    padding-bottom: 0.5rem;
}

/* Quick Actions Section */
.admin-section.quick-actions {
    background: #1a202c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #4a5568;
}

/* Collapsible Sections */
.admin-section.collapsible {
    border: 1px solid #4a5568;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.collapsible-header {
    cursor: pointer;
    padding: 1rem;
    background: #1a202c;
    margin: 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: #2d3748;
}

.collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #cbd5e0;
}

.collapsible-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    padding: 1.5rem;
    background: #2d3748;
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

.setup-controls {
    display: grid;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.control-group input[type="checkbox"] {
    transform: scale(1.2);
}

.control-group input[type="number"] {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #4a5568;
    background: #1a202c;
    color: white;
    width: 80px;
}

.blurb-setup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.book-input {
    background: #4a5568;
    padding: 1.5rem;
    border-radius: 12px;
}

.book-input h4 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
}

.book-input input,
.book-input textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid #718096;
    border-radius: 6px;
    background: #1a202c;
    color: white;
    font-size: 0.9rem;
}

.book-input input::placeholder,
.book-input textarea::placeholder {
    color: #a0aec0;
}

.book-input textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.admin-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.admin-btn.primary {
    background: #48bb78;
    color: white;
}

.admin-btn.primary:hover {
    background: #38a169;
}

.admin-btn:not(.primary):not(.danger) {
    background: #4299e1;
    color: white;
}

.admin-btn:not(.primary):not(.danger):hover {
    background: #3182ce;
}

.admin-btn.danger {
    background: #e53e3e;
    color: white;
}

.admin-btn.danger:hover {
    background: #c53030;
}

/* Preload Section */
.preload-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.preload-section h3 {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.preload-controls {
    display: grid;
    gap: 1.5rem;
}

.file-upload-area {
    text-align: center;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    background: #4a5568;
    color: #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #718096;
}

.file-label:hover {
    background: #2d3748;
    border-color: #4299e1;
}

.upload-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: bold;
}

.upload-status.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.upload-status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.preload-info {
    background: #4a5568;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.preload-info p {
    color: #e2e8f0;
    margin: 0.3rem 0;
}

.preload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Selection Interface */
.game-selection-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 2rem auto;
    text-align: center;
}

.game-selection-card h2 {
    color: #4a5568;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-option {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.game-option:hover:not(.disabled) {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.game-option.selected {
    border-color: #667eea;
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
}

.game-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(145deg, #f1f5f9, #f8fafc);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-option h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.game-option p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.game-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.game-option:not(.disabled) .game-status {
    background: #c6f6d5;
    color: #22543d;
}

.game-option.disabled .game-status {
    background: #fed7d7;
    color: #742a2a;
}

.selection-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Waiting Room */
.waiting-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.waiting-animation {
    margin-bottom: 2rem;
}

.book-animation {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loading-dots span {
    font-size: 2rem;
    color: #667eea;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.waiting-card h2 {
    color: #4a5568;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.waiting-card p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.current-game-info {
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.current-game-info h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.current-game-info span {
    color: #667eea;
    font-weight: bold;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    #game-status {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blurbs-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-actions {
        flex-direction: column;
    }

    .auth-card {
        padding: 2rem;
    }

    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .blurb-card {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .blurbs-grid {
        gap: 1rem;
    }
}

/* Cover Game Styles */
#cover-game-container {
    padding: 2rem 0;
}

.cover-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.cover-game-layout {
    display: grid;
    grid-template-columns: minmax(300px, 350px) 1fr minmax(300px, 400px);
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.cover-game-layout > .round-scoreboard {
    grid-column: 1;
    justify-self: end;
}

.cover-game-layout > .cover-image-container {
    grid-column: 2;
    justify-self: center;
}

.cover-game-layout > .winner-overlay,
.cover-game-layout > .too-bad-overlay {
    grid-column: 3;
    justify-self: start;
}

/* Round Scoreboard */
.round-scoreboard {
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.round-scoreboard h3 {
    margin: 0 0 1rem 0;
    color: #4a5568;
    text-align: center;
    font-size: 1.3rem;
}

.scoreboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: linear-gradient(145deg, #f8fafc, #edf2f7);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.score-entry:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.score-entry.top-score {
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    border-color: #f59e0b;
}

.score-entry.recent-winner {
    background: linear-gradient(145deg, #c6f6d5, #9ae6b4);
    border-color: #48bb78;
    animation: highlightScore 2s ease-in-out;
}

.score-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.score-username {
    font-weight: 600;
    color: #4a5568;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-points {
    font-weight: bold;
    color: #667eea;
    font-size: 1rem;
}

.score-entry.top-score .score-points {
    color: #d97706;
}

.score-entry.recent-winner .score-points {
    color: #22543d;
}

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

.cover-image-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(var(--blur-amount, 20px));
    transition: backdrop-filter 0.5s ease;
    pointer-events: none;
}

/* Winner Overlay */
.winner-overlay {
    position: relative;
    min-width: 350px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.5s ease-in-out;
}

.winner-overlay.hidden {
    display: none;
}

.winner-content {
    text-align: center;
    color: white;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.winner-badge {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1s ease-in-out infinite alternate;
}

.winner-info {
    margin-bottom: 1.5rem;
}

.winner-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.winner-answer {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.book-reveal .book-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e6f3ff;
}

.book-reveal .book-author {
    font-size: 1.2rem;
    color: #b3d9ff;
    font-style: italic;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Too Bad Overlay - similar to winner but with disappointed styling */
.too-bad-overlay {
    position: relative;
    min-width: 350px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.5s ease-in-out;
}

.too-bad-overlay.hidden {
    display: none;
}

.too-bad-content {
    text-align: center;
    color: white;
    padding: 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.too-bad-badge {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: shake 0.8s ease-in-out;
}

.too-bad-message {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .cover-game-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .cover-game-layout > .round-scoreboard,
    .cover-game-layout > .cover-image-container,
    .cover-game-layout > .winner-overlay,
    .cover-game-layout > .too-bad-overlay {
        grid-column: unset;
        justify-self: unset;
    }

    .winner-overlay {
        min-width: 300px;
        max-width: 350px;
        width: 100%;
    }

    .too-bad-overlay {
        min-width: 300px;
        max-width: 350px;
        width: 100%;
    }
}

.cover-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.cover-info .book-title {
    font-size: 2rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cover-info .book-author {
    font-size: 1.3rem;
    color: #718096;
    font-style: italic;
}

/* Player Answers Display */
#player-answers-display {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#player-answers-display h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.player-answer {
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.player-answer:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.player-answer.correct {
    border-color: #48bb78;
    background: linear-gradient(145deg, #f0fff4, #c6f6d5);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.twitch-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9146ff, #6441a4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.platform-tag {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
}

.discord-user + .platform-tag {
    background: #5865f2;
    color: white;
}

.twitch-user + .platform-tag {
    background: #9146ff;
    color: white;
}

.player-answer .username {
    font-weight: bold;
    color: #667eea;
}

.discord-user {
    color: #5865f2;
}

.twitch-user {
    color: #9146ff;
}

.player-answer .answer-text {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.player-answer .timestamp {
    font-size: 0.8rem;
    color: #a0aec0;
}

.linked-answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.linked-answer {
    background: linear-gradient(145deg, #fff5f5, #fed7e2);
    border: 2px solid #fc8181;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.linked-answer:hover {
    border-color: #e53e3e;
    transform: translateY(-2px);
}

.linked-answer.correct {
    border-color: #48bb78;
    background: linear-gradient(145deg, #f0fff4, #c6f6d5);
}

.linked-answer .discord-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.linked-answer .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.linked-answer .username {
    font-weight: bold;
    color: #4a5568;
}

.linked-answer .answer-text {
    color: #4a5568;
    font-size: 0.95rem;
}

/* Cover Admin Panel */
#cover-admin-panel {
    margin-top: 2rem;
}

.cover-setup-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upload-options {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.upload-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.upload-section h5 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.book-details-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.book-details-input input {
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.book-details-input input:focus {
    outline: none;
    border-color: #667eea;
}

.game-info {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.game-info p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.game-info span {
    color: #667eea;
    font-weight: bold;
}

.blur-info {
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.blur-info p {
    margin: 0.5rem 0;
    color: #2c5aa0;
    font-size: 0.9rem;
}

.blur-info strong {
    color: #1e3a8a;
}

/* Cover Queue Styles */
.cover-queue {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8fafc;
}

.empty-queue {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 2rem;
}

.queue-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item:last-child {
    margin-bottom: 0;
}

.queue-item.current {
    border-color: #667eea;
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
}

.queue-item-info {
    flex: 1;
}

.queue-item-title {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.queue-item-author {
    color: #718096;
    font-size: 0.9rem;
}

.queue-item-actions {
    display: flex;
    gap: 0.5rem;
}

.queue-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-btn.remove {
    background: #fed7d7;
    color: #c53030;
}

.queue-btn.remove:hover {
    background: #feb2b2;
}

.queue-btn.move-up {
    background: #c6f6d5;
    color: #22543d;
}

.queue-btn.move-up:hover {
    background: #9ae6b4;
}

.queue-btn.move-down {
    background: #fbb6ce;
    color: #702459;
}

.queue-btn.move-down:hover {
    background: #f687b3;
}

/* Cover Progress Display */
.cover-progress {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    border: 2px solid #d1d5db;
}

.queue-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Cover Game Responsive */
@media (max-width: 768px) {
    .cover-image-container {
        max-width: 300px;
    }

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

    .linked-answers-grid {
        grid-template-columns: 1fr;
    }

    .book-details-input {
        grid-template-columns: 1fr;
    }
}