.battle-apac-storefront {
  --battle-apac-black: #060607;
  --battle-apac-panel: #0c0d0e;
  --battle-apac-green: #BFD732;
  --battle-apac-north-green: #C2FE0E;
  --battle-apac-footer-green: #214d00;
  --battle-apac-lime: #C2FE0E;
  --battle-apac-violet: #9010F6;
  --battle-apac-white: #ffffff;
  --battle-apac-muted: #bbb8c1;
  --battle-apac-line: rgba(191, 215, 50, 0.32);
  --battle-apac-bg-left: url("https://leadjoy-us.oss-us-west-1.aliyuncs.com/event/Battle%20of%20APAC/background/l.png");
  --battle-apac-bg-right: url("https://leadjoy-us.oss-us-west-1.aliyuncs.com/event/Battle%20of%20APAC/background/r.png");
  background: var(--battle-apac-black);
  background-image:
    var(--battle-apac-bg-left),
    var(--battle-apac-bg-right);
  background-position: left center, right center;
  background-repeat: no-repeat;
  background-size: min(42vw, 640px) auto, min(42vw, 640px) auto;
  background-attachment: scroll;
  color: var(--battle-apac-white);
  overflow-x: clip;
}

body.battle-apac-storefront {
  background: var(--battle-apac-black);
  background-image:
    var(--battle-apac-bg-left),
    var(--battle-apac-bg-right);
  background-position: left center, right center;
  background-repeat: no-repeat;
  background-size: min(42vw, 640px) auto, min(42vw, 640px) auto;
  background-attachment: scroll;
  color: var(--battle-apac-white);
}

body.battle-apac-storefront .battle-apac-header {
  background: var(--battle-apac-black);
}

.battle-apac-header {
  background: var(--battle-apac-black);
  color: var(--battle-apac-white);
  border-bottom: 0;
  box-shadow: none;
}

.battle-apac-header .bingo-site-header-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
}

.battle-apac-header .bingo-site-title {
  justify-self: center;
  color: var(--battle-apac-white);
  text-transform: uppercase;
  letter-spacing: 0;
}

.battle-apac-header-balance {
  width: 120px;
}

.battle-apac-main {
  min-height: calc(100svh - var(--bingo-site-header-offset));
  padding: 0;
}

.battle-apac-champion,
.battle-apac-media-section,
.battle-apac-winner,
.battle-apac-copy-block,
.battle-apac-teams {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.battle-apac-poster {
  width: 100%;
  margin: 0;
}

.battle-apac-poster-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--battle-apac-white);
  border: 0;
  background: var(--battle-apac-black);
  isolation: isolate;
}

.battle-apac-poster-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
}

.battle-apac-champion,
.battle-apac-winner {
  padding: clamp(42px, 7vw, 84px) 0 0;
}

.battle-apac-winner h2,
.battle-apac-media-section h2,
.battle-apac-copy-block h2,
.battle-apac-team-section h2,
.battle-apac-champion-title-stack {
  margin: 0 0 18px;
  color: var(--battle-apac-white);
  font-size: clamp(32px, 5vw, 35px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.battle-apac-champion-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  isolation: isolate;
}

.battle-apac-champion-image {
  display: block;
  width: 100%;
  height: auto;
}

.battle-apac-media-section {
  padding: clamp(42px, 7vw, 84px) 0 0;
}

.battle-apac-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  background: var(--battle-apac-black);
}

.battle-apac-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.battle-apac-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.battle-apac-highlights {
  padding-bottom: clamp(42px, 7vw, 84px);
}

.battle-apac-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.battle-apac-score-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--battle-apac-green);
}

.battle-apac-score-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.battle-apac-score-table th {
  padding: 11px 8px;
  color: var(--battle-apac-white);
  background: var(--battle-apac-violet);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 900;
  line-height: 1;
  text-align: left;
}

.battle-apac-score-table td {
  height: 52px;
  padding: 6px 8px;
  color: var(--battle-apac-black);
  border-top: 2px solid rgba(5, 5, 6, 0.18);
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 900;
  line-height: 1.1;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.battle-apac-score-table td:nth-child(2) {
  line-height: 1.05;
}

.battle-apac-score-table th:nth-child(2) {
  font-size: clamp(15px, 1.55vw, 19px);
}

.battle-apac-score-table th:nth-child(1),
.battle-apac-score-table td:nth-child(1) {
  width: 54px;
}

.battle-apac-score-table th:nth-child(3),
.battle-apac-score-table td:nth-child(3),
.battle-apac-score-table th:nth-child(4),
.battle-apac-score-table td:nth-child(4) {
  width: 58px;
  font-size: clamp(15px, 1.55vw, 19px);
  text-align: center;
}

.battle-apac-score-logo-cell {
  text-align: center;
}

.battle-apac-score-logo-image {
  display: inline-block;
  width: 38px;
  max-width: 100%;
  height: 38px;
  object-fit: contain;
  vertical-align: middle;
}

.battle-apac-copy-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(34px, 6vw, 70px);
  padding: clamp(22px, 4vw, 38px);
  color: var(--battle-apac-white);
  background: var(--battle-apac-black);
}

.battle-apac-copy-image {
  display: block;
  width: min(100%, 820px);
  max-width: 100%;
  height: auto;
}

.battle-apac-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 5vw, 54px);
  padding: clamp(38px, 7vw, 86px) 0 0;
}

.battle-apac-team-section {
  --battle-apac-team-accent: var(--battle-apac-green);
  --battle-apac-team-text: var(--battle-apac-black);
  --battle-apac-heading-start: #142800;
  --battle-apac-heading-end: #70b700;
  --battle-apac-heading-highlight: #b7ff00;
  --battle-apac-heading-shadow: rgba(194, 254, 14, 0.54);
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 3px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.94)) padding-box,
    linear-gradient(45deg, var(--battle-apac-team-accent) 0 -200%, transparent 96%) border-box;
}

.battle-apac-team-section.is-purple {
  --battle-apac-team-accent: var(--battle-apac-violet);
  --battle-apac-team-text: var(--battle-apac-white);
  --battle-apac-heading-start: #21002e;
  --battle-apac-heading-end: #8700dc;
  --battle-apac-heading-highlight: #d800ff;
  --battle-apac-heading-shadow: rgba(144, 16, 246, 0.64);
}

.battle-apac-team-section.is-green {
  --battle-apac-team-accent: var(--battle-apac-north-green);
  --battle-apac-team-text: var(--battle-apac-black);
}

.battle-apac-team-section h2 {
  margin: 0;
  color: var(--battle-apac-white);
  font-size: clamp(17px, 6.5vw, 75px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.battle-apac-team-heading {
  position: relative;
  width: min(50%, 468.5px);
  aspect-ratio: 937 / 254;
  margin: 0 auto clamp(20px, 3vw, 32px);
  isolation: isolate;
}

.battle-apac-team-heading h2 {
  position: absolute;
  inset: 9% 0 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 9% 3%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, transparent 34%),
    linear-gradient(180deg, var(--battle-apac-heading-start) 0%, var(--battle-apac-heading-end) 100%);
  clip-path: polygon(0.6% 0, 99.4% 0, 92.8% 100%, 7.2% 100%);
  filter: drop-shadow(0 0 4px var(--battle-apac-heading-shadow));
  text-align: center;
}

.battle-apac-team-heading h2::before {
  content: "";
  position: absolute;
  inset: 2.5% 1.1% auto;
  height: clamp(2px, 0.275vw, 3px);
  background: var(--battle-apac-heading-highlight);
  box-shadow:
    0 0 2.5px var(--battle-apac-heading-highlight),
    0 0 7px var(--battle-apac-heading-shadow);
}

.battle-apac-team-heading h2 span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  transform: translateY(14%) scaleX(0.9);
  transform-origin: center;
  text-shadow: 1.5px 1.5px 0 rgba(197, 201, 211, 0.78);
  white-space: nowrap;
}

.battle-apac-team-heading-bar {
  position: absolute;
  right: 7.2%;
  bottom: 3.5%;
  left: 7.2%;
  height: 5.6%;
  min-height: 2px;
  background: linear-gradient(
    90deg,
    var(--battle-apac-heading-highlight) 0 34.5%,
    var(--battle-apac-white) 34.5% 65.5%,
    var(--battle-apac-heading-highlight) 65.5% 100%
  );
  clip-path: polygon(0 0, 100% 0, 99% 76%, 1% 76%);
  box-shadow: 0 0 4px var(--battle-apac-heading-shadow);
}

.battle-apac-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(18px, 2.6vw, 30px) clamp(12px, 2vw, 26px);
}

.battle-apac-team-card {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.battle-apac-team-card::before {
  content: "";
  position: absolute;
  top: clamp(36px, 4.6vw, 66px);
  z-index: 0;
  width: min(100%, 132px);
  height: clamp(42px, 5vw, 66px);
  background: linear-gradient(180deg, transparent 0%, var(--battle-apac-team-accent) 100%);
  pointer-events: none;
}

.battle-apac-team-logo {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(62px, 7vw, 104px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--battle-apac-black);
  background: var(--battle-apac-white);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
}

.battle-apac-team-logo-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.battle-apac-team-card[data-battle-apac-team-id="apac-n-3"] .battle-apac-team-logo-image {
  transform: translateY(-6px);
}

.battle-apac-team-card[data-battle-apac-team-id="apac-n-5"] .battle-apac-team-logo-image {
  transform: translateY(1px);
}

.battle-apac-team-card[data-battle-apac-team-id="apac-s-5"] .battle-apac-team-logo-image {
  transform: translateY(2px);
}

.battle-apac-team-card strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 132px);
  height: clamp(42px, 4vw, 48px);
  padding: 4px 7px;
  color: var(--battle-apac-team-text);
  background: var(--battle-apac-team-accent);
  box-sizing: border-box;
  font-size: clamp(13px, 1.7vw, 17px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.battle-apac-storefront .bingo-site-footer {
  color: var(--battle-apac-white);
  background: linear-gradient(135deg, var(--battle-apac-violet) 0%, var(--battle-apac-footer-green) 100%);
  border-top: 1px solid var(--battle-apac-white);
}

.battle-apac-storefront .bingo-site-footer a {
  color: var(--battle-apac-white);
}

.battle-apac-storefront .bingo-site-footer a:hover,
.battle-apac-storefront .bingo-site-footer a:focus-visible {
  color: var(--battle-apac-white);
}

.battle-apac-storefront .bingo-site-footer-social-link {
  color: var(--battle-apac-white);
  background: transparent;
  border: 0;
}

.battle-apac-storefront .bingo-site-footer-contact {
  color: var(--battle-apac-white);
  background: transparent;
}

@media (max-width: 767px) {
  .battle-apac-header .bingo-site-header-inner {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
  }

  .battle-apac-header .bingo-site-title {
    font-size: 12px;
  }

  .battle-apac-header-balance {
    width: 88px;
  }

  .battle-apac-main {
    width: 100%;
  }

  body.battle-apac-storefront {
    background-position: left top 72px, right top 72px;
    background-size: min(74vw, 360px) auto, min(74vw, 360px) auto;
    background-attachment: scroll;
  }

  .battle-apac-champion,
  .battle-apac-media-section,
  .battle-apac-winner,
  .battle-apac-copy-block,
  .battle-apac-teams {
    width: min(100% - 32px, 520px);
  }

  .battle-apac-poster {
    width: 100%;
  }

  .battle-apac-scoreboard,
  .battle-apac-video-grid,
  .battle-apac-teams {
    grid-template-columns: minmax(0, 1fr);
  }

  .battle-apac-poster-stage {
    padding: 0;
  }

  .battle-apac-score-table td {
    height: 48px;
  }

  .battle-apac-team-section {
    padding: 18px 14px 20px;
  }

  .battle-apac-team-section h2 {
    font-size: clamp(17px, 6.5vw, 25px);
  }

  .battle-apac-team-heading {
    margin-bottom: 18px;
  }

  .battle-apac-team-heading h2 span {
    text-shadow: 1px 1px 0 rgba(197, 201, 211, 0.72);
  }

  .battle-apac-team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 7px;
  }

  .battle-apac-team-logo {
    width: min(100%, 46px);
  }

  .battle-apac-team-card::before {
    top: 24px;
    width: 100%;
    height: 42px;
  }

  .battle-apac-team-card strong {
    min-height: 28px;
    padding: 6px 2px;
    font-size: 10px;
  }

}

@media (max-width: 380px) {
  .battle-apac-score-table th,
  .battle-apac-score-table td {
    padding-right: 5px;
    padding-left: 5px;
  }

  .battle-apac-score-table th:nth-child(1),
  .battle-apac-score-table td:nth-child(1) {
    width: 44px;
  }

  .battle-apac-score-table th:nth-child(3),
  .battle-apac-score-table td:nth-child(3),
  .battle-apac-score-table th:nth-child(4),
  .battle-apac-score-table td:nth-child(4) {
    width: 46px;
  }

  .battle-apac-score-logo-image {
    width: 32px;
    height: 32px;
  }
}

