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

:root {
    --primary: #8B5CF6;
    --background: #0F0524;
    --surface: #1A0A33;
    --text: #F8FAFC;
    --success: #10B981;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at center, #1A0A33 0%, #0F0524 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#game-container {
    width: 100%;
    max-width: 450px;
    background: var(--surface);
    border-radius: 24px;
    border: 2px solid #3B2D5B;
    overflow: hidden;
}

#game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--background);
}

.game-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

#game-area {
    padding: 24px;
}

.question {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px;
    background: radial-gradient(ellipse at center, #2D1B4E 0%, #1A0A33 100%);
    border-radius: 20px;
}

.planet-emoji {
    font-size: 100px;
    display: block;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hint {
    font-size: 16px;
    color: #9CA3AF;
}

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

.choice {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    background: #2D1B4E;
    border: 3px solid #4C3575;
    border-radius: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.choice:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.choice.correct {
    border-color: var(--success);
    background: #064E3B;
}

.choice.wrong {
    border-color: #EF4444;
    background: #7F1D1D;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: var(--text);
    border: 2px solid #3B2D5B;
}

.stars {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-stats {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 14px;
    color: #9CA3AF;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #EC4899 100%);
    color: white;
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #4C3575;
    background: var(--background);
    color: var(--text);
}