@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Nunito:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '📖';
    font-size: 32px;
    animation: bounce 2s infinite;
}

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

/* Estilos para Game Over */
.game-over-container, .game-end-container {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.game-over-container h1, .game-end-container h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-over-stats, .final-scores {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat, .player-final-score {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
}

.stat-value, .final-score {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label, .player-name {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.game-over-actions, .game-end-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilos para resultados */
.result-correct {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.result-incorrect {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.result-text {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-explanation {
    font-size: 1.2em;
    opacity: 0.9;
    line-height: 1.4;
}

.final-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.streak-bonus {
    background: rgba(255, 193, 7, 0.2);
    color: #ff6b35;
    padding: 10px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-weight: bold;
}

/* Alternativas corretas/incorretas */
.alternative.correct {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
    transform: scale(1.02);
}

.alternative.incorrect {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
    border-color: #f44336;
    transform: scale(0.98);
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confetti-fall 3s linear forwards;
    z-index: 1000;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Timer styles */
.timer-display {
    position: fixed;
    top: 100px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    color: #667eea;
    border: 3px solid #667eea;
}

.timer-display.warning {
    animation: warning-pulse 0.5s infinite alternate;
    border-color: #ff4444;
    color: #ff4444;
}

@keyframes warning-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.score-display, .streak-display {
    position: fixed;
    top: 100px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 120px;
    text-align: center;
}

.streak-display {
    top: 180px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-weight: bold;
    animation: streak-glow 2s infinite alternate;
}

@keyframes streak-glow {
    from { box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3); }
    to { box-shadow: 0 5px 25px rgba(255, 107, 53, 0.6); }
}

.score-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: 600;
}

.user-info span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.user-info a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.user-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 20px;
}

/* Layout para roleta/pergunta no mesmo espaço */
.game-area {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.main-game-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-game-container .roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-game-container #question-container {
    width: 100%;
    max-width: 600px;
}

.main-game-container .category-selected {
    animation: slideInDown 0.5s ease-out;
}

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

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.auth-logo {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.auth-card h1 {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    color: #555;
    margin-bottom: 35px;
    font-size: 22px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    font-family: inherit;
    line-height: normal;
    box-sizing: border-box;
    vertical-align: top;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:hover {
    border-color: #b3b3b3;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 152, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(158, 158, 158, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
    border-color: #dadce0;
}

.separator {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.separator span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
}

.auth-link {
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.back-link a {
    color: #888 !important;
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.back-link a:hover {
    opacity: 1;
    color: #667eea !important;
    transform: translateX(-3px);
}

/* Messages */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

/* Game Interface */
.game-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.game-container-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    min-height: calc(100vh - 100px);
}

.game-sidebar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.game-main {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-container-centered .game-main {
    max-width: 600px;
    width: 100%;
}

.game-actions-centered {
    margin-top: 30px;
    text-align: center;
}


.spin-btn {
    margin-top: 30px;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Question Interface */
.question-container {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.question-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #333;
    line-height: 1.6;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.alternatives {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.alternative {
    padding: 20px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.alternative:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.alternative.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.alternative.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
    animation: correctPulse 0.6s ease-in-out;
}

.alternative.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(244, 67, 54, 0.4);
    animation: incorrectShake 0.6s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: translateY(-5px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(-5px) scale(1); }
}

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

/* Progress */
.progress-container {
    margin-bottom: 20px;
}

.progress-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.progress-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.progress-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.progress-dot.completed {
    background: #4CAF50;
    border-color: #4CAF50;
}

.progress-name {
    font-weight: 500;
    color: #333;
}

/* Welcome Screen */
.welcome-container {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    margin-top: 40px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.welcome-title {
    font-family: 'Fredoka One', cursive;
    font-size: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

.welcome-subtitle {
    font-size: 22px;
    color: #555;
    margin-bottom: 50px;
    font-weight: 600;
    opacity: 0.9;
}

.game-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.game-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    color: white;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.game-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.game-option:hover::before {
    opacity: 1;
}

.game-option:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.game-option-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.game-option-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-option-description {
    font-size: 14px;
    color: #b0b0b0;
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Results */
.result-container {
    text-align: center;
    padding: 40px;
    margin: 30px 0;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.result-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: celebrateRotate 3s linear infinite;
}

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

.result-correct {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    animation: correctCelebrate 0.8s ease-in-out;
}

.result-incorrect {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    animation: incorrectWobble 0.8s ease-in-out;
}

@keyframes correctCelebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes incorrectWobble {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0; }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.result-text {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-explanation {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .alternatives {
        grid-template-columns: 1fr;
    }
    
    .game-options {
        flex-direction: column;
        align-items: center;
    }
    
    .roulette {
        width: 250px;
        height: 250px;
    }
    
    .welcome-title {
        font-size: 32px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Fade animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

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

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confetti-fall 3s linear infinite;
    z-index: 1000;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ff6b6b; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.5s; background: #4ecdc4; }
.confetti:nth-child(3) { left: 30%; animation-delay: 1s; background: #45b7d1; }
.confetti:nth-child(4) { left: 40%; animation-delay: 1.5s; background: #96ceb4; }
.confetti:nth-child(5) { left: 50%; animation-delay: 2s; background: #ffeaa7; }
.confetti:nth-child(6) { left: 60%; animation-delay: 2.5s; background: #dda0dd; }
.confetti:nth-child(7) { left: 70%; animation-delay: 3s; background: #ff9800; }
.confetti:nth-child(8) { left: 80%; animation-delay: 3.5s; background: #e91e63; }
.confetti:nth-child(9) { left: 90%; animation-delay: 4s; background: #9c27b0; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Game UI Elements */
.game-ui {
    position: relative;
    z-index: 10;
}

.score-display {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    z-index: 1000;
}

.score-title {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    font-family: 'Fredoka One', cursive;
}

.streak-display {
    position: fixed;
    top: 180px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-display {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    text-align: center;
    min-width: 100px;
}

.timer-display.warning {
    animation: timerWarning 1s infinite;
}

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

/* Power-ups and Special Effects */
.power-up {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: powerUpFloat 2s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    z-index: 100;
}

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

.power-up:hover {
    animation: powerUpPulse 0.3s ease-in-out;
}

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

/* Victory Screen */
.victory-container {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.victory-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: victoryRotate 5s linear infinite;
}

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

.victory-container h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: victoryBounce 2s infinite;
}

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

.victory-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Game Features */
.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 28px;
    animation: featureFloat 3s ease-in-out infinite;
}

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

.feature-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Streak Bonus */
.streak-bonus {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: streakPulse 1s ease-in-out infinite alternate;
}

@keyframes streakPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Category Result */
.category-selected {
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    text-align: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: categoryReveal 0.8s ease-out;
}

@keyframes categoryReveal {
    0% {
        transform: scale(0.8) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.category-selected h3 {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-selected h2 {
    font-size: 32px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Enhanced Loading */
.loading {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 6px solid rgba(102, 126, 234, 0.2);
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Enhanced Progress Dots */
.progress-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #ddd;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-dot.completed {
    background: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-dot.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

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

/* Enhanced Question Actions */
.question-actions {
    text-align: center;
    margin-top: 30px;
}

.question-actions .btn {
    font-size: 18px;
    padding: 18px 40px;
    position: relative;
    overflow: hidden;
}

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

/* Timer Style */
.timer {
    text-align: center;
    margin-top: 25px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Mobile Game Optimizations */
.mobile-game-ui {
    display: none;
}

@media (max-width: 768px) {
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        justify-content: center;
        text-align: center;
    }
    
    /* Mobile Game UI */
    .mobile-game-ui {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 15px;
        border-top: 2px solid rgba(102, 126, 234, 0.2);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .mobile-stats {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .mobile-stat {
        text-align: center;
        font-size: 12px;
        font-weight: 700;
    }
    
    .mobile-stat-value {
        font-size: 16px;
        color: #667eea;
        font-family: 'Fredoka One', cursive;
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .mobile-user-info {
        text-align: center;
        margin-bottom: 10px;
        font-size: 14px;
        color: #333;
        font-weight: 600;
    }
    
    .mobile-actions {
        display: flex;
        gap: 10px;
    }
    
    .mobile-btn {
        flex: 1;
        padding: 12px;
        border-radius: 25px;
        font-weight: 700;
        font-size: 14px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
    
    .mobile-btn-secondary {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        border: 2px solid rgba(102, 126, 234, 0.3);
    }
    
    /* Hide desktop UI elements on mobile */
    .score-display, .streak-display, .timer-display {
        display: none;
    }
    
    /* Adjust game container for mobile */
    .game-container {
        grid-template-columns: 1fr;
        padding-bottom: 120px; /* Space for mobile UI */
    }
    
    .game-sidebar {
        order: 3;
    }
    
    .game-main {
        order: 1;
        padding: 20px;
    }
    
    /* Mobile roulette */
    .roulette-wheel {
        width: 250px;
        height: 250px;
    }
    
    .roulette-section {
        font-size: 10px;
    }
    
    .roulette-arrow {
        font-size: 25px;
    }
    
    /* Mobile alternatives */
    .alternatives {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .alternative {
        padding: 18px;
        font-size: 16px;
        text-align: center;
    }
    
    /* Mobile question */
    .question-text {
        font-size: 20px;
        padding: 15px;
    }
    
    /* Mobile welcome screen */
    .welcome-title {
        font-size: 32px;
    }
    
    .game-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .game-option {
        min-width: 100%;
        max-width: 350px;
    }
    
    /* Mobile auth pages */
    .auth-page {
        padding: 10px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-logo {
        font-size: 48px;
    }
    
    .auth-card h1 {
        font-size: 24px;
    }
    
    .auth-card h2 {
        font-size: 18px;
    }
}

/* Extra mobile optimizations */
@media (max-width: 480px) {
    .roulette-wheel {
        width: 200px;
        height: 200px;
    }
    
    .roulette-arrow {
        font-size: 20px;
    }
    
    .game-main {
        padding: 15px;
    }
    
    .question-container {
        padding: 25px 20px;
    }
    
    .alternative {
        padding: 15px;
        font-size: 15px;
    }
    
    .mobile-game-ui {
        padding: 12px;
    }
    
    .mobile-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    /* PWA-like fullscreen on very small screens */
    .header {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 100px; /* Espaço para o menu mobile */
    }
    
    .mobile-menu {
        display: block;
    }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 10px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-card {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
    
    /* Form improvements */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
        box-sizing: border-box;
    }
    
    /* Button improvements */
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-bottom: 10px;
        touch-action: manipulation; /* Better touch response */
    }
    
    .btn-google {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Game interface */
    .game-main {
        padding: 10px;
        margin-top: 0;
    }
    
    .question-container {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .question h2 {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    /* Alternatives */
    .alternatives {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .alternative {
        padding: 15px;
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    /* Header mobile */
    .header {
        padding: 10px 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .header-content {
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* Main content spacing */
    .main-content {
        margin-top: 70px;
        padding-bottom: 20px;
    }
    
    /* Landing page */
    .hero {
        padding: 40px 20px;
        text-align: center;
        flex-direction: column;
    }
    
    .welcome-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    /* Profile page */
    .profile-container {
        padding: 15px;
    }
    
    .profile-card {
        padding: 20px;
        margin: 10px 0;
    }
    
    /* Multiplayer */
    .multiplayer-container {
        padding: 15px;
    }
    
    .player-card {
        padding: 15px;
        margin: 8px 0;
    }
    
    /* Roulette adjustments */
    .roulette-container {
        padding: 20px 10px;
    }
    
    .roulette {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    /* Tables responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
        white-space: nowrap;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
        margin: 5px;
        border-radius: 15px;
    }
    
    .auth-card h1 {
        font-size: 22px;
    }
    
    .auth-card h2 {
        font-size: 16px;
    }
    
    .form-group input, .form-group select {
        padding: 12px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .question h2 {
        font-size: 16px;
    }
    
    .alternative {
        padding: 12px;
        font-size: 13px;
        min-height: 50px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .roulette {
        width: 200px;
        height: 200px;
    }
    
    /* Hide header on very small screens for more space */
    .header {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 100px; /* Espaço para o menu mobile */
    }
    
    .mobile-menu {
        display: block;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 20px;
    }
    
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .hero-content {
        flex: 1;
        margin-right: 40px;
    }
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix any wide elements */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Auth container specific fixes */
    .auth-container .auth-card {
        width: calc(100vw - 20px);
        max-width: 400px;
        margin: 10px auto;
    }
    
    /* Game container fixes */
    .game-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px;
    }
    
    /* Question alternatives - ensure they fit */
    .alternatives .alternative {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Profile cards */
    .profile-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Stats containers */
    .stats-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Progress bars and similar wide elements */
    .progress-bar {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure text doesn't overflow */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Landing page hero fixes */
    .hero .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Game options container */
    .game-options {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Roulette container */
    .roulette-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    /* Multiplayer player list */
    .players-list {
        width: 100%;
        max-width: 100%;
    }
    
    .player-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Touch improvements */
    .btn, .alternative, .player-card button, .challenge-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    /* Improve button spacing for touch */
    .auth-link {
        margin-top: 25px;
        padding: 10px;
    }
    
    /* Better spacing between interactive elements */
    .game-actions {
        margin-top: 25px;
        gap: 15px;
    }
    
    .game-actions .btn {
        margin: 5px 0;
    }
}

/* Show mobile menu on smaller tablets and large phones */
@media (max-width: 768px) and (max-height: 600px) {
    .mobile-menu {
        display: block !important;
    }
    
    .header {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0 !important;
        padding-bottom: 100px !important;
    }
}

/* iOS Safari specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .btn, input, select, textarea {
        -webkit-appearance: none;
        -webkit-border-radius: 12px;
        border-radius: 12px;
    }
    
    /* Fix iOS zoom on input focus */
    input[type="text"], input[type="email"], input[type="password"], select, textarea {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .auth-logo, .logo {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}