:root {
    --ink: #101b18;
    --muted: #65716d;
    --paper: #f5f3eb;
    --card: #fffdf7;
    --green: #0b5d48;
    --lime: #d8ff62;
    --orange: #ff7548;
    --line: #dcded4;
    --shadow: 0 18px 50px rgba(21, 45, 37, .10)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: auto
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -.5px
}

.brand-ball {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    border: 2px solid var(--ink);
    font-size: 18px
}

.nav-links,
.actions,
.inline {
    display: flex;
    align-items: center;
    gap: 12px
}

.nav-links a {
    font-weight: 700;
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--green);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 93, 72, .18)
}

.btn-lime {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--ink)
}

.btn-line {
    background: var(--line);
    color: var(--ink);
    border-color: var(--ink)
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line)
}

.btn-small {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px
}

.hero {
    padding: 70px 0 88px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff9;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.3px
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    line-height: .96;
    letter-spacing: -4px;
    margin: 24px 0
}

.hero h1 em {
    font-style: normal;
    color: var(--green);
    position: relative
}

.hero p {
    font-size: 19px;
    color: var(--muted);
    max-width: 620px
}

.hero-card {
    position: relative;
    background: var(--green);
    color: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow);
    transform: rotate(2deg)
}

.hero-card:before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid #ffffff2b;
    border-radius: 22px
}

.match-top,
.match-score,
.stat-row,
.pool-row,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.match-top {
    position: relative;
    color: #c7ddd5;
    font-size: 13px;
    font-weight: 800
}

.live {
    color: var(--lime)
}

.match-score {
    position: relative;
    padding: 40px 0 28px
}

.team {
    text-align: center;
    font-weight: 900;
    font-size: 18px
}

.flag {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-size: 32px
}

.score {
    font-size: 45px;
    font-weight: 950;
    letter-spacing: 6px
}

.mini-stats {
    position: relative;
    background: #ffffff10;
    border: 1px solid #ffffff1d;
    border-radius: 18px;
    padding: 15px
}

.stat-row {
    padding: 8px 0;
    color: #dce9e4;
    font-size: 13px
}

.stat-row strong {
    color: white
}

.feature-section {
    background: var(--ink);
    color: white;
    padding: 82px 0
}

.section-title {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 0 12px
}

.section-copy {
    color: #aebbb7;
    font-size: 18px;
    max-width: 650px
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px
}

.feature {
    padding: 26px;
    border: 1px solid #ffffff19;
    border-radius: 22px;
    background: #ffffff08
}

.feature-icon {
    font-size: 26px
}

.feature h3 {
    font-size: 20px;
    margin: 18px 0 8px
}

.feature p {
    margin: 0;
    color: #aebbb7
}

.notice {
    margin: 70px auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border: 2px solid var(--ink);
    background: var(--lime);
    border-radius: 24px;
    box-shadow: 8px 8px 0 var(--ink)
}

.notice-icon {
    font-size: 42px
}

.notice h2 {
    margin: 0 0 5px
}

.notice p {
    margin: 0;
    max-width: 800px
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    color: var(--muted)
}

.app-shell {
    min-height: 100vh
}

.app-header {
    background: var(--card);
    border-bottom: 1px solid var(--line)
}

.app-main {
    padding: 44px 0 80px
}

.page-title {
    font-size: 38px;
    letter-spacing: -1.5px;
    margin: 0
}

.muted {
    color: var(--muted)
}

.grid {
    display: grid;
    gap: 20px
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin: 28px 0
}

.metric,
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(20, 35, 30, .035)
}

.metric-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px
}

.metric-value {
    font-size: 31px;
    font-weight: 950;
    margin-top: 8px
}

.metric.green {
    background: var(--green);
    color: white
}

.metric.green .metric-label {
    color: #c7ddd5
}

.metric.lime {
    background: var(--lime);
    border-color: var(--ink)
}

.pool-list {
    margin-top: 22px
}

.pool-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--line)
}

.pool-row:last-child {
    border: 0
}

.pool-name {
    font-size: 18px;
    font-weight: 900
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 99px;
    background: #e8ede9;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase
}

.badge.closed {
    background: #ffe2d7;
    color: #9f3d20
}

.empty {
    text-align: center;
    padding: 55px 20px
}

.form-card {
    max-width: 820px;
    margin: 28px auto 0
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 13px;
    font-weight: 900
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    outline: none
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11, 93, 72, .1)
}

.hint {
    font-size: 12px;
    color: var(--muted)
}

.error {
    color: #a52d1d;
    font-size: 13px;
    font-weight: 700
}

.alert {
    padding: 14px 17px;
    margin-bottom: 22px;
    border-radius: 13px;
    background: #dff6e9;
    color: #14563d;
    font-weight: 700
}

.alert-error {
    background: #ffe3dd;
    color: #8b2e1c
}

.alert-warning {
    background: #ffe3dd;
    color: #878b1c
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.auth-side {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--green);
    color: white
}

.auth-side h1 {
    font-size: 54px;
    line-height: 1;
    letter-spacing: -2.5px
}

.auth-side p {
    color: #c7ddd5;
    max-width: 520px
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 40px
}

.auth-form {
    width: min(440px, 100%)
}

.auth-form h2 {
    font-size: 38px;
    letter-spacing: -1.5px;
    margin-bottom: 6px
}

.auth-form .field {
    margin: 15px 0
}

.pool-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 20px;
    margin: 24px 0
}

.score-card {
    background: var(--green);
    color: white
}

.score-card .muted {
    color: #bed4cc
}

.versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    margin: 28px 0
}

.versus h2 {
    margin: 8px 0 0
}

.score-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px
}

.score-inputs input {
    width: 78px;
    height: 72px;
    text-align: center;
    font-size: 30px;
    font-weight: 950;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: white
}

.stats-form {
    margin-top: 24px
}

.stats-header,
.stats-input-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 14px;
    align-items: center
}

.stats-header {
    font-weight: 900;
    font-size: 13px;
    padding: 0 6px 10px
}

.stats-input-row {
    padding: 9px 6px;
    border-top: 1px solid var(--line)
}

.stats-input-row input {
    width: 100%;
    height: 40px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    font-weight: 950
}

.winner {
    padding: 16px;
    border: 2px solid var(--green);
    border-radius: 16px;
    background: #e9f8f0
}

.pix {
    font-family: ui-monospace, monospace;
    background: #eef0eb;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px
}

.share-box {
    display: flex;
    gap: 8px;
    margin-top: 16px
}

.share-box input {
    min-width: 0;
    flex: 1;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px
}

.danger-note {
    padding: 14px;
    border-left: 4px solid var(--orange);
    background: #fff0ea;
    border-radius: 8px
}

.mt {
    margin-top: 20px
}

.mb {
    margin-bottom: 20px
}

@media(max-width:850px) {

    .hero,
    .auth-wrap,
    .pool-hero,
    .split {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 35px
    }

    .hero-card {
        transform: none
    }

    .features,
    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .auth-side {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .nav-links {
        display: none
    }
}

@media(max-width:560px) {

    .features,
    .stats-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        letter-spacing: -2.5px
    }

    .actions {
        flex-wrap: wrap
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column
    }

    .stats-header,
    .stats-input-row {
        grid-template-columns: 1fr 72px 72px
    }

    .notice {
        grid-template-columns: 1fr
    }

    .app-main {
        padding-top: 28px
    }
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.choice-card {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: white;
    cursor: pointer
}

.choice-card:has(input:checked) {
    border-color: var(--green);
    background: #e9f8f0;
    box-shadow: 0 0 0 3px rgba(11, 93, 72, .08)
}

.field .choice-card input[type=radio] {
    position: static;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--green)
}

.choice-copy {
    display: block;
    min-width: 0
}

.choice-copy strong {
    display: block
}

.choice-copy>span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500
}

@media(max-width:560px) {
    .choice-grid {
        grid-template-columns: 1fr
    }
}

.btn-danger {
    background: #a83b2a;
    color: white
}

.participant-entry {
    border-bottom: 1px solid var(--line);
    padding: 14px 0
}

.participant-entry .participant {
    padding: 0;
    border: 0
}

.participant-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.prediction-details {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f5f0
}

.prediction-details summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 900
}

.prediction-details .stats-header {
    margin-top: 14px
}

.prediction-details .stats-input-row strong {
    text-align: center
}

.badge.pending {
    background: #fff0d8;
    color: #8a5800
}

.badge.paid {
    background: #dff6e9;
    color: #14563d
}

.field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    outline: none
}

.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11, 93, 72, .1)
}

.triple-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

@media(max-width:850px) {
    .triple-fields {
        grid-template-columns: 1fr
    }
}