/*
 * The landing page at `/`. WEB-16.
 *
 * A light page, unlike the rest of the site: the brand's paper-tinted ground
 * with a blue and a crimson glow behind the first two sections, dark cards for
 * the two top-ten lists, and the coming week's games under the divider. The
 * colours it needs that the dark pages did not are in theme.css under WEB-16.
 */

body {
    margin: 0;
    background: var(--home-ground);
    color: var(--brand-ink);
    font-family: var(--font-home);
    font-variant-numeric: tabular-nums;
}

.home {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

/* The two glows, behind everything above the divider. */
.home::before,
.home::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(120px);
}

.home::before {
    top: -160px;
    left: 10%;
    width: 640px;
    height: 420px;
    background: var(--brand-blue);
    opacity: 0.26;
}

.home::after {
    top: 520px;
    right: -120px;
    width: 480px;
    height: 420px;
    background: var(--brand-red);
    opacity: 0.16;
}

.home a {
    color: var(--brand-navy);
}

.home a:hover {
    color: var(--brand-red);
}

/* -- The two mirrored sections ---------------------------------------- */

.home-split {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}

.home-split-reverse {
    padding: 48px 24px 112px;
}

.home-copy {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
}

.home-lede {
    margin: 0;
    max-width: 520px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--home-ink-soft);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

.home .home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.home .home-button-blue {
    color: var(--brand-paper);
    background: var(--brand-gradient);
    box-shadow: 0 10px 30px rgba(62, 146, 204, 0.3);
}

.home .home-button-gold {
    color: var(--brand-ink);
    background: var(--gold-gradient);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.home .home-button-ghost {
    color: var(--brand-navy);
    border: 1px solid rgba(10, 36, 99, 0.3);
    background: rgba(255, 255, 255, 0.55);
}

.home .home-button-navy {
    align-self: flex-start;
    color: var(--brand-paper);
    background: var(--brand-navy);
}

.home .home-button:hover {
    filter: brightness(1.08);
}

/* -- The top-ten boards ----------------------------------------------- */

.home-board {
    flex: 1 1 440px;
    min-width: 0;
    padding: 24px;
    border-radius: 20px;
    background: var(--brand-ink);
    box-shadow: 0 30px 80px rgba(10, 36, 99, 0.25);
    color: var(--text);
}

.home-board-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 4px 16px;
}

.home-board-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    color: var(--brand-paper);
}

.home-board-head span {
    font-size: 13px;
    color: var(--text-muted);
}

.home-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-list li {
    display: grid;
    grid-template-columns: 32px 34px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}

.home-list .home-list-moves {
    grid-template-columns: 32px 34px minmax(0, 1fr) 40px 64px;
}

.home-rank {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    text-align: right;
}

.home-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.home-name {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home .home-name a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-bright);
    text-decoration: none;
}

.home .home-name a:hover {
    color: var(--blue-pale);
}

.home-record {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.home-bar {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 250, 255, 0.07);
}

.home-bar span {
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
}

.home-board-gold .home-bar span {
    background: var(--gold-gradient);
}

.home-score {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--brand-paper);
    text-align: right;
}

.home-move {
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    color: var(--text-muted);
}

.home-move-up { color: var(--rise-soft); }
.home-move-down { color: var(--fall-soft); }

.home .home-board-more {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--blue-pale);
    background: rgba(62, 146, 204, 0.08);
}

.home .home-board-gold .home-board-more {
    color: var(--gold-pale);
    background: rgba(251, 191, 36, 0.1);
}

/* -- The divider ------------------------------------------------------ */

.home-divider {
    position: relative;
    max-width: 1192px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--card-rule-gradient);
}

.home-divider-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--brand-ink);
    border: 5px solid var(--home-ground);
    box-shadow: 0 12px 30px rgba(10, 36, 99, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-divider-badge img {
    width: 50px;
    height: 50px;
}

/* -- The week ---------------------------------------------------------- */

.home-week {
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 24px 96px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.home-week-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
}

.home-week-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-eyebrow);
}

.home-week-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(56px, 9vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
}

.home-featured {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(10, 36, 99, 0.25);
}

.home .home-featured-link {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    text-decoration: none;
    color: var(--text-strong);
}

.home-half {
    flex: 1 1 380px;
    /* Tall enough that a long name at the foot -- Texas Tech, Mississippi
       State -- clears the line pill above it. */
    min-height: 340px;
    box-sizing: border-box;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--team-color, var(--team-fallback)) 0%,
                color-mix(in srgb, var(--team-color, var(--team-fallback)) 60%, black) 100%);
}

.home-half-right {
    align-items: flex-end;
    text-align: right;
}

.home-half-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-half-right .home-half-top {
    flex-direction: row-reverse;
}

.home-half-logo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--text-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-half-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.home-half-venue {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.home-half-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-half-team {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
}

.home-half-prob {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

.home-featured-line {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    min-width: 200px;
    padding: 22px 28px;
    border-radius: 20px;
    background: rgba(255, 250, 255, 0.18);
    border: 1px solid rgba(255, 250, 255, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.home-featured-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-featured-number {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1.05;
}

.home-featured-time {
    font-size: 14px;
    font-weight: 600;
}

.home-slate {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-slate h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    color: var(--brand-navy);
}

.home-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-row-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-eyebrow);
}

/* Four across, a row to a heading; two, then one, as the page narrows. */
.home-slate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1080px) {
    .home-slate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-slate-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home .home-game {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.08);
    text-decoration: none;
    color: var(--brand-ink);
}

.home .home-game:hover {
    color: var(--brand-ink);
    box-shadow: 0 12px 30px rgba(10, 36, 99, 0.16);
}

.home-game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-ink-muted);
}

.home-game-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-game-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-game-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.home-game-name {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
}

.home-game-prob {
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-navy);
}

.home-game-dog .home-game-name {
    font-weight: 600;
    color: var(--home-ink-soft);
}

.home-game-dog .home-game-prob {
    font-weight: 600;
    color: var(--home-ink-muted);
}

.home-game-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(10, 36, 99, 0.1);
    font-size: 13px;
    color: var(--home-ink-muted);
}

.home-game-line span:last-child {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--brand-navy);
}

.home-record-card {
    flex: 0 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-record-line {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--brand-navy);
}

.home-record-note {
    font-size: 15px;
    line-height: 1.5;
    color: var(--home-ink-soft);
}

.home .home-record-card a {
    padding-top: 6px;
    font-weight: 600;
    font-size: 15px;
}

.home-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px;
    border-top: 1px solid rgba(10, 36, 99, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--home-ink-muted);
}

@media (max-width: 640px) {
    .home-featured-line {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 0;
        background: var(--brand-ink);
        border: 0;
        order: 1;
    }

    .home-half-right {
        order: 2;
    }

    /* The pill is its own band here, with nothing to clear. */
    .home-half {
        min-height: 300px;
    }
}
