/* Earnessa v23.26 — site chrome, referral premium task and contest podium */

/* Thin, brand-matched page scrollbar. */
:root {
  scrollbar-width: thin;
  scrollbar-color: #3da69e #052126;
}

:root::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

:root::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #052126;
}

:root::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 1px solid #052126;
  border-radius: 999px;
  background: linear-gradient(180deg, #56c9be 0%, #2f8f88 48%, #1f6b67 100%);
}

:root::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #72ddd2 0%, #3ba59d 52%, #287b75 100%);
}

:root::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

:root::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: #052126;
}

/* Only the outer header shell is squared; all controls retain their own shape. */
.site-header,
body.is-authenticated .site-header {
  border-radius: 0 !important;
}

/* The intro artwork and compact artwork share an exact, measured landing point. */
.essa-launcher.is-visible.is-collapsing:not(.is-compact) .essa-character-stage {
  transform: translate(64px, 42px) scale(.4) !important;
}

.essa-compact-icon {
  transform: translate(
    calc(-50% + 1px + var(--essa-landing-offset-x, 0px)),
    calc(-50% + 1px + var(--essa-landing-offset-y, 0px))
  ) !important;
}

.essa-launcher.is-dragging .essa-compact-icon {
  transform: translate(
    calc(-50% + 1px + var(--essa-landing-offset-x, 0px)),
    calc(-50% + 1px + var(--essa-landing-offset-y, 0px))
  ) scale(.96) !important;
}

/* Referral-only premium task. */
.referral-premium-task {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-height: 132px;
  margin: 0 0 22px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 105, 110, .48);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 78, 86, .24), transparent 34%),
    linear-gradient(108deg, rgba(72, 12, 24, .97), rgba(37, 8, 19, .965) 48%, rgba(15, 19, 31, .98));
  box-shadow:
    0 22px 48px rgba(21, 0, 7, .28),
    inset 0 1px 0 rgba(255, 222, 216, .1),
    inset 5px 0 0 rgba(255, 83, 91, .74);
}

.referral-premium-task::before {
  position: absolute;
  z-index: -1;
  top: -68px;
  right: -46px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 134, 122, .16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 24px rgba(255, 92, 101, .035),
    0 0 0 56px rgba(255, 92, 101, .02);
}

.referral-premium-task::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0 43%, rgba(255, 225, 211, .035) 44%, transparent 59%);
  pointer-events: none;
}

.referral-premium-task h2 {
  margin: 0;
  color: #fff6f2;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .035em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(255, 82, 91, .22);
}

.referral-premium-task-copy {
  margin: 0;
  padding-left: clamp(18px, 2.6vw, 34px);
  border-left: 1px solid rgba(255, 169, 158, .22);
  color: rgba(255, 238, 234, .84);
  font-size: clamp(.92rem, 1.45vw, 1.06rem);
  font-weight: 620;
  line-height: 1.7;
}

.referral-premium-task-copy strong {
  color: #fff9f5;
  font-weight: 900;
}

html[lang="tr"] .referral-premium-task-copy[lang="en"],
html[lang="en"] .referral-premium-task-copy[lang="tr"] {
  display: none;
}

/* Gold, silver and bronze stage treatment for the first three places. */
.inline-contest-podium-grid,
.contest-podium {
  align-items: end !important;
  gap: clamp(10px, 1.7vw, 18px) !important;
}

.inline-contest-podium,
.contest-podium-card {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  align-content: center;
  justify-items: center;
  min-height: 174px;
  padding: 28px 18px 24px !important;
  overflow: hidden;
  border-radius: 18px !important;
  text-align: center;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .11) !important;
}

.inline-contest-podium::before,
.contest-podium-card::before {
  position: absolute;
  z-index: -1;
  top: -70px;
  left: 50%;
  width: 190px;
  height: 150px;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.inline-contest-podium::after,
.contest-podium-card::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  content: "";
  pointer-events: none;
}

.inline-contest-podium-1,
.contest-podium-1 {
  order: 2;
  min-height: 214px !important;
  border-color: rgba(255, 216, 92, .6) !important;
  background: linear-gradient(155deg, rgba(104, 74, 13, .82), rgba(34, 28, 17, .96) 56%, rgba(8, 26, 28, .98)) !important;
  box-shadow:
    0 22px 44px rgba(58, 38, 0, .28),
    inset 0 1px 0 rgba(255, 245, 192, .2),
    0 0 0 1px rgba(255, 206, 72, .08) !important;
}

.inline-contest-podium-1::before,
.contest-podium-1::before {
  background: radial-gradient(circle, rgba(255, 220, 91, .34), transparent 67%);
}

.inline-contest-podium-1::after,
.contest-podium-1::after {
  background: linear-gradient(90deg, transparent, #f6c947 20% 80%, transparent);
}

.inline-contest-podium-2,
.contest-podium-2 {
  order: 1;
  min-height: 190px !important;
  border-color: rgba(213, 229, 235, .43) !important;
  background: linear-gradient(155deg, rgba(69, 87, 96, .78), rgba(29, 39, 45, .96) 58%, rgba(7, 25, 28, .98)) !important;
}

.inline-contest-podium-2::before,
.contest-podium-2::before {
  background: radial-gradient(circle, rgba(224, 240, 244, .2), transparent 68%);
}

.inline-contest-podium-2::after,
.contest-podium-2::after {
  background: linear-gradient(90deg, transparent, #bccbd0 20% 80%, transparent);
}

.inline-contest-podium-3,
.contest-podium-3 {
  order: 3;
  min-height: 178px !important;
  border-color: rgba(209, 137, 84, .45) !important;
  background: linear-gradient(155deg, rgba(92, 51, 30, .78), rgba(42, 29, 23, .96) 58%, rgba(7, 25, 28, .98)) !important;
}

.inline-contest-podium-3::before,
.contest-podium-3::before {
  background: radial-gradient(circle, rgba(222, 137, 77, .22), transparent 68%);
}

.inline-contest-podium-3::after,
.contest-podium-3::after {
  background: linear-gradient(90deg, transparent, #b96f3f 20% 80%, transparent);
}

.inline-contest-medal,
.contest-podium-medal {
  display: grid !important;
  width: 52px !important;
  height: 52px !important;
  margin: 4px 0 12px;
  place-items: center;
  border: 1px solid currentColor !important;
  border-radius: 50%;
  font-size: 1.3rem !important;
  font-weight: 950;
  background: rgba(0, 0, 0, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.inline-contest-podium-1 .inline-contest-medal,
.contest-podium-1 .contest-podium-medal,
.inline-contest-podium-1 .inline-contest-rank,
.contest-podium-1 .contest-podium-rank { color: #ffe176 !important; }

.inline-contest-podium-2 .inline-contest-medal,
.contest-podium-2 .contest-podium-medal,
.inline-contest-podium-2 .inline-contest-rank,
.contest-podium-2 .contest-podium-rank { color: #dbe8ec !important; }

.inline-contest-podium-3 .inline-contest-medal,
.contest-podium-3 .contest-podium-medal,
.inline-contest-podium-3 .inline-contest-rank,
.contest-podium-3 .contest-podium-rank { color: #d89462 !important; }

.inline-contest-rank,
.contest-podium-rank {
  background: transparent !important;
  font-size: .8rem !important;
  font-weight: 950 !important;
  letter-spacing: .08em;
}

@media (max-width: 720px) {
  .referral-premium-task {
    grid-template-columns: 1fr;
    gap: 13px;
    min-height: 0;
    padding: 22px 20px;
    border-radius: 17px;
  }

  .referral-premium-task-copy {
    padding: 13px 0 0;
    border-top: 1px solid rgba(255, 169, 158, .22);
    border-left: 0;
    line-height: 1.58;
  }

  .inline-contest-podium-grid,
  .contest-podium {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .inline-contest-podium-1,
  .inline-contest-podium-2,
  .inline-contest-podium-3,
  .contest-podium-1,
  .contest-podium-2,
  .contest-podium-3 {
    order: initial;
    min-height: 126px !important;
    grid-template-columns: auto auto 1fr auto !important;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .inline-contest-medal,
  .contest-podium-medal {
    width: 44px !important;
    height: 44px !important;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .essa-character-stage,
  .essa-compact-icon {
    transition: none !important;
  }
}
