*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #4a044e;
  --bg-deep: #2d0230;
  --magenta: #c0267a;
  --magenta-light: #e879b0;
  --gold: #fbbf24;
  --gold-light: #fde047;
  --gold-dark: #b45309;
  --orange: #f97316;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --card: rgba(74, 4, 78, 0.72);
  --card-border: rgba(251, 191, 36, 0.35);
  --tg: #29b6f6;
  --tg-bg: #17212b;
  --tg-bubble: #2b5278;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* ── Backdrop ── */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.backdrop__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(192, 38, 122, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 45%),
    linear-gradient(165deg, #831843 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

.backdrop__logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, 85vw);
  transform: translate(-50%, -50%);
  opacity: 0.06;
  filter: blur(1px);
  animation: logoBgPulse 8s ease-in-out infinite;
}

.mascot-field { position: absolute; inset: 0; }

.mascot-float {
  position: absolute;
  width: auto;
  height: 70px;
  opacity: 0.1;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.25));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.mascot-float--1 { top: 8%; left: -5%; animation: mascotDriftA 16s infinite; }
.mascot-float--2 { top: 40%; right: -8%; height: 55px; opacity: 0.06; animation: mascotDriftB 13s infinite -4s; }
.mascot-float--3 { bottom: 12%; left: 10%; height: 60px; opacity: 0.07; animation: mascotDriftC 18s infinite -7s; }

.float-field { position: absolute; inset: 0; overflow: hidden; }

.float-item {
  position: absolute;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  animation: itemFloat 4.2s ease-out forwards;
}

.float-item--coin {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.float-item--win {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.chicken-run {
  position: absolute;
  bottom: 18%;
  left: -80px;
  width: 64px;
  height: auto;
  animation: chickenRun 9s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.5));
}

/* ── Layout ── */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: calc(6px + var(--safe-t)) 15px calc(10px + var(--safe-b));
}

.wrap {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding: 0;
}

/* ── Top ── */
.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top__logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(251, 191, 36, 0.4);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(249, 115, 22, 0.2));
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: liveBlink 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold);
}

/* ── Profile / Mascot ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 6px;
}

.avatar__img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: avatarFloat 3s ease-in-out infinite;
}

.profile__name {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile__role {
  font-size: 0.71875rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 700;
}

.profile__win {
  margin-top: 6px;
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(180deg, #fde047 0%, #fbbf24 45%, #d97706 100%);
  border: 2px solid #92400e;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 900;
  color: #451a03;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.45);
  animation: winGlow 2s ease-in-out infinite;
}

/* ── Panel card ── */
.panel { width: 100%; }

.panel__card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--card-border);
  border-radius: 18px;
  padding: 14px 13px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel__eyebrow {
  font-size: 0.65625rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.panel__title {
  font-size: clamp(1.15rem, 4.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.14;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.panel__title .accent {
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(180, 83, 9, 0.4));
}

.panel__sub {
  font-size: 0.78125rem;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.chip--hot {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(249, 115, 22, 0.2));
  border-color: rgba(251, 191, 36, 0.55);
  color: var(--gold-light);
  animation: chipPulse 2.5s ease-in-out infinite;
}

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 12px;
  font-size: 0.71875rem;
  color: var(--muted);
  font-weight: 700;
}

.proof__avatars { display: flex; flex-shrink: 0; }

.proof__avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  margin-left: -9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.proof__avatars img:first-child { margin-left: 0; z-index: 4; }
.proof__avatars img:nth-child(2) { z-index: 3; }
.proof__avatars img:nth-child(3) { z-index: 2; }
.proof__avatars img:nth-child(4) { z-index: 1; }

.proof__text { text-align: left; line-height: 1.4; }
.proof__num { color: var(--gold-light); font-weight: 900; }

.proof__urgency {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--orange);
  animation: urgencyPulse 2s ease-in-out infinite;
}

.proof__urgency strong { color: #fff; font-weight: 900; }

/* ── CTA ── */
.cta {
  position: relative;
  display: block;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: ctaBreathe 2.8s ease-in-out 1.2s infinite;
}

.cta:active { transform: scale(0.97); }

.cta__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: shine 2.8s ease-in-out 1.5s infinite;
  z-index: 2;
  pointer-events: none;
}

.cta__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta__tg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Telegram screenshots slideshow ── */
.reviews {
  width: 100%;
  margin-top: 10px;
}

.reviews__title {
  font-size: 0.65625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: center;
}

.tg-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tg-slideshow__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-screen {
  flex: 0 0 100%;
  min-width: 100%;
  background: #0e1621;
  font-family: 'Roboto', -apple-system, sans-serif;
}

/* Header */
.tg-screen__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tg-screen__back {
  width: 20px;
  height: 20px;
  color: #6ab3f3;
  flex-shrink: 0;
}

.tg-screen__ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tg-screen__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tg-screen__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-screen__status {
  font-size: 0.75rem;
  color: #6ab3f3;
  font-weight: 400;
}

/* Chat area */
.tg-screen__chat {
  padding: 8px 9px 10px;
  min-height: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M30 5l3 9h9l-7 5 3 9-8-6-8 6 3-9-7-5h9z'/%3E%3C/g%3E%3C/svg%3E"),
    #0e1621;
}

.tg-date {
  text-align: center;
  margin-bottom: 8px;
}

.tg-date span {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.tg-msg {
  position: relative;
  max-width: 83%;
  margin-bottom: 4px;
  padding: 6px 9px 5px;
  font-size: 0.84375rem;
  line-height: 1.32;
  color: #fff;
  word-wrap: break-word;
}

.tg-msg--in {
  background: #182533;
  border-radius: 12px 12px 12px 4px;
  margin-right: auto;
}

.tg-msg--out {
  background: #2b5278;
  border-radius: 12px 12px 4px 12px;
  margin-left: auto;
}

.tg-msg__text b {
  font-weight: 500;
  color: #7ecbff;
}

.tg-msg__meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 4px 0 -2px 8px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  position: relative;
  top: 4px;
}

.tg-checks {
  width: 14px;
  height: 10px;
  flex-shrink: 0;
}

/* Dots */
.tg-slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: #17212b;
}

.tg-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.tg-dot--active {
  background: #6ab3f3;
  transform: scale(1.15);
}

.panel__note {
  margin-top: 8px;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ── Animations ── */
.anim {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }

.d1 { animation-delay: 0.3s; }
.d2 { animation-delay: 0.38s; }
.d3 { animation-delay: 0.46s; }
.d4 { animation-delay: 0.54s; }
.d5 { animation-delay: 0.62s; }
.d6 { animation-delay: 0.7s; }
.d7 { animation-delay: 0.78s; }
.d8 { animation-delay: 0.86s; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes winGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(251, 191, 36, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(251, 191, 36, 0.75); }
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes logoBgPulse {
  0%, 100% { opacity: 0.05; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.09; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes mascotDriftA {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); opacity: 0.06; }
  50% { transform: translate(20px, -16px) rotate(8deg); opacity: 0.1; }
}

@keyframes mascotDriftB {
  0%, 100% { transform: translate(0, 0) rotate(12deg); opacity: 0.05; }
  50% { transform: translate(-16px, 14px) rotate(-6deg); opacity: 0.09; }
}

@keyframes mascotDriftC {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); opacity: 0.05; }
  50% { transform: translate(12px, -20px) rotate(10deg); opacity: 0.08; }
}

@keyframes itemFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  15% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-70px) scale(1.05); }
}

@keyframes chickenRun {
  0% { left: -80px; transform: rotate(-15deg); opacity: 0; }
  5% { opacity: 1; }
  50% { transform: rotate(5deg) translateY(-8px); }
  95% { opacity: 1; }
  100% { left: calc(100% + 80px); transform: rotate(-10deg); opacity: 0; }
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes chipPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.35); }
}

@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

@media (max-height: 740px), (max-width: 390px) {
  .wrap { gap: 7px; }
  .avatar, .avatar__img { width: 96px; height: 96px; }
  .profile__name { font-size: 0.9375rem; }
  .profile__role { font-size: 0.6875rem; }
  .profile__win { margin-top: 5px; font-size: 0.8125rem; }
  .panel__card { padding: 12px 11px; }
  .panel__title { font-size: 1.1rem; }
  .panel__sub { font-size: 0.75rem; margin-bottom: 8px; }
  .chips { margin-bottom: 8px; }
  .proof { margin-bottom: 10px; }
  .cta__body { padding: 12px 16px; font-size: 0.875rem; }
  .reviews { margin-top: 8px; }
  .tg-msg { font-size: 0.8125rem; }
}

@media (max-height: 660px) {
  .avatar, .avatar__img { width: 88px; height: 88px; }
  .top__logo { width: 44px; height: 44px; }
  .wrap { gap: 6px; }
}
