body {
    margin: 0;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(10, 18, 12, 0.78), rgba(10, 18, 12, 0.78)),
        url("https://images.pexels.com/photos/163443/war-desert-guns-gunshow-163443.jpeg?auto=compress&cs=tinysrgb&w=1800");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #edf3e6;
    text-align: center;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

#smokeOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

#startPage,
#quizPage,
#leaderboardPage {
    position: relative;
    z-index: 1;
    background: rgba(11, 20, 13, 0.88);
    backdrop-filter: blur(4px);
    padding: 24px;
    margin: 50px auto;
    width: 80%;
    max-width: 680px;
    border-radius: 14px;
    border: 1px solid rgba(164, 192, 153, 0.25);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

h1,
h2 {
    font-family: 'Russo One';
    margin: 0 0 14px;
    letter-spacing: 0.6px;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: #c6d6bc;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
}

button {
    padding: 11px 20px;
    font-size: 15px;
    background: linear-gradient(135deg, #58793f, #375428);
    color: #f5f8f2;
    border: 1px solid #7e9e66;
    margin-top: 12px;
    margin-right: 8px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(29, 51, 22, 0.45);
}

button:active {
    transform: translateY(0);
}

.option {
    background: #1b281f;
    padding: 12px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #3f5a46;
    text-align: left;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.option:hover {
    border-color: #8ea87f;
    background: #233629;
    transform: translateX(2px);
}

.option.correct {
    background: #2f7c3c;
    border-color: #7ec48a;
}

.option.wrong {
    background: #8a2f2f;
    border-color: #d07c7c;
}

input,
select {
    display: block;
    padding: 11px;
    font-size: 15px;
    background: #1a231d;
    color: #f1f5ec;
    border: 1px solid #4d6653;
    border-radius: 8px;
    width: 90%;
    max-width: 360px;
    margin: 10px auto;
}

input:focus,
select:focus {
    outline: none;
    border-color: #9ac384;
    box-shadow: 0 0 0 3px rgba(120, 167, 94, 0.26);
}

#playerInfo,
#statusBar,
#score,
#result,
#leaderboard {
    background: rgba(20, 31, 22, 0.72);
    border: 1px solid rgba(122, 148, 115, 0.34);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

#statusBar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

#timer {
    font-weight: 700;
}

#timer.low-time {
    color: #ffd0d0;
    text-shadow: 0 0 7px rgba(255, 96, 96, 0.75);
}

.end-btn {
    background: linear-gradient(135deg, #a02020 0%, #601010 100%);
    border: 2px solid #ff4040;
    margin-top: 15px;
}

.end-btn:hover {
    background: linear-gradient(135deg, #c03030 0%, #801010 100%);
    box-shadow: 0 5px 15px rgba(255, 64, 64, 0.45);
}

#leaderboard ol {
    text-align: left;
    margin: 0;
    padding-left: 22px;
}

#leaderboard li {
    margin: 7px 0;
}

#appFooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(11, 20, 13, 0.95);
    border-top: 1px solid rgba(164, 192, 153, 0.25);
    padding: 12px 0;
    text-align: center;
    z-index: 100;
}

#appFooter p {
    margin: 0;
    color: #a4c099;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 640px) {

    #startPage,
    #quizPage,
    #leaderboardPage {
        width: calc(100% - 28px);
        margin: 24px auto;
        padding: 16px;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    button {
        width: 100%;
        margin-right: 0;
    }
}