:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --panel-soft: #f9fafc;
    --line: #dfe5ee;
    --line-strong: #c9d2df;
    --muted: #6b7280;
    --text: #111827;
    --accent: #c8912f;
    --accent-soft: #fff4df;
    --green: #16834a;
    --red: #d33b45;
    --grey: #8a94a3;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 247, 251, .98)),
        radial-gradient(circle at top right, rgba(200, 145, 47, .14), transparent 30%);
    color: var(--text);
}

a {
    color: inherit;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 76px;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: .95;
    margin: 0 0 12px;
    letter-spacing: -1.5px;
}

h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.sub {
    color: var(--muted);
    font-size: 16px;
}

.btns {
    display: flex;
    gap: 9px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.btn,
button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.btn:hover,
button:hover {
    border-color: var(--line-strong);
    background: var(--panel-soft);
}

.btn.primary,
button.primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.btn.active {
    border-color: rgba(200, 145, 47, .45);
    background: var(--accent-soft);
    color: #8a5d12;
    box-shadow: inset 0 0 0 1px rgba(200, 145, 47, .18);
}

.btn.danger,
button.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #a31625;
}

.card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin: 18px 0;
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.admin-menu-card {
    display: grid;
    gap: 10px;
    min-height: 210px;
    align-content: end;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f9fafc);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.admin-menu-card:hover {
    border-color: rgba(200, 145, 47, .55);
    background: linear-gradient(180deg, #fff, #fffaf1);
}

.admin-menu-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.admin-menu-card strong {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -1px;
}

.admin-menu-card em {
    color: var(--muted);
    font-style: normal;
    font-weight: 750;
}

.admin-menu-log {
    margin-top: 18px;
}

.admin-menu-log-list {
    display: grid;
    gap: 8px;
}

.admin-menu-log-item {
    display: grid;
    grid-template-columns: 92px 150px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 11px 13px;
}

.admin-menu-log-item time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-menu-log-item strong {
    color: var(--accent);
    font-weight: 950;
}

.admin-menu-log-item span {
    color: var(--text);
    font-weight: 760;
    line-height: 1.35;
}


.live-ko-card {
    border-color: rgba(200, 145, 47, .26);
    background: linear-gradient(180deg, #fff, #fffaf0);
}

.live-ko-card.status-complete {
    border-color: rgba(22, 131, 74, .24);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}

.live-ko-top,
.live-ko-actions,
.live-team-bar > div:first-child,
.live-scenario {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.live-eyebrow,
.live-kpis span,
.live-vs span,
.live-scenario span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.live-eyebrow {
    color: var(--accent);
    margin-bottom: 5px;
}

.live-ko-top h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
}

.live-ko-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.live-ko-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr) minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 14px;
}

.live-team,
.live-vs {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: #fff;
}

.live-team.winner {
    border-color: rgba(22, 131, 74, .28);
    background: #ecfdf3;
}

.live-team span {
    font-size: 34px;
    line-height: 1;
}

.live-team strong {
    color: var(--text);
    font-size: clamp(20px, 2.5vw, 30px);
    line-height: 1.05;
    margin-top: 8px;
}

.live-vs {
    background: var(--panel-soft);
}

.live-vs strong {
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
    margin: 7px 0;
}

.live-vs em {
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8a5d12;
    font-style: normal;
    font-weight: 950;
    padding: 6px 9px;
}

.live-kpis,
.live-team-bars,
.live-scenarios {
    display: grid;
    gap: 10px;
}

.live-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-kpis div,
.live-team-bar,
.live-scenario,
.live-hidden-trends {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    padding: 13px;
}

.live-kpis strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    margin-top: 5px;
}

.live-team-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.live-team-bar.leader {
    border-color: rgba(200, 145, 47, .32);
    background: #fffaf0;
}

.live-team-bar.winner {
    border-color: rgba(22, 131, 74, .28);
    background: #ecfdf3;
}

.live-team-bar span,
.live-team-bar strong {
    display: block;
    font-weight: 950;
}

.live-team-bar span {
    color: var(--text);
}

.live-team-bar strong {
    color: var(--accent);
}

.live-track {
    height: 9px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
    margin-top: 10px;
}

.live-track div {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.live-hidden-trends {
    color: var(--muted);
    font-weight: 850;
    margin-top: 12px;
}

.live-scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.live-scenario {
    display: block;
}

.live-scenario.podium-alert {
    border-color: rgba(200, 145, 47, .36);
    background: #fffaf0;
}

.live-scenario strong,
.live-scenario em {
    display: block;
}

.live-scenario strong {
    color: var(--text);
    font-size: 18px;
    margin-top: 6px;
}

.live-scenario em {
    color: var(--muted);
    font-style: normal;
    font-weight: 850;
    margin-top: 4px;
}

.status-pill.open {
    border-color: rgba(200, 145, 47, .34);
    background: var(--accent-soft);
    color: #8a5d12;
}

.status-pill.closed,
.status-pill.future {
    border-color: rgba(37, 99, 235, .20);
    background: #eff6ff;
    color: #1d4ed8;
}

.status-pill.complete {
    border-color: rgba(22, 131, 74, .22);
    background: #ecfdf3;
    color: var(--green);
}

.public-timeline-card {
    margin-top: 18px;
}

.public-timeline-list {
    display: grid;
    gap: 8px;
}

.public-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 180px 154px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 12px 14px 12px 16px;
}

.public-timeline-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--accent);
}

.public-timeline-item.result::before {
    background: var(--green);
}

.public-timeline-item.open::before {
    background: var(--accent);
}

.public-timeline-item.stage::before {
    background: #2563eb;
}

.public-timeline-item.closed::before {
    background: var(--grey);
}

.public-timeline-item.score::before {
    background: #7c3aed;
}

.public-timeline-item time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.public-timeline-item strong {
    color: var(--accent);
    font-weight: 950;
}

.public-timeline-item span {
    color: var(--text);
    font-weight: 760;
    line-height: 1.35;
}

.share-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.share-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.share-actions form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.share-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    padding: 9px 13px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.share-option input {
    width: auto;
    accent-color: var(--accent);
}

.leaderboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}

.leaderboard-tab {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.leaderboard-tab.active {
    border-color: rgba(200, 145, 47, .45);
    background: var(--accent-soft);
    color: #8a5d12;
    box-shadow: inset 0 0 0 1px rgba(200, 145, 47, .18);
}

.leaderboard-view,
.leaderboard-view-description {
    display: none;
}

.leaderboard-view.active,
.leaderboard-view-description.active {
    display: block;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.pod {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #f9fafc);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.pod .rank {
    color: var(--accent);
    font-size: 28px;
    font-weight: 950;
}

.pod .name {
    font-size: 21px;
    font-weight: 950;
    margin-top: 6px;
}

.pod .pts {
    color: var(--muted);
    margin-top: 2px;
}

.table-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.toggle-movement {
    align-self: center;
}

.leaderboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leaderboard-card.hide-movements .movement-column {
    display: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

th {
    color: var(--muted);
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .10em;
    background: var(--panel-soft);
}

th.active-score {
    color: var(--accent);
    background: var(--accent-soft);
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: #fbfcff;
}

td {
    font-weight: 760;
}

td:first-child {
    color: var(--accent);
    font-weight: 950;
}

.total-points {
    color: var(--accent);
    font-size: 18px;
    font-weight: 950;
}

.total-points strong {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-soft);
    padding: 5px 10px;
}

.movement-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    border-radius: 999px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    font-size: 13px;
    font-weight: 950;
}

.movement-pill.up {
    border-color: rgba(22, 131, 74, .22);
    background: #ecfdf3;
    color: var(--green);
}

.movement-pill.down {
    border-color: rgba(211, 59, 69, .24);
    background: #fff1f2;
    color: var(--red);
}

.movement-pill.neutral {
    color: var(--grey);
}

.up {
    color: var(--green);
}

.down {
    color: var(--red);
}

.neutral {
    color: var(--grey);
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
}

select {
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.radio-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    cursor: pointer;
}

.radio-card input {
    width: auto;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 14px 0;
    white-space: pre-wrap;
}

.alert.ok {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert.err {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.small {
    color: var(--muted);
    font-size: 13px;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 14px 0 0;
}

.kpi {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
}

.kpi .value {
    font-size: 28px;
    font-weight: 950;
}

.kpi .label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.player-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 950;
}

.player-link:hover {
    color: var(--accent);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.profile-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.profile-card .label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-card .value {
    font-size: 28px;
    font-weight: 950;
    margin-top: 4px;
}

.profile-card .total-accent {
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.muted-line {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.status-pill.correct {
    border-color: rgba(22, 131, 74, .22);
    background: #ecfdf3;
    color: var(--green);
}

.status-pill.wrong {
    border-color: rgba(211, 59, 69, .24);
    background: #fff1f2;
    color: var(--red);
}

.status-pill.missing {
    border-color: rgba(138, 148, 163, .28);
    background: #f8fafc;
    color: var(--grey);
}

.ko-history-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}

.ko-history-stage {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 14px;
}

.ko-history-stage.has-points {
    border-color: rgba(200, 145, 47, .35);
    background: #fffaf0;
}

.ko-history-stage span,
.ko-history-stage small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ko-history-stage strong {
    display: block;
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
    margin: 9px 0 8px;
}

.ko-history-table td {
    vertical-align: top;
}

.ko-history-row.correct td:first-child,
.ko-history-row.correct .total-points {
    color: var(--green);
}

.rules-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 22px;
    align-items: center;
    border-color: rgba(200, 145, 47, .28);
    background: linear-gradient(135deg, #fff, #fffaf0);
}

.eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rules-score {
    border: 1px solid rgba(200, 145, 47, .28);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    text-align: center;
}

.rules-score span,
.rules-score small,
.rules-point-card span,
.rules-point-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rules-score strong {
    display: block;
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
    margin: 8px 0;
}

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

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

.rule-list li {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    color: var(--text);
    font-weight: 720;
}

.rule-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.rules-points-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
}

.rules-point-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-soft);
    padding: 16px;
}

.rules-point-card strong {
    display: block;
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
    margin: 12px 0 8px;
}

.tie-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: tie;
}

.tie-list li {
    counter-increment: tie;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    font-weight: 850;
}

.tie-list li::before {
    content: counter(tie);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
}

@media (max-width: 760px) {
    .wrap {
        padding: 28px 16px 60px;
    }

    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header {
        display: block;
    }

    .share-card {
        display: block;
    }

    .share-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .admin-menu-log-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .public-timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .btns {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .podium,
    .admin-menu-grid,
    .kpis,
    .rules-grid,
    .rules-points-grid,
    .ko-history-summary,
    .tie-list,
    .rules-hero,
    .live-ko-matchup,
    .live-kpis,
    .live-team-bars,
    .live-scenarios {
        grid-template-columns: 1fr;
    }

    .live-ko-top,
    .live-ko-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-ko-actions .btn,
    .live-ko-actions .status-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

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

    th,
    td {
        padding: 12px 8px;
    }
}


.daily-header h1 {
    max-width: 760px;
}

.daily-hero-card,
.daily-card-head,
.daily-matchup,
.daily-ranking-row,
.daily-missing-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.daily-hero-card {
    align-items: center;
    border-color: rgba(200, 145, 47, .28);
    background: linear-gradient(180deg, #fff, #fffaf0);
}

.daily-eyebrow {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .11em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.daily-kpis,
.daily-mini-kpis {
    display: grid;
    gap: 10px;
}

.daily-kpis {
    min-width: 430px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-kpis div,
.daily-mini-kpis div {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    padding: 14px;
}

.daily-kpis span,
.daily-mini-kpis span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.daily-kpis strong,
.daily-mini-kpis strong {
    display: block;
    color: var(--text);
    font-size: 19px;
    line-height: 1.08;
    margin-top: 6px;
}

.daily-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr);
    gap: 18px;
    align-items: stretch;
}

.daily-grid.lower {
    grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
}

.daily-grid .card {
    margin: 0;
}

.daily-live-card,
.daily-top-card,
.daily-reminder-card,
.daily-timeline-card,
.daily-copy-card {
    min-width: 0;
}

.daily-card-head {
    align-items: center;
    margin-bottom: 14px;
}

.daily-card-head h2 {
    font-size: 26px;
}

.daily-matchup {
    align-items: center;
    margin: 16px 0;
}

.daily-matchup > div {
    flex: 1 1 0;
    min-height: 106px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.daily-matchup > div span {
    font-size: 32px;
    line-height: 1;
}

.daily-matchup > div strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    margin-top: 8px;
}

.daily-matchup em {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8a5d12;
    font-style: normal;
    font-weight: 950;
    padding: 9px 12px;
    text-align: center;
}

.daily-mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 16px;
}

.daily-ranking-list,
.daily-missing-list,
.daily-timeline-list {
    display: grid;
    gap: 9px;
}

.daily-ranking-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 12px 14px;
}

.daily-ranking-row span {
    color: var(--accent);
    font-size: 20px;
    font-weight: 950;
    min-width: 46px;
}

.daily-ranking-row strong {
    flex: 1;
    font-size: 17px;
}

.daily-ranking-row small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    margin-top: 3px;
}

.daily-ranking-row em {
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8a5d12;
    font-style: normal;
    font-weight: 950;
    padding: 6px 10px;
}

.daily-missing-list > div {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 12px 14px;
}

.daily-missing-list strong {
    font-size: 17px;
}

.daily-missing-list span {
    color: var(--muted);
    font-weight: 850;
}

.daily-empty {
    border: 1px solid rgba(22, 131, 74, .18);
    border-radius: 16px;
    background: #ecfdf3;
    color: var(--green);
    font-weight: 900;
    margin: 0;
    padding: 16px;
}



.daily-share-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-png-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-png-form .share-option {
    margin: 0;
}

.daily-message {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-soft);
    color: var(--text);
    font: 800 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 18px;
}

.copy-feedback {
    min-height: 22px;
    color: var(--green);
    font-weight: 850;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .daily-hero-card,
    .daily-grid,
    .daily-grid.lower,
    .daily-matchup {
        display: grid;
        grid-template-columns: 1fr;
    }

    .daily-kpis {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .daily-share-tools,
    .daily-png-form {
        justify-content: stretch;
    }

    .daily-share-tools .btn,
    .daily-share-tools button,
    .daily-png-form button {
        width: 100%;
    }

    .daily-matchup em {
        justify-self: stretch;
    }
}


.matchday-header h1 {
    max-width: 760px;
}

.matchday-hero-card,
.matchday-reminder-card {
    border-color: rgba(200, 145, 47, .28);
    background: linear-gradient(180deg, #fff, #fffaf0);
}

.matchday-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.matchday-kpis {
    min-width: 420px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.matchday-workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.matchday-step {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .05);
}

.matchday-step span,
.matchday-result-head span,
.matchday-result-kpis span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matchday-step strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    line-height: 1.05;
    margin-top: 8px;
}

.matchday-step p {
    color: var(--muted);
    font-weight: 800;
    margin: 8px 0 0;
}

.matchday-step.open {
    border-color: rgba(200, 145, 47, .34);
    background: #fffaf0;
}

.matchday-step.closed {
    border-color: rgba(37, 99, 235, .24);
    background: #eff6ff;
}

.matchday-step.complete {
    border-color: rgba(22, 131, 74, .24);
    background: #ecfdf3;
}

.matchday-kpis div,
.matchday-meta-grid div {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    padding: 13px;
}

.matchday-kpis div.warning {
    border-color: rgba(211, 59, 69, .22);
    background: #fff1f2;
}

.matchday-kpis span,
.matchday-meta-grid span,
.matchday-match-top span,
.matchday-missing-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matchday-kpis strong,
.matchday-meta-grid strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.08;
    margin-top: 6px;
}

.matchday-message {
    min-height: 190px;
}

.matchday-reminder-card.needs-action {
    border-color: rgba(211, 59, 69, .20);
    background: linear-gradient(180deg, #fff, #fff7f7);
}

.matchday-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.matchday-match-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
}

.matchday-match-card.status-open {
    border-color: rgba(200, 145, 47, .32);
}

.matchday-match-card.status-closed {
    border-color: rgba(37, 99, 235, .22);
}

.matchday-match-card.status-complete {
    border-color: rgba(22, 131, 74, .22);
}

.matchday-match-top,
.matchday-team-line,
.matchday-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.matchday-match-top h3 {
    margin: 4px 0 0;
    font-size: 24px;
}

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

.matchday-teams div {
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    padding: 12px;
}

.matchday-teams div.winner {
    border-color: rgba(22, 131, 74, .25);
    background: #ecfdf3;
}

.matchday-teams em {
    color: var(--muted);
    font-style: normal;
    font-weight: 950;
    text-align: center;
}

.matchday-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.matchday-distribution {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.matchday-team-line strong,
.matchday-team-line span {
    display: block;
    font-weight: 900;
}

.matchday-team-line span {
    color: var(--accent);
    white-space: nowrap;
}

.matchday-missing-box,
.matchday-status-note,
.matchday-hidden-note {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    margin: 14px 0 0;
    padding: 13px;
}

.matchday-missing-box {
    border-color: rgba(211, 59, 69, .22);
    background: #fff1f2;
}

.matchday-missing-box strong,
.matchday-status-note,
.matchday-hidden-note {
    color: var(--text);
    font-weight: 850;
}

.matchday-card-actions {
    justify-content: flex-start;
    margin-top: 14px;
    flex-wrap: wrap;
}

.matchday-status-note.success {
    border-color: rgba(22, 131, 74, .20);
    background: #ecfdf3;
}

.matchday-result-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.matchday-result-share {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
}

.matchday-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.matchday-result-head h3 {
    margin: 5px 0 3px;
    font-size: 26px;
}

.matchday-result-head p,
.matchday-result-scorers {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.matchday-result-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 12px;
}

.matchday-result-kpis div {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 12px;
}

.matchday-result-kpis strong {
    display: block;
    color: var(--accent);
    font-size: 22px;
    line-height: 1.05;
    margin-top: 5px;
}

.matchday-result-message {
    min-height: 210px;
    margin-top: 14px;
}

.matchday-compact-list {
    display: grid;
    gap: 9px;
}

.matchday-compact-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 13px 15px;
    text-decoration: none;
}

.matchday-compact-list span {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

@media (max-width: 900px) {
    .matchday-hero-card,
    .matchday-workflow,
    .matchday-match-grid,
    .matchday-meta-grid,
    .matchday-result-share-grid,
    .matchday-result-kpis,
    .matchday-compact-list a {
        display: grid;
        grid-template-columns: 1fr;
    }

    .matchday-kpis {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .matchday-compact-list span {
        text-align: left;
    }
}
