:root {
    color-scheme: light dark;
    --bg: #f2f8fb;
    --surface: #fbfdff;
    --surface-2: #d8edf7;
    --ink: #10243a;
    --muted: #526d80;
    --line: #a8ccdc;
    --acid: #7bc7e8;
    --acid-ink: #10243a;
    --red: #cf3340;
    --red-hover: #b72734;
    --paper: #f7fbfd;
    --danger: #a8202c;
    --success: #28684f;
    --header-h: 72px;
    --z-header: 20;
    --z-toast: 40;
    --z-intro: 60;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10243a;
        --surface: #17334c;
        --surface-2: #214662;
        --ink: #f4faff;
        --muted: #b9d7e6;
        --line: #4e7b92;
        --paper: #f7fbfd;
        --danger: #ff9299;
        --success: #8bd3b3;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

body::after {
    position: fixed;
    z-index: 100;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.035;
    background-image:
        repeating-radial-gradient(circle at 17% 31%, transparent 0 1px, currentColor 1px 2px),
        repeating-linear-gradient(93deg, transparent 0 7px, currentColor 8px 9px);
    background-size: 6px 7px, 13px 11px;
}

body.intro-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 120;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--paper);
    color: #10243a;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: var(--z-header);
    top: 0;
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0 3vw;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.wordmark span {
    display: grid;
    width: 2.1rem;
    aspect-ratio: 1;
    place-items: center;
    background: var(--acid);
    color: var(--acid-ink);
    box-shadow: inset 0 -0.35rem 0 var(--red);
    font-size: 1.3rem;
    font-family: Impact, "Arial Black", sans-serif;
    font-style: italic;
}

.site-header nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3rem);
}

.site-header nav a,
.header-action {
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.site-header nav a {
    position: relative;
}

.site-header nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-action {
    justify-self: end;
    padding: 0.75rem 1rem;
    border: 2px solid var(--red);
}

.header-action:active,
.button:active,
.person-card__replay:active {
    transform: translateY(1px) scale(0.985);
}

.hero {
    position: relative;
    min-height: calc(100dvh - var(--header-h));
    overflow: hidden;
    display: grid;
    align-items: end;
    color: #f0f1eb;
    background: #10243a;
}

.hero__image,
.hero__scrim {
    position: absolute;
    inset: 0;
}

.hero__image {
    background: url("../images/metlife-final-night.png") center / cover no-repeat;
    transform: scale(1.035);
    animation: hero-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__scrim {
    background:
        linear-gradient(90deg, rgba(14, 15, 13, 0.9) 0%, rgba(14, 15, 13, 0.46) 46%, rgba(14, 15, 13, 0.03) 82%),
        linear-gradient(0deg, rgba(14, 15, 13, 0.65), transparent 45%);
}

.hero__content {
    position: relative;
    width: min(94vw, 1480px);
    margin: 0 auto;
    padding: clamp(3rem, 7vh, 6rem) 0;
}

.hero__eyebrow,
.pick-section__title > p,
.admin-login > p,
.admin-topline p {
    margin: 0 0 1.2rem;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.hero h1,
.section-heading h2,
.pick-section__title h2,
.leaderboard-heading h2,
.admin-login h1,
.admin-topline h1 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 0.82;
}

.hero h1 {
    max-width: 8.5ch;
    font-size: clamp(4.2rem, 10.5vw, 10rem);
    animation: type-hit 900ms 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__copy {
    max-width: 31rem;
    margin: 1.6rem 0 1.8rem;
    color: #d0d3c9;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.45;
}

.hero__match {
    position: absolute;
    right: 4vw;
    bottom: 4vw;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.75rem;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 3.8rem);
    font-style: italic;
}

.hero__match strong {
    color: var(--red);
    font-size: 0.42em;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.button--acid {
    background: var(--red);
    color: #f7fbfd;
}

.button--acid:hover {
    background: var(--red-hover);
}

.button--dark {
    background: #10243a;
    color: #f7fbfd;
    border-color: #10243a;
}

.button--dark:hover {
    background: #1f4562;
}

.demo-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 3vw;
    background: var(--acid);
    color: var(--acid-ink);
    border-left: 0.7rem solid var(--red);
    font-size: 0.82rem;
}

.demo-banner strong {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.winner-section {
    position: relative;
    isolation: isolate;
    scroll-margin-top: var(--header-h);
    min-height: calc(100dvh - var(--header-h));
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 8rem);
    padding: clamp(7rem, 10vw, 10rem) max(3vw, calc((100vw - 1480px) / 2));
    background:
        linear-gradient(90deg, rgba(16, 36, 58, 0.98) 0 34%, rgba(16, 36, 58, 0.7) 68%, rgba(16, 36, 58, 0.92)),
        url("../images/metlife-final-night.png") center / cover;
    color: #f7fbfd;
}

.winner-section::before,
.winner-section::after {
    position: absolute;
    z-index: -1;
    width: 54vw;
    height: 11vw;
    content: "";
    transform: translateX(115%) rotate(-12deg);
}

.winner-section::before {
    top: 8%;
    right: -8%;
    background: var(--acid);
}

.winner-section::after {
    right: -2%;
    bottom: 5%;
    background: var(--red);
}

.winner-section.is-visible::before,
.winner-section.is-visible::after {
    transform: translateX(0) rotate(-12deg);
    transition: transform 900ms 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-section__score {
    position: absolute;
    z-index: 3;
    top: 2rem;
    left: max(3vw, calc((100vw - 1480px) / 2));
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-1rem);
}

.winner-section.is-visible .winner-section__score {
    opacity: 1;
    transform: none;
    transition: opacity 500ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-section__score span,
.winner-section__score small {
    color: #b9d7e6;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.winner-section__score strong {
    color: var(--acid);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-style: italic;
}

.winner-section__headline {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-3rem) skewX(-4deg);
}

.winner-section.is-visible .winner-section__headline {
    opacity: 1;
    transform: none;
    transition: opacity 600ms 120ms ease, transform 850ms 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-section__headline p {
    margin: 0 0 1rem;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.winner-section__headline h2 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
    font-size: clamp(4.5rem, 8.8vw, 9.5rem);
    font-style: italic;
    line-height: 0.82;
    letter-spacing: -0.025em;
}

.winner-stage {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.winner-stage--shared {
    display: grid;
    grid-template-columns: repeat(2, minmax(15rem, 1fr));
    gap: 1rem;
}

.winner-card {
    position: relative;
    opacity: 0;
    transform: translateX(12%) skewX(-3deg) scale(0.94);
}

.winner-section.is-visible .winner-card {
    opacity: 1;
    transform: none;
    transition: opacity 600ms 260ms ease, transform 950ms 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-stage--shared .winner-card:nth-child(even) {
    transition-delay: 360ms;
}

.winner-card__photo {
    position: relative;
    width: 100%;
    height: min(64vh, 48rem);
    min-height: 30rem;
    overflow: hidden;
    border-bottom: 0.7rem solid var(--red);
    background: var(--acid);
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.winner-stage--shared .winner-card__photo {
    height: min(54vh, 38rem);
}

.winner-card__photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(16, 36, 58, 0.48), transparent 45%);
    pointer-events: none;
}

.winner-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.winner-card__photo > span {
    position: absolute;
    right: 0;
    bottom: -0.12em;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: min(34vw, 30rem);
    font-style: italic;
    line-height: 1;
}

.winner-card__copy {
    position: absolute;
    z-index: 2;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    text-shadow: 0 3px 0 rgba(16, 36, 58, 0.52);
}

.winner-card__copy p {
    margin: 0 0 0.45rem;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.winner-card__copy h3 {
    max-width: 11ch;
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-style: italic;
    line-height: 0.82;
    text-transform: uppercase;
}

.winner-stage--shared .winner-card__copy h3 {
    font-size: clamp(2.8rem, 4vw, 5rem);
}

.winner-card__copy strong {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 0.75rem;
    background: var(--red);
    color: #f7fbfd;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
}

.winner-section.is-celebrating .winner-card__photo img {
    animation: winner-photo 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.family-section,
.predictions-section,
.leaderboard-section {
    width: min(94vw, 1480px);
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.predictions-heading {
    max-width: 62rem;
}

.predictions-section {
    scroll-margin-top: var(--header-h);
    padding-block: clamp(4rem, 7vw, 6.5rem);
}

.predictions-heading h2 {
    font-size: clamp(3.8rem, 8vw, 8rem);
}

.predictions-heading p {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.predictions-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 3.5rem;
    border-top: 0.42rem solid var(--red);
    background: var(--line);
}

.prediction-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1.25rem;
    min-height: 9rem;
    padding: 1.2rem;
    background: var(--bg);
}

.prediction-row:first-child {
    background: var(--surface-2);
}

.prediction-row__person {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.prediction-row__person > img,
.prediction-row__person > span {
    width: 4rem;
    height: 5rem;
    object-fit: cover;
    object-position: top center;
}

.prediction-row__person > span {
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--ink);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 2rem;
}

.prediction-row__person h3 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.25rem, 1.8vw, 2rem);
    font-style: italic;
    line-height: 0.95;
    text-transform: uppercase;
}

.prediction-row__person h3 small {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.62rem;
    font-style: normal;
    letter-spacing: 0.08em;
}

.prediction-row__picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.prediction-row__picks > div {
    min-height: 4.6rem;
    padding-left: 0.9rem;
    border-left: 0.18rem solid var(--line);
}

.prediction-row__picks span,
.prediction-row__picks small {
    display: block;
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 800;
}

.prediction-row__picks span {
    margin-bottom: 0.45rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.prediction-row__picks strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.25rem;
    font-style: italic;
    text-transform: uppercase;
}

.prediction-row--pending .prediction-row__picks > div:first-child strong {
    color: var(--muted);
}

.section-heading {
    max-width: 58rem;
}

.section-heading h2,
.leaderboard-heading h2 {
    font-size: clamp(4rem, 10vw, 9.5rem);
}

.section-heading p {
    max-width: 34rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.family-track {
    display: grid;
    grid-auto-columns: minmax(260px, 29vw);
    grid-auto-flow: column;
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: 4rem;
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--red) var(--surface-2);
}

.person-card {
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(3rem) skewY(2deg);
}

.person-card.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 650ms calc(var(--i) * 55ms) ease, transform 800ms calc(var(--i) * 55ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.person-card__replay {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(145deg, transparent 40%, color-mix(in srgb, var(--acid) 55%, transparent)),
        url("../images/metlife-final-night.png") 68% center / cover;
    color: #f7fbfd;
    cursor: pointer;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), filter 350ms ease;
}

.person-card:nth-child(even) .person-card__replay {
    background-position: 85% center;
}

.person-card__replay:hover {
    transform: translateY(-0.45rem);
}

.person-card__replay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.08);
}

.person-card__initial {
    position: absolute;
    right: -0.02em;
    bottom: -0.17em;
    color: var(--acid);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(12rem, 28vw, 26rem);
    font-style: italic;
    line-height: 1;
    mix-blend-mode: screen;
}

.person-card__status {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.9rem;
    border-top: 3px solid var(--red);
    background: rgba(16, 36, 58, 0.9);
    text-align: left;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.person-card > p {
    margin: 1.15rem 0 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.person-card h3 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.8rem);
    font-style: italic;
    line-height: 0.95;
    text-transform: uppercase;
}

.pick-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.7fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: center;
    padding: clamp(5rem, 9vw, 9rem) max(3vw, calc((100vw - 1480px) / 2));
    background:
        linear-gradient(135deg, transparent 0 76%, rgba(247, 251, 253, 0.28) 76% 100%),
        var(--acid);
    color: var(--acid-ink);
    box-shadow: inset 0 0.75rem 0 var(--red);
}

.pick-section__title > p {
    color: #8f1823;
}

.pick-section__title h2 {
    font-size: clamp(4.5rem, 8.5vw, 9rem);
}

.pick-form {
    display: grid;
    gap: 1.7rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-top: 0.55rem solid var(--red);
    background: #f7fbfd;
    color: #10243a;
}

.field {
    display: grid;
    gap: 0.55rem;
}

.field label,
.score-fieldset legend,
.champion-fieldset legend {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.field small {
    color: #516879;
    font-size: 0.78rem;
    line-height: 1.4;
}

.field input,
.field select,
.score-team input,
.admin-form input,
.admin-form select {
    width: 100%;
    min-height: 3.2rem;
    border: 1px solid #718b9c;
    border-radius: 0;
    background: #fbfdff;
    color: #10243a;
    padding: 0.8rem 0.9rem;
}

.field input::placeholder,
.score-team input::placeholder,
.admin-form input::placeholder {
    color: #607789;
    opacity: 1;
}

.score-fieldset,
.champion-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.score-fieldset legend,
.champion-fieldset legend {
    margin-bottom: 0.8rem;
}

.score-picker {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0.75rem;
}

.score-team {
    display: grid;
    gap: 0.55rem;
}

.score-team label {
    min-height: 2.1em;
    font-size: 0.9rem;
    font-weight: 800;
}

.score-team input {
    height: 6rem;
    padding: 0.2rem;
    text-align: center;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 3.6rem;
}

.score-picker__divider {
    padding-bottom: 1.5rem;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 2.4rem;
}

.champion-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.champion-options label {
    position: relative;
    cursor: pointer;
}

.champion-options input {
    position: absolute;
    opacity: 0;
}

.champion-options span {
    display: grid;
    min-height: 3.2rem;
    place-items: center;
    padding: 0.7rem;
    border: 2px solid #718b9c;
    font-weight: 800;
    text-align: center;
    transition: background 180ms ease, border-color 180ms ease;
}

.champion-options input:checked + span {
    border-color: var(--red);
    background: var(--red);
    color: #f7fbfd;
}

.champion-options input:focus-visible + span {
    outline: 3px solid #2d86ae;
    outline-offset: 3px;
}

.secondary-pick {
    display: grid;
    gap: 1.25rem;
    margin-top: 0.35rem;
    padding: 1.35rem;
    border: 1px solid #a8ccdc;
    border-left: 0.4rem solid #718b9c;
    background: #e8f3f8;
}

.secondary-pick__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.secondary-pick__heading span {
    color: #526d80;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.secondary-pick__heading h3 {
    margin: 0.2rem 0 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-style: italic;
    line-height: 0.9;
    text-transform: uppercase;
}

.secondary-pick__heading > strong {
    color: #526d80;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 2.2rem);
    font-style: italic;
    white-space: nowrap;
}

.secondary-pick__heading i {
    color: var(--red);
    font-size: 0.55em;
}

.score-fieldset--compact .score-team input {
    height: 4.35rem;
    font-size: 2.65rem;
}

.score-fieldset--compact .score-picker__divider {
    padding-bottom: 0.95rem;
    font-size: 2rem;
}

.champion-fieldset--compact .champion-options span {
    min-height: 2.85rem;
    padding: 0.55rem;
    font-size: 0.86rem;
}

.pick-form .button {
    width: 100%;
}

.form-message {
    min-height: 1.2em;
    margin: -0.7rem 0 0;
    color: #344f63;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-message.is-error {
    color: #9e202b;
}

.leaderboard-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
    margin-bottom: 4rem;
}

.points-key {
    display: grid;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.points-key span {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.points-key strong {
    color: var(--ink);
}

.leaderboard-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: var(--red) var(--surface-2);
}

.leaderboard {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
}

.leaderboard thead {
    border-bottom: 0.38rem solid var(--red);
}

.leaderboard thead th {
    padding: 0 0.75rem 1rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.leaderboard thead th:nth-child(1) {
    width: 4rem;
    padding-left: 0;
    text-align: left;
}

.leaderboard thead th:nth-child(2) {
    width: 35%;
    text-align: left;
}

.leaderboard tbody tr {
    border-bottom: 1px solid var(--line);
}

.leaderboard tbody th,
.leaderboard tbody td {
    height: 6.6rem;
    padding: 1rem 0.75rem;
}

.leaderboard tbody tr:first-child {
    background: var(--surface-2);
}

.leaderboard__position {
    color: var(--muted);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.65rem;
    font-style: italic;
    text-align: left;
}

.leaderboard__name {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 3.1rem);
    font-style: italic;
    line-height: 0.9;
    text-align: left;
    text-transform: uppercase;
}

.leaderboard__name small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.leaderboard__stage-score {
    color: var(--ink);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.45rem;
    font-style: italic;
    text-align: center;
}

.leaderboard__total {
    border-left: 0.22rem solid var(--red);
    color: var(--red);
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 8rem;
    padding: 2rem 3vw;
    border-top: 0.45rem solid transparent;
    border-image: linear-gradient(90deg, var(--acid) 0 66%, var(--red) 66% 100%) 1;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

footer a {
    color: var(--muted);
    text-transform: uppercase;
}

.intro {
    position: fixed;
    z-index: var(--z-intro);
    inset: 0;
    display: none;
    overflow: hidden;
    background: #10243a;
    color: #f7fbfd;
}

.intro.is-active {
    display: block;
}

.intro__curtain {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 52%;
    background: #10243a;
    transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
}

.intro__curtain--left {
    left: 0;
    background: var(--acid);
}

.intro__curtain--right {
    right: 0;
    background: var(--red);
}

.intro.is-walkout .intro__curtain--left,
.intro.is-closing .intro__curtain--left {
    transform: translateX(-101%);
}

.intro.is-walkout .intro__curtain--right,
.intro.is-closing .intro__curtain--right {
    transform: translateX(101%);
}

.intro__grain {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: repeating-radial-gradient(circle at 23% 17%, transparent 0 1px, #f7fbfd 1px 2px);
    background-size: 5px 5px;
}

.intro__flash {
    position: absolute;
    z-index: 8;
    inset: 0;
    pointer-events: none;
    background: #f7fbfd;
    opacity: 0;
}

.intro__flash.is-flashing {
    animation: flash 340ms ease-out both;
}

.intro__opening {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    align-content: center;
    padding: 6vw;
    background:
        linear-gradient(112deg, transparent 0 64%, var(--red) 64% 75%, var(--acid) 75% 100%),
        #10243a;
    transition: opacity 240ms ease;
}

.intro__opening p {
    margin: 0 0 1.2rem;
    color: var(--acid);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.intro__opening h1 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(4rem, 13vw, 12rem);
    font-style: italic;
    line-height: 0.78;
    letter-spacing: -0.025em;
    animation: opening-hit 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro.is-walkout .intro__opening,
.intro.is-closing .intro__opening {
    opacity: 0;
}

.walkout {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42vw 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 4vw;
    align-items: end;
    padding: 6vw;
    background:
        linear-gradient(90deg, rgba(16, 36, 58, 0.4), #10243a 74%),
        url("../images/metlife-final-night.png") center / cover;
}

.walkout__portrait {
    grid-row: 1 / -1;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(140deg, transparent 30%, rgba(123, 199, 232, 0.48)),
        url("../images/metlife-final-night.png") 78% center / cover;
    transform: translateX(-18%) skewX(-5deg) scale(1.08);
    opacity: 0;
}

.walkout__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.12);
}

.walkout__portrait span {
    position: absolute;
    right: -0.04em;
    bottom: -0.15em;
    color: var(--acid);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: min(58vw, 50rem);
    font-style: italic;
    line-height: 1;
}

.walkout__count,
.walkout__nickname,
.walkout__name {
    position: relative;
    z-index: 2;
    opacity: 0;
}

.walkout__count {
    align-self: end;
    margin: 0 0 auto;
    color: #ff737d;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.walkout__nickname {
    margin: 0 0 1rem;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.walkout__name {
    align-self: start;
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(5rem, 13vw, 13rem);
    font-style: italic;
    line-height: 0.8;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transform: translateX(20%) skewX(-8deg);
}

.walkout__ghost {
    position: absolute;
    right: -0.04em;
    bottom: -0.3em;
    margin: 0;
    color: transparent;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(10rem, 28vw, 28rem);
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(247, 251, 253, 0.13);
    opacity: 0;
}

.walkout.is-entering .walkout__portrait {
    animation: portrait-enter 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.walkout.is-entering .walkout__count {
    animation: copy-enter 450ms 140ms ease-out both;
}

.walkout.is-entering .walkout__nickname {
    animation: copy-enter 500ms 200ms ease-out both;
}

.walkout.is-entering .walkout__name {
    animation: name-enter 760ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.walkout.is-entering .walkout__ghost {
    animation: ghost-enter 900ms 220ms ease-out both;
}

.intro__skip {
    position: absolute;
    z-index: 10;
    right: 2rem;
    bottom: 2rem;
    padding: 0.8rem 1rem;
    border: 2px solid var(--red);
    border-radius: 0;
    background: rgba(16, 36, 58, 0.88);
    color: #f7fbfd;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.toast {
    position: fixed;
    z-index: var(--z-toast);
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(26rem, calc(100vw - 2.5rem));
    padding: 1rem 1.2rem;
    background: #10243a;
    color: #f7fbfd;
    font-size: 0.88rem;
    font-weight: 700;
    transform: translateY(150%);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
    transform: translateY(0);
}

.toast.is-error {
    background: var(--red);
}

.admin-page {
    min-height: 100dvh;
}

.admin-shell {
    width: min(94vw, 1280px);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.admin-login {
    max-width: 42rem;
}

.admin-login h1 {
    font-size: clamp(4.5rem, 9vw, 7.5rem);
}

.admin-topline h1 {
    font-size: clamp(4.5rem, 12vw, 10rem);
}

.admin-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.admin-login .admin-form {
    max-width: 28rem;
}

.admin-alert {
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 5px solid var(--line);
    background: var(--surface-2);
    font-weight: 700;
}

.admin-alert--error {
    border-color: var(--danger);
    color: var(--danger);
}

.admin-alert--success {
    border-color: var(--success);
    color: var(--success);
}

.admin-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-topline p {
    color: var(--muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--surface);
}

.admin-panel--acid {
    background: var(--acid);
    color: var(--acid-ink);
    border-top: 0.55rem solid var(--red);
}

.admin-panel--secondary {
    border-top: 0.35rem solid var(--line);
}

.admin-panel--secondary-result {
    border-top-width: 0.35rem;
    background: var(--surface-2);
    color: var(--ink);
}

.admin-panel--wide {
    grid-column: 1 / -1;
}

.admin-panel h2 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-style: italic;
}

.admin-panel__intro {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.admin-table-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: var(--red) var(--surface-2);
}

.admin-points-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.admin-points-table thead {
    border-bottom: 0.3rem solid var(--red);
}

.admin-points-table th,
.admin-points-table td {
    padding: 0.8rem;
    text-align: left;
}

.admin-points-table thead th {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-points-table tbody tr {
    border-bottom: 1px solid var(--line);
}

.admin-points-table tbody th {
    width: 55%;
    font-size: 0.95rem;
}

.admin-points-table tbody th small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-points-table input {
    max-width: 8rem;
    text-align: center;
}

.admin-two-col,
.admin-participant-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-participant-form {
    grid-template-columns: 1fr 1fr 8rem auto;
    align-items: end;
}

.admin-participant-form .button {
    margin-bottom: 0;
}

.admin-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.admin-roster span {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    font-weight: 900;
}

.admin-roster small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
}

@keyframes hero-in {
    from { opacity: 0; transform: scale(1.13); }
    to { opacity: 1; transform: scale(1.035); }
}

@keyframes type-hit {
    from { opacity: 0; transform: translateX(-9%) skewX(-8deg); }
    to { opacity: 1; transform: none; }
}

@keyframes opening-hit {
    from { opacity: 0; transform: translateX(-12%) skewX(-8deg) scaleX(1.2); }
    to { opacity: 1; transform: none; }
}

@keyframes portrait-enter {
    from { opacity: 0; transform: translateX(-18%) skewX(-5deg) scale(1.08); }
    to { opacity: 1; transform: translateX(0) skewX(-2deg) scale(1); }
}

@keyframes name-enter {
    from { opacity: 0; transform: translateX(20%) skewX(-8deg); }
    to { opacity: 1; transform: none; }
}

@keyframes copy-enter {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: none; }
}

@keyframes ghost-enter {
    from { opacity: 0; transform: translateX(8%); }
    to { opacity: 1; transform: none; }
}

@keyframes flash {
    0% { opacity: 0; }
    8% { opacity: 0.9; }
    100% { opacity: 0; }
}

@keyframes winner-photo {
    0% { opacity: 0; transform: scale(1.2) translateX(8%); }
    34% { opacity: 1; }
    100% { opacity: 1; transform: scale(1.05) translateX(0); }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .site-header nav {
        display: none;
    }

    .hero__content,
    .family-section,
    .leaderboard-section {
        width: calc(100% - 2rem);
    }

    .winner-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 7rem 1rem 4rem;
    }

    .winner-section__score {
        top: 1.25rem;
        left: 1rem;
        flex-wrap: wrap;
        gap: 0.45rem 0.8rem;
    }

    .winner-section__score small {
        flex-basis: 100%;
    }

    .winner-section__headline h2 {
        font-size: clamp(4.4rem, 18vw, 7rem);
    }

    .winner-card__photo {
        height: min(62vh, 39rem);
        min-height: 27rem;
    }

    .winner-stage--shared {
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding: 3rem 0 6.5rem;
    }

    .hero h1 {
        font-size: clamp(4rem, 18vw, 7rem);
    }

    .hero__match {
        right: 1rem;
        bottom: 1rem;
    }

    .family-track {
        grid-auto-columns: minmax(250px, 78vw);
    }

    .pick-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 1rem;
    }

    .pick-section__title h2 {
        font-size: clamp(4.2rem, 20vw, 7.5rem);
    }

    .leaderboard-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .points-key {
        width: min(100%, 22rem);
    }

    .walkout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto auto;
        align-items: end;
        padding: 1rem 1rem 5rem;
        background: #10243a;
    }

    .walkout__portrait {
        position: absolute;
        inset: 0;
        grid-row: auto;
        opacity: 0.58;
    }

    .walkout__portrait::after {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(0deg, #10243a 8%, transparent 75%);
    }

    .walkout__count {
        margin-bottom: auto;
        align-self: start;
    }

    .walkout__name {
        font-size: clamp(4.8rem, 24vw, 8.5rem);
    }

    .walkout__ghost {
        font-size: 42vw;
    }

    .intro__skip {
        right: 1rem;
        bottom: 1rem;
    }

    .admin-grid,
    .admin-two-col,
    .admin-participant-form {
        grid-template-columns: 1fr;
    }

    .admin-panel--wide {
        grid-column: auto;
    }

    .predictions-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-action {
        padding: 0.65rem 0.7rem;
        font-size: 0.64rem;
    }

    .hero__copy {
        max-width: 19rem;
    }

    .hero__match {
        display: none;
    }

    .score-team label {
        font-size: 0.76rem;
    }

    .score-team input {
        height: 5rem;
        font-size: 3rem;
    }

    .champion-options {
        grid-template-columns: 1fr;
    }

    .secondary-pick {
        padding: 1rem;
    }

    .secondary-pick__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-pick .champion-options {
        grid-template-columns: 1fr 1fr;
    }

    .predictions-section {
        width: calc(100% - 2rem);
    }

    .prediction-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .prediction-row__picks {
        padding-left: 5rem;
    }

    .winner-card__copy {
        right: 1.3rem;
        bottom: 1.3rem;
        left: 1.3rem;
    }

    .winner-card__copy h3,
    .winner-stage--shared .winner-card__copy h3 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .leaderboard {
        min-width: 820px;
    }

    .leaderboard thead th:nth-child(2) {
        width: 24%;
    }

    .leaderboard tbody th,
    .leaderboard tbody td {
        height: 5.6rem;
    }

    .leaderboard__name {
        font-size: 1.5rem;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .admin-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .person-card {
        opacity: 1;
        transform: none;
    }
}
