/* Semantic classes replace the hashed css-* names from the Figma Site publish.
   Breakpoints match that publish: mobile <800, tablet 800–1279, desktop ≥1280. */
:root {
  --gold: #937a4a;
  --mint: #0bd8a5;
  --mist: #baf1e7;
  --ink: #003026;
  --tide: #017c65;
  --jade: #11a58e;
  --white: #ffffff;
  --black: #000000;
  --line: #e4e4e4;
  --hair: rgba(255, 255, 255, 0.5);
  --font: "degular-text", sans-serif;
  --font-tc: "tt-zhihei-chs-variable", "degular-text", sans-serif;
  --font-label: "degular-text", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
}

html[lang="zh-Hant"] body {
  font-family: var(--font-tc);
}

img {
  border: 0;
}

button,
a {
  font-family: inherit;
}

a {
  color: inherit;
}

.latin,
.bar-legal,
.bar-email,
.lang-link[lang="en"] {
  font-family: var(--font);
}

.hero-stack {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity var(--hero-fade, 500ms) linear;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-left: 40px;
}

.lang {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  display: flex;
}

.lang-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.28px;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  transition: background-color 500ms ease-out;
}

.lang-link:first-child {
  border-left: 1px solid var(--hair);
  font-size: 14px;
}

.lang-link[aria-current="page"] {
  background: var(--black);
}

.lang-link:hover,
.lang-link:focus-visible {
  background: var(--jade);
}

.hero-logo {
  position: absolute;
  z-index: 2;
  top: 84px;
  right: 40px;
  width: 265px;
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 40px 40px;
  max-width: 760px;
}

.present {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  padding-right: 16px;
}

.present img {
  display: block;
  width: 137px;
  height: 64px;
}

.present span {
  font-size: 16px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.32px;
  color: var(--white);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-date {
  margin: 0 0 -8px;
  color: var(--white);
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -1.2px;
}

html[lang="zh-Hant"] .hero-date {
  margin-bottom: 8px;
}

.hero-date .year {
  font-weight: 700;
  font-size: 60px;
  color: var(--mist);
}

.hero h1 {
  margin: 0;
  max-width: 600px;
  color: var(--mint);
  font-size: 90px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

html[lang="zh-Hant"] .hero h1 {
  font-size: 72px;
  font-weight: 700;
  max-width: 640px;
}

.hero-place,
.hero-sub {
  margin: 0;
  color: var(--mist);
  line-height: 0.9;
}

.hero-place {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.64px;
}

html[lang="zh-Hant"] .hero-place {
  letter-spacing: 0;
  font-weight: 600;
}

.hero-mark {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -4px;
  width: 21px;
  height: 21px;
  margin-left: 12px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 700;
}

.ticker {
  flex: 0 0 50px;
  height: 50px;
  overflow: hidden;
  background: var(--mint);
  color: var(--white);
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

html[lang="zh-Hant"] .ticker-group {
  font-weight: 500;
  letter-spacing: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.intro {
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 120px clamp(24px, 11vw, 160px);
  text-align: center;
}

.intro-title {
  margin: 0;
  max-width: 1080px;
  color: var(--mint);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.64px;
}

html[lang="zh-Hant"] .intro-title {
  letter-spacing: 0.64px;
  font-weight: 600;
}

.pair {
  margin: 0;
  width: 100%;
  max-width: 1080px;
  text-align: center;
  color: var(--mist);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.96px;
}

html[lang="zh-Hant"] .pair {
  letter-spacing: 0.4px;
}

.lede {
  max-width: 1080px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.48px;
}

html[lang="zh-Hant"] .lede {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  font-weight: 300;
}

.lede p {
  margin: 0;
}

.lede .gap {
  height: 1.2em;
}

html[lang="zh-Hant"] .lede .gap {
  height: 1.5em;
}

.orgs {
  background: var(--tide);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 149px clamp(24px, 11vw, 160px);
  text-align: center;
}

.org h2 {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.32px;
}

html[lang="zh-Hant"] .org h2 {
  letter-spacing: 0.32px;
}

.org ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.org li {
  margin: 0;
  color: var(--mist);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.org a:hover {
  text-decoration: underline;
}

html[lang="zh-Hant"] .org li {
  letter-spacing: 0.4px;
}

.sponsors {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 149px clamp(24px, 11vw, 160px);
}

.tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
}

.tier h2 {
  margin: 0;
  color: var(--jade);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.32px;
  text-align: center;
}

html[lang="zh-Hant"] .tier h2 {
  letter-spacing: 0.32px;
}

.rule {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.title-sponsor,
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1120px;
}

.title-sponsor {
  gap: 20px;
  flex-wrap: nowrap;
}

.logo-apollo {
  width: 77px;
  height: 120px;
  object-fit: contain;
}

.title-sponsor p {
  width: 206px;
  margin: 0;
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.28px;
}

.logo-row a,
.title-sponsor > a {
  display: inline-flex;
  line-height: 0;
}

.logo-row img {
  display: block;
  max-height: 60px;
  object-fit: contain;
}

.logo-mgm { height: 50px; width: auto; }
.logo-geg { height: 24px; width: auto; }
.logo-melco { height: 60px; width: auto; }
.logo-sands { height: 52px; width: auto; }
.logo-sjm { height: 48px; width: auto; }
.logo-wynn { height: 60px; width: auto; }
.logo-ant { height: 25px; width: auto; }
.logo-boc { height: 48px; width: auto; }
.logo-bank { height: 48px; width: auto; }
.logo-bocomm { height: 28px; width: auto; }
.logo-luso { height: 50px; width: auto; }
.logo-fotera { height: 40px; width: auto; }
.logo-pass { height: 40px; width: auto; }
.logo-daily { height: 36px; width: auto; }
.logo-mome { height: 42px; width: auto; }
.logo-tdm { height: 42px; width: auto; }

.race {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
}

.race-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 30px;
  background: var(--ink);
}

.race-photo img:not([src]) {
  visibility: hidden;
}

.race-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.race-pro .race-photo img {
  width: 150%;
  left: -12%;
  max-width: none;
}

.race-photo h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  color: var(--white);
  font-family: var(--font);
  font-size: 72px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -1.44px;
}

html[lang="zh-Hant"] .race-photo h2 {
  word-break: keep-all;
}

.race-copy {
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 110px;
}

.race-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 35px;
  width: 100%;
  max-width: 640px;
}

.race-copy h3 {
  margin: 0;
  color: var(--jade);
  font-size: 36px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.72px;
}

html[lang="zh-Hant"] .race-copy h3 {
  line-height: 1.2;
  letter-spacing: 0.72px;
}

.race-elite .race-copy h3 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

html[lang="zh-Hant"] .race-elite .race-copy h3 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.72px;
  line-height: 1.2;
}

.facts {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

html[lang="zh-Hant"] .facts {
  letter-spacing: 0.36px;
}

.facts p {
  margin: 0;
}

.race-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 18px 26px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--jade);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 17px 25px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.btn-line:hover,
.btn-line:focus-visible {
  background: var(--black);
  color: var(--white);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 70px;
}

.footer-date {
  margin: 0;
  max-width: 420px;
  color: var(--black);
  font-style: italic;
  font-weight: 500;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -1.92px;
}

.footer-date .year {
  display: block;
  font-weight: 700;
  color: var(--mint);
}

.venue h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.32px;
  text-transform: uppercase;
}

html[lang="zh-Hant"] .venue h2 {
  text-transform: none;
  opacity: 0.5;
  letter-spacing: 0;
}

.venue p {
  margin: 0;
}

.venue .name {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.48px;
}

.venue .addr {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.32px;
}

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

.bar {
  min-height: 160px;
  padding: 30px;
  color: var(--white);
}

a.bar {
  display: block;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

a.bar h2,
a.bar .bar-email {
  transition: transform 0.25s ease;
}

a.bar:hover h2,
a.bar:hover .bar-email,
a.bar:focus-visible h2,
a.bar:focus-visible .bar-email {
  transform: translateX(6px);
}

.bar-press { background: var(--tide); }
.bar-mail { background: var(--jade); }

a.bar-press:hover,
a.bar-press:focus-visible {
  background: color-mix(in srgb, var(--tide) 72%, #000);
}

a.bar-mail:hover,
a.bar-mail:focus-visible {
  background: color-mix(in srgb, var(--jade) 72%, #000);
}

.bar-legal {
  background: var(--mint);
  text-align: right;
}

.bar h2 {
  margin: 0 0 15px;
  font-family: var(--font-label);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.48px;
}

.bar-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bar-legal p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.32px;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (max-width: 1279px) {
  .hero-bar {
    padding-left: 40px;
  }

  .hero-copy {
    padding: 20px 40px 40px;
  }

  .hero h1 {
    font-size: 67.5px;
    max-width: 450px;
  }

  html[lang="zh-Hant"] .hero h1 {
    font-size: 52px;
  }

  .hero-logo {
    width: 177px;
    height: auto;
    top: 67px;
    right: 27px;
  }

  .present img {
    width: 103px;
    height: 48px;
  }

  .hero-date {
    font-size: 36px;
  }

  .hero-date .year {
    font-size: 45px;
  }

  .hero-place {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .intro,
  .orgs,
  .sponsors {
    padding: 120px 40px;
  }

  .pair {
    font-size: 32px;
  }

  .lede,
  html[lang="zh-Hant"] .lede {
    font-size: 20px;
    line-height: 1.2;
  }

  .race-copy {
    padding: 40px;
  }

  .race-photo h2 {
    font-size: 56px;
  }

  .footer-date {
    font-size: 72px;
  }

  .footer-top {
    padding: 40px;
  }
}

@media (max-width: 799px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bar {
    padding-left: 0;
    flex-shrink: 0;
  }

  .present {
    flex: 1 0 0;
    min-width: 0;
    height: 40px;
    padding-right: 10px;
  }

  .present img {
    width: 86px;
    height: 40px;
  }

  .present span {
    font-size: 10px;
    letter-spacing: -0.2px;
  }

  html[lang="zh-Hant"] .present span {
    font-size: 12px;
    letter-spacing: 0;
  }

  .lang {
    position: static;
  }

  .lang-link {
    height: 40px;
  }

  .hero-logo {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-start;
    width: 159px;
    height: auto;
    margin: 20px 15px 0;
  }

  .hero-copy {
    padding: 12px 15px 28px;
    max-width: none;
    width: 100%;
  }

  .hero-text {
    gap: 8px;
  }

  html[lang="zh-Hant"] .hero-text {
    gap: 14px;
  }

  .hero-mark {
    width: 12.5px;
    height: 12.5px;
  }

  .hero h1,
  html[lang="zh-Hant"] .hero h1 {
    font-size: 48px;
    max-width: none;
  }

  html[lang="zh-Hant"] .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  html[lang="zh-Hant"] .hero-place,
  html[lang="zh-Hant"] .hero-sub {
    line-height: 1.3;
  }

  .hero-place {
    font-size: 20px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-date {
    margin-bottom: -4px;
    font-size: 30px;
  }

  .hero-date .year {
    font-size: 37.5px;
  }

  .intro,
  .orgs,
  .sponsors {
    padding: 80px 20px;
  }

  .sponsors {
    padding-left: 15px;
    padding-right: 15px;
  }

  .intro {
    gap: 40px;
  }

  .intro-title {
    font-size: 32px;
  }

  .pair {
    font-size: 28px;
    gap: 8px;
  }

  .lede {
    font-size: 18px;
    line-height: 1.2;
  }

  html[lang="zh-Hant"] .lede {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }

  .org h2,
  .tier h2 {
    font-size: 14px;
  }

  .org li {
    font-size: 16px;
  }

  .orgs {
    gap: 60px;
  }

  .title-sponsor {
    flex-wrap: nowrap;
    gap: 18px;
    justify-content: center;
    text-align: left;
  }

  .logo-apollo {
    width: 69px;
    height: 108px;
  }

  .title-sponsor p {
    width: 185px;
    font-size: 12.6px;
    letter-spacing: -0.252px;
  }

  .logo-row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 48px;
  }

  .logo-sands {
    height: 52px;
  }

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

  .race-flip .race-photo {
    order: -1;
  }

  .race-photo {
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    padding: 30px 15px;
  }

  .race-pro .race-photo img {
    width: 100%;
    left: 0;
  }

  .race-copy {
    min-width: 0;
    padding: 40px 15px;
  }

  .race-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
  }

  .race-actions .btn-dark,
  .race-actions .btn-line {
    width: 100%;
    max-width: 100%;
  }

  .race-photo h2 {
    font-size: 48px;
    letter-spacing: -0.96px;
    max-width: none;
  }

  .race-copy h3,
  .race-elite .race-copy h3,
  html[lang="zh-Hant"] .race-elite .race-copy h3 {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .facts {
    font-size: 16px;
  }

  .site-footer {
    gap: 0;
  }

  .footer-top {
    flex-direction: column;
    padding: 40px 15px;
    gap: 20px;
  }

  .footer-date {
    max-width: none;
    font-size: 72px;
    letter-spacing: -1.44px;
  }

  .footer-date .year {
    display: inline;
  }

  .footer-bars {
    grid-template-columns: 1fr;
  }

  .bar {
    min-height: 0;
    padding: 30px;
  }

  .bar-legal {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .hero-slide {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
