/* RSN8TV Trivia Player Interface Styles */
/* Add this to your player.css file */

/* Play Again / Start New Game Button */
.play-again-message {
    margin-top: 20px;
    padding: 20px;
    background: rgba(77, 208, 225, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    text-align: center;
    animation: pulse 2s infinite;
}

.play-again-message .btn {
    background: var(--gradient-secondary);
    font-size: 1.2rem;
    padding: 18px 35px;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 184, 77, 0.4);
    animation: glowPulse 2s ease-in-out infinite;
}

.play-again-message .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 184, 77, 0.6);
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 184, 77, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 184, 77, 0.6);
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .play-again-message {
        padding: 15px;
    }
    
    .play-again-message .btn {
        font-size: 1.1rem;
        padding: 16px 25px;
    }
}
/* Force vertical stacking on mobile devices */
@media (max-width: 768px) {
    .registration-modal .button-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 25px;
    }

    .registration-modal .button-group .btn {
        width: 100% !important;
        flex: unset !important;
        padding: 16px 20px;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 50px;
    }
}

/* Also ensure the modal-buttons class works the same way */
@media (max-width: 768px) {
    .registration-modal .modal-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .registration-modal .modal-buttons .btn {
        width: 100% !important;
        flex: unset !important;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #4dd0e1;
    --secondary-color: #ffb84d;
    --bg-dark: #161616;
    --bg-card: #232323;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --success: #4CAF50;
    --success-light: #34d399;
    --error: #f44336;
    --error-light: #ef4444;
    --warning: #ff9800;
    --warning-light: #ff6b6b;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --gradient-primary: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    --gradient-secondary: linear-gradient(45deg, #ff6b6b 0%, #ffd93d 100%);
}

html, body {
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

#root {
    height: 100%;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Logo Section */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 2em;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.logo p {
    font-size: 0.9em;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Form Styles */
.join-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85em;
    opacity: 0.9;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.2);
}

.input-group input:disabled {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

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

.btn-lg {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* Waiting Screen */
.waiting-screen {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.waiting-screen h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Game Container */
.game-container {
    animation: fadeIn 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Question Header */
.question-header {
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.round-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85em;
    opacity: 0.8;
    color: var(--text-secondary);
}

.timer {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.timer.warning {
    color: var(--warning-light);
    animation: pulse 1s infinite;
}

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

.question-text {
    font-size: 1.2em;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

/* Answers Grid */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 5px;
}

/* Custom scrollbar */
.answers-grid::-webkit-scrollbar {
    width: 6px;
}

.answers-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.answers-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.answer-btn {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 50px;
}

.answer-btn:hover:not(:disabled):not(.faded) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.answer-btn.selected {
    background: rgba(79, 172, 254, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.3);
}

.answer-btn.correct {
    background: rgba(52, 211, 153, 0.3);
    border-color: var(--success-light);
    color: var(--success-light);
    animation: correctPulse 0.5s ease;
}

.answer-btn.incorrect {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--error-light);
    color: var(--error-light);
    animation: incorrectShake 0.5s ease;
}

.answer-btn.faded {
    opacity: 0.1;
    cursor: not-allowed;
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.locked {
    cursor: not-allowed !important;
    opacity: 0.7;
}

.answer-btn.lightning-answered {
    animation: lightningFlash 0.3s ease;
    background: rgba(79, 172, 254, 0.5) !important;
}

@keyframes lightningFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(79, 172, 254, 0.8); }
    100% { transform: scale(1); }
}

/* Answer Status Display */
.answer-status {
    background: rgba(77, 208, 225, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; border-color: var(--primary-color); }
    50% { opacity: 0.8; border-color: rgba(77, 208, 225, 0.5); }
}

.answer-status p {
    margin: 5px 0;
}

.answer-status .status-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.answer-status .potential-score {
    color: var(--secondary-color);
    font-size: 1rem;
}

.answer-status .can-change {
    color: var(--text-primary);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Result Screen */
.result-screen {
    text-align: center;
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.result-icon {
    font-size: 3em;
    margin: 15px 0;
}

.result-correct {
    animation: correctPulse 0.5s ease-out;
}

.result-incorrect {
    animation: incorrectShake 0.5s ease-out;
}

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

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

/* Score Display */
.score-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.score-display h3 {
    font-size: 1em;
    opacity: 0.8;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.score-display .score {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    animation: slideDown 0.3s ease;
}

/* Leaderboard */
.leaderboard {
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 10px 0;
    z-index: 10;
    color: var(--primary-color);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--hover-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.leaderboard-item.highlight {
    background: rgba(79, 172, 254, 0.2);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(77, 208, 225, 0.3);
}

.rank {
    font-size: 1.2em;
    font-weight: bold;
    width: 30px;
    color: var(--primary-color);
}

.player-name {
    flex: 1;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-score {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* Error Handling */
.input-error {
    border: 2px solid var(--warning-light) !important;
    animation: shake 0.5s;
}

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

.error-feedback {
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--warning-light);
    border-radius: 6px;
    font-size: 0.85em;
    animation: slideDown 0.3s ease;
}

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

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Countdown Screen */
.countdown-screen {
    text-align: center;
    padding: 2rem;
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: pulse 1s infinite;
    color: var(--primary-color);
}

.countdown-number {
    font-size: 6rem;
    font-weight: bold;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdownPulse 1s ease-out;
}

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

.countdown-text {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Scoring Breakdown */
.scoring-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    animation: slideIn 0.3s ease-out;
    font-size: 0.9em;
}

.scoring-breakdown.correct {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.scoring-breakdown.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.scoring-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.scoring-label {
    opacity: 0.9;
    color: var(--text-secondary);
}

.scoring-value {
    font-weight: bold;
    font-size: 1.1em;
}

.scoring-value.positive {
    color: var(--success-light);
}

.scoring-value.negative {
    color: var(--error-light);
}

.scoring-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.scoring-total {
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Streak Indicator */
.streak-indicator {
    display: inline-block;
    background: rgba(251, 146, 60, 0.2);
    border: 1px solid #fb923c;
    color: #fb923c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 10px;
    animation: pulse 1s ease-in-out;
}

.time-display {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 8px;
    color: var(--text-secondary);
}

/* Round Intro Styles */
.round-intro-screen {
    text-align: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.round-intro-countdown {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none; /* Hidden as per original */
    align-items: center;
    justify-content: center;
    color: #ffd93d;
    border: 2px solid #ffd93d;
}

.round-number-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.5);
    margin-bottom: 1.5rem;
    line-height: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.round-difficulty {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.sponsor-section {
    margin-top: auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sponsor-label {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.sponsor-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 184, 77, 0.4);
}

/* Speed Round Styles */
.lightning-round {
    background: var(--gradient-secondary);
}

.lightning-header {
    text-align: center;
    margin-bottom: 15px;
}

.lightning-timer {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 25px;
    border-radius: 12px;
    display: inline-block;
}

.lightning-score {
    font-size: 1.5rem;
    margin-top: 8px;
    color: var(--text-primary);
}

/* Frozen Overlay */
.frozen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: freezeIn 0.3s ease;
    backdrop-filter: blur(20px);
}

@keyframes freezeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.frozen-content {
    text-align: center;
    animation: freezeShake 0.5s ease;
}

@keyframes freezeShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.frozen-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.frozen-text {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.8);
}

.frozen-timer {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Streak Bonus Popup */
.streak-bonus-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(251, 146, 60, 0.95);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: bonusPopup 1s ease;
    z-index: 500;
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.5);
}

@keyframes bonusPopup {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.perfect-round-indicator {
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    animation: glow 2s ease-in-out infinite;
    font-size: 0.85em;
}

/* Play Again Message */
.play-again-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(77, 208, 225, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Registration Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    opacity: 0.9;
    font-size: 1em;
    color: var(--text-secondary);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.2);
}

.form-group input:disabled {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.7;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-buttons .btn {
    flex: 1;
}

/* Registration Error */
.registration-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
    animation: slideDown 0.3s ease;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Prize Info */
.prize-info {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.prize-info .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Registration Modal Styles - Fixed */
.registration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.registration-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

/* Fix trophy emoji to be gold */
.registration-modal h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Trophy emoji gold filter */
.trophy-emoji {
    filter: sepia(100%) saturate(200%) hue-rotate(15deg) brightness(1.2);
    display: inline-block;
}

.registration-modal p {
    text-align: center;
    opacity: 0.9;
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.registration-modal .input-group {
    margin-bottom: 20px;
}

.registration-modal .checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.registration-modal .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.registration-modal .checkbox-group label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.registration-modal .checkbox-group label span {
    display: inline;
}

/* Make button group stack vertically */
.registration-modal .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

/* Make buttons full width and stacked */
.registration-modal .button-group .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
}

/* Remove any flex: 1 rules */
.registration-modal .button-group .btn,
.registration-modal .modal-buttons .btn {
    flex: unset !important;
}

.registration-modal .registration-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 10px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.registration-success {
    text-align: center;
    padding: 20px;
}

.registration-success .success-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.registration-success h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--success-light);
}

.registration-success p {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Mobile optimizations for registration modal */
@media (max-width: 480px) {
    .registration-modal-overlay {
        padding: 0;
    }
    
    .registration-modal {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px;
        overflow-y: auto;
    }

    .registration-modal .button-group .btn {
        padding: 14px 15px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Tablet styles (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .registration-modal {
        max-width: 500px;
        padding: 25px;
    }

    .registration-modal h2 {
        font-size: 2em;
    }

    .registration-modal .button-group {
        gap: 15px;
        margin-top: 30px;
    }
    
    .registration-modal .button-group .btn {
        padding: 18px 25px;
        font-size: 1.05rem;
        min-height: 55px;
    }
}

/* Desktop styles (769px and up) */
@media (min-width: 769px) {
    .registration-modal-overlay {
        padding: 40px;
    }

    .registration-modal {
        max-width: 450px;
        padding: 35px;
    }

    .registration-modal h2 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .registration-modal p {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .registration-modal .input-group label {
        font-size: 0.95em;
    }

    .registration-modal .input-group input {
        padding: 14px;
        font-size: 16px;
    }

    .registration-modal .checkbox-group label {
        font-size: 0.95em;
    }

    .registration-modal .button-group {
        margin-top: 30px;
        gap: 15px;
    }

    .registration-modal .button-group .btn {
        padding: 18px 25px;
        font-size: 1.1rem;
        min-height: 55px;
    }
}

/* Large desktop styles (1200px and up) */
@media (min-width: 1200px) {
    .registration-modal {
        max-width: 480px;
        padding: 40px;
    }

    .registration-modal h2 {
        font-size: 2.4em;
    }

    .registration-modal .registration-note {
        font-size: 0.9em;
        padding: 18px;
    }
}

/* Landscape mobile (shorter heights) */
@media (max-height: 500px) and (orientation: landscape) {
    .registration-modal-overlay {
        padding: 10px;
    }

    .registration-modal {
        max-height: 90vh;
        padding: 15px 25px;
    }

    .registration-modal h2 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .registration-modal p {
        margin-bottom: 12px;
        font-size: 0.9em;
    }

    .registration-modal .input-group {
        margin-bottom: 12px;
    }

    .registration-modal .checkbox-group {
        margin: 12px 0;
    }

    .registration-modal .button-group {
        margin-top: 15px;
    }

    .registration-modal .registration-note {
        margin-top: 12px;
        padding: 10px;
        font-size: 0.8em;
    }
}

/* Ultra-wide screens (2K, 4K) */
@media (min-width: 1920px) {
    .registration-modal {
        max-width: 500px;
        padding: 45px;
    }

    .registration-modal h2 {
        font-size: 2.6em;
    }

    .registration-modal p {
        font-size: 1.2em;
    }

    .registration-modal .input-group input {
        padding: 16px;
        font-size: 18px;
    }
}

/* Ensure modal is always centered with proper spacing */
@media (min-width: 481px) {
    .registration-modal-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Add subtle animation for desktop */
    .registration-modal {
        animation: modalSlideIn 0.3s ease-out, modalGlow 3s ease-in-out infinite alternate;
    }
}

@keyframes modalGlow {
    from {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    to {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 208, 225, 0.1);
    }
}

/* Mobile Optimizations */
@media (max-height: 600px) {
    .container {
        padding: 15px;
    }

    .question-text {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .timer {
        font-size: 2em;
    }

    .answer-btn {
        padding: 12px;
        font-size: 0.95em;
    }

    .round-number-display {
        font-size: 3rem;
    }

    .modal-content {
        padding: 20px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3ba9b8;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn {
        display: none;
    }
}
/* Tablet Call-to-Action */
.tablet-cta {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.1) 0%, rgba(255, 184, 77, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.cta-action {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

/* Mobile adjustments */
@media (max-width: 480px) {
    .tablet-cta {
        padding: 20px;
        margin-top: 20px;
    }
    
    .cta-icon {
        font-size: 2.5rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-action {
        font-size: 1rem;
    }
}
