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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #6c5ce7 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .game-container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            width: 100%;
        }

        .game-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .game-title {
            font-size: 2.5em;
            font-weight: 700;
            color: #2d3436;
            margin-bottom: 10px;
        }

        .game-subtitle {
            color: #636e72;
            font-size: 1.1em;
        }

        .quiz-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin: 20px 0;
            font-weight: bold;
            color: #2d3436;
            font-size: 1em;
        }

        .info-item {
            text-align: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .score-info {
            color: #e74c3c;
        }

        .question-info {
            color: #9b59b6;
        }

        .time-info {
            color: #27ae60;
        }

        .era-info {
            color: #3498db;
        }

        .question-card {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 15px;
            margin: 20px 0;
            text-align: center;
        }

        .era-badge {
            display: inline-block;
            background: #9b59b6;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .question-text {
            font-size: 1.3em;
            font-weight: 600;
            color: #2d3436;
            margin-bottom: 20px;
            line-height: 1.4;
        }

        .historical-context {
            background: #e8f6f3;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            color: #27ae60;
            font-style: italic;
            display: none;
        }

        .historical-context.show {
            display: block;
        }

        .answers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .answer-button {
            padding: 15px 20px;
            background: #9b59b6;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .answer-button:hover {
            background: #8e44ad;
            transform: translateY(-2px);
        }

        .answer-button.correct {
            background: #00b894;
            animation: correctAnswer 0.5s ease;
        }

        .answer-button.wrong {
            background: #e74c3c;
            animation: wrongAnswer 0.5s ease;
        }

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

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

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

        .quiz-controls {
            text-align: center;
            margin: 20px 0;
        }

        .control-button {
            padding: 12px 25px;
            background: #9b59b6;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            margin: 0 10px;
            transition: all 0.3s ease;
        }

        .control-button:hover {
            background: #8e44ad;
            transform: translateY(-2px);
        }

        .control-button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .message {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
            font-weight: bold;
            display: none;
        }

        .message.show {
            display: block;
        }

        .message.correct {
            background: #d5f4e6;
            color: #00b894;
        }

        .message.wrong {
            background: #ffeaa7;
            color: #e17055;
        }

        .message.final {
            background: #a29bfe;
            color: white;
        }

        .era-selector {
            text-align: center;
            margin: 20px 0;
        }

        .era-button {
            padding: 10px 20px;
            background: #ddd;
            color: #2d3436;
            border: none;
            border-radius: 20px;
            margin: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.9em;
        }

        .era-button.active {
            background: #9b59b6;
            color: white;
        }

        .era-button:hover {
            transform: translateY(-2px);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #ddd;
            border-radius: 4px;
            margin: 20px 0;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #9b59b6;
            width: 0%;
            transition: width 0.3s ease;
        }

        .timer {
            text-align: center;
            margin: 15px 0;
            font-size: 1.2em;
            font-weight: bold;
            color: #2d3436;
        }

        .timer.warning {
            color: #e74c3c;
            animation: pulse 1s infinite;
        }

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

        .hint-box {
            background: #e8f4f8;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            display: none;
        }

        .hint-box.show {
            display: block;
        }

        .hint-text {
            color: #3498db;
            font-style: italic;
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 20px;
                margin: 10px;
            }

            .quiz-info {
                grid-template-columns: repeat(2, 1fr);
            }

            .answers-grid {
                grid-template-columns: 1fr;
            }

            .era-selector {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 5px;
            }

            .game-title {
                font-size: 2em;
            }
        }