:root {
    --bg: #f4efe7;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-border: rgba(30, 48, 32, 0.12);
    --text: #1b2d24;
    --muted: #53685e;
    --accent: #1c7c54;
    --accent-strong: #0d5f43;
    --warning: #a65628;
    --shadow: 0 24px 70px rgba(18, 42, 31, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(28, 124, 84, 0.18), transparent 30%),
        radial-gradient(circle at right, rgba(215, 126, 55, 0.18), transparent 35%),
        linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.hero,
.panel {
    backdrop-filter: blur(14px);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 40px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.95;
    max-width: 720px;
}

.lead {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
}

.status-card {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(28, 124, 84, 0.16);
}

.status-card--error,
.status-card--pending {
    border-color: rgba(166, 86, 40, 0.24);
}

.status-card__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.status-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.button--ghost {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid rgba(28, 124, 84, 0.28);
}

.import-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 8px;
    min-width: min(100%, 320px);
}

.field span {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}

.field input {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(28, 124, 84, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
}

.field select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(28, 124, 84, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
}

.panel {
    margin-top: 24px;
    padding: 30px;
}

.feature-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.simple-table {
    margin-top: 18px;
    overflow-x: auto;
}

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

.simple-table th,
.simple-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(27, 45, 36, 0.08);
    text-align: left;
    vertical-align: top;
}

.simple-table th {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.empty-state,
.table-note,
.detail-line {
    margin-top: 16px;
    color: var(--muted);
}

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

.kpi {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 124, 84, 0.12);
}

.kpi span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
}

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

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

.editor-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.button--danger {
    color: #8b2f2f;
    border-color: rgba(139, 47, 47, 0.22);
}

.round-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(28, 124, 84, 0.12);
}

.round-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.round-card__header h3 {
    margin: 0;
}

.match-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.match-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(28, 124, 84, 0.12);
}

.match-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

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

.display-body {
    margin: 0;
    min-height: 100vh;
    color: #f6f2e8;
    background:
        radial-gradient(circle at top left, rgba(66, 158, 117, 0.28), transparent 30%),
        radial-gradient(circle at right, rgba(255, 145, 77, 0.18), transparent 35%),
        linear-gradient(135deg, #0d241a 0%, #102f22 48%, #183f2d 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.display-shell {
    padding: 24px;
}

.display-scene {
    display: none;
}

.display-scene--active {
    display: block;
}

.display-hero,
.display-panel {
    border-radius: 28px;
    background: rgba(10, 22, 17, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.display-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.display-eyebrow {
    color: #9cd0b4;
}

.display-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.95;
    max-width: none;
}

.display-subtitle {
    margin: 12px 0 0;
    color: rgba(246, 242, 232, 0.76);
    font-size: 1.1rem;
}

.display-round-pill {
    display: inline-flex;
    margin: 16px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(156, 208, 180, 0.14);
    border: 1px solid rgba(156, 208, 180, 0.26);
    color: #d8f3e5;
    font-weight: 700;
}

.display-pill-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.display-pill {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.display-pill span {
    display: block;
    color: rgba(246, 242, 232, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.display-pill strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
}

.display-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 20px;
    margin-top: 20px;
}

.display-grid--secondary {
    grid-template-columns: 1fr 1fr;
}

.display-panel {
    padding: 22px;
}

.display-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.display-panel__header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.display-panel__header span {
    color: rgba(246, 242, 232, 0.65);
}

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

.tv-match-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-match-card--live {
    border-color: rgba(255, 196, 92, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 196, 92, 0.2), 0 0 30px rgba(255, 196, 92, 0.12);
}

.tv-match-card__meta,
.tv-match-card__footer,
.tv-team-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.tv-match-card__meta {
    margin-bottom: 16px;
    color: rgba(246, 242, 232, 0.78);
}

.tv-team-line {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-team-line span {
    font-size: 1.05rem;
}

.tv-team-line strong {
    font-size: 2rem;
}

.tv-match-card__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9cd0b4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.display-standings table {
    width: 100%;
    border-collapse: collapse;
}

.display-standings th,
.display-standings td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.display-standings th {
    color: rgba(246, 242, 232, 0.64);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

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

.ticker-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-item strong,
.ticker-item span {
    display: block;
}

.ticker-item strong {
    margin-bottom: 6px;
}

.ticker-item span {
    color: rgba(246, 242, 232, 0.76);
}

.display-empty {
    color: rgba(246, 242, 232, 0.7);
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1080px);
        padding-top: 20px;
    }

    .hero,
    .panel {
        padding: 22px;
        border-radius: 22px;
    }

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

    .panel-header {
        flex-direction: column;
    }

    .round-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-card__meta,
    .score-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .display-shell {
        padding: 14px;
    }

    .display-hero,
    .display-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .display-hero,
    .display-grid,
    .display-grid--secondary,
    .tv-match-grid,
    .display-panel__header,
    .tv-match-card__meta,
    .tv-match-card__footer,
    .tv-team-line {
        display: grid;
        grid-template-columns: 1fr;
    }
}

