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

:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-dim: #707070;
    --accent: #4a90e2;
    --accent-bright: #5aa3f2;
    --success: #44dd88;
    --warning: #ffaa44;
    --error: #ff4444;
    --border: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Mode Selection */
.mode-selection {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.2s;
    z-index: 100;
}

.home-link:hover {
    color: var(--accent);
}

.mode-selection header {
    margin-bottom: 60px;
}

.logo {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 6px;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.tagline {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 400px));
    gap: 30px;
    margin-bottom: 40px;
}

.mode-card {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mode-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.mode-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.1);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mode-card h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.mode-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.mode-btn:hover {
    background: var(--accent-bright);
    transform: scale(1.05);
}

/* Game Screen */
.game-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    gap: 20px;
    position: relative;
}

.header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.na-logo {
    height: 40px;
    width: auto;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}
/* Topic Selector */
.topic-selector {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.topic-selector label {
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 1px;
    white-space: nowrap;
}

.topic-dropdown {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
    min-width: 300px;
    transition: all 0.2s ease;
}

.topic-dropdown:hover {
    border-color: var(--accent);
}

.topic-dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.topic-dropdown option {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    padding: 8px 12px;
    padding: 10px;
}

.shuffle-btn {
    background: linear-gradient(145deg, #5aa3f0, #3d7fc7);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 
        0 0 15px rgba(74, 144, 226, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.shuffle-btn:hover {
    background: linear-gradient(145deg, #6bb4ff, #4a8fd8);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 0 25px rgba(74, 144, 226, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.shuffle-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0 15px rgba(74, 144, 226, 0.4),
        inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Wheel Style Selector */
.wheel-style-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.style-label {
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.style-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.style-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-tag:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(74, 144, 226, 0.1);
}

.style-tag.active {
    background: linear-gradient(145deg, #4a90e2, #357abd);
    border-color: #5aa3f2;
    color: white;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.4);
}

/* Modal toggle switch */
.modal-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
}

.modal-toggle input[type="checkbox"] {
    width: 36px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.modal-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.modal-toggle input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent-bright);
}

.modal-toggle input[type="checkbox"]:checked::before {
    transform: translateX(16px);
    background: white;
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.audio-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mute-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
}

.mute-btn:hover {
    border-color: var(--accent);
    background: rgba(74, 144, 226, 0.1);
}

.mute-btn.muted {
    border-color: var(--warning);
    background: rgba(255, 170, 68, 0.1);
}

.mute-icon {
    display: inline-block;
}

.volume-slider {
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-bright);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-bright);
}

.tick-style-select {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    /* Hide tick sound selector for now */
    display: none !important;
}

/* Hide the label for tick sound selector too */
.audio-group:has(.tick-style-select) {
    display: none !important;
}

.tick-style-select:hover {
    border-color: var(--accent);
    background: rgba(74, 144, 226, 0.1);
}

.tick-style-select:focus {
    outline: none;
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.audio-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Gilded style tag */
.style-tag[data-style="gilded"] {
    border-color: rgba(255, 215, 0, 0.3);
}

.style-tag[data-style="gilded"]:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.style-tag[data-style="gilded"].active {
    background: linear-gradient(145deg, #d4a017, #c5941a);
    border-color: #ffd700;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

/* Ruby style tag */
.style-tag[data-style="ruby"] {
    border-color: rgba(196, 30, 58, 0.3);
}

.style-tag[data-style="ruby"]:hover {
    border-color: #c41e3a;
    background: rgba(196, 30, 58, 0.15);
}

.style-tag[data-style="ruby"].active {
    background: linear-gradient(145deg, #c41e3a, #8b1428);
    border-color: #ff6b6b;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.4);
}

/* Retro style tag */
.style-tag[data-style="retro"] {
    border-color: rgba(78, 205, 196, 0.3);
}

.style-tag[data-style="retro"]:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
}

.style-tag[data-style="retro"].active {
    background: linear-gradient(145deg, #4ecdc4, #26a69a);
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(78, 205, 196, 0.4);
}

/* Neon style tag */
.style-tag[data-style="neon"] {
    border-color: rgba(255, 0, 255, 0.3);
}

.style-tag[data-style="neon"]:hover {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.style-tag[data-style="neon"].active {
    background: linear-gradient(145deg, #ff00ff, #8000ff);
    border-color: #00ffff;
    box-shadow: 0 2px 6px rgba(255, 0, 255, 0.5), 0 0 12px rgba(0, 255, 255, 0.3);
}

/* Clean style tag */
.style-tag[data-style="clean"] {
    border-color: rgba(160, 160, 160, 0.3);
}

.style-tag[data-style="clean"]:hover {
    border-color: #a0a0a0;
    background: rgba(160, 160, 160, 0.1);
}

.style-tag[data-style="clean"].active {
    background: linear-gradient(145deg, #606060, #404040);
    border-color: #808080;
    box-shadow: 0 2px 6px rgba(100, 100, 100, 0.4);
}

/* Bronze style tag */
.style-tag[data-style="bronze"] {
    border-color: rgba(205, 127, 50, 0.3);
}

.style-tag[data-style="bronze"]:hover {
    border-color: #cd7f32;
    background: rgba(205, 127, 50, 0.15);
}

.style-tag[data-style="bronze"].active {
    background: linear-gradient(145deg, #cd7f32, #8b5a2b);
    border-color: #d4a574;
    box-shadow: 0 2px 6px rgba(205, 127, 50, 0.4);
}

/* Cathedral style tag */
.style-tag[data-style="cathedral"] {
    border-color: rgba(92, 58, 90, 0.3);
}

.style-tag[data-style="cathedral"]:hover {
    border-color: #5c3a5a;
    background: rgba(92, 58, 90, 0.15);
}

.style-tag[data-style="cathedral"].active {
    background: linear-gradient(145deg, #5c3a5a, #3a5c5a);
    border-color: #7a5a7a;
    box-shadow: 0 2px 6px rgba(92, 58, 90, 0.4);
}

/* Galaxy style tag */
.style-tag[data-style="galaxy"] {
    border-color: rgba(139, 92, 246, 0.3);
}

.style-tag[data-style="galaxy"]:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.style-tag[data-style="galaxy"].active {
    background: linear-gradient(145deg, #6366f1, #8b5cf6);
    border-color: #a855f7;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5), 0 0 10px rgba(236, 72, 153, 0.3);
}

/* Earth style tag */
.style-tag[data-style="earth"] {
    border-color: rgba(138, 154, 125, 0.3);
}

.style-tag[data-style="earth"]:hover {
    border-color: #8a9a7d;
    background: rgba(138, 154, 125, 0.15);
}

.style-tag[data-style="earth"].active {
    background: linear-gradient(145deg, #8a9a7d, #6a7a5d);
    border-color: #a8b898;
    box-shadow: 0 2px 6px rgba(138, 154, 125, 0.4);
}

.game-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.exit-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Wheel Container */
.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.wheel-pointer {
    position: absolute;
    top: 50%;
    right: 5px;
    left: auto;
    transform: translateY(-50%) rotate(90deg);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.wheel-pointer svg {
    display: block;
    animation: pointerPulse 2s ease-in-out infinite;
}

@keyframes pointerPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    display: block;
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    
    /* 3D gradient effect - simulating metallic surface */
    background: linear-gradient(145deg, #5aa3f0, #3d7fc7);
    
    /* Multi-layered border for 3D depth */
    border: 3px solid #1a1a1a;
    box-shadow: 
        /* Outer glow */
        0 0 30px rgba(74, 144, 226, 0.5),
        /* Main shadow for depth */
        0 8px 25px rgba(0, 0, 0, 0.6),
        /* Inner highlight (top) */
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        /* Inner shadow (bottom) */
        inset 0 -4px 8px rgba(0, 0, 0, 0.4),
        /* Outer ring highlight */
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    
    color: white;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05) translateY(-2px);
    background: linear-gradient(145deg, #6bb4ff, #4a8fd8);
    box-shadow: 
        0 0 40px rgba(74, 144, 226, 0.8),
        0 12px 35px rgba(0, 0, 0, 0.7),
        inset 0 4px 12px rgba(255, 255, 255, 0.4),
        inset 0 -4px 10px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 215, 0, 0.5),
        0 0 0 5px rgba(255, 255, 255, 0.2);
}

.spin-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.spin-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.98) translateY(1px);
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.8),
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 -2px 6px rgba(255, 255, 255, 0.2);
}

.spin-btn:disabled {
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

.spin-btn:disabled:not(.spinning) {
    opacity: 0.4;
}

/* Logo inside spin button */
.spin-logo {
    display: none;
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* When button is spinning, show logo and hide text */
.spin-btn.spinning .spin-text {
    display: none;
}

.spin-btn.spinning .spin-logo {
    display: block;
    animation: logoGlow 1.5s ease-in-out infinite;
}

/* Glow and pulse animation for the logo */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.8))
                drop-shadow(0 0 15px rgba(74, 144, 226, 0.5));
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9))
                drop-shadow(0 0 25px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 35px rgba(74, 144, 226, 0.4));
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.spin-btn.spinning {
    background: radial-gradient(circle at center, #2d2d2d 0%, #1a1a1a 100%);
    border-color: #4a90e2;
    box-shadow: 
        0 0 40px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(74, 144, 226, 0.3),
        0 0 0 2px rgba(255, 215, 0, 0.4),
        0 0 0 4px rgba(74, 144, 226, 0.2);
}

/* Result Display */
.result-display {
    width: 100%;
    padding: 40px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    text-align: left;
    width: 100%;
}

.result-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--accent);
}

.result-category-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.7;
}

.result-quote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

.result-source {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-style: normal;
}

/* Simple fade out effect while spinning */
.result-display.spinning .result-content {
    animation: fadeOut 1.5s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Fade in animation when spin completes */
.result-display.settling .result-content {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ===== SPOTLIGHT EFFECTS FOR RESULT PANEL ===== */

/* Classic - Blue glow pulse */
.result-display.spotlight-classic {
    animation: spotlightClassic 2s ease-in-out infinite;
    border-color: var(--accent);
}

@keyframes spotlightClassic {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.4), inset 0 0 30px rgba(74, 144, 226, 0.1); }
    50% { box-shadow: 0 0 40px rgba(74, 144, 226, 0.6), inset 0 0 50px rgba(74, 144, 226, 0.15); }
}

/* Gilded - Gold shimmer */
.result-display.spotlight-gilded {
    animation: spotlightGilded 2s ease-in-out infinite;
    border-color: #ffd700;
}

@keyframes spotlightGilded {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 50px rgba(255, 215, 0, 0.15); }
}

/* Bronze - Warm bronze pulse */
.result-display.spotlight-bronze {
    animation: spotlightBronze 2s ease-in-out infinite;
    border-color: #cd7f32;
}

@keyframes spotlightBronze {
    0%, 100% { box-shadow: 0 0 20px rgba(205, 127, 50, 0.4), inset 0 0 30px rgba(205, 127, 50, 0.1); }
    50% { box-shadow: 0 0 40px rgba(205, 127, 50, 0.6), inset 0 0 50px rgba(205, 127, 50, 0.15); }
}

/* Ruby - Deep red pulse */
.result-display.spotlight-ruby {
    animation: spotlightRuby 2s ease-in-out infinite;
    border-color: #c41e3a;
}

@keyframes spotlightRuby {
    0%, 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.4), inset 0 0 30px rgba(196, 30, 58, 0.1); }
    50% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.6), inset 0 0 50px rgba(196, 30, 58, 0.15); }
}

/* Retro - Teal glow */
.result-display.spotlight-retro {
    animation: spotlightRetro 2s ease-in-out infinite;
    border-color: #4ecdc4;
}

@keyframes spotlightRetro {
    0%, 100% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.4), inset 0 0 30px rgba(78, 205, 196, 0.1); }
    50% { box-shadow: 0 0 40px rgba(78, 205, 196, 0.6), inset 0 0 50px rgba(78, 205, 196, 0.15); }
}

/* Cathedral - Purple stained glass glow */
.result-display.spotlight-cathedral {
    animation: spotlightCathedral 2.5s ease-in-out infinite;
    border-color: #7a5a7a;
}

@keyframes spotlightCathedral {
    0%, 100% { box-shadow: 0 0 25px rgba(92, 58, 90, 0.5), 0 0 50px rgba(58, 92, 90, 0.3), inset 0 0 30px rgba(92, 58, 90, 0.1); }
    50% { box-shadow: 0 0 45px rgba(92, 58, 90, 0.7), 0 0 80px rgba(58, 92, 90, 0.4), inset 0 0 50px rgba(92, 58, 90, 0.15); }
}

/* Galaxy - Cosmic purple/pink glow */
.result-display.spotlight-galaxy {
    animation: spotlightGalaxy 2s ease-in-out infinite;
    border-color: #8b5cf6;
}

@keyframes spotlightGalaxy {
    0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5), 0 0 50px rgba(236, 72, 153, 0.3), inset 0 0 30px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.7), 0 0 80px rgba(236, 72, 153, 0.5), inset 0 0 50px rgba(139, 92, 246, 0.15); }
}

/* Earth - Soft green/brown glow */
.result-display.spotlight-earth {
    animation: spotlightEarth 3s ease-in-out infinite;
    border-color: #8a9a7d;
}

@keyframes spotlightEarth {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 154, 125, 0.4), inset 0 0 30px rgba(138, 154, 125, 0.1); }
    50% { box-shadow: 0 0 35px rgba(138, 154, 125, 0.5), inset 0 0 45px rgba(138, 154, 125, 0.12); }
}

/* Neon - Electric neon flicker */
.result-display.spotlight-neon {
    animation: spotlightNeon 1.5s ease-in-out infinite;
    border-color: #ff00ff;
}

@keyframes spotlightNeon {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(255, 0, 255, 0.1); }
    25% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.7), 0 0 50px rgba(255, 0, 255, 0.5), inset 0 0 25px rgba(0, 255, 255, 0.12); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.6), inset 0 0 30px rgba(255, 0, 255, 0.15); }
    75% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.7), 0 0 50px rgba(255, 0, 255, 0.5), inset 0 0 25px rgba(0, 255, 255, 0.12); }
}

/* Clean - Subtle white glow */
.result-display.spotlight-clean {
    animation: spotlightClean 2.5s ease-in-out infinite;
    border-color: #808080;
}

@keyframes spotlightClean {
    0%, 100% { box-shadow: 0 0 15px rgba(200, 200, 200, 0.3), inset 0 0 20px rgba(200, 200, 200, 0.05); }
    50% { box-shadow: 0 0 25px rgba(200, 200, 200, 0.4), inset 0 0 30px rgba(200, 200, 200, 0.08); }
}

/* Bouncing - Rainbow playful glow */
.result-display.spotlight-bouncing {
    animation: spotlightBouncing 1.5s ease-in-out infinite;
    border-color: #ff6b6b;
}

@keyframes spotlightBouncing {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 40px rgba(78, 205, 196, 0.4), inset 0 0 20px rgba(255, 230, 109, 0.1); }
    25% { box-shadow: 0 0 30px rgba(78, 205, 196, 0.7), 0 0 50px rgba(170, 150, 218, 0.5), inset 0 0 25px rgba(149, 225, 211, 0.12); }
    50% { box-shadow: 0 0 40px rgba(255, 230, 109, 0.8), 0 0 60px rgba(255, 107, 107, 0.6), inset 0 0 30px rgba(170, 150, 218, 0.15); }
    75% { box-shadow: 0 0 30px rgba(170, 150, 218, 0.7), 0 0 50px rgba(78, 205, 196, 0.5), inset 0 0 25px rgba(255, 107, 107, 0.12); }
}

/* Warp - Hyperspace blue/cyan glow - no flashing */
.result-display.spotlight-warp {
    border-color: #00aaff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), 0 0 45px rgba(0, 136, 204, 0.35), inset 0 0 20px rgba(0, 180, 255, 0.1);
}

/* ===== TOPIC MODAL OVERLAY ===== */
.topic-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.topic-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topic-modal-overlay.hidden {
    display: none;
}

.topic-modal {
    background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 50px 60px;
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: scale(0.3) translateY(100px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow: 0 0 0 rgba(74, 144, 226, 0);
}

.topic-modal-overlay.active .topic-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(74, 144, 226, 0.3);
}

.topic-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.topic-modal-close:hover {
    color: var(--error);
    transform: scale(1.2);
}

.topic-modal-content {
    text-align: center;
}

.topic-modal-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent-bright);
    text-transform: uppercase;
    animation: modalTitleGlow 2s ease-in-out infinite;
}

@keyframes modalTitleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(90, 163, 242, 0.5); }
    50% { text-shadow: 0 0 40px rgba(90, 163, 242, 0.8), 0 0 60px rgba(90, 163, 242, 0.4); }
}

.topic-modal-category {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.8;
}

.topic-modal-quote {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.topic-modal-source {
    font-size: 0.95rem;
    color: var(--text-dim);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.topic-modal-dismiss {
    display: block;
    margin: 30px auto 0;
    padding: 14px 50px;
    background: linear-gradient(145deg, var(--accent), #357abd);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.topic-modal-dismiss:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Modal style variations per wheel theme */
.topic-modal-overlay.spotlight-gilded .topic-modal {
    border-color: #ffd700;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
}
.topic-modal-overlay.spotlight-gilded .topic-modal-title {
    color: #ffd700;
    animation-name: modalTitleGlowGold;
}
@keyframes modalTitleGlowGold {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4); }
}
.topic-modal-overlay.spotlight-gilded .topic-modal-dismiss {
    background: linear-gradient(145deg, #d4a017, #b8860b);
}

.topic-modal-overlay.spotlight-bronze .topic-modal {
    border-color: #cd7f32;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(205, 127, 50, 0.3);
}
.topic-modal-overlay.spotlight-bronze .topic-modal-title {
    color: #d4a574;
    animation-name: modalTitleGlowBronze;
}
@keyframes modalTitleGlowBronze {
    0%, 100% { text-shadow: 0 0 20px rgba(205, 127, 50, 0.5); }
    50% { text-shadow: 0 0 40px rgba(205, 127, 50, 0.8), 0 0 60px rgba(205, 127, 50, 0.4); }
}
.topic-modal-overlay.spotlight-bronze .topic-modal-dismiss {
    background: linear-gradient(145deg, #cd7f32, #8b5a2b);
}

.topic-modal-overlay.spotlight-ruby .topic-modal {
    border-color: #c41e3a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(196, 30, 58, 0.3);
}
.topic-modal-overlay.spotlight-ruby .topic-modal-title {
    color: #ff6b6b;
    animation-name: modalTitleGlowRuby;
}
@keyframes modalTitleGlowRuby {
    0%, 100% { text-shadow: 0 0 20px rgba(196, 30, 58, 0.5); }
    50% { text-shadow: 0 0 40px rgba(196, 30, 58, 0.8), 0 0 60px rgba(196, 30, 58, 0.4); }
}
.topic-modal-overlay.spotlight-ruby .topic-modal-dismiss {
    background: linear-gradient(145deg, #c41e3a, #8b1428);
}

.topic-modal-overlay.spotlight-retro .topic-modal {
    border-color: #4ecdc4;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(78, 205, 196, 0.3);
}
.topic-modal-overlay.spotlight-retro .topic-modal-title {
    color: #4ecdc4;
    animation-name: modalTitleGlowRetro;
}
@keyframes modalTitleGlowRetro {
    0%, 100% { text-shadow: 0 0 20px rgba(78, 205, 196, 0.5); }
    50% { text-shadow: 0 0 40px rgba(78, 205, 196, 0.8), 0 0 60px rgba(78, 205, 196, 0.4); }
}
.topic-modal-overlay.spotlight-retro .topic-modal-dismiss {
    background: linear-gradient(145deg, #4ecdc4, #26a69a);
}

.topic-modal-overlay.spotlight-cathedral .topic-modal {
    border-color: #7a5a7a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(92, 58, 90, 0.3);
}
.topic-modal-overlay.spotlight-cathedral .topic-modal-title {
    color: #a87aa8;
    animation-name: modalTitleGlowCathedral;
}
@keyframes modalTitleGlowCathedral {
    0%, 100% { text-shadow: 0 0 20px rgba(92, 58, 90, 0.5); }
    50% { text-shadow: 0 0 40px rgba(92, 58, 90, 0.8), 0 0 60px rgba(92, 58, 90, 0.4); }
}
.topic-modal-overlay.spotlight-cathedral .topic-modal-dismiss {
    background: linear-gradient(145deg, #5c3a5a, #3a5c5a);
}

.topic-modal-overlay.spotlight-galaxy .topic-modal {
    border-color: #8b5cf6;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.4), 0 0 100px rgba(236, 72, 153, 0.2);
}
.topic-modal-overlay.spotlight-galaxy .topic-modal-title {
    color: #a78bfa;
    animation-name: modalTitleGlowGalaxy;
}
@keyframes modalTitleGlowGalaxy {
    0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(236, 72, 153, 0.3); }
    50% { text-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 80px rgba(236, 72, 153, 0.5); }
}
.topic-modal-overlay.spotlight-galaxy .topic-modal-dismiss {
    background: linear-gradient(145deg, #6366f1, #8b5cf6);
}

.topic-modal-overlay.spotlight-earth .topic-modal {
    border-color: #8a9a7d;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(138, 154, 125, 0.3);
}
.topic-modal-overlay.spotlight-earth .topic-modal-title {
    color: #a8b898;
    animation-name: modalTitleGlowEarth;
}
@keyframes modalTitleGlowEarth {
    0%, 100% { text-shadow: 0 0 15px rgba(138, 154, 125, 0.4); }
    50% { text-shadow: 0 0 30px rgba(138, 154, 125, 0.6), 0 0 50px rgba(138, 154, 125, 0.3); }
}
.topic-modal-overlay.spotlight-earth .topic-modal-dismiss {
    background: linear-gradient(145deg, #8a9a7d, #6a7a5d);
}

.topic-modal-overlay.spotlight-neon .topic-modal {
    border-color: #ff00ff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 0, 255, 0.4), 0 0 100px rgba(0, 255, 255, 0.3);
    animation: neonModalPulse 1.5s ease-in-out infinite;
}
@keyframes neonModalPulse {
    0%, 100% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 255, 0.4), 0 0 80px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 255, 255, 0.5), 0 0 120px rgba(255, 0, 255, 0.4); }
}
.topic-modal-overlay.spotlight-neon .topic-modal-title {
    color: #ff00ff;
    animation-name: modalTitleGlowNeon;
}
@keyframes modalTitleGlowNeon {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4); }
    50% { text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.6); }
}
.topic-modal-overlay.spotlight-neon .topic-modal-dismiss {
    background: linear-gradient(145deg, #ff00ff, #8000ff);
}

.topic-modal-overlay.spotlight-clean .topic-modal {
    border-color: #606060;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 200, 200, 0.15);
}
.topic-modal-overlay.spotlight-clean .topic-modal-title {
    color: #e0e0e0;
    animation: none;
    text-shadow: none;
}
.topic-modal-overlay.spotlight-clean .topic-modal-dismiss {
    background: linear-gradient(145deg, #606060, #404040);
}

/* Bouncing Modal Theme */
.topic-modal-overlay.spotlight-bouncing .topic-modal {
    border-color: #ff6b6b;
    background: linear-gradient(145deg, rgba(40, 20, 50, 0.98), rgba(20, 15, 35, 0.98));
}
.topic-modal-overlay.spotlight-bouncing .topic-modal-title {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffe66d, #aa96da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modalTitleGlowBouncing 2s ease-in-out infinite;
}
@keyframes modalTitleGlowBouncing {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 107, 107, 0.5), 0 0 30px rgba(78, 205, 196, 0.3); filter: hue-rotate(0deg); }
    50% { text-shadow: 0 0 25px rgba(78, 205, 196, 0.7), 0 0 40px rgba(255, 230, 109, 0.5); filter: hue-rotate(30deg); }
}
.topic-modal-overlay.spotlight-bouncing .topic-modal-dismiss {
    background: linear-gradient(145deg, #ff6b6b, #4ecdc4);
}

/* Warp Modal Theme */
.topic-modal-overlay.spotlight-warp .topic-modal {
    border-color: #00aaff;
    background: linear-gradient(145deg, rgba(5, 20, 40, 0.98), rgba(10, 30, 50, 0.98));
}
.topic-modal-overlay.spotlight-warp .topic-modal-title {
    background: linear-gradient(90deg, #00d4ff, #4fc3f7, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}
.topic-modal-overlay.spotlight-warp .topic-modal-dismiss {
    background: linear-gradient(145deg, #0088cc, #00d4ff);
}

/* Challenge Panel */
.challenge-panel {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.challenge-header h3 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.score-display {
    font-size: 1.2rem;
}

.score-label {
    color: var(--text-secondary);
    margin-right: 8px;
}

.score-value {
    color: var(--accent);
    font-weight: 600;
}

.clue-container {
    margin: 25px 0;
}

.clue {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.clue.active {
    opacity: 1;
    border-left: 3px solid var(--accent);
}

.answer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.answer-option {
    background: var(--bg-light);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.answer-option:hover {
    border-color: var(--accent);
    background: rgba(74, 144, 226, 0.1);
}

.answer-option.correct {
    border-color: var(--success);
    background: rgba(68, 221, 136, 0.2);
    color: var(--success);
}

.answer-option.incorrect {
    border-color: var(--error);
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.hint-btn {
    flex: 1;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hint-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, #5aa3f2, #4a90e2);
}

.hint-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    display: none;
}

.feedback.success {
    display: block;
    background: rgba(68, 221, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.feedback.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.challenge-controls {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.secondary-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Spin History */
.spin-history {
    width: 100%;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
}

.spin-history h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.history-item:last-child {
    border-bottom: none;
}

.clear-history-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .home-link {
        position: static !important;
        display: block;
        text-align: left;
        margin-bottom: 15px;
        padding: 0;
        align-self: flex-start;
        left: auto;
        top: auto;
        z-index: auto;
    }

    .header {
        padding: 15px;
        gap: 10px;
        align-items: flex-start;
        position: static !important;
    }

    .header-main {
        width: 100%;
        align-items: center;
    }

    .header-branding {
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .header-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
        text-align: center;
        color: #4a90e2;
    }

    .na-logo {
        height: 36px;
    }

    .exit-btn {
        position: static !important;
        width: 100%;
        margin-top: 10px;
        left: auto;
        top: auto;
        right: auto;
    }

    .header h1 {
        font-size: 1.8em;
        letter-spacing: 4px;
        text-align: center;
    }

    /* Make volume slider easier to use on mobile */
    .volume-slider {
        width: 200px;
        height: 8px;
        touch-action: none;
        padding: 10px 0;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .volume-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .audio-controls {
        gap: 15px;
        padding: 15px 0;
    }

    .audio-group {
        min-height: 44px;
        align-items: center;
    }

    /* Optimize topic modal for mobile */
    .topic-modal {
        padding: 25px 20px;
        max-width: 95%;
        width: 95%;
        margin: 10px;
    }

    .topic-modal-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .topic-modal-category {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .topic-modal-quote {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .topic-modal-source {
        font-size: 0.8rem;
        padding-top: 15px;
    }

    .topic-modal-dismiss {
        margin: 20px auto 0;
        padding: 12px 30px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        width: 100%;
        max-width: 250px;
    }

    .topic-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        padding: 5px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .mode-cards {
        grid-template-columns: 1fr;
    }

    .game-content {
        flex-direction: column;
    }

    .right-panel {
        width: 100%;
    }

    .answer-options {
        grid-template-columns: 1fr;
    }

    #wheelCanvas {
        width: 90vw;
        height: 90vw;
    }

    .result-title {
        font-size: 1.5rem;
    }

    .answer-section {
        flex-direction: column;
    }

    .challenge-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    /* Hide topic modal entirely on mobile */
    .topic-modal-overlay {
        display: none !important;
    }

    /* Hide pop-out topic toggle on mobile */
    .modal-toggle {
        display: none !important;
    }

    /* Stack topic selector vertically on mobile */
    .topic-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    .topic-selector label {
        text-align: left;
    }

    .topic-dropdown {
        min-width: 100%;
        width: 100%;
    }

    /* Hide wheel style selector on mobile - classic only */
    .wheel-style-selector {
        display: none !important;
    }
}
