/*
 * Capture experiment #2 — end-of-game save prompt (free scoreboards).
 * Matches the sibling scorekeeper save-match modal palette (#3b82f6) and
 * theme tokens so it reads consistently across every board.
 */

.eog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 1rem;
    animation: eogFadeIn 0.18s ease-out;
}
.eog-overlay[hidden] { display: none; }

@keyframes eogFadeIn { from { opacity: 0; } to { opacity: 1; } }

.eog-card {
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: eogRise 0.2s ease-out;
}
@keyframes eogRise { from { transform: translateY(12px); } to { transform: translateY(0); } }

.eog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}
.eog-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #111);
}
.eog-close {
    background: transparent;
    border: 0;
    color: var(--text-secondary, #666);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.eog-close:hover {
    background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
    color: var(--text-primary, #111);
}

.eog-body { padding: 1.25rem 1.25rem 0.75rem; }

.eog-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}
.eog-team {
    font-weight: 700;
    color: var(--text-primary, #111);
    max-width: 7em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eog-score {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #3b82f6;
    font-variant-numeric: tabular-nums;
    min-width: 1.5ch;
    text-align: center;
}
.eog-vs {
    font-size: 0.75rem;
    color: var(--text-tertiary, #888);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.eog-period {
    text-align: center;
    margin: 0 0 1rem;
    font-size: 0.75rem;
    color: var(--text-tertiary, #888);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.eog-pitch {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--text-primary, #111);
    text-align: center;
    line-height: 1.5;
    font-weight: 700;
}
.eog-sub {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary, #555);
    text-align: center;
    line-height: 1.5;
}

.eog-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
.eog-btn {
    padding: 0.7rem 1.1rem;
    border-radius: 0.5rem;
    border: 0;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.eog-btn-skip {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #111);
}
.eog-btn-skip:hover { background: var(--bg-tertiary, #e8e8e8); }
.eog-btn-primary {
    background: #3b82f6;
    color: #fff !important;
}
.eog-btn-primary:hover { background: #2563eb; }

.eog-toast {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 0.8rem 1.25rem;
    border-radius: 0.6rem;
    z-index: 10100;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: 92%;
    text-align: center;
    line-height: 1.45;
}
.eog-toast a { color: #93c5fd; text-decoration: underline; }

/* Dark-themed boards + explicit dark theme. */
.basketball-scoreboard .eog-card,
.football-scoreboard .eog-card,
.hockey-scoreboard .eog-card,
.soccer-scoreboard .eog-card,
[data-theme="dark"] .eog-card {
    background: #1e293b;
    color: #f1f5f9;
}
.basketball-scoreboard .eog-header h3,
.football-scoreboard .eog-header h3,
.hockey-scoreboard .eog-header h3,
.soccer-scoreboard .eog-header h3,
[data-theme="dark"] .eog-header h3,
.basketball-scoreboard .eog-pitch,
.football-scoreboard .eog-pitch,
.hockey-scoreboard .eog-pitch,
.soccer-scoreboard .eog-pitch,
[data-theme="dark"] .eog-pitch,
.basketball-scoreboard .eog-team,
.football-scoreboard .eog-team,
.hockey-scoreboard .eog-team,
.soccer-scoreboard .eog-team,
[data-theme="dark"] .eog-team {
    color: #f1f5f9;
}
.basketball-scoreboard .eog-summary,
.football-scoreboard .eog-summary,
.hockey-scoreboard .eog-summary,
.soccer-scoreboard .eog-summary,
[data-theme="dark"] .eog-summary {
    background: rgba(255, 255, 255, 0.06);
}
