:root {
    --bg: #fafaf8;
    --text: #222222;
    --muted: #8a8a8a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ==========================
   LANDING (UNCHANGED)
   ========================== */

.landing {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 2rem;
}

h1 {
    margin: 0;

    font-size: clamp(3rem, 10vw, 5rem);

    font-weight: 300;

    letter-spacing: 0.03em;

    text-transform: lowercase;
}

.subtitle {
    margin-top: 0.5rem;

    color: var(--muted);

    font-size: 1rem;
}

.play-button {
    margin-top: 2rem;

    text-decoration: none;

    color: white;
    background: #222;

    padding: 0.9rem 2.5rem;

    border-radius: 999px;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.play-button:hover {
    transform: translateY(-2px);
}

.play-button:active {
    transform: translateY(0px);
}

footer {
    text-align: center;

    padding: 2rem 1rem 3rem;
}

.credits {
    color: var(--muted);

    font-size: 0.8rem;

    line-height: 1.6;
}

.neocities {
    margin-top: 1rem;

    opacity: 0.7;
}

.neocities img {
    width: 88px;
    height: auto;
}

a {
    color: inherit;
}

/* ==========================================
   GAME PAGE
   ========================================== */

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --------------------------
   Prompt animal
-------------------------- */

.prompt-card {
    width: 100%;
    max-width: 700px;

    background: white;

    padding: 10px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);

    border-radius: 4px;
}

.prompt-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.prompt-name {
    text-align: center;

    padding: 0.9rem;

    font-size: 1.2rem;

    font-weight: 500;
}

/* --------------------------
   Question counter
-------------------------- */

.question-number {
    margin: 1rem 0;

    color: var(--muted);

    font-size: 0.9rem;
}

/* --------------------------
   Answer area
-------------------------- */

.answers {
    width: 100%;

    display: flex;
    justify-content: center;
    gap: 1rem;

    margin-top: 1.5rem;
}

/* --------------------------
   Polaroid cards
-------------------------- */

.answer-card {
    width: min(42vw, 260px);

    background: white;

    padding: 8px;

    border: none;

    cursor: pointer;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.12);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.4s ease;
}

.answer-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 4px 14px rgba(0,0,0,0.18);
}

.answer-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.answer-name {
    padding: 0.8rem 0.5rem;

    text-align: center;

    font-size: 0.95rem;

    color: var(--text);
}

/* --------------------------
   Feedback
-------------------------- */

.feedback {
    margin-top: 1.5rem;

    min-height: 2rem;

    font-size: 1.1rem;

    font-weight: 600;

    text-align: center;
}

.feedback.correct {
    color: #2e7d32;
}

.feedback.incorrect {
    color: #c62828;
}

/* --------------------------
   Result states
-------------------------- */

.answer-card.correct {
    outline: 4px solid #4caf50;
}

.answer-card.wrong {
    opacity: 0.25;
}

.fade-out {
    opacity: 0;
}
.results-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.correct {
    background: #2ecc71; /* green */
}

.dot.wrong {
    background: #e74c3c; /* red */
}

/* --------------------------
   Mobile
-------------------------- */

@media (max-width: 700px) {

    .answers {
        gap: 0.75rem;
    }

    .answer-card {
        width: 45vw;
    }

    .prompt-name {
        font-size: 1rem;
    }

    .answer-name {
        font-size: 0.85rem;
    }
}