/* Landing first screen: the game day in front of a newcomer (walk call 2, 2026-10-26).
 * Sized so the heading, the primary control and five rows sit above the one-line
 * cookie strip on a 360x640 phone (tests/test_landing_first_screen.py). */

.landing-slate {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0.75rem 0.875rem;
}

.landing-slate__inner {
    max-width: 880px;
    margin: 0 auto;
}

.landing-slate__head {
    margin-bottom: 0.5rem;
}

.landing-slate__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.landing-slate__title {
    margin: 0.125rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.landing-slate__sub {
    margin: 0.125rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* The one primary control on the page (data-primary="1"). */
.landing-slate__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    margin: 0.5rem 0 0.625rem;
    padding: 0.625rem 0.875rem;
    min-height: 44px;
    border-radius: 8px;
    background: #047857;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.3;
}

.landing-slate__primary:hover,
.landing-slate__primary:focus-visible {
    background: #065f46;
    color: #fff !important;
}

.landing-slate__primary-verb {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.92;
}

.landing-slate__primary-teams {
    font-size: 1rem;
}

.landing-slate__games {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.landing-slate__games > li + li {
    border-top: 1px solid var(--border-color);
}

.landing-game {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) minmax(7rem, auto) 7.5rem;
    grid-template-areas: "time teams line state";
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    background-color: var(--bg-primary);
}

.landing-game:hover,
.landing-game:focus-visible {
    background-color: var(--bg-secondary);
}

.landing-game__time {
    grid-area: time;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.landing-game--live .landing-game__time {
    color: #b91c1c;
    font-weight: 700;
}

.landing-game__teams {
    grid-area: teams;
    font-weight: 600;
    font-size: 0.95rem;
    /* Names wrap rather than truncate ("Western Kentu..." read worse than two lines). */
    white-space: normal;
    overflow-wrap: anywhere;
}

.landing-game__at {
    font-weight: 400;
    color: var(--text-secondary);
}

.landing-game__line {
    grid-area: line;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.landing-game__state {
    grid-area: state;
    text-align: right;
}

.landing-game__chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.landing-game__chip--locked { color: var(--text-secondary); }
.landing-game__chip--unlocked { color: #047857; }

.landing-game__chip--win,
.landing-game__chip--loss,
.landing-game__chip--push {
    min-width: 1.6em;
    padding: 0 5px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
}

.landing-game__chip--win { background: #15803d; }
.landing-game__chip--loss { background: #b91c1c; }
.landing-game__chip--push { background: #57534e; }

.landing-slate__all {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Phone: two lines per game, teams on top, time + line + state below. */
@media (max-width: 640px) {
    .landing-game {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "teams teams teams"
            "time line state";
        gap: 0 0.5rem;
        padding: 0.3125rem 0.625rem;
        line-height: 1.3;
    }

    .landing-game__line {
        text-align: left;
        white-space: normal;
    }

    .landing-slate__title {
        font-size: 1.125rem;
    }
}
