/* Rowdy Rounds — Football Live Mode (football_live.html) */

.live-mode {
    max-width: 520px;
    margin: 0 auto;
}

.live-beta {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: var(--ember);
    color: var(--chalk);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-mode .panel-title {
    color: var(--accent-text);
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.live-picker-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.live-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.live-status {
    min-height: 1.2em;
    margin: 6px 0;
    color: rgb(var(--ink-rgb) / 0.65);
    font-size: 0.9rem;
}

.live-game-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-game-option {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    background-color: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.live-game-option:hover:not(:disabled) {
    background-color: var(--felt);
    color: var(--chalk);
}

.live-game-option:disabled {
    border-color: rgb(var(--ink-rgb) / 0.15);
    color: rgb(var(--ink-rgb) / 0.45);
    cursor: default;
}

.live-game-matchup {
    font-weight: 600;
}

.live-game-state {
    flex-shrink: 0;
    font-size: 0.8rem;
}

.live-game-option--in .live-game-state {
    color: var(--ember);
    font-weight: 700;
}

.live-game-option--in:hover .live-game-state {
    color: var(--chalk);
}

/* Scorebug */
.live-scorebug {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    background-color: var(--felt);
    color: var(--chalk);
}

.live-team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-team-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.live-team.has-ball .live-team-name::after {
    content: " \25CF";
    color: var(--foil);
}

.live-team-score {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.1;
}

.live-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
}

.live-down {
    color: var(--foil);
    font-weight: 600;
}

/* The prompt */
.live-prompt {
    margin: 16px 0;
    padding: 28px 22px;
    border: 3px solid var(--foil);
    border-radius: 12px;
    background-color: var(--surface);
    text-align: center;
    box-shadow: 0 6px 0 var(--foil-dark);
}

.live-prompt-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-text);
}

.live-prompt-text {
    margin: 0;
    font-size: 1.1rem;
}

.live-prompt--fresh {
    animation: live-prompt-flash 1.2s ease-out;
}

@keyframes live-prompt-flash {
    0% { background-color: var(--ember); transform: scale(1.03); }
    100% { background-color: var(--surface); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .live-prompt--fresh {
        animation: none;
    }
}

.live-delay {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.live-delay select {
    padding: 6px 8px;
    border: 2px solid var(--outline);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--surface);
}

.live-hint {
    margin: 6px 0 22px;
    font-size: 0.85rem;
    color: rgb(var(--ink-rgb) / 0.65);
}

.live-history {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.live-history:empty::before {
    content: "Nothing yet.";
    margin-left: -20px;
    color: rgb(var(--ink-rgb) / 0.5);
}

.live-credit {
    margin-top: 32px;
    font-size: 0.8rem;
    color: rgb(var(--ink-rgb) / 0.55);
    text-align: center;
}


/* NFL / College switch */
.live-league {
    display: flex;
    margin-bottom: 18px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    overflow: hidden;
}

.live-league-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: var(--surface);
    color: var(--accent-text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.live-league-btn[aria-pressed="true"] {
    background-color: var(--felt);
    color: var(--chalk);
}

/* The football deck below the live prompts */
.live-deck {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgb(var(--ink-rgb) / 0.12);
}

.live-deck-title {
    font-size: 2rem;
    color: var(--accent-text);
}

/* New-prompt banner while scrolled down to the deck */
.live-toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 900;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    padding: 14px 18px;
    border: 3px solid var(--foil);
    border-radius: 12px;
    background-color: var(--felt);
    color: var(--chalk);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.live-toast[hidden] {
    display: none;
}

.live-toast strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--foil);
}
