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

html {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100%;
    /* Removed overflow: hidden so pages can scroll */
}

/* Only apply full-height no-scroll on the prediction page */
body.prediction-page {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.container {
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #f8fafc;
    flex-shrink: 0;
    line-height: 1.3;
}

.options {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.option {
    background: #1e293b;
    border-radius: 16px;
    padding: 14px;
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: 0.25s;
}

.option.winner {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.option-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f1f5f9;
    flex-shrink: 0;
}

.image-wrapper {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.votes {
    font-size: 1.05rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}

.vote-count {
    color: #38bdf8;
    font-size: 1.3rem;
}

.predict-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.predict-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result-msg {
    margin-top: 10px;
    font-size: 1.05rem;
    min-height: 1.3em;
    color: #22c55e;
    flex-shrink: 0;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {

    body.prediction-page {
        height: auto !important;
        min-height: 100dvh;
        overflow-y: auto !important;
        display: block !important;
        padding: 12px 10px 30px;
    }

    .container {
        height: auto !important;
        min-height: auto !important;
        justify-content: flex-start !important;
        padding-bottom: 30px;
    }

    .site-header {
        margin-bottom: 12px !important;
    }

    h1 {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
        line-height: 1.35 !important;
        padding: 0 4px;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .options {
        flex-direction: column !important;
        gap: 18px !important;
        align-items: center;
        margin-bottom: 10px;
    }

    .option {
        width: 100%;
        max-width: 340px;
        padding: 14px 12px !important;
    }

    .option-name {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .image-wrapper {
        height: 190px !important;
        flex: none !important;
        margin-bottom: 10px !important;
    }

    .votes {
        font-size: 1rem !important;
        margin-bottom: 4px;
    }

    .vote-count {
        font-size: 1.2rem !important;
    }

    .predict-btn {
        margin-top: 18px !important;
        margin-bottom: 8px;
        padding: 14px 28px !important;
        font-size: 1.05rem !important;
    }

    .result-msg {
        margin-top: 8px !important;
        margin-bottom: 12px;
    }
}