* {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background: #0f2a2a;
  color: #e4f7f5;
  display: flex;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  margin: 0 auto;
}

.card {
  background: rgba(38, 18, 70, 0.78);
  border-radius: 14px;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.card.refer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Левая часть — emoji + текст */
.card.refer .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Эмодзи */
.card.refer .emoji {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Текстовый блок */
.card.refer .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Чтобы стрелка была ровно по центру */
.card.refer img,
.card.refer svg {
  display: block;
  width: auto;
}

.balance .count {
  font-size: 24px;
  margin: 10px 0;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #59e3c1;
  color: #00332e;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.refer .title {
  font-size: 18px;
  margin: 0px 0px 0px 20px;
  color: white;
}

.refer .subtitle {
  font-size: 14px;
  margin: 0px 0px 0px 20px;
  color: #bde8e2;
}

.refer {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  border: none;
  cursor: pointer;
  align-items: center;
}

.text {
  margin: 0;
}

.emoji img{
  width: 84px;   /* поставь как нужно: 72/80/96... */
  height: 84px;
  object-fit: contain;
}


.settings .item {
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between !important;
  text-align: right;
  font-size: 16px;
  cursor: pointer;
}

.deck {
  cursor: default !important;
}

.settings .item:last-child {
  border: none;
}
.settings .item span {
  opacity: 0.7;
}

.item { display:flex; align-items:center; justify-content:space-between; }
.left { display:flex; align-items:center; gap:8px; }
.icon { display:block; width:18px; height:18px; }

.inactive {
  opacity: 0 !important;
  display: none !important;
}

.oplata {
  width: 100%;
  background: rgba(38, 18, 70, 0.78);
  padding: 25px;
  border-radius: 10px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

.active {
  opacity: 1;
}

h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: normal;
  color: #bcd4d3;
}

.payment-methods {
  display: flex;
  flex-direction: column;
}

.method {
  padding: 14px;
  border-bottom: 1px solid #1e4749;
  cursor: pointer;
  transition: 0.2s;
}

.method:hover {
  background: #1a3f41;
}
.method.selected {
  background: #a955f788;
}

.message-options {
  display: flex;
  flex-direction: column;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border: 1px solid #2c5557;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.option:hover {
  background: #a955f788;
}
.option input {
  margin-right: 10px;
}
.option span {
  flex-grow: 1;
  margin-left: 10px;
}

#email {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  background: #6a00705b;
  border: 1px solid #6a0070;
  border-radius: 8px;
  color: #fff;
}

.buybtn {
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(90deg, #7a4dff 0%, #a855f7 100%);
  color: rgba(243, 239, 250, 0.95);
  border: none;
  padding: 15px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
}

#buybtn {
  position: relative;
  overflow: hidden; /* чтобы звёзды не вылезали за края */
}

/* слой со звёздами (под текстом кнопки) */
#buybtn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* много отдельных звёздочек */
  background-image: url("star png.png"), url("star png.png"),
    url("star png.png"), url("star png.png"), url("star png.png"),
    url("star png.png"), url("star png.png"), url("star png.png"),
    url("star png.png"), url("star png.png"), url("star png.png"),
    url("star png.png");

  /* разные размеры, чтобы выглядело живее */
  background-size: 14px 14px, 10px 10px, 18px 18px, 12px 12px, 9px 9px,
    16px 16px, 11px 11px, 20px 20px, 13px 13px, 9px 9px, 15px 15px, 11px 11px;

  /* “хаотичные” позиции */
  background-position: 12% 35%, 28% 18%, 44% 62%, 63% 30%, 78% 60%, 86% 22%,
    18% 70%, 52% 18%, 36% 42%, 70% 78%, 90% 72%, 8% 22%;

  background-repeat: no-repeat;

  opacity: 0.35;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.terms {
  margin-top: 10px;
  font-size: 13px;
  color: #b0c5c4;
}

.terms a {
  color: #9fd8d3;
}

.strelka {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  opacity: 0.9;
}

.referall {
  min-height: 100vh;
  padding: 28px 18px 110px;
}

.refer-top {
  text-align: center;
  margin-top: 10px;
}

.refer-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
}

.refer-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.refer-subtitle {
  margin: 0 0 22px;
  opacity: 0.9;
  line-height: 1.35;
}

.refer-section {
  margin-top: 18px;
}

.refer-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0 0 10px;
}

.refer-linkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.refer-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
}

.refer-copy {
  border: 0;
  outline: 0;
  background: transparent;
  color: #39c9b2;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.refer-copy.copied {
  transform: scale(0.96);
  opacity: 0.75;
}

.refer-friends {
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0.8;
}

.refer-invite {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* DayTip screen */
.daytip {
  min-height: 100vh;
  padding: 26px 18px 110px;
}

.daytip-top {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 18px;
}

.daytip-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
}

.daytip-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.daytip-subtitle {
  margin: 0;
  opacity: 0.9;
  line-height: 1.35;
}

.daytip-toggle .item,
.daytip-settings .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.daytip-settings .item + .item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.daytip-settings .right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.daytip-settings .muted {
  opacity: 0.6;
}
.daytip-settings .clickable {
  cursor: pointer;
}

/* iOS-like switch */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
}
.switch input {
  display: none;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: 0.2s;
}

.switch .slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #2A1F3D;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #513c75;
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
  background: #C85CFF;
}

/* bottom "Готово" */
.donebtn {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #39c9b2;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Deck picker screen */
.deckpick {
  min-height: 100vh;
  padding: 20px 18px 110px;
}

.deckpick-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 10px 0 10px;
}

.deck-list {
  padding: 6px 0;
}

.deck-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 14px;
  font-size: 18px;
  cursor: pointer;
}

.deck-item + .deck-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deck-item .check {
  opacity: 0;
  color: #39c9b2;
  font-size: 20px;
  font-weight: 700;
}

.deck-item.selected .check {
  opacity: 1;
}

/* Legal screen */
.legal {
  min-height: 100vh;
  padding: 18px 18px 24px;
}

.legal-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 10px 0 10px;
  text-transform: uppercase;
}

.legal-label.mt {
  margin-top: 22px;
}

.legal-list {
  padding: 0;
  overflow: hidden;
}

.legal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
}

.legal-item + .legal-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-chev {
  opacity: 0.6;
  font-size: 22px;
  line-height: 1;
}

.legal-dev {
  padding: 18px 18px;
  line-height: 1.55;
}

.legal-email {
  display: inline-block;
  margin-top: 10px;
  color: #39c9b2;
  text-decoration: none;
}

.legal-email:hover {
  text-decoration: underline;
}

.daytiptime {
  min-height: 100vh;
  padding: 26px 18px 110px;
}

.daytip-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 18px 0 10px;
}

.daytip-label.mt {
  margin-top: 22px;
}

.timecard {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.timeslot {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 18px;
  cursor: pointer;
}

.timeslot + .timeslot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeslot-check {
  opacity: 0;
  font-size: 20px;
  font-weight: 700;
  color: #39c9b2;
}

.timeslot.is-selected .timeslot-check {
  opacity: 1;
}
.timeslot.is-selected {
  background: rgba(57, 201, 178, 0.08);
}

.stupid {
  margin-bottom: 10px !important;
}
.dumb {
  width: auto;
}

:root {
  --bg: #120a1f; /* фон страницы (очень тёмный аметист) */
  --pill: #2a1552; /* “пустая” мана (глубокий фиолетовый) */
  --fill: #afa2ff; /* можно не использовать, но пусть будет */
  --text: rgba(
    243,
    239,
    250,
    0.92
  ); /* основной текст (мягкий бело-лавандовый) */
  --muted: rgba(243, 239, 250, 0.7); /* вторичный текст */
  --stroke: rgba(243, 239, 250, 0.08); /* разделители/бордеры */
}

/* оставил как у тебя, чтобы ничего не ломать */
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  background: var(--bg) !important;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* === МАНА-БАР === */
.mana {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: var(--pill);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* можно не трогать — JS сам выставит */
.mana {
  --p: 0.5;
}



.mana-fill {
  position: absolute;
  inset: 0;
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, #b7a7ff 0%, #8b6cff 55%, #5b3ee6 100%);

  /* ВАЖНО: чтобы звёзды не рисовались в пустой части */
  overflow: hidden;

  /* для диагонального “среза” */
  z-index: 0;
}

/* текст поверх всего */
.mana-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  letter-spacing: 0.2px;
  user-select: none;
  width: 100% !important;
  color: #f7f8f9;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  z-index: 3;
}

/* ⭐️ ЗВЁЗДЫ (перенёс на ::before, чтобы ::after занять под диагональ) */
.mana-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* 3 слоя вместо 5 — заметно меньше “шума” */
  background-image: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.9) 0 2.3px,
      transparent 3.6px
    ),
    radial-gradient(
      circle,
      rgba(255, 230, 160, 0.75) 0 2.8px,
      transparent 4.2px
    ),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1.8px, transparent 3px);

  /* больше размер сетки = меньше звёзд */
  background-size: 44px 44px, 64px 64px, 54px 54px;

  background-position: 0 0, 12px 22px, 20px 10px;

  opacity: 0.62;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px rgba(255, 240, 200, 0.4));

  animation: starsLoop 3.2s linear infinite,
    starsTwinkle 1.8s ease-in-out infinite;

  z-index: 1;
}

/* === ДИАГОНАЛЬНЫЙ СРЕЗ У ЗАЛИВКИ ===
   Если хочешь более/менее резкий угол — меняй skewX и width/right. */
/* ДИАГОНАЛЬНЫЙ СРЕЗ КАК НА СКРИНЕ */
.mana-fill{
  /* глубина среза (насколько “уходит” внутрь) */
  --cut: clamp(14px, 6vw, 44px);

  /* ВЕРТИКАЛЬНО ПЕРЕВЕРНУТЫЙ СРЕЗ + ДОХОДИТ ДО РАМКИ */
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,  /* верхняя точка среза */
    100% 100%,                  /* правый нижний угол */
    0 100%
  );
}


/* Бесшовный луп: сдвигаем ровно на background-size каждого слоя */
@keyframes starsLoop {
  to {
    /* слой 1: старт 0 0 + (44, -44) */
    background-position: 44px -44px,
      /* слой 2: старт 12 22 + (-64, +64) = (-52, 86) */ -52px 86px,
      /* слой 3: старт 20 10 + (54, -54) = (74, -44) */ 74px -44px;
  }
}

@keyframes starsTwinkle {
  0%,
  100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.3));
  }
  50% {
    opacity: 0.75;
    filter: drop-shadow(0 0 10px rgba(255, 240, 200, 0.55));
  }
}


/* ===== PROLOGUE SLIDES ===== */
.prologue{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  background: rgba(18,10,31,.92); /* можно поменять */
  backdrop-filter: blur(8px);
}

.prologue-slider{
  width: min(520px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(38, 18, 70, .78);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  touch-action: pan-y; /* чтобы вертикальный скролл не ломался */
}

.prologue-track{
  display: flex;
  width: 100%;
  transform: translateX(0%);
  transition: transform .28s ease;
}

.prologue-slide{
  flex: 0 0 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: rgba(243,239,250,.92);
}

.prologue-bottom{
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.prologue-dots{
  display: flex;
  gap: 8px;
  align-items: center;
}

.prologue-dots .dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(243,239,250,.28);
  transition: transform .2s ease, opacity .2s ease;
  opacity: .8;
}

.prologue-dots .dot.is-active{
  background: rgba(243,239,250,.85);
  transform: scale(1.25);
  opacity: 1;
}

.prologue-next{
  width: min(520px, 100%);
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: rgba(243,239,250,.95);
  background: linear-gradient(90deg, #7A4DFF 0%, #A855F7 100%);
}
.prologue-next:hover{ filter: brightness(1.06); }
