/* Design tokens. Theme values apply under any element carrying data-theme
   (the app sets it on <html>). Components must use these variables instead of
   raw colors. */

:root {
  --dark-surface: #26272a;
  --dark-surface-border: #3a3b3e;
  --dark-surface-accent: #ff8c80;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", system-ui, sans-serif;
  /* Page backdrop around the centered app column on wide screens. */
  --page-bg: #18181b;
  --app-max-width: 480px;
}

[data-theme] {
  --accent: #f05245;
  --accent-text: #bc352b;
  --motion-duration: 360ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] {
  --positive: #168138;
  --negative: #bc352b;
  --bg: #ffffff;
  --card: #ffffff;
  --card-press: #e9e9ef;
  --ink: #26272a;
  --ink-2: #66696f;
  --ink-3: #707277;
  --ink-4: #91949a;
  --sep: #e9eaed;
  --bar: rgba(255, 255, 255, 0.94);
  --bar-border: #00000018;
  --field: #f3f3f4;
  --accent-tint: rgba(225, 6, 0, 0.12);
  /* Podium places as text, darkened to read on the light page. */
  --medal-gold: #b07d00;
  --medal-silver: #7d848e;
  --medal-bronze: #a8602a;
  /* Home cover: red lines on light drafting paper. */
  --cover-bg: #f2f2f4;
  --cover-ink: #1f2023;
  --cover-ink-2: #55585e;
  --cover-ink-3: #74777e;
  --cover-line: #e0473b;
  --cover-numeral: #e8e8eb;
  --cover-faint: rgba(31, 32, 35, 0.16);
  --cover-grid: rgba(0, 0, 0, 0.05);
  --cover-orb-bg: rgba(255, 255, 255, 0.8);
  --cover-orb-border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --positive: #74d391;
  --negative: #ff9187;
  --bg: #1c1e21;
  --accent-text: #ff8c80;
  --card: #24262a;
  --card-press: #2c2c2e;
  --ink: #ffffff;
  --ink-2: #babdc4;
  --ink-3: #a4a7af;
  --ink-4: #92969e;
  --sep: #373a40;
  --bar: rgba(28, 30, 33, 0.94);
  --bar-border: #ffffff14;
  --field: #7676803d;
  --accent-tint: rgba(225, 6, 0, 0.22);
  --medal-gold: #f0c13c;
  --medal-silver: #aeb4bd;
  --medal-bronze: #d9965b;
  /* Home cover: red lines on a dark drafting board. */
  --cover-bg: #131417;
  --cover-ink: #ffffff;
  --cover-ink-2: #c4c7cd;
  --cover-ink-3: #8e929a;
  --cover-line: #f05245;
  --cover-numeral: #1a1c20;
  --cover-faint: rgba(255, 255, 255, 0.15);
  --cover-grid: rgba(255, 255, 255, 0.045);
  --cover-orb-bg: rgba(255, 255, 255, 0.08);
  --cover-orb-border: rgba(255, 255, 255, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
}

button {
  font-family: inherit;
}

button:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Public season pages. tokens.css and reset.css are prepended by render.tsx.
   The mast follows the landing hero; the sheet follows its cards and type. */

:root {
  --gutter: clamp(20px, 5vw, 64px);
  --content: 1160px;
  --radius-sheet: 28px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: auto;
}

body {
  font-family: var(--font-sans);
  background: #1c1e21;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  font-weight: 450;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0a0a0c url("/images/paddoq-mark.png") center / cover;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    0 4px 12px -3px rgb(225 6 0 / 0.5);
}

.brand__word {
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mast {
  position: relative;
  color: #fff;
  background: #131417;
  padding-bottom: calc(var(--radius-sheet) + 12px);
}

.mast__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px) 0 0 / 28px
      28px,
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px) 0 0 /
      28px 28px;
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 30%,
    #000 20%,
    transparent 100%
  );
}

.topbar,
.mast__body,
.crumbs {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px var(--gutter) 8px;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
  font-size: 15px;
}

.topbar__links a {
  text-decoration: none;
  color: rgb(255 255 255 / 0.82);
}

.topbar__links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.topbar__cta {
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #26272a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 720px) {
  .topbar__links {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .topbar__cta {
    margin-left: auto;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  list-style: none;
  font-size: 13px;
  color: rgb(255 255 255 / 0.62);
}

.crumbs a {
  color: rgb(255 255 255 / 0.86);
  text-decoration: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgb(255 255 255 / 0.35);
}

.mast__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 36px;
}

.mast h1 {
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.mast__lead {
  max-width: 62ch;
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.84);
}

.portrait {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}

.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: var(--team, #e10600);
  color: #fff;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

.mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.sheet {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--radius-sheet));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--bg);
  padding: 28px var(--gutter) 72px;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 999px;
  background: var(--ink-4);
  opacity: 0.35;
}

.sheet__inner {
  max-width: var(--content);
  margin: 0 auto;
}

.note {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}

.block {
  margin-top: 48px;
  scroll-margin-top: 24px;
}

.block h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 34px);
}

.mast--compact {
  padding-bottom: calc(var(--radius-sheet) + 4px);
}

.mast--compact h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.mast--compact .mast__lead {
  margin-top: 8px;
}

.standings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.standing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--field);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 3px 0 0 var(--team, transparent);
}

.standing__pos {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.standing__name {
  grid-column: 2;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.standing__meta {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 14px;
}

.standing__points {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-size: 15px;
}

.season-layout {
  display: grid;
  gap: 32px;
  margin-top: 8px;
}

.season-side,
.season-lists {
  display: grid;
  gap: 16px;
}

.season-lists {
  gap: 32px;
  align-content: start;
}

.next-weekend {
  display: block;
  padding: 22px;
  border-radius: 24px;
  background: #26272a;
  color: #fff;
  text-decoration: none;
}

.next-weekend__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #c6c7cc;
}

.next-weekend__round {
  color: #ff8c80;
  font-variant-numeric: tabular-nums;
}

.next-weekend h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.next-weekend p {
  margin: 0 0 18px;
  color: #c6c7cc;
  font-size: 14px;
}

.next-weekend__action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-size: 13px;
}

.month {
  padding: 16px 12px 14px;
  border-radius: 24px;
  background: var(--field);
}

.month__title {
  margin: 2px 4px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.month__week,
.month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.month__week span {
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-3);
}

.month__cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.month__cell--out {
  color: var(--ink-4);
}

.month__cell--today {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.month__cell--race {
  color: #fff;
  font-weight: 800;
  background-color: #26272a;
  background-image: var(--flag);
  background-position: center;
  background-size: cover;
}

.month__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.58));
}

.month__num {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.75);
}

.month__cell:not(.month__cell--race) .month__num {
  text-shadow: none;
}

.month__cell--focus {
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 2px var(--accent);
}

.month__legend {
  margin: 14px 4px 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

.section-head span {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.race-cards {
  display: grid;
  gap: 10px;
}

.race-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--field);
  color: inherit;
  text-decoration: none;
}

.race-card--focus {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.race-card__round {
  flex: none;
  width: 24px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.race-card__body {
  flex: 1;
  min-width: 0;
}

.race-card__name,
.race-card__sub {
  display: block;
}

.race-card__name {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.race-card__sub {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
}

.race-card__flag {
  flex: none;
  width: 27px;
  height: 19px;
  border-radius: 4px;
  object-fit: cover;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-bottom: 8px;
}

.podium__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 6px 14px;
  border-radius: 18px 18px 3px 3px;
  border-bottom: 3px solid var(--team, var(--accent));
  background: var(--field);
  color: inherit;
  text-decoration: none;
}

.podium--three .podium__card--first {
  grid-column: 2;
  grid-row: 1;
  padding-top: 22px;
}

.podium--three .podium__card:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
}

.podium__pos {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.podium__card--first .podium__pos {
  color: var(--accent-text);
}

.podium__name {
  max-width: 100%;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  overflow-wrap: anywhere;
}

.podium__points {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.podium__points small {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0;
}

.board {
  display: flex;
  flex-direction: column;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 2px;
  border-top: 1px solid var(--sep);
  color: inherit;
  text-decoration: none;
}

.board-row__pos {
  flex: none;
  width: 24px;
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.board-row__id {
  flex: 1;
  min-width: 0;
}

.board-row__name,
.board-row__sub {
  display: block;
}

.board-row__name {
  font-size: 16px;
}

.board-row__sub {
  color: var(--ink-3);
  font-size: 13px;
}

.board-row__points {
  flex: none;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.board-row__bar {
  display: none;
}

/* Same token as src/shared/ui/DriverAvatar: team colour as a radial wash. */
.face {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size, 36px);
  height: var(--size, 36px);
  border-radius: 999px;
  background: radial-gradient(
    120% 120% at 30% 18%,
    var(--tint-strong),
    var(--tint) 70%,
    var(--tint-soft)
  );
  color: #fff;
  box-shadow:
    inset 0 0 0 1.5px var(--ring),
    inset 0 2px 5px rgb(255 255 255 / 0.28),
    0 4px 10px -4px var(--glow);
}

.face__code {
  font-size: calc(var(--size, 36px) * 0.3);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

.face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: top center;
}

/* Same tile as src/shared/ui/TeamLogo: white square, logo centered. */
.face--logo {
  padding: calc(var(--size, 36px) * 0.18);
  border-radius: var(--radius, 13px);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--ring),
    0 3px 9px -4px rgb(0 0 0 / 0.25);
}

.face--logo img {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.classification {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  border-top: 1px solid var(--sep);
}

.result__pos {
  flex: none;
  width: 2.75em;
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.result__pos--podium {
  color: var(--accent);
}

.result__who {
  flex: 1;
  min-width: 0;
}

.result__name,
.result__team {
  display: block;
}

.result__name {
  font-size: 16px;
}

.result__team {
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 13px;
}

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

.result__time {
  flex: none;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result__points {
  flex: none;
  width: 32px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--field);
}

.stat b {
  display: block;
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sep);
  font-size: 15px;
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  text-align: right;
}

.facts a {
  color: var(--accent-text);
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th {
  padding: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  text-align: left;
}

.table td {
  padding: 12px 8px;
  border-top: 1px solid var(--sep);
  vertical-align: baseline;
}

.table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.table a {
  color: var(--accent-text);
  text-decoration: none;
}

.outcome {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-size: 15px;
}

.pager a {
  color: var(--ink);
  text-decoration: none;
}

.pager span {
  color: var(--ink-4);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #26272a;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

[data-theme="dark"] .cta {
  background: #f5f5f6;
  color: #26272a;
}

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 8px var(--gutter) 56px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.footer > * {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.footer .brand {
  margin-bottom: 8px;
  color: var(--ink);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) {
  .standing:hover,
  .race-card:hover,
  .podium__card:hover,
  .topbar__cta:hover {
    transform: translateY(-1px);
  }

  .month__cell--race:hover {
    transform: scale(1.06);
  }

  .topbar__links a:hover,
  .crumbs a:hover,
  .table a:hover,
  .result a:hover,
  .facts a:hover,
  .footer__links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.standing,
.race-card,
.podium__card,
.month__cell--race,
.topbar__cta,
.cta {
  transition: transform 180ms var(--motion-ease);
}

.standing:active,
.race-card:active,
.podium__card:active,
.topbar__cta:active,
.cta:active {
  transform: scale(0.99);
}

@media (min-width: 960px) {
  .season-layout {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    align-items: start;
    column-gap: 48px;
  }

  .season-side {
    position: sticky;
    top: 12px;
  }

  .race-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-weekend h2 {
    margin-top: 26px;
    font-size: 38px;
  }

  .podium {
    align-items: stretch;
    gap: 12px;
  }

  .podium__card,
  .podium--three .podium__card--first,
  .podium--three .podium__card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    flex-direction: row;
    gap: 14px;
    padding: 18px;
    border-bottom: 0;
    border-left: 4px solid var(--team, var(--accent));
    border-radius: 18px;
    text-align: left;
  }

  .podium--three .podium__card--first {
    padding-block: 24px;
  }

  .podium__pos {
    width: 24px;
    margin: 0;
  }

  .podium__name {
    flex: 1;
    margin: 0;
    font-size: 16px;
    text-align: left;
  }

  .podium__points {
    font-size: 28px;
  }

  .podium--three .podium__card--first .podium__points {
    font-size: 32px;
  }

  .board-row__bar {
    display: block;
    flex: none;
    width: 120px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--field);
  }

  .board-row__bar::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--team, var(--accent));
    transform: scaleX(var(--share, 0));
    transform-origin: left;
  }

  .board-row__points {
    width: 52px;
    text-align: right;
  }
}

@media (max-width: 800px) {
  .mast__body {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
