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

:root {
    --green: #3ddc5a;
    --dark: #0e0e0e;
    --offwhite: #f0ede6;
    --accent: #ffe44d;
    --muted: #888;
    --card-bg: #1a1a1a;
}

.sspp img { width: 64px; }

body {
    background-color: var(--dark);
    color: var(--offwhite);
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

#bg-gif {
    position: fixed;
    min-width: 100%;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

.sspp {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
}
.sspp img { width: 80px; }

#quiz-wrapper {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeDown 0.6s ease both;
}
.quiz-header h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 5vw, 2rem);
    color: var(--green);
    letter-spacing: -1px;
    line-height: 1.05;
}
.quiz-header p {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

#question-card {
    background: var(--card-bg);
    border: 1px solid #2e2e2e;
    padding: 32px 28px;
    animation: slideIn 0.35s ease both;
}

.q-number {
    font-size: 0.7rem;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* IMAGE PLACEHOLDER — replace div contents with <img> tag when ready */
.q-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #252525;
    border: 2px dashed #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #444;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    gap: 6px;
    text-align: center;
    padding: 12px;
}
.q-image-placeholder .ph-icon { font-size: 2rem; opacity: 0.35; }

.q-text {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 24px;
    color: var(--offwhite);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: transparent;
    border: 1px solid #2e2e2e;
    border-radius: 2px;
    padding: 14px 18px;
    color: var(--offwhite);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.4;
}
.option-btn:hover {
    border-color: var(--green);
    background: rgba(61, 220, 90, 0.07);
    color: var(--green);
}
.option-btn.selected {
    border-color: var(--green);
    background: rgba(61, 220, 90, 0.14);
    color: var(--green);
}
.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 0.75rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}
.nav-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #333;
    border-radius: 2px;
    padding: 11px 22px;
    cursor: pointer;
    transition: all 0.18s;
    background: transparent;
    color: var(--offwhite);
}
.nav-btn:hover:not(:disabled) { border-color: var(--offwhite); }
.nav-btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--dark);
    font-weight: 700;
}
.nav-btn.primary:hover { background: #56e870; }
.nav-btn:disabled { opacity: 0.25; cursor: default; }

/* ---- RESULTS ---- */
#result-card {
    display: none;
    background: var(--card-bg);
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 36px 28px;
    text-align: center;
    animation: slideIn 0.4s ease both;
}

.result-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 16px;
}

/* RESULT IMAGE PLACEHOLDER — replace div with <img> tag when ready */
.result-image-placeholder {
    width: 140px;
    height: 140px;
    background: #252525;
    border: 2px dashed #333;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #444;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    gap: 4px;
    text-align: center;
    padding: 10px;
}
.result-image-placeholder .ph-icon { font-size: 1.8rem; opacity: 0.35; }

.result-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.1;
}
.result-desc {
    font-size: 0.84rem;
    color: #aaa;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto 28px;
}

.retake-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--green);
    border-radius: 2px;
    padding: 11px 28px;
    cursor: pointer;
    background: transparent;
    color: var(--green);
    transition: all 0.18s;
}
.retake-btn:hover { background: rgba(61,220,90,0.1); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}