@font-face {
    font-display: swap;
    font-family: 'Thunder Extra Bold LC Italic';
    font-style: italic;
    font-weight: 800;
    src:
        url('/fonts/Thunder-ExtraBoldLCItalic.woff2') format('woff2'),
        url('/fonts/Thunder-ExtraBoldLCItalic.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Thunder Semi Bold LC';
    font-style: normal;
    font-weight: 600;
    src:
        url('/fonts/Thunder-SemiBoldLC.woff2') format('woff2'),
        url('/fonts/Thunder-SemiBoldLC.woff') format('woff');
}

:root {
    --color-green: #154539;
    --color-greige: #faf3e8;
    --color-terracotta: #c14c23;
    --color-pink: #f3cbc4;
    --color-sky: #d8edf0;
    --color-lime: #dce8b8;
    --color-ink: #17211d;
    --color-muted: #65736d;
    --color-white: #ffffff;
    --color-border: rgba(21, 69, 57, 0.14);
    --color-panel: rgba(255, 255, 255, 0.76);
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 36px;
    --duration-fast: 160ms;
    --duration-normal: 260ms;
    --font-body: 'Thunder Semi Bold LC', Arial, Helvetica, sans-serif;
    --font-heading: 'Thunder Extra Bold LC Italic', 'Thunder Semi Bold LC', Arial, Helvetica, sans-serif;
    --shadow-soft: 0 16px 40px rgba(21, 69, 57, 0.12);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--color-greige);
    color: var(--color-ink);
    font-family: var(--font-body);
}

body {
    font-weight: 600;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.92;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    line-height: 0.95;
}

h3 {
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    line-height: 1;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    line-height: 1.05;
}

h5,
h6 {
    font-size: 1.1rem;
    line-height: 1.1;
}

body.is-onboarding-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(193, 76, 35, 0.38);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(243, 203, 196, 0.8), rgba(250, 243, 232, 0) 34%),
        var(--color-greige);
}

.site-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1120px;
    padding: 22px 20px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: transparent;
    border-radius: 999px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    letter-spacing: 0;
    overflow: hidden;
    width: 42px;
}

.brand-mark img {
    border-radius: inherit;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.nav-link {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-green);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 10px 14px;
    text-decoration: none;
    transition: background-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(21, 69, 57, 0.08);
    transform: translateY(-1px);
}

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav-form {
    margin: 0;
}

.nav-button {
    background: transparent;
}

.nav-link-strong {
    background: var(--color-green);
    color: var(--color-white);
}

.nav-link-muted {
    opacity: 0.72;
}

.main-content {
    margin: 0 auto;
    max-width: 1120px;
    padding: 24px 20px 56px;
}

.transition-fade {
    transition: opacity var(--duration-normal), transform var(--duration-normal);
}

html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(10px);
}

.hero {
    display: grid;
    gap: 26px;
    padding: 34px 0 20px;
}

.home-hero {
    align-content: stretch;
    grid-template-rows: auto minmax(220px, 1fr);
    min-height: calc(100vh - 118px);
    padding-bottom: clamp(24px, 7vh, 58px);
}

.home-hero-copy {
    max-width: 820px;
}

.home-launch-zone {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: clamp(180px, 34vh, 360px);
    padding-top: 18px;
    width: 100%;
}

.home-launch-button {
    box-shadow: 0 18px 36px rgba(193, 76, 35, 0.24);
    font-size: 1.18rem;
    min-height: 64px;
    min-width: min(100%, 360px);
    padding: 18px 34px;
}

.eyebrow {
    color: var(--color-terracotta);
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-title {
    color: var(--color-green);
    font-size: clamp(2.4rem, 8vw, 5.7rem);
    line-height: 0.92;
    margin: 0;
    max-width: 880px;
    text-transform: uppercase;
}

.hero-copy {
    color: var(--color-muted);
    font-size: 1.3rem;
    line-height: 1.55;
    margin: 18px 0 0;
    max-width: 640px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.actions .button {
    font-size: 1.25rem;
}

.button {
    align-items: center;
    border-radius: var(--radius-sm);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    text-decoration: none;
    border: 0;
    transition: background-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.button-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(21, 69, 57, 0.18);
    color: var(--color-green);
}

.status-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 34px;
}

.status-card,
.panel {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.status-label {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.status-value {
    color: var(--color-green);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.onboarding-panel {
    background:
        linear-gradient(135deg, rgba(216, 237, 240, 0.94), rgba(250, 243, 232, 0.98) 42%),
        var(--color-greige);
    border: 0;
    border-radius: 0;
    bottom: 0;
    box-shadow: none;
    display: grid;
    gap: 18px;
    grid-template-rows: auto minmax(0, 1fr);
    left: 0;
    margin: 0;
    overflow-y: auto;
    padding: clamp(18px, 4vw, 34px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 60;
}

.onboarding-panel:not(.is-open):not(:target) {
    display: none;
}

.onboarding-heading {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: 920px;
    width: 100%;
}

.onboarding-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.onboarding-heading h2 {
    color: var(--color-green);
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.onboarding-progress {
    align-items: center;
    background: var(--color-green);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    margin: 0;
    min-height: 42px;
    min-width: 58px;
    padding: 8px 10px;
}

.onboarding-form {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 920px;
    min-height: 0;
    width: 100%;
}

.onboarding-step {
    border: 0;
    display: grid;
    gap: 16px;
    margin: 0;
    min-height: calc(100vh - 180px);
    padding: 0;
}

.onboarding-step legend {
    color: var(--color-terracotta);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.onboarding-step h3 {
    color: var(--color-green);
    font-size: clamp(1.35rem, 4vw, 2rem);
    line-height: 1.1;
    margin: 0;
}

.onboarding-select-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.team-picker {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.team-search-label {
    color: var(--color-green);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.team-search-input {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 69, 57, 0.18);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
}

.team-picker-status {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.team-picker .team-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(52vh, 560px);
    overflow-y: auto;
    padding: 2px 4px 2px 2px;
}

.team-picker .team-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 69, 57, 0.16);
    border-radius: var(--radius-sm);
    color: var(--color-green);
    display: grid;
    gap: 7px;
    justify-items: center;
    min-height: 132px;
    padding: 12px 8px;
    position: relative;
    text-align: center;
    transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.team-picker .team-card:hover {
    border-color: rgba(193, 76, 35, 0.42);
    transform: translateY(-1px);
}

.team-picker .team-card.is-selected {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-white);
}

.team-picker .team-card.is-disabled {
    display: none;
}

.team-picker .team-flag {
    align-items: center;
    background: rgba(255, 255, 255, 0.58);
    border: 0;
    border-radius: 999px;
    color: var(--color-green);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    letter-spacing: 0.02em;
    overflow: visible;
    padding: 0;
    width: 42px;
}

.team-picker .team-flag img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.team-picker .team-card.is-selected .team-flag {
    border-color: rgba(255, 255, 255, 0.5);
}

.team-picker .team-name {
    display: block;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.team-picker .team-group {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.team-picker .team-card.is-selected .team-group {
    color: rgba(255, 255, 255, 0.72);
}

.team-picker .team-order {
    align-items: center;
    background: var(--color-terracotta);
    border-radius: 999px;
    color: var(--color-white);
    display: none;
    font-size: 0.72rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    min-width: 26px;
    padding: 0 8px;
    position: absolute;
    right: 8px;
    top: 8px;
}

.team-picker .team-card.is-selected .team-order {
    display: inline-flex;
}

.team-picker-empty {
    color: var(--color-muted);
    font-weight: 800;
    margin: 0;
}

.player-picker {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.player-search-label {
    color: var(--color-green);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.player-search-input {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 69, 57, 0.18);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    min-height: 52px;
    padding: 13px 14px;
    width: 100%;
}

.player-picker-help,
.player-picker-empty {
    color: var(--color-muted);
    font-weight: 800;
    margin: 0;
}

.player-picked {
    align-items: center;
    background: var(--color-green);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    display: grid;
    gap: 4px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.player-picked span {
    font-weight: 900;
}

.player-picked small {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.player-picked button {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-weight: 900;
    grid-row: 1 / 3;
    min-height: 40px;
    padding: 8px 12px;
}

.player-results {
    display: grid;
    gap: 10px;
    max-height: min(48vh, 520px);
    overflow-y: auto;
    padding: 2px 4px 2px 2px;
}

.player-result {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 69, 57, 0.16);
    border-radius: var(--radius-sm);
    color: var(--color-green);
    display: grid;
    gap: 3px;
    justify-items: start;
    min-height: 62px;
    padding: 11px 13px;
    text-align: left;
    transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.player-result:hover {
    border-color: rgba(193, 76, 35, 0.42);
    transform: translateY(-1px);
}

.player-result.is-selected {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-white);
}

.player-result span {
    font-weight: 900;
}

.player-result small {
    color: var(--color-muted);
    font-weight: 800;
}

.player-result.is-selected small {
    color: rgba(255, 255, 255, 0.72);
}

.bonus-wizard {
    display: grid;
    gap: 18px;
}

.bonus-heading {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.bonus-heading h2 {
    color: var(--color-green);
    margin: 0;
    text-transform: uppercase;
}

.bonus-progress {
    align-items: center;
    background: var(--color-green);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    margin: 0;
    min-height: 42px;
    min-width: 58px;
    padding: 8px 10px;
}

.bonus-form {
    display: grid;
    gap: 16px;
}

.bonus-step {
    border: 0;
    display: grid;
    gap: 14px;
    margin: 0;
    min-height: 520px;
    padding: 0;
}

.bonus-step legend {
    color: var(--color-terracotta);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bonus-step h3 {
    color: var(--color-green);
    margin: 0;
    text-transform: uppercase;
}

.bonus-help {
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.45;
    margin: 0;
}

.bonus-step-error {
    background: rgba(193, 76, 35, 0.1);
    border: 1px solid rgba(193, 76, 35, 0.2);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
}

.step-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.step-actions .button {
    min-width: 136px;
}

.onboarding-step-error {
    background: rgba(193, 76, 35, 0.1);
    border: 1px solid rgba(193, 76, 35, 0.2);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
}

.panel {
    margin-top: 26px;
}

.panel h1 {
    color: var(--color-green);
    font-size: 2rem;
    margin: 0 0 16px;
}

.panel h2,
.form-panel h2 {
    color: var(--color-green);
    font-size: 1.3rem;
    margin: 0;
}

.page-hero {
    align-items: end;
    display: flex;
    gap: var(--space-lg);
    justify-content: space-between;
    padding: 44px 0 24px;
}

.page-title {
    color: var(--color-green);
    font-size: clamp(2.2rem, 7vw, 4.8rem);
    line-height: 0.95;
    margin: 0;
    max-width: 820px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-heading a {
    color: var(--color-terracotta);
    font-weight: 800;
    text-decoration: none;
}

.split-layout {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.metric-grid,
.match-board,
.team-grid,
.profile-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
    background: var(--color-green);
    border-radius: var(--radius-sm);
    color: var(--color-greige);
    padding: 20px;
}

.metric-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0.78;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    margin-top: 8px;
}

.metric-value-small {
    font-size: 1.45rem;
    text-transform: uppercase;
}

.match-board {
    margin-top: var(--space-lg);
}

.match-list {
    display: grid;
    gap: 12px;
}

.prediction-list {
    display: grid;
    gap: 12px;
}

.match-card,
.team-card,
.prediction-card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    display: grid;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.match-card:hover,
.team-card:hover,
.prediction-card:hover {
    border-color: rgba(193, 76, 35, 0.42);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.prediction-card {
    align-items: center;
    grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr) auto;
}

.prediction-date {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.prediction-main {
    display: grid;
    gap: 3px;
}

.prediction-main small {
    color: var(--color-muted);
    font-weight: 800;
}

.prediction-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.match-card-wide {
    min-height: 154px;
}

.team-card-meta {
    color: var(--color-muted);
    display: grid;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 4px;
}

.country-icon {
    background: rgba(255, 255, 255, 0.82);
    border: 0;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 22px;
    object-fit: contain;
    overflow: visible;
    vertical-align: middle;
    width: 22px;
}

.country-icon-sm {
    height: 18px;
    width: 18px;
}

.country-icon-match {
    height: 26px;
    width: 26px;
}

.country-icon-fallback {
    align-items: center;
    color: var(--color-green);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.02em;
}

.team-picker .team-flag .country-icon {
    border: 0;
    border-radius: 999px;
    height: 100%;
    width: 100%;
}

.team-inline,
.match-team-name,
.score-input-label,
.challenge-team-heading,
.compact-match-teams {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 0;
}

.team-inline > span,
.match-team-name > span,
.challenge-team-heading > strong,
.compact-match-teams .team-inline > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.compact-match-teams {
    flex-wrap: wrap;
}

.compact-match-separator {
    color: var(--color-terracotta);
    font-weight: 900;
}

.match-date,
.match-state {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.match-teams {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.match-team-name {
    display: flex;
}

.match-team-name-away {
    justify-content: flex-end;
}

.match-teams strong:last-child {
    text-align: right;
}

.match-versus {
    color: var(--color-terracotta);
    font-weight: 900;
}

.match-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: var(--color-sky);
    border-radius: 999px;
    color: var(--color-green);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.badge-green {
    background: var(--color-lime);
}

.badge-orange {
    background: rgba(193, 76, 35, 0.13);
    color: #8f341d;
}

.badge-muted {
    background: rgba(22, 33, 29, 0.08);
    color: var(--color-muted);
}

.match-detail {
    display: grid;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
}

.match-scoreboard {
    background: var(--color-green);
    border-radius: var(--radius-sm);
    color: var(--color-greige);
    padding: clamp(20px, 4vw, 34px);
}

.score-line {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 14px 0;
}

.score-line strong {
    font-size: clamp(1.45rem, 5vw, 3.5rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.score-line strong:last-child {
    text-align: right;
}

.score-input-grid,
.player-picks {
    display: grid;
    gap: var(--space-md);
}

.selection-grid {
    display: grid;
    gap: var(--space-md);
}

.selection-grid h3 {
    color: var(--color-green);
    margin: 0 0 10px;
}

.selection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-list span {
    background: var(--color-sky);
    border-radius: 999px;
    color: var(--color-green);
    display: grid;
    font-weight: 900;
    gap: 2px;
    padding: 8px 11px;
}

.selection-list small {
    color: rgba(21, 69, 57, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
}

.score-breakdown {
    display: grid;
    gap: 10px;
}

.breakdown-row {
    align-items: center;
    background: rgba(250, 243, 232, 0.66);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.breakdown-row span {
    display: grid;
    gap: 3px;
}

.breakdown-row strong {
    color: var(--color-green);
}

.breakdown-row small {
    color: var(--color-muted);
    font-weight: 800;
}

.breakdown-row em {
    border-radius: 999px;
    font-style: normal;
    font-weight: 900;
    padding: 7px 10px;
}

.points-positive {
    background: var(--color-lime);
    color: var(--color-green);
}

.points-zero {
    background: rgba(22, 33, 29, 0.08);
    color: var(--color-muted);
}

.choice-grid {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.choice-pill {
    align-items: center;
    background: rgba(250, 243, 232, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
    min-height: 46px;
    padding: 10px 12px;
}

.choice-pill span {
    display: grid;
    font-weight: 800;
}

.choice-pill small {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.ranking-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    align-items: center;
    background: rgba(250, 243, 232, 0.66);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 10px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    padding: 12px;
}

.ranking-list-large li {
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
}

.ranking-list span {
    color: var(--color-terracotta);
    font-weight: 900;
}

.ranking-list em {
    color: var(--color-green);
    font-style: normal;
    font-weight: 900;
}

.ranking-list small {
    color: var(--color-muted);
    font-weight: 800;
}

.challenge-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.challenge-row {
    align-items: center;
    background: rgba(250, 243, 232, 0.66);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 12px;
    grid-template-columns: 56px minmax(0, 1fr) minmax(92px, auto) minmax(110px, auto) minmax(96px, auto);
    min-height: 74px;
    padding: 14px;
}

.challenge-rank {
    color: var(--color-terracotta);
    font-weight: 900;
}

.challenge-team {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.challenge-team strong {
    color: var(--color-green);
    overflow-wrap: anywhere;
}

.challenge-team small,
.challenge-meta {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.challenge-score {
    color: var(--color-green);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: right;
}

.challenge-meta {
    text-align: right;
}

.empty-state {
    color: var(--color-muted);
    font-weight: 700;
    margin: 0;
}

.share-url {
    background: rgba(250, 243, 232, 0.76);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-green);
    font-weight: 800;
    overflow-wrap: anywhere;
    padding: 12px;
}

.inline-form {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.inline-form-compact {
    margin-top: 0;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-list > span {
    background: var(--color-pink);
    border-radius: 999px;
    color: var(--color-green);
    display: grid;
    font-weight: 900;
    gap: 2px;
    padding: 8px 11px;
}

.member-list > span > small {
    color: rgba(21, 69, 57, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
}

.notice {
    border-radius: 8px;
    font-weight: 800;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.notice-success {
    background: rgba(21, 69, 57, 0.1);
    border: 1px solid rgba(21, 69, 57, 0.18);
    color: var(--color-green);
}

.notice-error {
    background: rgba(193, 76, 35, 0.1);
    border: 1px solid rgba(193, 76, 35, 0.24);
    color: #8f341d;
}

.auth-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    padding: 28px 0 20px;
}

.auth-layout-compact {
    max-width: 920px;
}

.auth-intro {
    max-width: 520px;
}

.auth-title {
    font-size: clamp(2.2rem, 7vw, 4.8rem);
}

.registration-success {
    align-items: center;
    display: grid;
    gap: clamp(22px, 5vw, 52px);
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    min-height: calc(100vh - 146px);
    padding: clamp(24px, 7vh, 72px) 0;
}

.registration-success-visual {
    align-items: center;
    background: var(--color-green);
    border: 1px solid rgba(21, 69, 57, 0.18);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    min-height: clamp(220px, 38vw, 420px);
    overflow: hidden;
}

.registration-success-visual img {
    display: block;
    height: min(72vw, 360px);
    max-height: 100%;
    max-width: 100%;
    width: min(72vw, 360px);
}

.registration-success-copy {
    max-width: 620px;
}

.registration-success-copy .hero-copy {
    margin-bottom: 26px;
}

.registration-success-cta {
    min-width: min(100%, 280px);
}

.form-panel {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 16px;
    padding: 18px;
    width: 100%;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--color-green);
    font-weight: 800;
}

.field input,
.field select {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    min-height: 46px;
    padding: 11px 12px;
    width: 100%;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-green) 50%),
        linear-gradient(135deg, var(--color-green) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 36px;
}

.field input:focus,
.field select:focus {
    border-color: var(--color-terracotta);
}

.field-error {
    color: #8f341d;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.form-submit {
    margin-top: 4px;
    width: 100%;
}

.form-note {
    color: var(--color-muted);
    margin: 0;
    text-align: center;
}

.form-note a {
    color: var(--color-green);
    font-weight: 800;
}

.profile-panel {
    max-width: 900px;
}

.profile-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 22px;
}

.profile-copy {
    margin-top: 22px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}

.detail-list div {
    align-items: center;
    border-top: 1px solid rgba(21, 69, 57, 0.12);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-top: 12px;
}

.detail-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.detail-list dt {
    color: var(--color-muted);
    font-weight: 800;
}

.detail-list dd {
    color: var(--color-green);
    font-weight: 900;
    margin: 0;
    text-align: right;
}

.backoffice-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.backoffice-table {
    border-collapse: collapse;
    min-width: 840px;
    width: 100%;
}

.backoffice-table th,
.backoffice-table td {
    border-bottom: 1px solid rgba(21, 69, 57, 0.12);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

.backoffice-table th {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.backoffice-table td {
    color: var(--color-ink);
    font-weight: 800;
}

.backoffice-table td small {
    color: var(--color-muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 3px;
}

.backoffice-table input,
.backoffice-table select {
    min-width: 160px;
}

.backoffice-table input[type="number"] {
    min-width: 86px;
}

.backoffice-match-form {
    margin-top: var(--space-lg);
}

.health-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.health-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.health-row + .health-row {
    border-top: 1px solid rgba(21, 69, 57, 0.12);
}

.health-key {
    color: var(--color-muted);
    font-weight: 700;
}

.health-value {
    color: var(--color-green);
    font-weight: 800;
    text-align: right;
}

.health-value.is-error {
    color: #a0331a;
}

@media (min-width: 760px) {
    .hero {
        padding-top: 72px;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
        padding-top: 70px;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout,
    .player-picks,
    .score-input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .page-hero {
        align-items: start;
        flex-direction: column;
    }

    .registration-success {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .registration-success-visual {
        min-height: 220px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .home-hero {
        min-height: calc(100vh - 170px);
    }

    .home-launch-zone,
    .step-actions {
        justify-content: center;
    }

    .home-launch-button,
    .step-actions .button {
        width: 100%;
    }

    .onboarding-heading {
        grid-template-columns: 1fr;
    }

    .bonus-heading {
        grid-template-columns: 1fr;
    }

    .onboarding-progress {
        justify-self: start;
    }

    .bonus-progress {
        justify-self: start;
    }

    .onboarding-step {
        min-height: 420px;
    }

    .bonus-step {
        min-height: 480px;
    }

    .match-teams,
    .score-line,
    .prediction-card {
        grid-template-columns: 1fr;
    }

    .match-teams strong:last-child,
    .score-line strong:last-child {
        text-align: left;
    }

    .match-team-name-away {
        justify-content: flex-start;
    }

    .ranking-list-large li,
    .ranking-list li {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .ranking-list em,
    .ranking-list small {
        grid-column: 2;
    }

    .challenge-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .challenge-score,
    .challenge-meta {
        grid-column: 2;
        text-align: left;
    }

    .prediction-badges {
        justify-content: flex-start;
    }

    .breakdown-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
