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

body {
    font-family: "DM Sans", sans-serif;
    background: #090b10;
    color: #ffffff;
    min-height: 100vh;
}

button,
a {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* ================= NAVBAR ================= */

.quiz-navbar {
    width: 100%;
    min-height: 75px;
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d1017;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.quiz-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.quiz-logo strong {
    color: #ffc107;
}

.back-home {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.back-home:hover {
    background: #ffc107;
    color: #111;
}

/* ================= HERO ================= */

.quiz-hero {
    text-align: center;
    padding: 75px 20px 45px;
}

.quiz-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.quiz-hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.05;
    max-width: 850px;
    margin: auto;
}

.quiz-hero h1 span {
    color: #ffc107;
}

.quiz-hero p {
    max-width: 650px;
    margin: 20px auto 0;
    color: #a9adb7;
    line-height: 1.7;
}

/* ================= GAME MODES ================= */

.game-section {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    padding: 30px 0 90px;
}

.game-section > h2 {
    text-align: center;
    font-family: "Outfit", sans-serif;
    font-size: 32px;
}

.game-subtitle {
    text-align: center;
    color: #8d929c;
    margin-top: 8px;
    margin-bottom: 35px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #11151d;
    color: white;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: left;
    transition: 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #ffc107;
    background: #171b24;
}

.game-icon {
    font-size: 38px;
    margin-bottom: 20px;
}

.game-card h3 {
    font-family: "Outfit", sans-serif;
    font-size: 21px;
    margin-bottom: 10px;
}

.game-card p {
    color: #9499a4;
    line-height: 1.5;
    min-height: 70px;
}

.game-card span {
    display: inline-block;
    margin-top: 20px;
    color: #ffc107;
    font-weight: 700;
}

.game-card span i {
    margin-left: 6px;
}

/* ================= QUIZ GAME ================= */

.quiz-game {
    width: 90%;
    max-width: 850px;
    margin: 40px auto 100px;
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.exit-button {
    border: none;
    background: #1a1e27;
    color: white;
    padding: 10px 15px;
    border-radius: 9px;
}

.quiz-progress,
.quiz-score {
    font-weight: 600;
}

.quiz-score {
    color: #ffc107;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1c2029;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    width: 10%;
    height: 100%;
    background: #ffc107;
    transition: width 0.4s ease;
}

.question-card {
    background: #11151d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 40px;
    text-align: center;
}

.question-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.question-category {
    color: #ffc107;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.question-card h2 {
    font-family: "Outfit", sans-serif;
    margin: 18px auto 30px;
    font-size: 28px;
    line-height: 1.4;
}

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

.answer-button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1e27;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.25s;
}

.answer-button:hover {
    border-color: #ffc107;
}

.answer-button.correct {
    background: #198754;
    border-color: #198754;
}

.answer-button.wrong {
    background: #dc3545;
    border-color: #dc3545;
}

.answer-message {
    min-height: 25px;
    margin-top: 20px;
    font-weight: 700;
}

/* ================= RESULTS ================= */

.quiz-results {
    width: 90%;
    max-width: 600px;
    margin: 70px auto 120px;
    padding: 50px 30px;
    text-align: center;
    background: #11151d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

.result-icon {
    font-size: 70px;
}

.quiz-results h2 {
    font-family: "Outfit", sans-serif;
    font-size: 36px;
    margin-top: 15px;
}

.quiz-results > p {
    color: #999ea8;
    margin-top: 10px;
}

.final-score {
    font-family: "Outfit", sans-serif;
    font-size: 55px;
    font-weight: 800;
    color: #ffc107;
    margin: 20px 0;
}

.quiz-results h3 {
    margin-bottom: 30px;
}

.play-again {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: auto;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #ffc107;
    color: #111;
    font-weight: 800;
    font-size: 16px;
}

.result-home {
    display: inline-block;
    color: #aaaeb7;
    margin-top: 20px;
    text-decoration: none;
}

.result-home:hover {
    color: #ffc107;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8d929c;
}

footer p {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {

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

/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .quiz-navbar {
        padding: 10px 15px;
    }

    .quiz-logo {
        font-size: 18px;
    }

    .quiz-logo img {
        width: 38px;
        height: 38px;
    }

    .back-home {
        padding: 9px 12px;
        font-size: 14px;
    }

    .quiz-hero {
        padding: 55px 18px 35px;
    }

    .quiz-hero h1 {
        font-size: 40px;
    }

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

    .game-card p {
        min-height: auto;
    }

    .quiz-top {
        font-size: 13px;
    }

    .question-card {
        padding: 28px 18px;
    }

    .question-card h2 {
        font-size: 22px;
    }

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

    .quiz-results {
        padding: 40px 20px;
    }

    .final-score {
        font-size: 45px;
    }
}
