@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/barlow-condensed-400.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("fonts/barlow-condensed-500.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("fonts/barlow-condensed-600.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("fonts/barlow-condensed-700.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("fonts/barlow-condensed-800.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("fonts/barlow-condensed-900.ttf") format("truetype");
}

:root {
  --navy: #111827;
  --ink: #1b1235;
  --muted: #5f6675;
  --purple: #5f249f;
  --purple-bright: #8f45ff;
  --purple-deep: #311061;
  --purple-soft: #cab8ff;
  --lavender: #ede7ff;
  --pale: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --purple-panel: rgba(39, 18, 82, 0.92);
  --gold: #d59b20;
  --green: #088a4b;
  --red: #cc2f46;
  --shadow: 0 24px 70px rgba(43, 31, 84, 0.22);
  --soft-shadow: 0 14px 36px rgba(43, 31, 84, 0.14);
  --radius: 22px;
  color: var(--navy);
  font-family: "Barlow Condensed", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--pale);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.93) 0%, rgba(244, 247, 251, 0.54) 31%, rgba(255, 255, 255, 0.04) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(237, 231, 255, 0.08) 47%, rgba(95, 36, 159, 0.14) 100%),
    url("aveva-city-background.png") center top / cover fixed no-repeat;
  color: var(--navy);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 16% 9%, rgba(255, 255, 255, 0.74), transparent 24%),
    radial-gradient(circle at 31% 22%, rgba(143, 69, 255, 0.14), transparent 31%),
    radial-gradient(circle at 83% 82%, rgba(95, 36, 159, 0.18), transparent 36%);
}

body:not(.pre-event-mode)::before {
  content: "";
  position: fixed;
  right: -15vw;
  bottom: 5vh;
  z-index: -1;
  width: 98vw;
  height: 34vh;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(190, 148, 255, 0.34) 32%, rgba(95, 36, 159, 0.72) 57%, rgba(143, 69, 255, 0.38) 70%, transparent),
    linear-gradient(180deg, transparent 41%, rgba(255, 255, 255, 0.58) 48%, transparent 60%);
  filter: blur(0.5px);
  opacity: 0.92;
  transform: rotate(-7deg);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.site-header {
  width: min(1238px, calc(100vw - 28px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  padding: 18px 0 0;
}

.brand img {
  width: 156px;
  height: auto;
  filter: drop-shadow(0 20px 24px rgba(47, 20, 96, 0.24));
}

.brand.small img {
  width: 96px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: 52px;
  width: min(650px, 100%);
  color: var(--navy);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 8px 0 10px;
  opacity: 0.86;
}

.primary-nav a.active,
.primary-nav a:hover {
  color: var(--purple);
  opacity: 1;
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--purple-bright);
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.updated-meta {
  border-left: 1px solid rgba(17, 24, 39, 0.2);
  padding-left: 18px;
}

.updated-meta time {
  display: inline-block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 9px 15px;
  background: linear-gradient(135deg, #7031be, #35116d);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(95, 36, 159, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.live-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.72);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    0 26px 72px rgba(45, 35, 96, 0.16),
    0 2px 12px rgba(255, 255, 255, 0.45) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

@supports (backdrop-filter: blur(18px)) {
  .glass-panel {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  align-items: start;
  gap: 28px;
  min-height: 270px;
  padding: 4px 0 14px;
}

.hero-copy {
  padding: 10px 0 0;
}

.hero-title {
  margin: 0;
  width: fit-content;
  background: linear-gradient(90deg, #23104e 0%, #5f249f 54%, #8f45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(50px, 6.1vw, 72px);
  font-weight: 820;
  line-height: 0.92;
  text-transform: uppercase;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title h1,
.team-card h1,
.pre-event h1 {
  margin: 0;
  color: #26114b;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 430;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title h1,
.team-card h1,
.pre-event h1 {
  font-size: clamp(48px, 6.5vw, 82px);
  font-weight: 950;
  line-height: 0.93;
}

.hero h2 {
  margin: 16px 0 18px;
  color: #6a2ab6;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 620;
  text-transform: uppercase;
}

.hero-principles,
.hero-mission,
.page-title p,
.team-card p {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.34;
}

.hero-principles,
.hero-mission {
  margin: 0;
}

.hero-mission {
  margin-top: 6px;
}

.event-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  min-height: 154px;
  margin-top: 28px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(246, 248, 255, 0.88), rgba(75, 58, 124, 0.74)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 24px 52px rgba(48, 34, 97, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.event-status .panel-label {
  margin-bottom: 8px;
  color: #1b1235;
  font-size: 12px;
  font-weight: 660;
  white-space: nowrap;
}

.event-status strong {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 740;
  text-transform: uppercase;
}

.event-status span:not(.status-dot) {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 660;
  line-height: 1.25;
}

.status-dot {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #2fc77f;
  box-shadow: 0 0 0 2px rgba(47, 199, 127, 0.24);
}

.signal-graph {
  position: relative;
  height: 78px;
  opacity: 0.98;
}

.signal-graph::before {
  content: "";
  position: absolute;
  inset: 9px 0;
  background: #fff;
  clip-path: polygon(0 54%, 18% 54%, 28% 34%, 42% 72%, 58% 18%, 74% 84%, 88% 38%, 100% 38%, 100% 44%, 90% 44%, 74% 92%, 58% 30%, 44% 80%, 28% 44%, 20% 60%, 0 60%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.76));
}

.signal-graph::after {
  content: "";
  position: absolute;
  inset: 9px 0;
  background: rgba(255, 255, 255, 0.28);
  clip-path: polygon(0 53%, 100% 53%, 100% 56%, 0 56%);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 32px;
  align-items: start;
  padding-bottom: 52px;
}

.leaderboard-panel {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.leaderboard-panel::before {
  display: none;
}

.leaderboard-panel::after {
  display: none;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 14px;
}

.leaderboard-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 0;
}

.leaderboard-top > div {
  position: relative;
  min-width: 176px;
  border-radius: 10px 10px 0 0;
  padding: 9px 17px 10px;
  background:
    linear-gradient(90deg, rgba(44, 15, 92, 0.98), rgba(95, 36, 159, 0.98)),
    var(--purple);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(50, 25, 107, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.leaderboard-top > div::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 42px;
  height: 100%;
  border-radius: 0 12px 0 0;
  background: linear-gradient(90deg, rgba(95, 36, 159, 0.98), rgba(67, 22, 124, 0.96));
  transform: skewX(18deg);
  transform-origin: bottom left;
}

.leaderboard-top .panel-label {
  display: none;
}

.leaderboard-top h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}

.leaderboard-top a {
  margin: 0 7px 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #3a176d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    0 10px 22px rgba(48, 28, 106, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.leaderboard-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 48px minmax(0, 1.04fr) minmax(170px, 0.94fr) 146px 78px;
  gap: 14px;
  margin: 0;
  border-radius: 0 5px 0 0;
  padding: 15px 19px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 255, 0.82)),
    rgba(255, 255, 255, 0.78);
  color: #1b1235;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 12px 28px rgba(64, 44, 118, 0.08);
}

.leaderboard-columns span:nth-child(2) {
  grid-column: 2 / 4;
}

.leaderboard-columns span:nth-child(3) {
  grid-column: 4;
}

.leaderboard-columns span:nth-child(4) {
  grid-column: 5;
  text-align: right;
}

.leaderboard-columns span:nth-child(5) {
  grid-column: 6;
  text-align: right;
}

.panel-heading.compact {
  padding: 0 0 14px;
  display: block;
  width: 100%;
}

.panel-heading h2 {
  margin: 0;
  color: var(--purple);
  font-size: 24px;
  text-transform: uppercase;
}

.panel-heading a {
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.leaderboard-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 0;
}

.leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 48px minmax(0, 1.04fr) minmax(170px, 0.94fr) 146px 78px;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 0;
  border-radius: 4px;
  padding: 0 19px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(251, 251, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 9px 22px rgba(55, 38, 105, 0.1),
    0 0 0 1px rgba(133, 118, 213, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.leaderboard-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 170px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(237, 231, 255, 0.74) 0%, rgba(237, 231, 255, 0.34) 44%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.92;
  pointer-events: none;
}

.leaderboard-row:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(43, 31, 84, 0.18),
    0 0 0 1px rgba(143, 69, 255, 0.28) inset;
}

.leaderboard-row.first-place {
  background:
    linear-gradient(90deg, rgba(255, 226, 143, 0.42), rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.75)),
    #fff;
  box-shadow:
    0 18px 42px rgba(180, 126, 26, 0.2),
    0 0 0 1px rgba(232, 181, 61, 0.4) inset,
    0 0 28px rgba(255, 218, 124, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.leaderboard-row.first-place::before {
  background: linear-gradient(90deg, rgba(249, 203, 82, 0.74) 0%, rgba(255, 225, 141, 0.44) 44%, rgba(255, 255, 255, 0) 100%);
  opacity: 1;
}

.leaderboard-row.second-place {
  background:
    linear-gradient(90deg, rgba(229, 234, 246, 0.42), rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0.72)),
    #fff;
}

.leaderboard-row.second-place::before {
  background: linear-gradient(90deg, rgba(190, 198, 215, 0.56), rgba(234, 237, 246, 0.36) 44%, rgba(255, 255, 255, 0) 100%);
}

.leaderboard-row.third-place {
  background:
    linear-gradient(90deg, rgba(243, 217, 194, 0.4), rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0.72)),
    #fff;
}

.leaderboard-row.third-place::before {
  background: linear-gradient(90deg, rgba(202, 139, 89, 0.48), rgba(244, 220, 199, 0.34) 44%, rgba(255, 255, 255, 0) 100%);
}

.rank {
  position: relative;
  color: #111434;
  font-size: 34px;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0;
}

.first-place .rank {
  color: #7a5108;
}

.team-mark,
.activity-icon,
.team-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.08)),
    var(--avatar-color, var(--purple));
  color: #fff;
  font-weight: 950;
}

.team-mark.logo-mark,
.activity-icon.logo-mark,
.team-avatar.logo-mark {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-mark.logo-mark img,
.activity-icon.logo-mark img,
.team-avatar.logo-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.team-mark,
.activity-icon {
  width: 38px;
  height: 38px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(95, 36, 159, 0.22);
}

.team-cell strong,
.activity-item strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.team-cell small,
.activity-item small,
.org-cell {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.team-cell small,
.org-cell {
  font-size: 14.5px;
}

.org-cell {
  margin-top: 0;
  color: #1f2a44;
  line-height: 1.3;
  font-weight: 500;
}

.points {
  color: var(--purple);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  font-size: 33px;
  font-weight: 760;
  text-align: right;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.points small {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.trend {
  font-size: 13px;
  font-weight: 720;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--muted);
}

.side-stack {
  display: grid;
  gap: 20px;
}

.quick-links,
.recent-activity {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 18% 0%, rgba(166, 118, 255, 0.5), transparent 34%),
    linear-gradient(150deg, rgba(70, 28, 139, 0.96), rgba(31, 15, 70, 0.98));
  color: #fff;
  box-shadow:
    0 26px 58px rgba(42, 18, 92, 0.3),
    0 0 30px rgba(143, 69, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.quick-links::after,
.recent-activity::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(169, 121, 255, 0.32);
  pointer-events: none;
}

.quick-links .panel-label,
.recent-activity .panel-label {
  color: #fff;
}

.recent-activity .panel-label {
  width: 100%;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 13px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.activity-list {
  display: grid;
  gap: 0;
}

.activity-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0;
}

.activity-item strong,
.activity-item small {
  color: #fff;
}

.activity-item b {
  white-space: nowrap;
  font-size: 12px;
}

.activity-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 8px;
  padding-top: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  opacity: 0.94;
  text-transform: uppercase;
}

.inner-page {
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.95) 0%, rgba(244, 247, 251, 0.7) 44%, rgba(255, 255, 255, 0.26) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(95, 36, 159, 0.12)),
    url("aveva-city-background.png") center top / cover fixed no-repeat;
}

.page-title {
  padding: 44px 0 28px;
}

.page-title h1 {
  width: fit-content;
  background: linear-gradient(90deg, #23104e 0%, #5f249f 58%, #8f45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(54px, 6.4vw, 78px);
  font-weight: 820;
  line-height: 0.95;
}

.page-title p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
}

.filters span {
  min-width: 160px;
  border: 1px solid rgba(95, 36, 159, 0.18);
  border-radius: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 14px;
  font-weight: 680;
  text-transform: uppercase;
}

.event-log,
.score-history {
  margin-bottom: 44px;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
}

.event-log-heading,
.event-row {
  display: grid;
  grid-template-columns: 190px 84px 180px minmax(120px, 0.68fr) minmax(220px, 1.22fr);
  align-items: center;
  gap: 14px;
  padding-right: 18px;
  padding-left: 18px;
}

.event-log-heading,
.history-heading {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 255, 0.86)),
    rgba(255, 255, 255, 0.86);
  color: #1b1235;
  font-size: 12px;
  font-weight: 620;
  text-transform: uppercase;
}

.event-log-heading {
  min-height: 44px;
}

.event-row,
.history-row {
  border-top: 1px solid rgba(95, 36, 159, 0.12);
  min-height: 56px;
  background: rgba(255, 255, 255, 0.44);
}

.event-row a,
.event-row strong,
.history-row strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.event-row p,
.history-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.32;
}

.event-row b,
.history-row b {
  font-size: 20px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.event-row time,
.history-row time {
  color: #293148;
  font-size: 15px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.timezone-note {
  margin: 0;
  border-top: 1px solid rgba(95, 36, 159, 0.12);
  padding: 12px 18px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.back-link {
  display: inline-block;
  margin: 28px 0 18px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.team-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.team-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.74);
}

.team-avatar {
  width: 106px;
  height: 106px;
  font-size: 48px;
  box-shadow:
    0 18px 34px rgba(95, 36, 159, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.team-avatar.logo-mark img {
  object-fit: contain;
  border-radius: 0;
}

.team-card h1 {
  width: fit-content;
  background: linear-gradient(90deg, #23104e 0%, #5f249f 58%, #8f45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 820;
}

.organisation {
  margin: 6px 0 18px;
  color: #271252;
  font-size: 21px;
  font-weight: 650;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.team-links a {
  border: 1px solid rgba(95, 36, 159, 0.2);
  border-radius: 7px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--purple);
  font-size: 14px;
  font-weight: 720;
  text-transform: uppercase;
}

.score-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.score-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 164px;
  padding: 24px 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(143, 69, 255, 0.14)),
    rgba(255, 255, 255, 0.64);
}

.score-card-rank {
  background:
    linear-gradient(90deg, rgba(237, 231, 255, 0.62), rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(95, 36, 159, 0.12),
    0 0 0 1px rgba(143, 69, 255, 0.2) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.score-card-rank.rank-gold {
  background:
    linear-gradient(90deg, rgba(255, 226, 143, 0.5), rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(180, 126, 26, 0.18),
    0 0 0 1px rgba(232, 181, 61, 0.34) inset,
    0 0 24px rgba(255, 218, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.score-card-rank.rank-silver {
  background:
    linear-gradient(90deg, rgba(229, 234, 246, 0.66), rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(86, 96, 118, 0.14),
    0 0 0 1px rgba(142, 152, 173, 0.3) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.score-card-rank.rank-bronze {
  background:
    linear-gradient(90deg, rgba(243, 217, 194, 0.66), rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(169, 103, 50, 0.14),
    0 0 0 1px rgba(193, 128, 73, 0.28) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.score-card span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 720;
  text-align: center;
  text-transform: uppercase;
}

.score-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: var(--purple);
  font-size: 58px;
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-card-rank strong {
  font-size: 64px;
}

.score-card-rank.rank-gold strong {
  color: #7a5108;
}

.score-card-rank.rank-silver strong {
  color: #566076;
}

.score-card-rank.rank-bronze strong {
  color: #8b5128;
}

.score-card small {
  margin-left: 6px;
  font-size: 17px;
  text-transform: uppercase;
}

.team-media {
  height: 240px;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 14px;
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-heading,
.history-row {
  display: grid;
  grid-template-columns: 190px 84px minmax(120px, 0.68fr) minmax(220px, 1.22fr);
  align-items: center;
  gap: 14px;
  padding-right: 18px;
  padding-left: 18px;
}

.history-heading {
  min-height: 44px;
}

.history-row {
  min-height: 56px;
}

.log-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(95, 36, 159, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--purple);
  font-size: 15px;
  font-weight: 760;
  text-transform: uppercase;
  box-shadow:
    0 10px 22px rgba(48, 28, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-directory,
.link-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}

.team-tile,
.resource-link,
.feature-link-panel {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.74);
}

.team-tile {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.team-tile:hover,
.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(43, 31, 84, 0.18);
}

.team-tile .team-avatar {
  width: 72px;
  height: 72px;
  font-size: 34px;
}

.team-tile strong,
.resource-link strong,
.feature-link-panel h2 {
  display: block;
  color: var(--navy);
  font-size: 26px;
  font-weight: 780;
  line-height: 1.05;
  text-transform: uppercase;
}

.team-tile small,
.resource-link small {
  display: block;
  margin-top: 6px;
  color: #293148;
  font-size: 16px;
}

.team-tile em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.35;
}

.feature-link-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 860px;
  margin-bottom: 52px;
  padding: 34px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  font-size: 28px;
  font-weight: 820;
  box-shadow:
    0 18px 34px rgba(95, 36, 159, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-icon img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(47, 20, 96, 0.22));
}

.feature-link-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.feature-link-panel p {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.resource-link {
  display: block;
  min-height: 150px;
  padding: 24px;
}

.resource-link span {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(95, 36, 159, 0.1);
  color: var(--purple);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.78), rgba(255, 255, 255, 0.28)),
    url("aveva-city-background.png") center / cover no-repeat;
}

.error-panel {
  width: min(680px, calc(100vw - 32px));
  padding: 38px;
  text-align: center;
}

.error-panel img {
  width: 128px;
  filter: drop-shadow(0 18px 24px rgba(47, 20, 96, 0.24));
}

.error-panel h1 {
  margin: 12px 0;
  background: linear-gradient(90deg, #23104e 0%, #5f249f 58%, #8f45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 820;
  line-height: 0.98;
  text-transform: uppercase;
}

.error-panel p:not(.eyebrow) {
  color: var(--navy);
  font-size: 18px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pre-event-mode {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.55), rgba(255, 255, 255, 0.22)),
    url("aveva-city-background.png") center / cover no-repeat;
}

.pre-event {
  width: min(720px, calc(100vw - 28px));
  text-align: center;
}

.pre-event-logo {
  width: 150px;
  filter: drop-shadow(0 18px 24px rgba(47, 20, 96, 0.24));
}

.pre-event p {
  color: var(--navy);
  font-size: 18px;
}

.countdown-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.countdown-placeholder span {
  border-radius: 12px;
  padding: 16px 12px;
  background: rgba(39, 18, 82, 0.82);
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.countdown-placeholder b {
  display: block;
  font-size: 32px;
}

.event-starting-message {
  display: inline-block;
  margin: 24px 0 0;
  border-radius: 16px;
  padding: 18px 28px;
  background: rgba(39, 18, 82, 0.9);
  color: #fff !important;
  font-size: clamp(28px, 5vw, 54px) !important;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.event-starting-message[hidden],
.countdown-placeholder[hidden] {
  display: none;
}

.embed-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.88), rgba(255, 255, 255, 0.4)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(95, 36, 159, 0.12)),
    url("aveva-city-background.png") center center / cover no-repeat fixed;
  background-color: var(--pale);
}

.embed-page::before,
.embed-page::after {
  display: none;
}

.embed-card {
  display: grid;
  grid-template-rows: auto auto auto;
  width: min(300px, 100vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 11px 11px 10px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 24px 58px rgba(43, 31, 84, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

@media (max-width: 340px) {
  .embed-page {
    min-width: 300px;
  }

  .embed-card {
    width: 300px;
  }
}

.embed-header {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-bottom: 5px solid var(--purple);
  padding: 1px 0 10px;
}

.embed-header img {
  width: 72px;
  filter: drop-shadow(0 13px 16px rgba(47, 20, 96, 0.2));
}

.embed-header p,
.embed-header h1 {
  margin: 0;
  text-transform: uppercase;
}

.embed-header p {
  color: #271252;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.2px;
  line-height: 0.96;
}

.embed-header h1 {
  margin-top: 4px;
  color: var(--purple);
  font-size: 23px;
  font-weight: 760;
  letter-spacing: 0.2px;
  line-height: 1;
}

.embed-leaderboard {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 100%;
  padding: 10px 0;
}

.embed-row {
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid rgba(133, 118, 213, 0.22);
  border-radius: 6px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 18px rgba(55, 38, 105, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.embed-row.first-place {
  border-color: rgba(213, 155, 32, 0.36);
  background: linear-gradient(90deg, rgba(255, 226, 143, 0.48), rgba(255, 255, 255, 0.88));
}

.embed-row.second-place {
  background: linear-gradient(90deg, rgba(229, 234, 246, 0.52), rgba(255, 255, 255, 0.86));
}

.embed-row.third-place {
  background: linear-gradient(90deg, rgba(243, 217, 194, 0.5), rgba(255, 255, 255, 0.86));
}

.embed-rank {
  color: #111434;
  font-size: 22px;
  font-weight: 820;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.embed-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.08)),
    var(--avatar-color, var(--purple));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.embed-mark.logo-mark {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.embed-mark.logo-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.embed-team {
  overflow: hidden;
  min-width: 0;
}

.embed-team strong,
.embed-team small {
  display: block;
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-team strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18px;
  text-transform: uppercase;
}

.embed-team small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
}

.embed-points {
  color: var(--purple);
  font-size: 20px;
  font-weight: 760;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.embed-points small {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.embed-footer {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(95, 36, 159, 0.16);
  padding-top: 8px;
}

.embed-footer span {
  color: #293148;
  font-size: 10px;
  font-weight: 650;
}

.embed-footer strong {
  color: var(--purple);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.18px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .live-meta {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .brand img {
    width: 92px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-left: 0;
  }

  .home-grid,
  .team-overview {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: 1fr 1fr;
  }

  .event-log-heading,
  .history-heading {
    display: none;
  }

  .event-row,
  .history-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    border: 1px solid rgba(95, 36, 159, 0.12);
    border-radius: 14px;
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.62);
  }

  .event-row time,
  .history-row time,
  .event-row p,
  .history-row p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body,
  .inner-page {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.94), rgba(244, 247, 251, 0.88)),
      url("aveva-city-background.png") center top / auto 520px no-repeat;
  }

  .site-header {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .brand img,
  .brand.small img {
    width: 76px;
  }

  .primary-nav {
    justify-content: flex-start;
    gap: 6px 14px;
    font-size: 13px;
  }

  .live-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 0;
    padding-top: 22px;
  }

  .hero h1,
  .page-title h1,
  .pre-event h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .leaderboard-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 14px;
    min-height: 0;
    padding: 16px;
  }

  .leaderboard-columns {
    display: none;
  }

  .leaderboard-row .team-mark {
    display: none;
  }

  .leaderboard-row .team-cell,
  .leaderboard-row .org-cell,
  .leaderboard-row .points,
  .leaderboard-row .trend {
    grid-column: 2;
  }

  .points,
  .trend {
    text-align: left;
  }

  .points {
    justify-content: flex-start;
    font-size: 26px;
  }

  .side-stack,
  .score-summary,
  .team-card,
  .countdown-placeholder,
  .team-directory,
  .link-directory,
  .feature-link-panel {
    grid-template-columns: 1fr;
  }

  .team-tile {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .team-card,
  .event-log,
  .score-history {
    padding: 20px;
  }

  .event-log,
  .score-history {
    padding: 0;
  }

  .filters {
    justify-content: stretch;
    flex-direction: column;
  }

  .filters span {
    min-width: 0;
  }
}
