/* Reset and Base Styles */
*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ITC Korinna', 'Korinna', Georgia, serif;
    background-color: #000;
    color: white;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(to bottom, #1a237e 0%, #0d1642 100%);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-center {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

/* Player Cards */
.player-card {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 5px 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 130px;
}

.player-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.player-card.active {
    background-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
}

.player-card.active .player-name-display,
.player-card.active .player-score {
    color: #1a237e;
}

.player-avatar {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: #ffd700;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.player-name-display {
    font-size: 11px;
    font-weight: bold;
    color: white;
    font-family: Impact, 'Arial Black', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.player-score {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #ffd700;
    white-space: nowrap;
    margin-left: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.controller-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff4444;
    transition: background-color 0.3s ease;
}

.status-indicator.connected {
    background-color: #44ff44;
    box-shadow: 0 0 8px #44ff44;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
    font-family: Impact, 'Arial Black', sans-serif;
}

.nav-btn:hover {
    background-color: #ffd700;
    color: #1a237e;
    border-color: #ffd700;
}

/* Game Board Grid */
.game-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 4px;
    background-color: #000;
    padding: 4px;
    flex: 1;
    overflow: hidden;
}

.category-header {
    background-color: #1a237e;
    color: white;
    font-family: 'Arial Narrow', 'Arial Black', Impact, sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    padding: 15px 8px;
    text-transform: uppercase;
    letter-spacing: 0px;
    border: none;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.question-cell {
    background-color: #1a237e;
    color: #ffd700;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    padding: 35px 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.question-cell:hover:not(.used) {
    background-color: #283593;
    transform: none;
}

.question-cell.used {
    background-color: #0d1642;
    color: #0d1642;
    cursor: default;
    opacity: 0.6;
}

/* Daily Double Overlay */
.daily-double-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-double-overlay.hidden {
    display: none;
}

.daily-double-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
}

/* Game Setup Modal */
.game-setup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-setup-modal.hidden {
    display: none;
}

.game-setup-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border: 3px solid #ffd700;
}

.game-setup-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 42px;
    color: #ffd700;
    text-align: center;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.game-setup-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0 0 30px 0;
}

.setup-players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.setup-player-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setup-player-number {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 20px;
    color: #ffd700;
    text-align: center;
    margin: 0 0 10px 0;
}

.setup-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 10px 15px;
    outline: none;
    font-family: Impact, 'Arial Black', sans-serif;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.setup-name-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
}

.setup-age-select {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-family: Impact, 'Arial Black', sans-serif;
}

.setup-age-select:hover,
.setup-age-select:focus {
    border-color: #ffd700;
    background-color: rgba(0, 0, 0, 0.4);
}

.setup-color-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 5px 0;
}

.setup-color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.setup-color-option:hover {
    transform: scale(1.15);
    border-color: white;
}

.setup-color-option.selected {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.setup-buzzer-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 5px;
    margin-top: 5px;
}

.setup-buzzer-info kbd {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    margin: 0 3px;
}

.game-setup-continue-btn {
    background-color: #ffd700;
    color: #1a237e;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.game-setup-continue-btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.6);
}

@media (max-width: 900px) {
    .setup-players-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Selection Modal */
.category-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-selection-modal.hidden {
    display: none;
}

.category-selection-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border: 3px solid #ffd700;
}

.category-selection-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 32px;
    color: #ffd700;
    text-align: center;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-selection-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0 0 25px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
}

.category-display-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
}

.category-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 13px;
    color: white;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: scale(1.05);
}

.category-item.selected {
    background-color: #ffd700;
    color: #1a237e;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.category-display-item {
    background-color: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 18px;
    color: white;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.category-selection-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-category-random,
.btn-category-start {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-category-random {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-category-random:hover {
    background-color: white;
    color: #1a237e;
}

.btn-category-start {
    background-color: #ffd700;
    color: #1a237e;
}

.btn-category-start:hover:not(:disabled) {
    background-color: white;
    transform: scale(1.05);
}

.btn-category-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Settings Modal */
.player-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-settings-modal.hidden {
    display: none;
}

.player-settings-content {
    background-color: #1a237e;
    border-radius: 8px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-settings-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 24px;
    color: #ffd700;
    margin: 0 0 20px 0;
    text-align: center;
}

.player-settings-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.player-settings-close:hover {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

.player-settings-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: -6px;
}

.settings-label:first-of-type {
    margin-top: 0;
}

.settings-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 10px 15px;
    outline: none;
    font-family: Impact, 'Arial Black', sans-serif;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.settings-name-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
}

.settings-age-select {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-family: Impact, 'Arial Black', sans-serif;
}

.settings-age-select:hover {
    border-color: #ffd700;
    background-color: rgba(0, 0, 0, 0.4);
}

.color-picker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 10px 0;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.15);
    border-color: white;
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.settings-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 10px;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-info kbd {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    margin: 0 3px;
}

.settings-done-btn {
    background-color: #ffd700;
    color: #1a237e;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.2s ease;
}

.settings-done-btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

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

.modal-content {
    background-color: #1a237e;
    color: white;
    padding: 60px;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: none;
    padding-bottom: 0;
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
}

.modal-category {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
}

.modal-value {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 96px;
    color: #ffd700;
    font-weight: 900;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.modal-body {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 200px 80px 80px 80px;
}

.question-clue {
    font-family: 'Swiss 911 Extra Compressed', 'Helvetica Condensed', 'Arial Narrow', 'Impact', sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 1400px;
    padding: 40px;
}

.buzzer-section {
    margin-bottom: 20px;
}

.buzzer-prompt {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.timer-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.timer-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #ffd700;
    animation: timerCountdown 10s linear;
}

@keyframes timerCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

.answer-section {
    margin-top: 20px;
}

.current-player {
    font-size: 22px;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: bold;
}

.answer-reveal {
    margin-bottom: 20px;
}

.question-answer {
    font-size: 24px;
    color: #ffd700;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid #ffd700;
}

.scoring-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 60px;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-correct {
    background-color: #44ff44;
    color: #060CE9;
}

.btn-correct:hover {
    background-color: #33dd33;
    transform: scale(1.05);
}

.btn-wrong {
    background-color: #ff4444;
    color: white;
}

.btn-wrong:hover {
    background-color: #dd3333;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: white;
    color: #060CE9;
    padding: 12px 24px;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

.reveal-btn {
    background-color: #ffd700;
    color: #060CE9;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.reveal-btn:hover {
    background-color: white;
    transform: scale(1.05);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .logo {
        font-size: 56px;
        letter-spacing: 6px;
    }

    .logo-image {
        max-width: 400px;
    }

    .game-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .question-cell {
        font-size: 28px;
        padding: 30px 10px;
        min-height: 100px;
    }

    .category-header {
        font-size: 16px;
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 42px;
        letter-spacing: 4px;
    }

    .logo-image {
        max-width: 300px;
    }

    .game-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 1px;
    }

    .question-cell {
        font-size: 24px;
        padding: 20px 5px;
        min-height: 80px;
    }

    .category-header {
        font-size: 14px;
        padding: 15px 5px;
        min-height: 50px;
    }

    .score-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .player-score {
        font-size: 24px;
    }

    .modal-content {
        padding: 20px;
    }

    .question-clue {
        font-size: 20px;
    }

    .modal-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .logo-image {
        max-width: 250px;
    }

    .game-board {
        grid-template-columns: 1fr;
    }

    .question-cell {
        font-size: 20px;
    }

    .scoring-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ============================================================================
   WAGER MODAL (Daily Double)
   ============================================================================ */

.wager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wager-modal.hidden {
    display: none;
}

.wager-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 3px solid #ffd700;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.wager-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 48px;
    color: #ffd700;
    margin: 0 0 20px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

.wager-player {
    font-size: 24px;
    color: white;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.wager-instructions {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.wager-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wager-info p {
    margin: 8px 0;
    font-size: 16px;
    color: white;
}

.wager-info span {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.wager-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: Impact, 'Arial Black', sans-serif;
    margin-bottom: 20px;
}

.wager-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.wager-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wager-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.wager-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.wager-confirm {
    background-color: #ffd700;
    color: #1a237e;
}

.wager-confirm:hover {
    background-color: white;
}

/* ============================================================================
   ROUND TRANSITION MODAL
   ============================================================================ */

.round-transition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.round-transition-modal.hidden {
    display: none;
}

.round-transition-content {
    text-align: center;
    padding: 60px;
}

.round-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 80px;
    color: #ffd700;
    margin: 0 0 30px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.round-subtitle {
    font-size: 28px;
    color: white;
    margin: 0 0 40px 0;
}

.round-confirm-btn {
    background-color: #ffd700;
    color: #1a237e;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.round-confirm-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

/* ============================================================================
   FINAL JEOPARDY MODALS
   ============================================================================ */

.final-jeopardy-category-modal,
.final-jeopardy-clue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-jeopardy-category-modal.hidden,
.final-jeopardy-clue-modal.hidden {
    display: none;
}

.final-jeopardy-category-content,
.final-jeopardy-clue-content {
    text-align: center;
    padding: 60px;
    max-width: 90%;
}

.final-jeopardy-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 72px;
    color: #ffd700;
    margin: 0 0 40px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.final-jeopardy-label {
    font-size: 32px;
    color: white;
    margin: 0 0 20px 0;
    font-style: italic;
}

.final-jeopardy-category-name,
.final-jeopardy-category-display {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 56px;
    color: #ffd700;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.final-jeopardy-instructions {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

.final-jeopardy-continue-btn,
.final-jeopardy-reveal-btn,
.final-jeopardy-score-btn {
    background-color: #ffd700;
    color: #1a237e;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    margin-top: 20px;
}

.final-jeopardy-continue-btn:hover,
.final-jeopardy-reveal-btn:hover,
.final-jeopardy-score-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.final-jeopardy-clues {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px;
}

.final-clue-section {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
}

.final-clue-label {
    font-size: 20px;
    color: #ffd700;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.final-clue-text {
    font-family: 'Swiss 911 Extra Compressed', 'Helvetica Condensed', 'Arial Narrow', 'Impact', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.final-jeopardy-answer {
    font-size: 32px;
    color: #ffd700;
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(255, 215, 0, 0.15);
    border: 3px solid #ffd700;
    border-radius: 12px;
    font-weight: bold;
}

/* Final Wager Modal */
.final-wager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-wager-modal.hidden {
    display: none;
}

.final-wager-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 3px solid #ffd700;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.final-wager-player-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 32px;
    color: #ffd700;
    margin: 0 0 20px 0;
}

.final-wager-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.final-wager-info p {
    margin: 8px 0;
    font-size: 16px;
    color: white;
}

.final-wager-info span {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.final-wager-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: Impact, 'Arial Black', sans-serif;
    margin-bottom: 20px;
}

.final-wager-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.final-wager-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.final-wager-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.final-wager-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.final-wager-confirm {
    background-color: #ffd700;
    color: #1a237e;
}

.final-wager-confirm:hover {
    background-color: white;
}

/* Final Scoring Modal */
.final-scoring-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-scoring-modal.hidden {
    display: none;
}

.final-scoring-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border: 3px solid #ffd700;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.final-scoring-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 36px;
    color: #ffd700;
    text-align: center;
    margin: 0 0 30px 0;
}

.final-scoring-players {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.final-scoring-player {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-scoring-player-info {
    text-align: left;
}

.final-scoring-player-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.final-scoring-wager {
    font-size: 16px;
    color: #ffd700;
}

.final-scoring-buttons {
    display: flex;
    gap: 10px;
}

.final-scoring-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-scoring-correct {
    background-color: #44ff44;
    color: #060CE9;
}

.final-scoring-correct:hover,
.final-scoring-correct.selected {
    background-color: #33dd33;
    box-shadow: 0 0 15px #44ff44;
}

.final-scoring-wrong {
    background-color: #ff4444;
    color: white;
}

.final-scoring-wrong:hover,
.final-scoring-wrong.selected {
    background-color: #dd3333;
    box-shadow: 0 0 15px #ff4444;
}

.final-scoring-done-btn {
    width: 100%;
    background-color: #ffd700;
    color: #1a237e;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-scoring-done-btn:hover {
    background-color: white;
    transform: scale(1.05);
}

/* ============================================================================
   WINNER MODAL
   ============================================================================ */

.winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.winner-content {
    text-align: center;
    padding: 60px;
    max-width: 90%;
}

.winner-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 72px;
    color: #ffd700;
    margin: 0 0 50px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 6px 6px 12px rgba(255, 215, 0, 0.8);
    }
}

.winner-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin: 50px 0;
}

.winner-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 1s ease-out;
}

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

.winner-place-number {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 10px;
}

.winner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 10px;
}

.winner-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.winner-score {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 28px;
    color: #ffd700;
}

.winner-place.first {
    order: 2;
}

.winner-place.first .winner-avatar {
    width: 120px;
    height: 120px;
    border-width: 6px;
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.winner-place.first .winner-place-number {
    font-size: 48px;
}

.winner-place.first .winner-name {
    font-size: 32px;
}

.winner-place.first .winner-score {
    font-size: 36px;
}

.winner-place.second {
    order: 1;
}

.winner-place.third {
    order: 3;
}

.winner-new-game-btn {
    background-color: #ffd700;
    color: #1a237e;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    margin-top: 40px;
}

.winner-new-game-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

/* ============================================================================
   STREAK BADGE
   ============================================================================ */

.streak-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6e40;
    color: white;
    font-size: 9px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    padding: 3px 6px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: badgePulse 1s ease-in-out infinite;
}

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

/* ============================================================================
   STREAK REWARD MODAL (3-in-a-row)
   ============================================================================ */

.streak-reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-reward-modal.hidden {
    display: none;
}

.streak-reward-content {
    background-color: #1a237e;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    border: 3px solid #ff6e40;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.streak-reward-content h2 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 42px;
    color: #ff6e40;
    margin: 0 0 20px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.streak-reward-content p {
    font-size: 20px;
    color: white;
    margin: 0 0 30px 0;
}

.streak-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.category-pick-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    font-family: Impact, 'Arial Black', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-pick-btn:hover {
    background-color: #ffd700;
    color: #1a237e;
    transform: scale(1.05);
}

/* ============================================================================
   OPPORTUNITY MODAL (5-in-a-row)
   ============================================================================ */

.opportunity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunity-modal.hidden {
    display: none;
}

.opportunity-content {
    text-align: center;
    padding: 60px;
    background-color: #1a237e;
    border-radius: 12px;
    border: 4px solid #44ff44;
    box-shadow: 0 0 40px rgba(68, 255, 68, 0.6);
    animation: opportunityGlow 1.5s ease-in-out infinite;
}

@keyframes opportunityGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(68, 255, 68, 0.6);
    }
    50% {
        box-shadow: 0 0 60px rgba(68, 255, 68, 0.9);
    }
}

.opportunity-content h2 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 56px;
    color: #44ff44;
    margin: 0 0 20px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: opportunityPulse 1s ease-in-out infinite;
}

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

.opportunity-content p {
    font-size: 24px;
    color: white;
    margin: 10px 0;
    font-weight: bold;
}

/* ============================================================================
   REPORT QUESTION MODAL
   ============================================================================ */

.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.report-modal.hidden {
    display: none;
}

.report-content {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffffff;
    position: relative;
}

.report-title {
    color: white;
    font-size: 32px;
    margin: 0 0 20px 0;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-align: center;
}

.report-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.report-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.report-body {
    color: white;
}

.report-question-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.5;
    border-left: 4px solid #FFD740;
}

.report-label {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.report-reasons {
    display: grid;
    gap: 12px;
}

.report-reason-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: center;
    text-align: left;
}

.report-reason-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-reason-btn:active {
    transform: translateY(0);
}

.report-icon {
    grid-row: 1 / 3;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.report-desc {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.report-success {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    animation: slideIn 0.3s ease-out;
}

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

.report-success.hidden {
    display: none;
}

/* Report Button (floats in bottom-right of question modal) */
.report-question-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5252 0%, #E91E63 100%);
    border: 3px solid white;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 9999;
    display: none;
}

.report-question-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5);
}

.report-question-btn:active {
    transform: scale(0.95);
}

.report-question-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   TEACHER CURSOR (Controller Navigation)
   ============================================================================ */

.teacher-cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.05s linear;
}

.teacher-cursor.hidden {
    display: none;
}

.cursor-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 64, 0.8) 0%, rgba(255, 152, 0, 0.6) 60%, transparent 100%);
    border: 3px solid #FFD740;
    box-shadow: 0 0 20px rgba(255, 215, 64, 0.8),
                0 0 40px rgba(255, 215, 64, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: cursorPulse 1.5s ease-in-out infinite;
}

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

.teacher-cursor::after {
    content: '👆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Highlight effect when cursor is over a clickable element */
.teacher-cursor.hovering .cursor-inner {
    background: radial-gradient(circle, rgba(76, 255, 64, 0.9) 0%, rgba(0, 255, 0, 0.7) 60%, transparent 100%);
    border-color: #4CFF40;
    box-shadow: 0 0 30px rgba(76, 255, 64, 0.9),
                0 0 50px rgba(76, 255, 64, 0.5),
                inset 0 0 20px rgba(255, 255, 255, 0.5);
    animation: cursorClickPulse 0.6s ease-in-out infinite;
}

@keyframes cursorClickPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.3);
    }
}
