﻿:root {
        /* Real Premier League brand palette (2016 DesignStudio identity, still current):
       Purple Power #38003c, neon green #00ff85, magenta #e90052, cyan #04f5ff. */
        --purple: #38003c;
        --purple-hover: #4e0655;
        --green: #00ff85;
        --pink: #e90052;
        --bg: #f4f4f7;
        --panel: #ffffff;
        --text: #12121a;
        --muted: #5c5c6e;
        --border: #e3e3ea;
        --border-strong: #cfcfd9;
}

* {
        box-sizing: border-box;
}

body {
        margin: 0;
        min-height: 100vh;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
        background: var(--bg);
        color: var(--text);
}

.wrap {
        max-width: 860px;
        margin: 0 auto;
        padding: 26px 22px 40px;
}

header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
}

.badge {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: var(--purple);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 18px;
        flex-shrink: 0;
}

h1 {
        font-size: 24px;
        margin: 0;
        letter-spacing: -0.02em;
        color: var(--purple);
}

.tag {
        color: var(--muted);
        font-size: 14px;
        margin: 3px 0 0;
        max-width: 580px;
}

h2 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--muted);
        margin: 26px 0 12px;
        font-weight: 700;
}

#board {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
}

@media (min-width: 700px) {
        #board {
                grid-template-columns: 1fr 1fr;
        }
}

.match {
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 16px;
}

.meta {
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 10px;
}

.teams {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 15px;
}

.teams .team,
.teams .away {
        display: flex;
        align-items: center;
        gap: 8px;
        line-height: 1.25;
}

.teams .vs {
        color: var(--muted);
        font-weight: 800;
        font-size: 11px;
}

.teams .away {
        justify-content: flex-end;
}

.team-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        min-width: 26px;
        border-radius: 999px;
        background: white;
        border: 1px solid var(--border-strong);
        overflow: hidden;
}

.team-badge.fallback {
        font-size: 10px;
        color: white;
        font-weight: 800;
        letter-spacing: -0.02em;
        background: #6b7280;
}

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

.picks {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
        margin-top: 14px;
}

.picks input {
        padding: 11px;
        border-radius: 8px;
        border: 1px solid var(--border-strong);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        font-weight: 700;
        font-size: 15px;
        text-align: center;
        width: 100%;
}

.picks input::placeholder {
        color: #9a9aa8;
}

.picks input:focus {
        outline: 2px solid rgba(56, 0, 60, 0.35);
        border-color: var(--purple);
        background: var(--panel);
}

.picks .dash {
        color: var(--muted);
        font-weight: 800;
        text-align: center;
}

.botline {
        margin-top: 12px;
        font-size: 12.5px;
        color: var(--muted);
}

.botline b {
        color: var(--text);
        font-variant-numeric: tabular-nums;
}

.botline .prob {
        color: var(--purple);
        font-weight: 700;
}

.hint {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
        margin: 8px 0 2px;
        max-width: 560px;
}

.challenge-banner {
        background: #fdf0f4;
        border: 1px solid var(--pink);
        border-radius: 10px;
        padding: 13px 15px;
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        margin: 16px 0 6px;
}

.vs-friend {
        font-size: 15px;
        font-weight: 800;
        color: var(--purple);
        margin-top: 12px;
}

.share-row {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 14px;
}

.namebox,
.shareurl {
        padding: 11px 13px;
        border-radius: 8px;
        border: 1px solid var(--border-strong);
        background: var(--panel);
        color: var(--text);
}

.namebox {
        flex: 1;
        min-width: 170px;
        font: inherit;
}

.namebox:focus {
        outline: 2px solid rgba(56, 0, 60, 0.35);
        border-color: var(--purple);
}

.sharebtn {
        font: inherit;
        font-weight: 800;
        color: white;
        background: var(--purple);
        border: 0;
        border-radius: 999px;
        padding: 12px 20px;
        cursor: pointer;
}

.sharebtn:hover {
        background: var(--purple-hover);
}

.shareurl {
        width: 100%;
        margin-top: 8px;
        font-family: ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
        font-size: 12px;
        color: var(--muted);
}

.proov-credit {
        margin-top: 18px;
        font-size: 12px;
        color: var(--muted);
}

.proov-credit a {
        color: var(--purple);
        font-weight: 800;
        text-decoration: none;
}

.result {
        margin-top: 12px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text);
        border-top: 1px dashed var(--border);
        padding-top: 11px;
}

.scorebtn {
        margin-top: 22px;
        font: inherit;
        font-weight: 800;
        font-size: 15px;
        color: var(--purple);
        background: var(--green);
        border: 0;
        border-radius: 999px;
        padding: 13px 22px;
        cursor: pointer;
        width: 100%;
}

@media (min-width: 560px) {
        .scorebtn {
                width: auto;
        }
}

.scorebtn:disabled {
        opacity: 0.45;
        cursor: default;
}

.scorebtn:hover:not(:disabled) {
        background: #00e076;
}

.table-container {
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
        background: var(--panel);
}

table {
        width: 100%;
        border-collapse: collapse;
}

th,
td {
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        font-size: 13.5px;
}

th {
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
}

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

.rank {
        width: 40px;
        font-size: 14px;
}

.total {
        text-align: right;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
}

tr.you {
        background: rgba(0, 255, 133, 0.12);
}

tr.you td {
        font-weight: 800;
}

#lbNote {
        color: var(--muted);
        font-size: 12px;
        margin-top: 10px;
}

footer {
        color: var(--muted);
        font-size: 11px;
        margin-top: 32px;
        line-height: 1.6;
        border-top: 1px solid var(--border);
        padding-top: 16px;
}