:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-muted: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-area h1 {
    font-family: 'Georama', sans-serif !important;
}

.site-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--footer-color, #e2e8f0);
    pointer-events: none;
    z-index: 1000;
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.glass-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

.logo-area p {
    color: var(--text-muted);
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--border-color);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Base styles for future pages */
.hidden {
    display: none !important;
}

.full-screen-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Question Page Styles extracted for PJAX Transitions */
.question-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: left;
}

.question-card {
    border-radius: 24px;
    padding: 40px;
    border: none;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
}

.timer-bar {
    width: 100%;
    height: 6px;
    background: #ffffff;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #ffffff;
}

.timer-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 100%;
    transition: width 1s linear;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.answer-btn {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    text-align: left;
}

.answer-btn:hover {
    background: #f8f9fa;
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.answer-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.answer-btn.wrong {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

/* Modal/Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    color: var(--text-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 600px) {}

/* Wheel Page Styles extracted for PJAX Transitions */
.wheel-container {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    margin: 0 auto;
}

canvas {
    width: 100%;
    height: 100%;
    transform-origin: center;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.spin-btn svg {
    width: 40px;
    height: 40px;
    fill: #333;
}

.spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.pointer {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    z-index: 20;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    display: flex;
    justify-content: center;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.language-selector select {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: white;
    cursor: pointer;
}

@media (max-width: 600px) {
    .wheel-container {
        width: 95vw;
        height: 95vw;
    }

    .pointer {
        width: 40px;
        height: 40px;
        top: 4%;
    }

    .game-header {
        padding: 10px !important;
    }

    .header-left img {
        height: 30px !important;
    }

    .header-right button {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}