/* Reset and base styles with modern enhancements */
* {
    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 50%, #ff7b89 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated floating elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 105, 180, 0.1) 0%, transparent 50%);
    animation: floatingElements 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatingElements {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 1; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 100px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: containerGlow 10s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 100px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 150px rgba(255, 215, 0, 0.2); }
}

.game-header {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6b6b 100%);
    padding: 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.game-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.05); text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4); }
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.section {
    padding: 40px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.6) 100%
    );
    transition: all 0.3s ease;
}

.section:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2, #ff7b89);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced buttons */
.start-btn, .category-btn, .option-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin: 10px;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
}

.start-btn::before, .category-btn::before, .option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.start-btn:hover::before, .category-btn:hover::before, .option-btn:hover::before {
    left: 100%;
}

.start-btn:hover, .category-btn:hover, .option-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.4),
        0 0 50px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.start-btn:active, .category-btn:active, .option-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Category buttons specific styling */
.categories, .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    padding: 25px;
    border-radius: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-btn .emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.category-btn:nth-child(even) {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.category-btn:nth-child(3n) {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.category-btn:nth-child(4n) {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.category-btn:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.4);
}

/* Enhanced input styling */
input[type="number"], input[type="text"], select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 10px 0;
}

input[type="number"]:focus, input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 10px 25px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

/* Player setup styling */
.player-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.player-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.player-name-input {
    margin: 15px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.player-name-input:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    transform: scale(1.01);
}

.player-name-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Current player indicator enhancement */
.current-player-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 25px 0;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: playerPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.current-player-indicator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: playerShimmer 4s linear infinite;
}

@keyframes playerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 20px 45px rgba(102, 126, 234, 0.4); }
}

@keyframes playerShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Question display enhancements */
.question-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.question-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: headerShine 6s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.current-player {
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.question-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
    position: relative;
}

.timer {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: timerPulse 1s ease-in-out infinite;
    z-index: 1;
    position: relative;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer.warning {
    background: linear-gradient(135deg, #ff3742, #ff1744);
    animation: timerWarning 0.5s ease-in-out infinite;
}

@keyframes timerWarning {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 55, 66, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 55, 66, 0.8); }
}

.question {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 35px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.question::before {
    content: '❓';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
    animation: questionIcon 4s ease-in-out infinite;
}

@keyframes questionIcon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

/* Enhanced answer buttons */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.answers-grid button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.answers-grid button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.answers-grid button:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.3),
        0 0 25px rgba(255, 215, 0, 0.3);
}

.answers-grid button:hover::before {
    left: 100%;
}

.answers-grid button.correct {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border-color: #00b894;
    animation: correctAnswer 0.6s ease-out;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.answers-grid button.wrong {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border-color: #ff6b6b;
    animation: wrongAnswer 0.6s ease-out;
}

@keyframes wrongAnswer {
    0% { transform: scale(1); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

/* Enhanced lifelines */
.lifelines {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.lifeline-btn {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: #333;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(254, 202, 87, 0.3);
    min-width: 120px;
}

.lifeline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.lifeline-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lifeline-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(254, 202, 87, 0.4);
}

.lifeline-btn:disabled {
    background: linear-gradient(135deg, #ddd, #bbb);
    color: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.lifeline-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced change category button */
#changeCategoryBtn {
    background: linear-gradient(135deg, #ffc107, #ff8c00) !important;
    color: #333 !important;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

#changeCategoryBtn:hover {
    background: linear-gradient(135deg, #ff8c00, #ff6b35) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.4);
}

/* Player options grid enhancement */
.player-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 700px;
    margin: 30px auto;
}

.option-card {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 255, 255, 0.1)
    );
    animation: cardShine 4s ease-in-out infinite;
}

@keyframes cardShine {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.option-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.option-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.option-card p {
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.option-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.option-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.option-btn:disabled {
    background: linear-gradient(135deg, #ddd, #bbb);
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Scoreboard enhancements */
.scoreboard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.player-score {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.player-score:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.player-score:nth-child(even) {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.player-score:nth-child(3n) {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

/* Header buttons styling */
.header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stats-btn, .help-btn, .sound-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-btn:hover, .help-btn:hover, .sound-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced icon animations */
.emoji, .fas {
    transition: all 0.3s ease;
}

.category-btn:hover .emoji,
.category-btn:hover .fas {
    transform: scale(1.2) rotate(5deg);
}

.lifeline-btn:hover .fas {
    transform: scale(1.1) rotate(10deg);
}

/* Enhanced Icon Styling */
.fas, .far, .fab {
    transition: all 0.3s ease;
    margin-right: 8px;
}

/* Icon animations for different contexts */
.category-btn .fas {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: iconFloat 3s ease-in-out infinite;
    display: block;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.lifeline-btn .fas {
    margin-right: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.lifeline-btn:hover .fas {
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Header icons */
.game-header .fas {
    margin: 0 10px;
    animation: headerIconPulse 4s ease-in-out infinite;
}

@keyframes headerIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button icons */
.start-btn .fas,
.option-btn .fas,
.reset-btn .fas {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.start-btn:hover .fas,
.option-btn:hover .fas,
.reset-btn:hover .fas {
    transform: scale(1.1);
}

/* Player indicator icons */
.current-player-indicator .fas {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 8px;
    animation: indicatorGlow 2s ease-in-out infinite;
}

@keyframes indicatorGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
}

/* Question header icons */
.question-header .fas {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.9);
}

/* Modal close icon */
.close .fas {
    font-size: 1.5rem;
    color: #999;
    transition: all 0.3s ease;
}

.close:hover .fas {
    color: #667eea;
    transform: scale(1.2) rotate(90deg);
}

/* Timer icon enhancement */
.timer .fas {
    margin-right: 8px;
    animation: timerIconSpin 2s linear infinite;
}

@keyframes timerIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timer.warning .fas {
    animation: timerIconShake 0.5s ease-in-out infinite;
}

@keyframes timerIconShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Section title icons */
.section h2 .fas {
    margin: 0 10px;
    animation: sectionIconFloat 3s ease-in-out infinite;
}

@keyframes sectionIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Option card icons */
.option-card .fas {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.option-card:hover .fas {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Input label icons */
label .fas {
    color: #667eea;
    margin-right: 8px;
}

/* Player name input icons */
.player-name-input label .fas {
    color: #667eea;
    animation: inputIconPulse 3s ease-in-out infinite;
}

@keyframes inputIconPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Category stats icons */
.category-stats .fas {
    margin-right: 5px;
    color: #667eea;
}

/* Scoreboard icons */
.player-score .fas {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Scoreboard Table Styles */
.scoreboard-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    overflow: hidden;
    border-radius: 15px;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table thead th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.results-table thead th:first-child {
    border-top-left-radius: 15px;
}

.results-table thead th:last-child {
    border-top-right-radius: 15px;
}

.results-table thead th i {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.results-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.results-table tbody tr.winner-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.results-table tbody tr.second-place {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
}

.results-table tbody tr.third-place {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1));
}

.results-table td {
    padding: 15px 12px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.results-table td:last-child {
    border-right: none;
}

/* Rank Cell Styles */
.rank-cell {
    font-weight: bold;
    font-size: 18px;
    width: 80px;
}

.rank-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.fa-crown.gold {
    color: #ffd700;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.fa-medal.silver {
    color: #c0c0c0;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.fa-medal.bronze {
    color: #cd7f32;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

@keyframes crownGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Player Info Styles */
.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-info i {
    color: #667eea;
    font-size: 16px;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Score Display Styles */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.score-number {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Questions Display Styles */
.questions-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.questions-number {
    font-size: 18px;
    font-weight: 600;
    color: #764ba2;
}

.questions-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Display Styles */
.category-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-display i {
    color: #ff7b89;
    font-size: 16px;
}

.category-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Success Rate Styles */
.success-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rate-bar {
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7b89, #667eea);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.rate-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rate-text {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

/* Responsive Design for Table */
@media (max-width: 768px) {
    .scoreboard-table {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .results-table {
        font-size: 12px;
        border-radius: 10px;
    }
    
    .results-table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .results-table thead th i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .results-table td {
        padding: 10px 6px;
    }
    
    .score-number {
        font-size: 16px;
    }
    
    .questions-number {
        font-size: 14px;
    }
    
    .player-name {
        font-size: 13px;
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .rate-bar {
        width: 40px;
        height: 6px;
    }
    
    .rate-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .scoreboard-table {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .results-table {
        font-size: 10px;
        border-radius: 8px;
    }
    
    .results-table thead th {
        padding: 8px 4px;
        font-size: 9px;
    }
    
    .results-table td {
        padding: 8px 4px;
    }
    
    .player-info {
        flex-direction: column;
        gap: 2px;
    }
    
    .category-display {
        flex-direction: column;
        gap: 2px;
    }
    
    .score-display,
    .questions-display {
        gap: 1px;
    }
    
    .rate-bar {
        width: 30px;
        height: 4px;
    }
}

/* Table animation on load */
.results-table tbody tr {
    opacity: 0;
    transform: translateY(20px);
    animation: tableRowAppear 0.5s ease forwards;
}

.results-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.results-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.results-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.results-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.results-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.results-table tbody tr:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes tableRowAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight current player */
.player-row.current-player {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 171, 0, 0.2));
    border: 2px solid #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.player-row.current-player::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #ffc107, #ff8c00);
}

/* Loading animation for better UX */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #667eea;
}

/* Enhanced feedback styles */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 40px;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    z-index: 1000;
    animation: feedbackShow 0.5s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@keyframes feedbackShow {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.feedback.correct {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.feedback.wrong {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

/* Glowing effects for special elements */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* Professional Results Table Styles */
.scoreboard-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    overflow: hidden;
    border-radius: 15px;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table thead th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.results-table thead th:first-child {
    border-top-left-radius: 15px;
}

.results-table thead th:last-child {
    border-top-right-radius: 15px;
}

.results-table thead th i {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.results-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.results-table tbody tr.winner-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.results-table tbody tr.second-place {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
}

.results-table tbody tr.third-place {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1));
}

.results-table td {
    padding: 15px 12px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.results-table td:last-child {
    border-right: none;
}

/* Rank Cell Styles */
.rank-cell {
    font-weight: bold;
    font-size: 18px;
    width: 80px;
}

.rank-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.fa-crown.gold {
    color: #ffd700;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.fa-medal.silver {
    color: #c0c0c0;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.fa-medal.bronze {
    color: #cd7f32;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

@keyframes crownGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Player Info Styles */
.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-info i {
    color: #667eea;
    font-size: 16px;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Score Display Styles */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.score-number {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Questions Display Styles */
.questions-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.questions-number {
    font-size: 18px;
    font-weight: 600;
    color: #764ba2;
}

.questions-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Display Styles */
.category-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-display i {
    color: #ff7b89;
    font-size: 16px;
}

.category-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Success Rate Styles */
.success-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rate-bar {
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7b89, #667eea);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.rate-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rate-text {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

/* Responsive Design for Table */
@media (max-width: 768px) {
    .scoreboard-table {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .results-table {
        font-size: 12px;
        border-radius: 10px;
    }
    
    .results-table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .results-table thead th i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .results-table td {
        padding: 10px 6px;
    }
    
    .score-number {
        font-size: 16px;
    }
    
    .questions-number {
        font-size: 14px;
    }
    
    .player-name {
        font-size: 13px;
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .rate-bar {
        width: 40px;
        height: 6px;
    }
    
    .rate-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .scoreboard-table {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .results-table {
        font-size: 10px;
        border-radius: 8px;
    }
    
    .results-table thead th {
        padding: 8px 4px;
        font-size: 9px;
    }
    
    .results-table td {
        padding: 8px 4px;
    }
    
    .player-info {
        flex-direction: column;
        gap: 2px;
    }
    
    .category-display {
        flex-direction: column;
        gap: 2px;
    }
    
    .score-display,
    .questions-display {
        gap: 1px;
    }
    
    .rate-bar {
        width: 30px;
        height: 4px;
    }
}

/* Table animation on load */
.results-table tbody tr {
    opacity: 0;
    transform: translateY(20px);
    animation: tableRowAppear 0.5s ease forwards;
}

.results-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.results-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.results-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.results-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.results-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.results-table tbody tr:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes tableRowAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight current player */
.player-row.current-player {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 171, 0, 0.2));
    border: 2px solid #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.player-row.current-player::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #ffc107, #ff8c00);
}

/* Loading animation for better UX */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #667eea;
}

/* Enhanced feedback styles */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 40px;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    z-index: 1000;
    animation: feedbackShow 0.5s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@keyframes feedbackShow {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.feedback.correct {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.feedback.wrong {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

/* Glowing effects for special elements */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* Professional Results Table Styles */
.scoreboard-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    overflow: hidden;
    border-radius: 15px;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table thead th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.results-table thead th:first-child {
    border-top-left-radius: 15px;
}

.results-table thead th:last-child {
    border-top-right-radius: 15px;
}

.results-table thead th i {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.results-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.results-table tbody tr.winner-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.results-table tbody tr.second-place {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
}

.results-table tbody tr.third-place {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1));
}

.results-table td {
    padding: 15px 12px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.results-table td:last-child {
    border-right: none;
}

/* Rank Cell Styles */
.rank-cell {
    font-weight: bold;
    font-size: 18px;
    width: 80px;
}

.rank-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.fa-crown.gold {
    color: #ffd700;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.fa-medal.silver {
    color: #c0c0c0;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.fa-medal.bronze {
    color: #cd7f32;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

@keyframes crownGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Player Info Styles */
.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-info i {
    color: #667eea;
    font-size: 16px;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Score Display Styles */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.score-number {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Questions Display Styles */
.questions-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.questions-number {
    font-size: 18px;
    font-weight: 600;
    color: #764ba2;
}

.questions-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Display Styles */
.category-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-display i {
    color: #ff7b89;
    font-size: 16px;
}

.category-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Success Rate Styles */
.success-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rate-bar {
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7b89, #667eea);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.rate-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rate-text {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

/* Responsive Design for Table */
@media (max-width: 768px) {
    .scoreboard-table {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .results-table {
        font-size: 12px;
        border-radius: 10px;
    }
    
    .results-table thead th {
        padding: 12px 8px;
        font-size: 