:root {
  --navy: #071d5e;
  --navy-deep: #03144a;
  --green: #078b59;
  --teal: #006858;
  --line: rgba(7, 29, 94, 0.14);
  --mint-line: rgba(0, 104, 88, 0.38);
  --paper: #fbfbf8;
}

* {
  box-sizing: border-box;
}

html {
  background: #101010;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 3%, rgba(5, 29, 82, 0.08) 0 2px, transparent 3px) 0 0 / 18px 18px,
    linear-gradient(105deg, rgba(255, 255, 255, 0.92), rgba(247, 248, 244, 0.98) 48%, rgba(255, 255, 255, 0.94));
  color: var(--navy);
  font-family: "Barlow Condensed", Impact, sans-serif;
}

.poster {
  width: 100%;
  min-height: 1560px;
  padding: 32px 30px 64px;
  position: relative;
  overflow: hidden;
}

.masthead {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 34px 18px 38px;
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

h1,
h2,
.event-title,
.table-header,
.participant,
.points,
.rank {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.92;
}

h1 {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0;
  font-size: clamp(58px, 9.2vw, 108px);
  color: var(--navy);
  white-space: nowrap;
}

.event-title {
  color: var(--green);
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
}

h2 {
  font-family: Anton, Impact, sans-serif;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 1px;
  white-space: nowrap;
}

.table-card {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.table-header,
.row {
  display: grid;
  grid-template-columns: 72px minmax(110px, 150px) minmax(0, 1fr) 104px;
  align-items: center;
}

.table-header {
  min-height: 42px;
  padding: 0 12px;
  gap: 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--navy), var(--navy-deep));
  border-radius: 10px 10px 0 0;
  letter-spacing: 0.5px;
}

.table-header span:nth-child(3) {
  text-align: center;
}

.table-header span:last-child {
  text-align: right;
}

.standings {
  border: 1px solid rgba(7, 29, 94, 0.08);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, 0.72);
}

.table-footer {
  width: min(100%, 1120px);
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.last-updated {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

.timer-pie {
  --timer-progress: 100%;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(#7a7d84 var(--timer-progress), rgba(7, 29, 94, 0.12) 0);
}

.row {
  min-height: 38px;
  padding: 0 12px 0 8px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.row:last-child {
  border-bottom: 0;
}

.row-blank .rank {
  background: transparent;
}

.rank {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 72px;
  height: 32px;
  border-radius: 5px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #073579, var(--navy-deep));
}

.participant {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-deep);
  text-transform: none;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5px minmax(0, 1fr) 5px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.team-pill {
  min-width: 0;
  width: 100%;
  padding: 4px 4px 5px;
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  color: var(--navy-deep);
  font-size: clamp(11px, 1.35vw, 15px);
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy);
  justify-self: center;
}

.points {
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 860px) {
  body {
    padding: 0;
    place-items: start center;
  }

  .poster {
    min-height: 100vh;
    padding: 24px 14px 42px;
  }

  .masthead {
    padding: 22px 0 28px;
    gap: 10px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 74px);
  }

  .event-title {
    font-size: clamp(24px, 6.8vw, 44px);
  }

  h2 {
    font-size: clamp(27px, 7.6vw, 48px);
  }

  .table-card {
    overflow-x: hidden;
    border-radius: 8px;
  }

  .table-header,
  .row {
    width: 100%;
    grid-template-columns: 52px minmax(88px, 118px) minmax(0, 1fr) 66px;
    gap: 5px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .table-header {
    font-size: 15px;
  }

  .rank {
    width: 44px;
    height: 28px;
    font-size: 22px;
  }

  .participant {
    font-size: 19px;
  }

  .team-pill {
    padding-left: 2px;
    padding-right: 2px;
    font-size: clamp(9px, 2vw, 12px);
  }

  .points {
    font-size: 24px;
  }

  .timer-pie {
    width: 22px;
    height: 22px;
  }
}
