/* Owned reference form styles, scoped by the Match-only enqueue. */
.prediction-choice-form {
    margin-top: 16px;
}


.prediction-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


.prediction-choice {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "marker label"
        "marker micro";
    column-gap: 12px;
    row-gap: 3px;
    min-height: 104px;
    align-content: center;
    padding: 18px 44px 18px 18px;
    background: var(--surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}


.prediction-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.prediction-choice:hover {
    border-color: rgba(21, 154, 52, 0.36);
    transform: translateY(-1px);
}

.prediction-choice-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border: 1px solid #b8c5bd;
    border-radius: 50%;
    background: var(--surface);
}

.prediction-choice-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--grass);
    opacity: 0;
}

.prediction-choice-marker {
    grid-area: marker;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--grass-dark);
    font-weight: var(--font-weight-semibold, 600);
}

.prediction-choice strong {
    grid-area: label;
    align-self: end;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
}

.prediction-choice small {
    grid-area: micro;
    color: var(--muted);
    font-size: var(--arena-match-meta-size);
    font-weight: 600;
}

.prediction-choice.selected,
.prediction-choice:has(input:checked) {
    border-color: rgba(21, 154, 52, 0.48);
    background: #f2fbf5;
    box-shadow: 0 0 0 3px rgba(21, 154, 52, 0.12);
}

.prediction-choice.selected .prediction-choice-radio::after,
.prediction-choice:has(input:checked) .prediction-choice-radio::after {
    opacity: 1;
}

.prediction-choice.selected .prediction-choice-marker,
.prediction-choice:has(input:checked) .prediction-choice-marker {
    background: var(--grass);
    border-color: var(--grass);
    color: var(--surface);
}

@supports selector(.prediction-choice:has(input:checked)) {
    .prediction-choice.selected:has(input:not(:checked)) {
        border-color: var(--line);
        background: var(--surface);
        box-shadow: none;
    }

    .prediction-choice.selected:has(input:not(:checked)) .prediction-choice-radio::after {
        opacity: 0;
    }

    .prediction-choice.selected:has(input:not(:checked)) .prediction-choice-marker {
        background: var(--surface-soft);
        border-color: var(--line);
        color: var(--grass-dark);
    }
}

.prediction-choice input:focus-visible + .prediction-choice-radio {
    outline: 3px solid rgba(21, 154, 52, 0.22);
    outline-offset: 3px;
}

.prediction-actions {
    align-items: center;
    grid-template-columns: 1fr auto;
    margin-top: 14px;
}

.match-inline-prediction-panel {
    scroll-margin-top: 96px;
}

.match-inline-prediction-panel .prediction-choice-form {
    margin-top: 2px;
}

.match-inline-prediction-panel .prediction-choice-grid {
    margin-top: 0;
}

.match-user-prediction-card {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) auto;
    gap: 12px;
    align-items: stretch;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(21, 154, 52, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, #f4fbf6, #fff);
}

.match-user-prediction-card > div {
    display: grid;
    gap: 4px;
    align-content: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(21, 154, 52, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.match-user-prediction-card span,
.match-community-heading span,
.match-change-prediction small,
.match-login-cta p {
    color: var(--muted, #60766a);
    font-size: var(--arena-match-body-size);
    line-height: 1.4;
}

.match-user-prediction-card strong {
    color: var(--ink, #14251b);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.28;
}

.match-user-prediction-card p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--grass-dark, #087b24);
    font-size: var(--arena-match-body-size);
    line-height: 1.5;
}

.match-community-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line, #dce8e0);
    border-radius: 16px;
    background: #fbfdfc;
}

.match-community-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.match-community-heading > div {
    display: grid;
    gap: 3px;
}

.match-community-heading strong {
    color: var(--ink, #14251b);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
}

.match-community-heading em {
    justify-self: end;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--grass-dark, #087b24);
    background: var(--grass-soft, #e8f8ee);
    font-size: var(--arena-match-meta-size);
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.match-community-probabilities {
    margin-top: 0;
}

.match-change-prediction {
    margin-top: 14px;
    border: 1px solid var(--line, #dce8e0);
    border-radius: 16px;
    background: #fff;
}

.match-change-prediction summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 56px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.match-change-prediction summary::-webkit-details-marker {
    display: none;
}

.match-change-prediction summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    color: var(--grass-dark, #087b24);
    background: var(--grass-soft, #e8f8ee);
    font-weight: 650;
}

.match-change-prediction[open] summary::after {
    content: "-";
}

.match-change-prediction summary span {
    color: var(--ink, #14251b);
    font-weight: var(--font-weight-semibold, 600);
}

.match-change-prediction .prediction-choice-form {
    margin: 0;
    padding: 0 14px 14px;
}

.match-login-cta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(21, 154, 52, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, #f5fbf7, #fff);
}

.match-login-cta > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.match-login-cta strong {
    color: var(--ink, #14251b);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
}

.match-login-cta p {
    margin: 0;
}

.match-login-cta > div:last-child {
    justify-content: end;
}

@container arena-page (max-width: 760px) {
    .match-user-prediction-card,
    .match-login-cta {
        grid-template-columns: 1fr;
    }

    .match-user-prediction-card,
    .match-login-cta,
    .match-community-heading,
    .match-change-prediction summary {
        display: grid;
        justify-items: stretch;
    }

    .match-community-heading em {
        justify-self: start;
        white-space: normal;
    }

    .match-login-cta > div:last-child {
        justify-content: stretch;
    }

    .match-login-cta .prediction-button,
    .match-login-cta .auth-link {
        width: 100%;
        justify-content: center;
    }
}

.arena-match-page .prediction-button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:11px 16px;border:1px solid #159a34;border-radius:8px;background:#159a34;color:#fff;font:600 14px/1.3 inherit;text-decoration:none;cursor:pointer}
.arena-match-page{--line:#dce8e0;--radius-md:14px;--surface:#fff;--surface-soft:#f5f8f6;--grass:#159a34;--grass-dark:#087b24;--ink:#14251b;--muted:#60766a}
.match-inline-prediction-panel .section-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.match-inline-prediction-panel .section-heading>.arena-match-icon{width:40px;height:40px;padding:9px;background:#f0f8f2;border:1px solid #dce8e0;border-radius:50%}
.match-inline-prediction-panel .section-heading h2{margin:0 0 6px;font-size:var(--arena-match-title-size);line-height:1.2}
.match-inline-prediction-panel .section-heading p{margin:0;font-size:var(--arena-match-body-size);line-height:1.6;color:#60766a}
.match-inline-prediction-panel .prediction-choice-grid{display:grid;gap:14px;margin-top:2px}
.match-inline-prediction-panel .prediction-choice-form{margin-top:14px}
.match-inline-prediction-panel .real-match-note{font-size:var(--arena-match-body-size);line-height:1.6;color:#60766a;margin:0}
.match-community-probabilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.match-community-probabilities span{display:grid;text-align:center;font-size:var(--arena-match-meta-size);gap:5px;padding:12px;border:1px solid #dce8e0;border-radius:12px;background:#fff}
.match-community-probabilities strong{font-size:22px;color:#087b24}
/* Preserve the reference card rhythm and controls within the current Match body. */
.arena-match-page .match-inline-prediction-panel{display:grid;gap:20px;padding:clamp(20px,2.4vw,30px)}
.match-inline-prediction-panel .section-heading{align-items:center;margin-bottom:0}
.match-inline-prediction-panel .section-heading h2{font-size:var(--arena-match-title-size);margin:0 0 5px;font-weight:var(--arena-match-semibold)}
.match-inline-prediction-panel .section-heading p{font-size:var(--arena-match-body-size);line-height:1.45}
.match-inline-prediction-panel .section-heading>.arena-match-icon{width:38px;height:38px;background:#e1f4e8;border-color:#8cd3a3}
.match-inline-prediction-panel .real-match-note{font-size:var(--arena-match-body-size);line-height:1.3;padding:10px 12px;border-radius:12px;background:#f7faf8;text-align:center}
.match-inline-prediction-panel .prediction-choice-form{margin-top:2px}
.arena-match-page .prediction-button{min-height:40px;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(180deg,#35c84d,#159a34);font:inherit;font-weight:600}
.match-login-cta .arena-account-button{border:1px solid #dce8e0;border-radius:999px;background:#fff;color:#087b24;min-height:40px}
.match-inline-prediction-panel .real-status-pill{justify-self:start;padding:3px 12px;border-radius:999px;background:#eaf8ef;border:1px solid #bfe5cc}
.match-community-probabilities{gap:8px}
.match-community-probabilities span{gap:3px;padding:10px 8px;border:0;background:#f5f8f6;color:#60766a;font-size:var(--arena-match-body-size)}
.match-community-probabilities strong{color:#14251b;font-size:16px;font-weight:var(--arena-match-semibold)}
.match-community-probabilities span,.match-community-probabilities strong{line-height:1.3}
.match-inline-prediction-panel .prediction-actions{display:flex;justify-content:flex-end}
.match-change-prediction .prediction-choice-form{margin:0}
.arena-match-empty-module{flex:1;min-height:430px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:1px solid #dce8e0;border-radius:6px;padding:20px;text-align:center;color:#60766a;font-size:var(--arena-match-meta-size)}
.arena-match-empty-module strong{font-size:var(--arena-match-meta-size);color:#344d3e}.arena-match-empty-module p{margin:0;line-height:1.5}
/* Hero actions now live in normal flow below the result in every match state. */
@container arena-page (max-width:760px) {.match-inline-prediction-panel .prediction-choice-grid{grid-template-columns:1fr}.arena-match-page .match-inline-prediction-panel{padding:16px}.match-inline-prediction-panel .prediction-actions .prediction-button{width:100%}}
@container arena-page (max-width:720px) {.arena-match-empty-module{min-height:230px}}
