/* Демо-механики: модалки, колесо джекпота, список участников.
   Палитра и типографика — из BLOXPVP. */

/* ── Универсальная модалка ────────────────────────────────── */
.DemoModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}
.DemoModal__box {
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 28px;
  border-radius: 20px;
  background-color: #131020;
  border: 1px solid #322e58;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}
.DemoModal__box_flip { align-items: center; text-align: center; }
.DemoModal__title { font-size: 22px; font-weight: 600; }
.DemoModal__sub { color: #717171; font-size: 13px; }
.DemoModal__label { font-size: 13px; font-weight: 600; }
.DemoModal__input {
  height: 39px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 12px;
  outline: none;
  color: #fff;
  font-family: "Poppins";
  background: linear-gradient(180deg, #19182d 0%, #1e1733 100%);
}
.DemoModal__buttons { display: flex; gap: 10px; margin-top: 6px; }
.DemoModal__btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  font-family: "Poppins";
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(180deg, #a448ff 0%, #873aff 100%);
  box-shadow: 0 0 24px 0 rgba(134, 58, 255, 0.2);
  transition: 0.1s;
}
.DemoModal__btn:hover { transform: scale(0.99); opacity: 0.9; }
.DemoModal__btn_ghost {
  background: #1e1a39;
  box-shadow: none;
  color: #a095de;
}

/* ── Выбор стороны монеты ─────────────────────────────────── */
.CoinPick { display: flex; gap: 12px; }
.CoinPick__side {
  flex: 1;
  padding: 14px 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #19172c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.15s;
}
.CoinPick__side img { width: 42px; height: 42px; }
.CoinPick__side p { font-size: 13px; color: #a095de; }
.CoinPick__side.Selected {
  border-color: #863aff;
  background: #201836;
}
.CoinPick__side.Selected p { color: #fff; font-weight: 600; }

/* ── Анимация броска ──────────────────────────────────────── */
.FlipCoin img { width: 120px; height: 120px; }
.FlipCoin.Spinning img { animation: flipSpin 0.18s linear infinite; }
@keyframes flipSpin {
  0%   { transform: rotateY(0deg)   scale(1); }
  50%  { transform: rotateY(90deg)  scale(0.9); }
  100% { transform: rotateY(180deg) scale(1); }
}
.FlipResult { font-size: 15px; font-weight: 600; min-height: 22px; color: #a095de; }
.FlipResult.Win  { color: #59ff56; }
.FlipResult.Lose { color: #ff5a5a; }

/* Бейдж демо-режима вместо ссылки History */
#demo-badge {
  color: #863aff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Колесо джекпота ──────────────────────────────────────── */
.DemoWheel {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.DemoWheel__disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#221d3d 0turn 1turn);
  mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  box-shadow: 0 0 60px rgba(134, 58, 255, 0.25);
}
.DemoWheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #fff;
  filter: drop-shadow(0 0 6px rgba(134, 58, 255, 0.8));
}
.DemoWheel__winner {
  text-align: center;
  min-height: 26px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.DemoWheel__winner.is-visible { opacity: 1; }
.DemoWheel__winner.is-me { color: #59ff56; }

/* ── Участники раунда ─────────────────────────────────────── */
.DemoPlayers {
  color: #a095de;
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px 10px;
}
.DemoEntry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #19172c;
  border: 1px solid #251f42;
  margin-bottom: 8px;
}
.DemoEntry__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.DemoEntry__avatar { width: 28px; height: 28px; border-radius: 50%; }
.DemoEntry__name { color: #fff; font-size: 13px; font-weight: 500; flex: 1; }
.DemoEntry__name.is-me { color: #863aff; font-weight: 700; }
.DemoEntry__chance { color: #a095de; font-size: 12px; min-width: 52px; text-align: right; }
.DemoEntry__value { color: #fff; font-size: 13px; font-weight: 600; min-width: 84px; text-align: right; }
.DemoEntry__empty { color: #fff; opacity: 0.3; text-align: center; padding: 20px 0; }

.Bet.Joined { opacity: 0.55; cursor: default; }

.DemoModal__error { color: #ff5a5a; font-size: 12px; min-height: 16px; }

/* Пустое состояние списка коинфлипа и подпись seed */
.CoinflipEmpty { justify-content: center !important; padding: 26px 30px !important; }
.CoinflipEmpty p { color: #4a4574; font-size: 14px; }
.FlipSeed { font-size: 11px; color: #4a4574; word-break: break-all; }

/* ── Карточка участника: детали, которых нет в их CSS ─────── */
.Entry { border-left: 3px solid var(--entry-color, #863aff) !important; }
.Entry .Top .Player p { font-size: 13px; font-weight: 500; }
.Entry .EntryName.is-me { color: #863aff; font-weight: 700; }
.Entry .EntryChance { font-size: 13px; font-weight: 600; color: #a095de; }
.Entry .Bottom { margin-top: 8px; align-items: center; }

/* Заголовок правой карточки */
.Info .Header p { color: #fff; }

/* Колонка колеса не должна ужиматься под карточку участников */
.JackpotPage > .Container > .WheelBG { flex: none; }

/* ── Джекпот по макету: центр колеса, аватары на секторах ─── */
.WheelCenter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  text-align: center;
}
.WheelCenter__pot {
  color: #a855ff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 40px rgba(168, 85, 255, 0.45);
}
.WheelCenter__range { color: #a095de; font-size: 14px; }
.WheelCenter__slots { color: #fff; font-size: 24px; font-weight: 600; }

.DemoWheel__avatars { position: absolute; inset: 0; pointer-events: none; }
.WheelAvatar {
  position: absolute;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #19172c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.WheelMeta {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.WheelMeta__round { color: #a095de; font-size: 13px; font-weight: 500; }
.WheelMeta__timer { color: #fff; font-size: 18px; font-weight: 600; }

@media screen and (max-width: 1400px) {
  .WheelCenter__pot { font-size: 34px; }
  .WheelCenter__slots { font-size: 18px; }
  .WheelAvatar { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
}

/* ── Билеты и честность розыгрыша ─────────────────────────── */
.EntryTickets {
  margin-top: 2px;
  color: #a095de;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.EntryTickets span { color: #fff; }

.WheelMeta__fair {
  color: #4a4574;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Fairness {
  margin: 8px auto 0;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #19172c;
  border: 1px solid #251f42;
  font-size: 11px;
  color: #a095de;
}
.Fairness[hidden] { display: none; }
.Fairness__row { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; }
.Fairness__row span { color: #4a4574; flex: none; min-width: 52px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.Fairness__row code {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}
.Fairness__row code.is-win { color: #59ff56; font-weight: 700; }
.Fairness__hint { margin: 6px 0 0; color: #4a4574; font-size: 10px; line-height: 1.4; }
