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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Screens */
.screen {
    display: none;
}
.screen.active {
    display: block;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
}

h1 {
    font-size: 2.5rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.subtitle {
    color: #aaa;
    font-size: 1.1rem;
    font-style: italic;
}

/* Verse Box */
.verse-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #ccc;
    border-radius: 0 12px 12px 0;
    line-height: 1.6;
}

.verse-box cite {
    display: block;
    margin-top: 10px;
    color: #d4af37;
    font-style: normal;
    font-size: 0.9rem;
}

/* Categories */
.categories {
    margin: 30px 0;
}

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

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: #fff;
}

.category-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    transform: translateY(-3px);
}

.category-btn.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: #d4af37;
}

.cat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.cat-name {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #d4af37;
}

.cat-desc {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

/* Badges Preview */
.badges-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.badge {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
}

.badge.earned {
    background: linear-gradient(135deg, #d4af37, #b8960c);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.badge.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge-name {
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    margin-top: 5px;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.badge-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
}

.badge-card.earned {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.badge-card .badge {
    margin: 0 auto 10px;
}

.badge-card .badge-title {
    font-size: 0.9rem;
    color: #d4af37;
    margin-bottom: 5px;
}

.badge-card .badge-desc {
    font-size: 0.75rem;
    color: #888;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #d4af37, #b8960c);
    color: #000;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-weight: bold;
    transition: all 0.3s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 13px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

.link-btn {
    background: none;
    border: none;
    color: #d4af37;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Name Screen */
#nameScreen {
    text-align: center;
    padding-top: 50px;
}

#nameScreen p {
    color: #888;
    margin-bottom: 20px;
}

#playerName {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #444;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    font-family: Georgia, serif;
}

#playerName:focus {
    outline: none;
    border-color: #d4af37;
}

/* Quiz Screen */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-info {
    display: flex;
    flex-direction: column;
}

#categoryLabel {
    color: #d4af37;
    font-size: 0.9rem;
}

#questionCount {
    color: #888;
    font-size: 0.85rem;
}

.score-info {
    color: #d4af37;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4cf67);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.question-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #fff;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: Georgia, serif;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.answer-btn.correct {
    background: rgba(50, 205, 50, 0.3);
    border-color: #32cd32;
    color: #90EE90;
}

.answer-btn.incorrect {
    background: rgba(220, 20, 60, 0.3);
    border-color: #dc143c;
    color: #ff6b6b;
}

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

.explanation-box {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
    color: #ccc;
    line-height: 1.6;
}

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

#nextBtn {
    display: none;
    margin: 0 auto;
}

#nextBtn.show {
    display: block;
}

/* Results Screen */
#resultsScreen {
    text-align: center;
    padding-top: 30px;
}

.results-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
}

.score-display {
    margin-bottom: 10px;
}

.score-number {
    font-size: 5rem;
    color: #d4af37;
    font-weight: bold;
}

.score-total {
    font-size: 2rem;
    color: #888;
}

.score-percent {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.score-message {
    font-size: 1.2rem;
    color: #ccc;
}

.badges-earned {
    margin: 30px 0;
}

#newBadges {
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

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

    .question-text {
        font-size: 1.1rem;
    }

    .score-number {
        font-size: 3.5rem;
    }

    .container {
        padding: 15px;
    }
}
