/* Charcoal canvas with asymmetric emerald lighting, not a flat green wash.
   Each light fades out before its tile edges, so long pages have no visible seams. */
html.public-community-root {
  background: #050907;
}

body.public-community-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #050907;
  background-image:
    radial-gradient(ellipse 900px 440px at -12% 360px, rgba(18, 81, 42, .34) 0%, rgba(12, 48, 27, .16) 40%, transparent 75%),
    radial-gradient(ellipse 820px 440px at 112% 850px, rgba(10, 73, 49, .28) 0%, rgba(8, 39, 26, .12) 40%, transparent 75%),
    radial-gradient(ellipse 700px 480px at 45% 640px, rgba(29, 59, 40, .08), transparent 75%),
    linear-gradient(100deg, #050907, #070e0a 42%, #050907);
  background-size: 100% 1280px, 100% 1280px, 100% 1280px, auto;
  background-repeat: repeat-y;
  background-attachment: scroll;
}

/* These full-page surfaces used to hide the green canvas behind an opaque black fill. */
.public-community-page .account-hub,
.public-community-page .rewards-page,
.brand-warriorspeek .rewards-page {
  background: transparent;
}

/* VIP keeps its calculator, but uses the same open catalog header shell. */
.public-community-page .vip-hero {
  width: min(calc(100% - 40px), var(--container));
  margin: 40px auto 30px;
  padding: 0;
  background: radial-gradient(circle at 78% 20%, rgba(42, 130, 70, .08), transparent 34%), linear-gradient(180deg, rgba(3, 8, 5, .72), rgba(4, 12, 7, .84));
  border: 0;
  border-bottom: 1px solid rgba(57, 255, 106, .18);
  border-radius: 22px 22px 0 0;
  box-shadow: none;
}

.public-community-page .vip-hero::before {
  opacity: .22;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.public-community-page .vip-hero-glow {
  top: -245px;
  right: 7%;
  width: 450px;
  height: 450px;
  border-color: rgba(57, 255, 106, .2);
  box-shadow: 0 0 80px rgba(57, 255, 106, .08), inset 0 0 70px rgba(57, 255, 106, .07);
}

.public-community-page .vip-hero-layout {
  width: 100%;
  padding: 54px 46px;
}

/* Calculator labels stay readable without competing with the multiplier values. */
.public-community-page [data-vip-calculator] .vip-formula-source > span {
  font-size: 10px;
  font-weight: 700 !important;
  letter-spacing: .065em;
}

.public-community-page [data-vip-calculator] .vip-tier-choices button,
.public-community-page [data-vip-calculator] .vip-plan-choices button {
  min-height: 58px;
}

.public-community-page [data-vip-calculator] .vip-tier-choices button span,
.public-community-page [data-vip-calculator] .vip-plan-choices button span {
  font-size: 10px;
  font-weight: 700 !important;
  line-height: 1.15;
}

.public-community-page [data-vip-calculator] .vip-tier-choices button b { font-size: 16px; }
.public-community-page [data-vip-calculator] .vip-plan-choices button b { font-size: 15px; }

.public-community-page [data-vip-calculator] .vip-formula-result > span,
.public-community-page [data-vip-calculator] .vip-formula-result > small {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
}

/* Active VIP summary uses the same readable type scale as the calculator. */
.public-community-page .vip-current-stack > header .vip-current-stack-heading > span {
  font-size: 11px;
  font-weight: 700 !important;
  letter-spacing: .12em;
}

.public-community-page .vip-current-stack-heading h2 { font-size: 32px; }

.public-community-page .vip-current-stack-heading p {
  color: #9caf9f;
  font-size: 15px;
  line-height: 1.55;
}

.public-community-page .vip-current-stack-list .vip-current-stack-copy small {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
}

.public-community-page .vip-current-stack-list .vip-current-stack-copy > strong { font-size: 19px; }
.public-community-page .vip-current-stack-count-1 .vip-current-stack-copy > strong { font-size: 25px; }

.public-community-page .vip-current-stack-list .vip-current-stack-copy .vip-current-expiration {
  color: #91a398;
  font-size: 11px;
}

.public-community-page .vip-current-stack-list .vip-current-stack-copy .vip-current-expiration > b { font-size: 13px; }

.public-community-page .vip-current-stack .vip-current-stack-benefits > div {
  min-height: 56px;
  padding: 11px 14px;
}

.public-community-page .vip-current-stack .vip-current-stack-benefits dt,
.public-community-page .vip-current-stack .vip-current-stack-totals dt {
  font-size: 10px;
  font-weight: 700 !important;
  letter-spacing: .075em;
}

.public-community-page .vip-current-stack .vip-current-stack-benefits dd {
  font-size: 22px;
  font-weight: 800 !important;
}

.public-community-page .vip-current-stack .vip-current-stack-totals > div { min-height: 78px; }

.public-community-page .vip-current-stack .vip-current-stack-totals dd {
  font-size: 27px;
  font-weight: 800 !important;
}

/* The shop keeps its two-column identity and uses the catalog's open-bottom header finish. */
.public-community-page .rewards-hero.community-feature-card,
.brand-warriorspeek .rewards-hero.community-feature-card {
  isolation: isolate;
  background: radial-gradient(circle at 78% 20%, rgba(42, 130, 70, .08), transparent 34%), linear-gradient(180deg, rgba(3, 8, 5, .72), rgba(4, 12, 7, .84));
  border: 0;
  border-bottom: 1px solid rgba(57, 255, 106, .18);
  border-radius: 22px 22px 0 0;
  box-shadow: none;
}

.public-community-page .rewards-hero.community-feature-card::before,
.brand-warriorspeek .rewards-hero.community-feature-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .22;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  pointer-events: none;
}

.public-community-page .rewards-hero.community-feature-card::after,
.brand-warriorspeek .rewards-hero.community-feature-card::after {
  top: -245px;
  right: 7%;
  bottom: auto;
  width: 450px;
  height: 450px;
  border-color: rgba(57, 255, 106, .2);
  box-shadow: 0 0 80px rgba(57, 255, 106, .08), inset 0 0 70px rgba(57, 255, 106, .07);
}

.public-community-page .rewards-hero-copy > p:not(.raffle-eyebrow),
.public-community-page .vip-hero-copy > p,
.brand-warriorspeek .rewards-hero-copy > p:not(.raffle-eyebrow) {
  max-width: 720px;
  color: #b3c8ba;
  font-size: 15px;
  line-height: 1.65;
}

/* Wallet summary: one clear balance, followed by compact level progress. */
.public-community-page .rewards-wallet-card,
.brand-warriorspeek .rewards-wallet-card {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(57, 255, 106, .12), transparent 42%), linear-gradient(145deg, rgba(10, 28, 17, .97), rgba(4, 12, 8, .98));
  border: 1px solid rgba(57, 255, 106, .34);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 20px 48px rgba(0, 0, 0, .24);
}

.public-community-page .wallet-card-head,
.public-community-page .wallet-card-progress > header,
.public-community-page .wallet-card-progress > footer,
.brand-warriorspeek .wallet-card-head,
.brand-warriorspeek .wallet-card-progress > header,
.brand-warriorspeek .wallet-card-progress > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-community-page .wallet-card-head > span,
.public-community-page .wallet-card-progress > header > span,
.brand-warriorspeek .wallet-card-head > span,
.brand-warriorspeek .wallet-card-progress > header > span {
  color: #8da196;
  font-size: 9px;
  font-weight: 700 !important;
  letter-spacing: .09em;
}

.public-community-page .wallet-card-head > b,
.brand-warriorspeek .wallet-card-head > b {
  padding: 6px 9px;
  color: #b9ffc9;
  background: rgba(57, 255, 106, .08);
  border: 1px solid rgba(57, 255, 106, .24);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .045em;
  white-space: nowrap;
}

.public-community-page .wallet-card-balance,
.brand-warriorspeek .wallet-card-balance {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 16px 0 22px;
}

.public-community-page .wallet-card-balance > img.pivazk-coin,
.brand-warriorspeek .wallet-card-balance > img.pivazk-coin {
  width: 58px;
  height: 58px;
  flex: none;
  filter: drop-shadow(0 7px 15px rgba(255, 188, 35, .34));
}

.public-community-page .wallet-card-balance > div,
.brand-warriorspeek .wallet-card-balance > div {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 3px;
}

.public-community-page .wallet-card-balance strong,
.brand-warriorspeek .wallet-card-balance strong {
  color: #f7fbf8;
  font-size: clamp(38px, 3.2vw, 50px);
  line-height: .95;
  letter-spacing: -.065em;
  white-space: nowrap;
}

/* Mantém saldos de milhões e bilhões inteiros dentro do cartão sem diminuir
   os valores comuns. A mesma regra atende PivaZK e WPeek. */
.public-community-page .wallet-card-balance strong.wallet-balance-long,
.brand-warriorspeek .wallet-card-balance strong.wallet-balance-long {
  font-size: clamp(32px, 2.6vw, 40px);
  letter-spacing: -.07em;
}

.public-community-page .wallet-card-balance strong.wallet-balance-xlong,
.brand-warriorspeek .wallet-card-balance strong.wallet-balance-xlong {
  font-size: clamp(28px, 2.2vw, 34px);
  letter-spacing: -.075em;
}

.public-community-page .wallet-card-balance span,
.brand-warriorspeek .wallet-card-balance span {
  margin: 0;
  color: #39ff6a;
  font-size: 10px;
  font-weight: 700 !important;
  letter-spacing: .08em;
}

.public-community-page .wallet-card-progress,
.brand-warriorspeek .wallet-card-progress {
  padding-top: 17px;
  border-top: 1px solid rgba(166, 211, 180, .13);
}

.public-community-page .wallet-card-progress > header > b,
.brand-warriorspeek .wallet-card-progress > header > b {
  color: #d9e7dd;
  font-size: 9px;
  letter-spacing: .015em;
  text-align: right;
  white-space: nowrap;
}

.public-community-page .wallet-card-progress .level-track,
.brand-warriorspeek .wallet-card-progress .level-track {
  height: 7px;
  margin-top: 11px;
  background: rgba(145, 171, 153, .13);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
}

.public-community-page .wallet-card-progress > footer,
.brand-warriorspeek .wallet-card-progress > footer {
  margin-top: 8px;
  color: #71877a;
  font-size: 8px;
}

.public-community-page .wallet-card-progress > footer > span,
.brand-warriorspeek .wallet-card-progress > footer > span {
  font-weight: 600 !important;
  letter-spacing: .025em;
}

.public-community-page .wallet-card-progress > footer > b,
.brand-warriorspeek .wallet-card-progress > footer > b { color: #39ff6a; font-size: 9px; }

.public-community-page .raffle-footer {
  color: #a0b6a7;
  background: rgba(5, 10, 7, .72);
  border-top-color: rgba(69, 133, 88, .1);
}

.public-catalog-intro {
  padding-top: 48px;
}

.public-catalog-intro + .raffle-list-section,
.public-catalog-intro + .promotion-catalog {
  padding-top: 0;
}

/* Shared with the inventory: one compact text header, subtle grid and green halo. */
.public-page-head {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  margin: -8px 0 30px;
  padding: 54px 46px;
  overflow: hidden;
  box-sizing: border-box;
  background: radial-gradient(circle at 78% 20%, rgba(42, 130, 70, .08), transparent 34%), linear-gradient(180deg, rgba(3, 8, 5, .72), rgba(4, 12, 7, .84));
  border-bottom: 1px solid rgba(57, 255, 106, .18);
  border-radius: 22px 22px 0 0;
}

.public-page-head::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .22;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  pointer-events: none;
}

.public-page-head::after {
  position: absolute;
  z-index: -1;
  top: -245px;
  right: 7%;
  width: 450px;
  height: 450px;
  content: "";
  border: 1px solid rgba(57, 255, 106, .2);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(57, 255, 106, .08), inset 0 0 70px rgba(57, 255, 106, .07);
  pointer-events: none;
}

.public-page-head h1,
.public-community-page .rewards-hero-copy h1,
.public-community-page .vip-hero h1,
.brand-warriorspeek .rewards-hero-copy h1 {
  max-width: 850px;
  margin: 0 0 20px;
  color: #f7fbf8;
  font-family: var(--font-interface) !important;
  font-size: clamp(50px, 6vw, 88px);
  font-style: italic;
  font-weight: 800 !important;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.public-page-head h1 em,
.public-community-page .rewards-hero-copy h1 span,
.public-community-page .vip-hero h1 em,
.brand-warriorspeek .rewards-hero-copy h1 span {
  color: #39ff6a;
  font-family: inherit !important;
  font-style: inherit;
  font-weight: inherit !important;
  text-shadow: 0 0 38px rgba(57, 255, 106, .2);
}

.public-page-head > p {
  max-width: 720px;
  margin: 0;
  color: #b3c8ba;
  font-size: 15px;
  line-height: 1.65;
}

.public-page-head-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(38px, 7vw, 100px);
  display: grid;
  width: 146px;
  height: 146px;
  place-items: center;
  color: #39ff6a;
  background: radial-gradient(circle at 38% 28%, rgba(57, 255, 106, .13), rgba(5, 17, 10, .78) 62%);
  border: 1px solid rgba(57, 255, 106, .27);
  border-radius: 38px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), inset 0 0 35px rgba(57, 255, 106, .04), 0 18px 45px rgba(0, 0, 0, .3), 0 0 35px rgba(57, 255, 106, .06);
  opacity: .82;
  transform: translateY(-50%) rotate(5deg);
  pointer-events: none;
}

.public-page-head--tickets .public-page-head-icon { transform: translateY(-50%) rotate(-7deg); }
.public-page-head-icon .ui-icon { width: 76px; height: 76px; filter: drop-shadow(0 0 15px rgba(57, 255, 106, .22)); }
.public-page-head--tickets > :not(.public-page-head-icon),
.public-page-head--giveaways > :not(.public-page-head-icon) { position: relative; z-index: 2; max-width: calc(100% - 230px); }

/* Preserve uploaded ticket and giveaway artwork at its original brightness. */
:is(.public-community-page, .wpeek-context) :is(.raffle-card-image, .promotion-card-cover, .promotion-detail-cover)::after {
  display: none !important;
  background: none !important;
}

:is(.public-community-page, .wpeek-context) :is(.raffle-card-image, .promotion-card-cover, .promotion-detail-cover) > img {
  filter: none !important;
  opacity: 1;
}

@media (max-width: 720px) {
  .public-catalog-intro { padding-top: 32px; }
  .public-page-head { min-height: 0; margin-top: 0; padding: 40px 24px 38px; border-radius: 17px 17px 0 0; }
  .public-page-head::after { right: -210px; }
  .public-community-page .rewards-hero.community-feature-card::after,
  .brand-warriorspeek .rewards-hero.community-feature-card::after { right: -210px; }
  .public-community-page .vip-hero { width: min(calc(100% - 24px), var(--container)); margin-top: 32px; }
  .public-community-page .vip-hero-glow { right: -210px; }
  .public-community-page .vip-hero-layout { padding: 40px 24px 38px; }
  .public-community-page [data-vip-calculator] .vip-formula-source > span,
  .public-community-page [data-vip-calculator] .vip-tier-choices button span,
  .public-community-page [data-vip-calculator] .vip-plan-choices button span { font-size: 9px; }
  .public-community-page [data-vip-calculator] .vip-tier-choices button,
  .public-community-page [data-vip-calculator] .vip-plan-choices button { min-height: 54px; }
  .public-community-page .vip-current-stack-heading h2 { font-size: 27px; }
  .public-community-page .vip-current-stack-heading p { font-size: 13px; }
  .public-community-page .vip-current-stack-list .vip-current-stack-copy small { font-size: 11px !important; }
  .public-community-page .vip-current-stack-list .vip-current-stack-copy .vip-current-expiration { font-size: 10px; }
  .public-community-page .vip-current-stack .vip-current-stack-benefits dt,
  .public-community-page .vip-current-stack .vip-current-stack-totals dt { font-size: 9px; }
  .public-community-page .vip-current-stack .vip-current-stack-benefits dd { font-size: 20px; }
  .public-page-head h1,
  .public-community-page .rewards-hero-copy h1,
  .public-community-page .vip-hero h1,
  .brand-warriorspeek .rewards-hero-copy h1 { margin: 0 0 17px; font-size: clamp(40px, 12vw, 56px); }
  .public-page-head > p { font-size: 12px; }
  .public-page-head-icon { right: 20px; width: 84px; height: 84px; border-radius: 24px; opacity: .34; }
  .public-page-head-icon .ui-icon { width: 44px; height: 44px; }
  .public-page-head--tickets > :not(.public-page-head-icon),
  .public-page-head--giveaways > :not(.public-page-head-icon) { max-width: calc(100% - 68px); }
  .public-community-page .rewards-hero.community-feature-card,
  .brand-warriorspeek .rewards-hero.community-feature-card { border-radius: 17px 17px 0 0; }
  .public-community-page .rewards-wallet-card,
  .brand-warriorspeek .rewards-wallet-card { padding: 20px; border-radius: 18px; }
  .public-community-page .wallet-card-balance strong,
  .brand-warriorspeek .wallet-card-balance strong { font-size: clamp(36px, 12vw, 46px); }
  .public-community-page .wallet-card-progress > header,
  .brand-warriorspeek .wallet-card-progress > header { align-items: flex-start; }
}

/* Catalog introductions: mobile-only flow, without reserving a side column. */
@media (max-width: 620px) {
  .public-catalog-intro .public-page-head {
    display: flex;
    flex-direction: column;
    padding: 26px 18px 28px;
  }

  .public-catalog-intro .public-page-head > :not(.public-page-head-icon) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .public-catalog-intro .public-page-head h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
    word-break: normal;
    margin-bottom: 16px;
  }

  .public-catalog-intro .public-page-head > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
  }

  .public-catalog-intro .public-page-head .public-page-head-icon {
    position: relative;
    order: -1;
    top: auto;
    right: auto;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 15px;
    transform: none;
    opacity: 0.8;
  }

  .public-catalog-intro .public-page-head-icon .ui-icon {
    width: 26px;
    height: 26px;
  }
}
