:root {
  --promo-gold: #00e764;
  --promo-text: #fff;
  --promo-muted: #a6a8af;
  --promo-panel: #2a2b2f
}

.promo-page {
  padding: 24px 0 46px;
  min-height: 70vh
}

.promo-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%
}

.promo-tabs::-webkit-scrollbar {
  display: none
}

.promo-tab {
  flex-shrink: 0;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #24252a;
  color: #a3a6ad;
  padding: 0 16px;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: .18s;
  line-height: 1
}

.promo-tab i {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px
}

.promo-tab span {
  display: inline-block;
  font-weight: 700;
  white-space: nowrap
}

.promo-tab.active {
  background: var(--promo-gold);
  color: #080e0e
}

.promo-tab:hover {
  filter: brightness(1.08)
}

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

.promo-card {
  display: block;
  background: #005c28;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  transition: .18s
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .26)
}

.promo-card.is-hidden {
  display: none
}

.promo-img {
  width: 100%;
  aspect-ratio: 512/512;
  background: #1a1b1d;
  overflow: hidden
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.promo-name {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  background: #005c28;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.promo-text-preview {
  aspect-ratio: 512/512;
  background: linear-gradient(135deg, #16171b, #202922 55%, #082e18);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.promo-text-preview strong {
  font-size: 28px;
  line-height: 1;
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif
}

.promo-text-preview span {
  color: #d7d9df;
  font-size: 14px;
  font-weight: 700
}

.promo-text-preview em {
  font-style: normal;
  color: #00e764;
  font-weight: 900;
  font-size: 12px
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px
}

.promo-modal.open {
  display: flex
}

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(2px)
}

.promo-dialog {
  position: relative;
  width: min(1380px, calc(100vw - 38px));
  height: min(820px, calc(100dvh - 42px));
  margin: 0;
  background: #151515;
  border-radius: 3px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .62);
  overflow: hidden;
  color: #ddd
}

.promo-dialog-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.promo-dialog-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff
}

.promo-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #9c9c9c;
  font-size: 34px;
  line-height: 1;
  cursor: pointer
}

.promo-dialog-scroll {
  height: calc(100% - 50px);
  overflow: auto;
  padding: 18px 24px 34px;
  scrollbar-color: #6b6b6b transparent;
  scrollbar-width: thin
}

.promo-detail-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 22px;
  align-items: start
}

.promo-detail-img {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: #222
}

.promo-detail-img img {
  display: block;
  width: 100%;
  height: auto
}

.promo-detail-img.is-text {
  display: none
}

.promo-copy {
  font-size: 14px;
  line-height: 1.55;
  color: #e1e1e1
}

.promo-copy h3 {
  margin: 8px 0 22px;
  font-size: 16px;
  color: #e5e5e5
}

.promo-copy p {
  margin: 0 0 26px
}

.promo-copy b {
  color: #fff
}

.promo-mobile-detail {
  display: none
}

.promo-backline {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900
}

.promo-backline a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cfd0d2;
  color: #333;
  display: grid;
  place-items: center;
  text-decoration: none
}

.promo-detail-hero img {
  display: block;
  width: 100%
}

.promo-mobile-terms {
  padding: 18px 6px 90px
}

.promo-mobile-terms h1 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
  margin: 18px 0;
  color: #d7d7d7
}

.promo-mobile-terms p {
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  color: #d6d6d6
}

.promo-mobile-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 13px
}

.promo-mobile-table th,
.promo-mobile-table td {
  border: 2px solid #0b0b0b;
  padding: 14px 10px
}

.promo-mobile-table th {
  background: #f0f0f0;
  color: #111;
  text-align: left;
  width: 38%
}

.promo-mobile-table td {
  background: #303030;
  color: #e9e9e9
}

.promo-mobile-text-only {
  display: none;
  padding: 20px 8px 100px
}

.promo-mobile-text-only h1 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 32px;
  line-height: 1;
  margin: 10px 0 16px;
  color: #fff
}

.promo-mobile-text-only p {
  font-size: 15px;
  line-height: 1.7;
  color: #d8d9df;
  font-weight: 600
}

.promo-text-rule {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #24262b;
  color: #e9e9ef;
  font-size: 14px;
  line-height: 1.5
}

@media(max-width: 1180px) {
  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .promo-detail-row {
    grid-template-columns: 330px 1fr
  }

  .promo-dialog {
    width: min(1000px, calc(100vw - 28px))
  }
}

@media(max-width: 720px) {
  .promo-page {
    padding: 12px 0 88px
  }

  .promo-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%
  }

  .promo-tab {
    flex-shrink: 0;
    height: 38px;
    min-width: max-content;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 12px;
    gap: 6px;
    font-weight: 700;
    white-space: nowrap
  }

  .promo-tab i {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center
  }

  .promo-tab span {
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap
  }

  .promo-tab.active {
    box-shadow: none;
    background: var(--promo-gold);
    color: #080e0e
  }

  .promo-grid {
    display: block
  }

  .promo-card {
    margin: 0 0 10px;
    border-radius: 4px
  }

  .promo-img,
  .promo-text-preview {
    /* aspect-ratio:388/235; */
  }

  .promo-text-preview {
    padding: 18px
  }

  .promo-text-preview strong {
    font-size: 24px
  }

  .promo-text-preview span {
    font-size: 12px
  }

  .promo-name {
    height: 32px;
    font-size: 12px;
    padding: 0 10px
  }

  .promo-modal {
    display: none !important
  }

  .promo-mobile-detail {
    display: none
  }

  .promo-page.detail-open .promo-list-view {
    display: none
  }

  .promo-page.detail-open .promo-mobile-detail {
    display: block
  }

  .promo-mobile-detail.text-only .promo-detail-hero,
  .promo-mobile-detail.text-only .promo-mobile-terms {
    display: none
  }

  .promo-mobile-detail.text-only .promo-mobile-text-only {
    display: block
  }

  .promo-mobile-detail:not(.text-only) .promo-mobile-text-only {
    display: none
  }
}

/* promo fix4: mobile detail uses same readable content style as web, not table */
.promo-mobile-copy {
  display: none
}

@media(max-width: 720px) {
  .promo-mobile-detail {
    padding-bottom: 92px;
    color: #e9e9ed
  }

  .promo-backline {
    height: 42px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em
  }

  .promo-backline a {
    width: 22px;
    height: 22px;
    background: #d7d8dc;
    color: #292a2e;
    font-size: 20px;
    line-height: 1
  }

  .promo-detail-hero {
    margin: 0 0 18px;
    border-radius: 0;
    overflow: hidden;
    background: #151515
  }

  .promo-detail-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover
  }

  .promo-mobile-copy {
    display: block;
    padding: 0 8px 96px;
    font-family: Inter, Arial, sans-serif;
    color: #e4e5ea
  }

  .promo-mobile-copy h1 {
    margin: 0 0 14px;
    color: #fff;
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .01em
  }

  .promo-mobile-copy p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.62;
    color: #d9dbe1;
    font-style: normal;
    font-family: Inter, Arial, sans-serif;
    font-weight: 600
  }

  .promo-mobile-copy b {
    color: #fff;
    font-weight: 900
  }

  .promo-mobile-copy ul {
    margin: 8px 0 18px;
    padding-left: 18px;
    color: #d9dbe1;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600
  }

  .promo-mobile-copy li {
    margin-bottom: 6px
  }

  .promo-mobile-copy .promo-note {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 10px;
    background: #22242a;
    border: 1px solid rgba(255, 255, 255, .06);
    color: #eceef4;
    font-size: 13px;
    line-height: 1.5
  }

  .promo-mobile-detail.text-only .promo-detail-hero {
    display: none
  }

  .promo-mobile-detail.text-only .promo-mobile-copy {
    padding-top: 18px
  }

  .promo-mobile-terms,
  .promo-mobile-table,
  .promo-mobile-text-only {
    display: none !important
  }
}

/* fix6: mobile detail spacing and long text behavior */
@media(max-width: 720px) {
  .promo-page.detail-open {
    min-height: 0 !important;
    padding-bottom: 0 !important
  }

  .promo-page.detail-open+.promo-modal {
    display: none !important
  }

  .promo-mobile-detail {
    padding-bottom: 0 !important;
    min-height: 0 !important;
    background: #111214
  }

  .promo-mobile-copy {
    padding: 0 8px 74px !important
  }

  .promo-mobile-copy h1 {
    margin-top: 0 !important
  }

  .promo-mobile-copy p {
    margin-bottom: 14px !important
  }

  .promo-mobile-copy ul {
    margin-bottom: 14px !important
  }

  .promo-mobile-copy .promo-note {
    margin-bottom: 0 !important
  }

  .promo-mobile-detail.text-only .promo-mobile-copy {
    padding-top: 14px !important
  }
}