/* «Заработок» — их экран (rocket-app.link, /mytasks) в нашем цвете.
   Разметка и размеры сняты с их живого мини-приложения: карточка-герой
   «ЕЖЕДНЕВНЫЙ ПАК», оффер-карточка партнёра (TikTok) с градиентным кольцом,
   пилюли-табы с заливкой-свечением, секции «ЕЖЕДНЕВНЫЕ» / «ЕЖЕНЕДЕЛЬНЫЕ»
   со строками заданий (иконка в кольце, капс-название, прогресс + тонкая
   дорожка, награда, кнопка справа) и приветственное окно с пако́м.
   Цвет наш: у них почти чёрные карточки с лаймовым свечением — у нас с
   розово-фиолетовым. Кольцо оффера TikTok оставлено их (бирюза → малина). */

.er-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 14px calc(96px + var(--safe-bottom));
  background:
    radial-gradient(90% 34% at 50% -6%, rgba(182, 2, 206, .22), transparent 70%),
    radial-gradient(70% 26% at 100% 12%, rgba(239, 2, 203, .16), transparent 68%);
}
.er-root * { box-sizing: border-box; }

/* ── карточка-герой «ЕЖЕДНЕВНЫЙ ПАК» ─────────────────────────────────────── */
.er-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 16px 16px 18px;
  min-height: 238px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(75% 90% at 82% 62%, rgba(239, 2, 203, .30), rgba(239, 2, 203, 0) 68%),
    radial-gradient(80% 70% at 8% 100%, rgba(182, 2, 206, .22), rgba(182, 2, 206, 0) 70%),
    linear-gradient(160deg, #170d18 0%, #120a15 52%, #1a0c18 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.er-hero__title {
  position: relative;
  margin: 0;
  max-width: 72%;
  font-size: 32px;
  line-height: .92;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: uppercase;
  background: linear-gradient(96deg, #ffe4f8 0%, #ff5cc4 46%, #ef02cb 76%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(239, 2, 203, .5));
}
.er-hero__stats {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
  max-width: 62%;
}
.er-stat { display: flex; align-items: center; gap: 11px; }
.er-stat__ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.6px solid rgba(239, 2, 203, .6);
  background: radial-gradient(circle at 50% 40%, rgba(239, 2, 203, .3), rgba(0, 0, 0, .3));
  color: #ff8ad8;
}
.er-stat__ic svg { width: 17px; height: 17px; display: block; }
.er-stat__body { min-width: 0; }
.er-stat__value {
  display: block;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #fff;
  line-height: 1.12;
  white-space: nowrap;
}
.er-stat--accent .er-stat__value { color: #ff7bd0; text-shadow: 0 0 16px rgba(239, 2, 203, .55); }
.er-stat__label { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .48); margin-top: 1px; }

.er-hero__cta {
  position: relative;
  margin-top: 13px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
  box-shadow: 0 8px 20px rgba(239, 2, 203, .42), inset 0 1px 0 rgba(255, 255, 255, .3);
  cursor: pointer;
}
.er-hero__art {
  position: absolute;
  right: 6px;
  top: 38px;
  width: 140px;
  height: 186px;
  object-fit: contain;
  transform: rotate(7deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .65)) drop-shadow(0 0 20px rgba(239, 2, 203, .4));
  pointer-events: none;
}
.er-hero__glow {
  position: absolute;
  right: -16px;
  top: 18px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 2, 203, .45), rgba(239, 2, 203, 0) 72%);
  pointer-events: none;
}

/* ── оффер-карточка партнёра (их TikTok-строка) ──────────────────────────── */
.er-offers { display: flex; flex-direction: column; gap: 10px; }
.er-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 62px;
  padding: 0 10px 0 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: linear-gradient(180deg, #150d12 0%, #0d090c 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}
/* их кольцо: бирюза слева → малина справа */
.er-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(100deg, #35e0e6 0%, #6f7bff 34%, #d94ce0 62%, #ff3b7f 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.er-offer__ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  background: #000;
}
.er-offer__ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-offer__name { flex: 1 1 auto; font-size: 17px; font-weight: 900; color: #fff; letter-spacing: .2px; }
.er-offer__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(53, 224, 200, .55);
  background: rgba(10, 30, 28, .55);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 31px;
  white-space: nowrap;
}
.er-offer__pill small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); }

/* ── табы-пилюли ─────────────────────────────────────────────────────────── */
.er-tabs { display: flex; gap: 10px; }
.er-tab {
  flex: 1 1 0;
  height: 66px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 17.5px;
  font-weight: 900;
  letter-spacing: .9px;
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .10);
  transition: color .18s, border-color .18s, box-shadow .18s;
}
.er-tab.is-active {
  color: #fff;
  border-color: rgba(239, 2, 203, .95);
  background: radial-gradient(80% 120% at 50% 50%, rgba(239, 2, 203, .18), rgba(239, 2, 203, .04) 70%);
  box-shadow: 0 0 0 1px rgba(239, 2, 203, .25), 0 0 26px rgba(239, 2, 203, .35),
              inset 0 0 24px rgba(239, 2, 203, .18);
}
.er-tab:active { transform: scale(.99); }

/* ── секция со списком ───────────────────────────────────────────────────── */
.er-section {
  position: relative;
  border-radius: 24px;
  padding: 9px 9px 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(120% 60% at 18% 0%, rgba(239, 2, 203, .13), transparent 64%),
    linear-gradient(180deg, #170e1b 0%, #0e0912 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* их шапка секции — отдельная плашка внутри карточки */
.er-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 2, 203, .10), rgba(255, 255, 255, .02));
  margin-bottom: 10px;
}
.er-section__title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
}
.er-section__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
}
.er-section__timer svg { width: 15px; height: 15px; color: rgba(239, 2, 203, .95); }
.er-list { display: flex; flex-direction: column; gap: 8px; }

/* ── строка задания ──────────────────────────────────────────────────────── */
.er-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 38px 8px 56px;
  border-radius: 17px;
  background: linear-gradient(180deg, #191019 0%, #100a13 100%);
}
.er-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--er-ring, linear-gradient(120deg, #ef02cb, #a855f7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .95;
  pointer-events: none;
}
.er-row--pink   { --er-ring: linear-gradient(120deg, #ef02cb, #a855f7); }
.er-row--violet { --er-ring: linear-gradient(120deg, #a855f7, #6d5bff); }
.er-row--blue   { --er-ring: linear-gradient(120deg, #6d5bff, #22d3ee); }
.er-row--rose   { --er-ring: linear-gradient(120deg, #ff5cc4, #ef02cb); }

/* иконка — их арт в круге */
.er-row__ic {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5);
}
.er-row__ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-row__ic svg { width: 24px; height: 24px; margin: 11px; color: #ff8ad8; }
.er-row__title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
/* прогресс + тонкая дорожка в одну строку, как у них */
.er-row__line { display: flex; align-items: center; gap: 9px; min-width: 0; }
.er-row__progress { font-size: 12px; color: rgba(255, 255, 255, .42); flex: 0 0 auto; }
.er-row__bar {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .10);
  overflow: hidden;
}
.er-row__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ef02cb, #a855f7);
}
.er-row__reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

/* кнопка справа: у них — иконка «поделиться/открыть», у нас подсказка/клейм */
.er-row__act {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .6);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.er-row__act svg { width: 14px; height: 14px; }
.er-row__act--claim {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
  box-shadow: 0 6px 16px rgba(239, 2, 203, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.er-row.is-done { background: linear-gradient(180deg, #241524 0%, #150d1a 100%); }
.er-row.is-claimed { opacity: .55; }
/* ALT-TASKEXT: внешние задания (канал/чат/ссылка) — строка кликабельна */
.er-row--ext { cursor: pointer; }
.er-row--ext .er-row__progress { color: #ff8ad8; font-weight: 700; letter-spacing: .02em;
  max-width: calc(100% - 112px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── наши идеи: кэшбэк и рейкбэк ─────────────────────────────────────────── */
.er-cash { display: flex; flex-direction: column; gap: 9px; }
.er-cash__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #1a1120 0%, #100b15 100%);
}
.er-cash__ic {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(239, 2, 203, .32), rgba(0, 0, 0, .3));
  border: 1px solid rgba(239, 2, 203, .38);
  color: #ff8ad8;
}
.er-cash__ic svg { width: 22px; height: 22px; }
.er-cash__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.er-cash__title { display: block; font-size: 15px; font-weight: 900; color: #fff; }
.er-cash__sub { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.er-cash__value { display: block; font-size: 14px; font-weight: 900; color: #fff; margin-top: 2px; }
.er-cash__btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
  box-shadow: 0 6px 16px rgba(239, 2, 203, .3);
  cursor: pointer;
}
.er-cash__btn[disabled] { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .45); box-shadow: none; cursor: default; }

/* ── розыгрыши (наша лента турнира) ──────────────────────────────────────── */
.er-raffle__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.er-raffle__n {
  width: 24px; height: 24px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11.5px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
}
.er-raffle__name { flex: 1 1 auto; font-size: 13px; font-weight: 800; color: #fff; }
.er-raffle__score { font-size: 13px; font-weight: 900; color: #ff8ad8; }
.er-empty {
  padding: 18px 10px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

/* ── приветственное окно (их «Добро пожаловать в RocketX») ───────────────── */
.er-welcome {
  position: fixed;
  inset: 0;
  /* ALT-WELCOMESTART (02.12.2026): окно снова живёт только на главном экране «Игры», поверх
     игровых кадров не выходит — 90 хватает (выше кадра игры, ниже шапки). */
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: er-fade .22s ease-out both;
}
.er-welcome__sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  padding: 22px 18px calc(18px + var(--safe-bottom));
  background:
    radial-gradient(70% 46% at 50% 38%, rgba(239, 2, 203, .20), transparent 70%),
    linear-gradient(180deg, #140d16 0%, #0a070c 100%);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: er-sheet .42s cubic-bezier(.16, 1, .3, 1) both;
}
/* звёзды, как у них на фоне */
.er-welcome__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .85) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 150, 235, .7) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(180, 120, 255, .7) .8px, transparent 1.5px);
  background-size: 150px 150px, 220px 220px, 110px 110px;
  background-position: 0 0, 70px 40px, 30px 80px;
  opacity: .5;
  animation: er-twinkle 4.5s ease-in-out infinite alternate;
}
.er-welcome__handle {
  position: relative;
  width: 42px; height: 4px;
  margin: -6px auto 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
}
.er-welcome__close {
  position: absolute;
  /* ALT-XCLICK (01.12.2026, владелец: «после окончания таймера крестик не работает»).
     Кнопка была без z-index, а заголовок окна идёт в разметке позже и рисуется сверху —
     клики уходили в него (замер Playwright: «h2.er-welcome__title intercepts pointer events»). */
  z-index: 6;
  right: 12px; top: 12px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .75);
  font: inherit; font-size: 18px; line-height: 1;
  cursor: pointer;
}
/* ALT-WELCOMELOCK (25.11.2026): крестик приветствия 3 секунды под отсчётом — приглушён и не кликабелен */
.er-welcome__close.is-locked {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  background: rgba(239, 2, 203, .35);
  box-shadow: inset 0 0 0 1px rgba(249, 181, 204, .4);
  pointer-events: none;
}
.er-welcome__title {
  position: relative;
  margin: 2px 0 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.2px;
  color: #fff;
}
.er-welcome__title span {
  display: block;
  background: linear-gradient(96deg, #ffd7f4, #ef02cb 60%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.er-welcome__stage {
  position: relative;
  height: 250px;
  margin: 6px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.er-welcome__aura {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 2, 203, .40), rgba(239, 2, 203, 0) 72%);
  animation: er-aura 3.6s ease-in-out infinite;
}
.er-welcome__pack {
  position: relative;
  width: 192px;
  height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .65));
  animation: er-float 4.6s ease-in-out infinite;
  transform: rotate(-11deg);
}
.er-welcome__text {
  position: relative;
  margin: 0 4px 16px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .55);
}
.er-welcome__text b { color: #fff; font-weight: 800; }
.er-welcome__cta {
  position: relative;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
  box-shadow: 0 10px 28px rgba(239, 2, 203, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: er-cta 2.6s ease-in-out infinite;
  cursor: pointer;
}

@keyframes er-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes er-sheet {
  from { transform: translateY(28px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes er-float {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-10px) rotate(-9.5deg); }
}
@keyframes er-aura {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes er-twinkle { from { opacity: .35; } to { opacity: .62; } }
@keyframes er-cta {
  0%, 100% { box-shadow: 0 10px 28px rgba(239, 2, 203, .38), inset 0 1px 0 rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 12px 34px rgba(239, 2, 203, .62), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@media (prefers-reduced-motion: reduce) {
  .er-welcome, .er-welcome__sheet, .er-welcome__stars,
  .er-welcome__aura, .er-welcome__pack, .er-welcome__cta { animation: none; }
}

/* ── банер обмена звёзд на билеты (их «ОБМЕНЯЙТЕ ⭐ НА 🎟») ──────────────── */
.er-ex {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(70% 120% at 90% 55%, rgba(239, 2, 203, .22), rgba(239, 2, 203, 0) 62%),
    radial-gradient(60% 90% at 0% 0%, rgba(182, 2, 206, .18), transparent 70%),
    linear-gradient(150deg, #1a0f1c 0%, #100a14 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.er-ex__title {
  position: relative;
  margin: 0;
  max-width: 64%;
  font-size: 29px;
  line-height: .98;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: uppercase;
  background: linear-gradient(96deg, #ffe4f8 0%, #ff5cc4 50%, #ef02cb 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(239, 2, 203, .45));
}
.er-ex__title .er-star, .er-ex__title .er-tk { -webkit-text-fill-color: initial; }
/* звезда в заголовке — эмодзи, билет — их же арт (как в их банере) */
.er-ex__st { -webkit-text-fill-color: initial; }
.er-ex__tk {
  display: inline-block;
  width: 24px;
  height: 36px;
  object-fit: contain;
  vertical-align: -6px;
  filter: drop-shadow(0 4px 10px rgba(239, 2, 203, .45));
}
.er-ex__sub { position: relative; margin: 10px 0 0; max-width: 56%; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .55); }
.er-ex__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.er-ex__pill b { color: #fff; font-size: 15px; }
.er-ex__pill img { width: 16px; height: 30px; object-fit: contain; }
.er-ex__art {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 112px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(239, 2, 203, .3));
  pointer-events: none;
}

/* ── розыгрыши: их «РОЗЫГРАШИ НЕДЕЛИ» и «ИТОГИ» ──────────────────────────── */
.er-raffle {
  border-radius: 24px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #170e1b 0%, #0e0912 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.er-raffle__label {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #ff7bd0;
}
.er-raffle__big { margin-top: 11px; font-size: 19px; font-weight: 900; color: #fff; }
.er-raffle__list { margin-top: 4px; text-align: left; }

.er-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #191019 0%, #100a13 100%);
}
.er-result__ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 2, 203, .14);
  color: #ff8ad8;
}
.er-result__k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.er-result__v { display: block; font-size: 13px; font-weight: 900; color: #fff; margin-top: 2px; }
.er-result__body { display: flex; flex-direction: column; }

/* ── блок обмена (их HERO+ / «Только для статуса HERO и выше») ───────────── */
.er-gate {
  border-radius: 22px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #191019 0%, #0e0912 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}
.er-gate__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.er-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 110, .5);
  color: #ffc46b;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.er-gate__badge svg { width: 12px; height: 12px; }
.er-gate__note { font-size: 10.5px; color: rgba(255, 255, 255, .4); text-align: right; }
.er-swap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
}
.er-swap__side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.er-swap__side .er-star { font-size: 18px; }
.er-swap__side img { width: 15px; height: 28px; object-fit: contain; }
.er-swap__btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ef02cb, #b602ce);
  box-shadow: 0 8px 20px rgba(239, 2, 203, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  cursor: pointer;
}
.er-swap__btn[disabled] { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .4); box-shadow: none; cursor: default; }
.er-swap__rate { margin-top: 9px; text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, .4); }

@media (min-width: 640px) {
  .er-root { max-width: 560px; margin: 0 auto; }
  .er-hero__title { font-size: 34px; }
  .er-welcome { align-items: center; }
  .er-welcome__sheet { border-radius: 26px; margin-bottom: 24px; }
}

/* ══════════════ ALT-EARNLOOK (29.11.2026) — экран «Заработок» по макету владельца ══════════════
   Владелец: «у нас эта менюшка должна быть типо такой, иконки бери из `Неоновый набор игровых иконок.png`,
   фон сделаешь живым». Собрано по двум его скриншотам: шапки секций с иконкой-календарём и таймером
   с песочными часами, строки заданий (иконка → название, прогресс и полоска → золотая награда →
   круглая кнопка-стрелка), карточка TikTok по центру + две карточки (Кэшбэк/Рейкбэк) и «Партнёрка».
   Иконки — нарезка из листа в `assets/earn/ico/*.webp`. */

/* живой фон — тот же canvas, что на «Настройках» и «Лидерах» */
#screen-earn { position: relative; }
#screen-earn .alt-sbg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 1; will-change: transform;
}
#screen-earn .er-root { position: relative; z-index: 2; }

/* ── шапка секции ─────────────────────────────────────────────────────────── */
.er-section__head {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px; padding: 7px 9px 7px 7px;
}
.er-section__ico {
  width: 30px; height: 30px; flex: none; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(239, 2, 203, .55));
}
.er-section__title { font-size: 17px; letter-spacing: .2px; text-transform: none; }
.er-section__timer {
  margin-left: auto;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .82);
}
.er-section__clock { width: 15px; height: 15px; object-fit: contain; }

/* ── строка задания ───────────────────────────────────────────────────────── */
.er-row {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px;
  min-height: 58px;
  padding: 8px 9px 8px 8px;
  border-radius: 16px;
}
.er-row__ic {
  position: static; transform: none;
  flex: 0 0 auto; width: 40px; height: 40px;
  border: 0; border-radius: 13px; overflow: visible;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 18%, rgba(239, 2, 203, .3), rgba(58, 8, 66, .5));
  box-shadow: inset 0 0 0 1px rgba(249, 181, 204, .26);
}
.er-row__ic img { width: 31px; height: 31px; object-fit: contain; }
.er-row__mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.er-row__title {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0;
  text-transform: none; color: #fff;
}
.er-row__line { gap: 7px; }
.er-row__progress { font-size: 11px; color: rgba(255, 255, 255, .5); }
.er-row__bar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .13); }
.er-row__bar i { border-radius: 3px; background: linear-gradient(90deg, #ff4dcf, #b602ce); }
.er-row__reward { flex: 0 0 auto; font-size: 13px; font-weight: 900; color: #fff; }
.er-row--ext .er-row__progress { max-width: none; }

/* кнопка справа — круглая стрелка, как в макете */
.er-row__go {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 0; padding: 0; margin: 0;
  color: #fff; background: linear-gradient(150deg, #ef02cb, #75027f);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 242, .34), 0 4px 12px rgba(239, 2, 203, .34);
  cursor: pointer;
}
.er-row__go.is-claim { background: linear-gradient(150deg, #ff4dcf, #a31bd0); }
.er-row__go.is-claimed {
  background: rgba(255, 255, 255, .07); color: #8be08b; box-shadow: none;
}
.er-row__go svg { width: 15px; height: 15px; }
.er-row.is-claimed { opacity: .6; }

/* ── карточка TikTok ──────────────────────────────────────────────────────── */
.er-offer {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 20px;
}
.er-offer__ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, #2a0730, #140618);
  box-shadow: inset 0 0 0 1px rgba(249, 181, 204, .3);
}
.er-offer__ic img { width: 26px; height: 26px; object-fit: contain; }
.er-offer__mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.er-offer__name {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -.2px;
}
.er-offer__vf { color: #ef02cb; flex: none; }
.er-offer__sub { font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.er-offer__pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px;
  border: 1.5px solid rgba(239, 2, 203, .85);
  background: rgba(0, 0, 0, .5);
  font-size: 12.5px; font-weight: 900; color: #fff;
}
.er-offer__pill small { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.er-offer__crown { width: 15px; height: 15px; object-fit: contain; }
.er-offer__go { flex: none; display: inline-grid; place-items: center; color: rgba(255, 255, 255, .5); }

/* ── карточки кэшбэк / рейкбэк / партнёрка ────────────────────────────────── */
.er-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.er-cards > * { min-width: 0; max-width: 100%; }
.er-card {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 9px; border: 0; border-radius: 18px;
  text-align: left; color: #fff; font: inherit; cursor: pointer;
  background: radial-gradient(120% 100% at 10% 0%, rgba(239, 2, 203, .16), transparent 62%),
              linear-gradient(180deg, #1b1020 0%, #110a16 100%);
  box-shadow: inset 0 0 0 1px rgba(249, 181, 204, .16), 0 10px 22px rgba(0, 0, 0, .4);
}
.er-card--wide { grid-column: 1 / -1; }
.er-card:active { transform: scale(.99); }
.er-card__ic {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 18%, rgba(239, 2, 203, .28), rgba(58, 8, 66, .5));
  box-shadow: inset 0 0 0 1px rgba(249, 181, 204, .24);
}
.er-card__ic img { width: 25px; height: 25px; object-fit: contain; }
.er-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.er-card__title { font-size: 12.5px; font-weight: 900; }
.er-card__sub {
  font-size: 9.5px; line-height: 1.18; color: rgba(255, 255, 255, .5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.er-card__val { font-size: 11.5px; font-weight: 900; color: #fff; white-space: nowrap; }
.er-card__val i {
  font-style: normal; font-size: 8.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42); margin-left: 5px;
}
.er-card__go { flex: none; display: inline-grid; place-items: center; color: rgba(255, 255, 255, .45); }

@media (min-width: 1024px) {
  .er-section__ico { width: 34px; height: 34px; }
  .er-section__title { font-size: 19px; }
  .er-row { min-height: 64px; gap: 11px; }
  .er-row__ic { width: 46px; height: 46px; border-radius: 14px; }
  .er-row__ic img { width: 36px; height: 36px; }
  .er-row__title { font-size: 14px; }
  .er-row__reward { font-size: 15px; }
  .er-row__go { width: 34px; height: 34px; }
  .er-offer__name { font-size: 16.5px; }
  .er-card__title { font-size: 14px; }
  .er-card__val { font-size: 13px; }
  .er-card__ic { width: 40px; height: 40px; }
  .er-card__ic img { width: 30px; height: 30px; }
}
/* на телефоне подтягиваем содержимое к шапке — отступ 56px нужен был старой раскладке */
@media (max-width: 1023.98px) {
  #screen-earn .er-root { padding-top: 18px; }
}
/* значок валюты в суммах (правило владельца: иконка вместо слова TON/USDT) */
.er-cur { width: 12px; height: 12px; display: inline-block; vertical-align: -2px; margin-left: 3px; }
@media (min-width: 1024px) { .er-cur { width: 14px; height: 14px; vertical-align: -2px; } }
/* ALT-EARNPERM: блок постоянных заданий — та же строка, но чуть заметнее (он первый на экране) */
.er-section--perm .er-section__head { background: linear-gradient(180deg, rgba(239, 2, 203, .16), rgba(255, 255, 255, .02)); }
.er-section--perm .er-row__progress { color: rgba(249, 181, 204, .8); font-weight: 700; }
/* длинные названия постоянных заданий («Подписаться на второй канал») переносим, а не режем */
.er-section--perm .er-row__title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.16; }
/* ══════════════ ALT-EARNGLASS (29.11.2026) — стекло как в лидерборде + блик на TikTok ══════════════
   Владелец: «помнишь мы в лидертабе делали чтобы наша кнопка сверкала — вот с этой кнопкой также
   сделай, а также чтобы вот по краям эта хуйня двигалась красиво; тут везде в заработке кнопки
   должны быть стекляные прям как в лидер табе, такие же стилевые и красивые». */

/* 1) стекло: те же значения, что у `.lb-row` (rgba-заливка + blur 14 + внутренний блик сверху) */
.er-section, .er-row, .er-card, .er-offer,
.er-row__ic, .er-card__ic, .er-offer__ic, .er-section__head, .er-section__timer, .er-row__go {
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* заливка тёмная (не белая, как в лидерборде): под экраном живой фон с ярким артом,
   на белом стекле строки выцветали и текст терялся — так стекло видно, а читается */
.er-row, .er-card, .er-offer {
  background: rgba(18, 9, 24, .6);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .45);
}
.er-row.is-done, .er-row.is-perm { background: rgba(24, 12, 32, .66); }
.er-card { padding: 10px 10px 10px 9px; }

.er-section {
  background:
    radial-gradient(120% 60% at 18% 0%, rgba(239, 2, 203, .13), transparent 62%),
    rgba(12, 7, 16, .52);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 26px rgba(0, 0, 0, .42);
}
.er-section__head {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.er-section--perm .er-section__head {
  background: linear-gradient(180deg, rgba(239, 2, 203, .18), rgba(255, 255, 255, .05));
  border-color: rgba(249, 181, 204, .22);
}
.er-section__timer {
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .16);
}
/* плитки под иконками — тоже стекло (неоновый арт на нём читается лучше) */
.er-row__ic, .er-card__ic, .er-offer__ic {
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .2),
              0 4px 12px rgba(0, 0, 0, .35);
}
.er-row__go {
  background: linear-gradient(150deg, rgba(239, 2, 203, .92), rgba(117, 2, 127, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 4px 14px rgba(239, 2, 203, .34);
}
.er-row__go.is-claim { background: linear-gradient(150deg, rgba(255, 77, 207, .96), rgba(163, 27, 208, .96)); }
.er-row__go.is-claimed { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* 2) карточка TikTok: переливающаяся рамка по краям + пробегающий блик + мягкий пульс —
   ровно те же анимации, что у своей строки в лидерборде (lbMeBorderMove / lbMeShine / lbMeGlowPulse) */
@keyframes erOfferRing {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
@keyframes erOfferShine {
  0%   { background-position: 165% 0; opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { background-position: -65% 0; opacity: 0; }
}
@keyframes erOfferGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 14px rgba(239, 2, 203, .2); }
  50%      { box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 30px rgba(239, 2, 203, .5), 0 0 50px rgba(117, 2, 127, .34); }
}
.er-offer {
  position: relative;
  overflow: hidden;
  background: rgba(18, 9, 24, .62);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 22px rgba(0, 0, 0, .45);
  animation: erOfferGlow 4.6s ease-in-out infinite;
}
/* рамка: их бирюзово-малиновый градиент, но ползёт по кругу */
.er-offer::before {
  padding: 1.8px;
  background: linear-gradient(100deg,
      #35e0e6 0%, #6f7bff 16%, #d94ce0 34%, #ff3b7f 52%, #ef02cb 70%, #b602ce 84%, #35e0e6 100%);
  background-size: 250% 100%;
  animation: erOfferRing 6s linear infinite;
  z-index: 3;
}
/* блик, который проходит по карточке */
.er-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 32%,
      rgba(249, 181, 204, .26) 45%,
      rgba(255, 255, 255, .34) 50%,
      rgba(239, 2, 203, .3) 56%,
      rgba(255, 255, 255, 0) 69%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: erOfferShine 3.8s ease-in-out infinite;
  will-change: background-position, opacity;
}
.er-offer__ic, .er-offer__mid, .er-offer__pill, .er-offer__go { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .er-offer { animation: none; }
  .er-offer::before { animation: none; background-position: 40% 50%; }
  .er-offer::after { animation: none; opacity: 0; }
}
/* ALT-EARNFLAT (29.11.2026, владелец: «за этими кнопками фон как бы цветной — надо рамку за ней убрать»):
   со строк заданий снимаем неоновое кольцо, остаётся чистое стекло + 1px светлая обводка.
   У карточки TikTok кольцо ОСТАВЛЕНО — её владелец просил анимировать (ALT-EARNGLASS). */
.er-row::before { display: none; }
.er-row { border-color: rgba(255, 255, 255, .12); }
/* ══════════════ ALT-EARNAIR (29.11.2026) — «рамка, которая держит все задания», убрана ══════════════
   Владелец: «взаде них осталась эта ебучая рамка, большая — та, что держит все задания; она должна быть
   в воздухе, не должно быть рамки, на которой держится конструкция». У секции больше нет ни заливки,
   ни обводки, ни тени — строки заданий просто лежат на фоне. Шапка секции («Ежедневные»/«Еженедельные»
   с таймером) остаётся отдельной плашкой — она читается как заголовок, а не как каркас. */
.er-section {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
}

/* ══════════════ ALT-EARNAIR2 (29.11.2026) — шапки секций без плашки ══════════════
   Владелец про шапки «Постоянные / Ежедневные / Еженедельные»: «по поводу этого рамки нахрен убираем,
   во всех трёх». У шапки больше нет ни заливки, ни обводки, ни тени, ни блюра — только иконка, название
   и таймер, которые лежат прямо на фоне. Таймер остаётся пилюлей (это счётчик, а не рамка). */
.er-section__head {
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-left: 0;
    padding-right: 0;
}
.er-section--perm .er-section__head {
    background: none;
    border: 0;
}

/* ══════════════ ALT-WELCOMEX (29.11.2026) — крестик приветственного окна всегда жмётся ══════════════
   Владелец: «после таймера крестик должен стать доступным, чтобы закрыть это окно». Блокировку держит
   JS по времени (`welcomeUnlockAt`), а `pointer-events: none` у `.is-locked` мог оставить крестик
   мёртвым навсегда, если в WebView притормозился setInterval и класс не снялся. Теперь тап всегда
   доходит до обработчика: до конца отсчёта он игнорируется, после — закрывает окно. */
.er-welcome__close.is-locked {
    pointer-events: auto;
    cursor: default;
}
