body {
    margin: 0;
    padding: 0;
    background: transparent;
    text-rendering: geometricPrecision;
    font-family: Helvetica,Arial,sans-serif;
}

.widget-main {
    --panel: rgba(18, 20, 24, 0.92);
    --text: #f4f5f7;
    --muted: #9aa0aa;
    --grid: rgba(255, 255, 255, 0.12);
    --halo: rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    width: 50rem;
    max-width: 100%;
    padding: 1rem 1.25rem 0.75rem;
    border-radius: 0.75rem;
    color: var(--text);
    background: var(--panel);
    transform-origin: top left;
}

.widget-main.light {
    --panel: rgba(255, 255, 255, 0.94);
    --text: #16181d;
    --muted: #666c76;
    --grid: rgba(0, 0, 0, 0.12);
    --halo: rgba(0, 0, 0, 0.3);
}

.widget-main.hidden:not(.panel) {
    display: none;
}

.widget-main.panel {
    width: 100%;
    border-radius: 0;
}

.message {
    display: none;
    color: var(--muted);
    text-align: center;
}

.widget-main.panel.hidden .message {
    display: block;
}

.widget-main.panel.hidden .header,
.widget-main.panel.hidden .chart {
    display: none;
}

/* the chart only, where the page around it shows teams and score (MatchTicker) */
.widget-main.chart-only .header {
    display: none;
}

.widget-main.chart-only {
    padding: 0.5rem 0.75rem 0.25rem;
}

.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.team.guest {
    justify-content: flex-end;
}

.team-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.team-color {
    flex: none;
    width: 0.6rem;
    height: 1.25rem;
    border-radius: 0.2rem;
    box-shadow: 0 0 0 1px var(--halo);
}

.score {
    font-size: 2rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.score-divider {
    margin: 0 0.3rem;
}

.chart {
    display: block;
    width: 100%;
    height: auto;
}

.chart text {
    font-size: 13px;
    fill: var(--muted);
    font-variant-numeric: tabular-nums;
}

.chart .lane-label {
    font-size: 11px;
    font-weight: bold;
}

.chart .grid {
    stroke: var(--grid);
    stroke-width: 1;
}

.chart .halo {
    fill: none;
    stroke: var(--halo);
    stroke-width: 5.5;
    stroke-linejoin: round;
}

.chart .line {
    fill: none;
    stroke-width: 3.5;
    stroke-linejoin: round;
}

.chart .goal,
.chart .penalty {
    stroke: var(--halo);
    stroke-width: 1;
}

.chart .section {
    stroke: var(--text);
    stroke-opacity: 0.45;
    stroke-dasharray: 4 4;
}

.chart .now {
    stroke: var(--text);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}
