*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #120508;
  --red: #e50539;
  --red-glow: #ff2d55;
  --red-soft: rgba(229, 5, 57, 0.18);
  --gold: #f5c542;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(229, 5, 57, 0.25);
  --tg: #29b6f6;
  --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: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Backdrop ── */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.backdrop__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(229, 5, 57, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(229, 5, 57, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #1a0610 0%, var(--bg) 45%, #0a0204 100%);
}

.logo-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.logo-float {
  position: absolute;
  width: auto;
  height: auto;
  max-width: none;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(229, 5, 57, 0.35));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.logo-float--1 {
  width: 130px;
  top: 6%;
  left: -8%;
  opacity: 0.07;
  animation: logoDriftA 18s infinite;
}

.logo-float--2 {
  width: 90px;
  top: 22%;
  right: -5%;
  opacity: 0.05;
  animation: logoDriftB 14s infinite -3s;
}

.logo-float--3 {
  width: 160px;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.04;
  animation: logoPulseCenter 10s infinite;
}

.logo-float--4 {
  width: 110px;
  bottom: 18%;
  left: -6%;
  opacity: 0.06;
  animation: logoDriftC 16s infinite -6s;
}

.logo-float--5 {
  width: 75px;
  bottom: 8%;
  right: 5%;
  opacity: 0.05;
  animation: logoDriftA 12s infinite -2s reverse;
}

.logo-float--6 {
  width: 200px;
  top: 68%;
  right: -12%;
  opacity: 0.03;
  animation: logoSpinFloat 22s infinite;
}

.multipliers { position: absolute; inset: 0; overflow: hidden; }

.mult {
  position: absolute;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--red-glow);
  opacity: 0;
  text-shadow: 0 0 12px rgba(229, 5, 57, 0.6);
  animation: multFloat 4s ease-out forwards;
  pointer-events: none;
}


/* ── Layout ── */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(8px + var(--safe-t)) 16px calc(8px + var(--safe-b));
}

.wrap {
  width: min(100%, 400px);
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

/* ── Top bar ── */
.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top__logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(229, 5, 57, 0.45));
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(229, 5, 57, 0.2);
  border: 1px solid rgba(229, 5, 57, 0.45);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-glow);
}

.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-glow);
  animation: liveBlink 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red-glow);
}

/* ── Circular profile ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 10px;
}

.avatar__glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 5, 57, 0.45) 0%, transparent 70%);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red-glow);
  opacity: 0.7;
  animation: ringPulse 2.5s ease-in-out infinite;
}

.avatar__img {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.profile__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.profile__role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.profile__win {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--red), #b8042e);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(229, 5, 57, 0.5);
  animation: winGlow 2s ease-in-out infinite;
}

/* ── Panel ── */
.panel {
  width: 100%;
  flex-shrink: 0;
}

.panel__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.panel__title {
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
}

.panel__title .accent {
  background: linear-gradient(90deg, #fff 0%, var(--red-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel__sub {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.chip--hot {
  background: var(--red-soft);
  border-color: rgba(229, 5, 57, 0.4);
  color: var(--red-glow);
  animation: chipPulse 2.5s ease-in-out infinite;
}

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  color: var(--muted);
}

.proof__avatars {
  display: flex;
  flex-shrink: 0;
}

.proof__avatars img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -9px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.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(--text); font-weight: 800; }

.proof__urgency {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--red-glow);
  animation: urgencyPulse 2s ease-in-out infinite;
}

.proof__urgency strong {
  color: #fff;
  font-weight: 800;
}

/* ── CTA ── */
.cta {
  position: relative;
  display: block;
  width: 100%;
  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__glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--tg), #0288d1, var(--tg));
  border-radius: 18px;
  opacity: 0.6;
  filter: blur(8px);
  animation: glowRotate 3s linear infinite;
}

.cta__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #039be5 0%, #0288d1 50%, #0277bd 100%);
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 32px rgba(2, 136, 209, 0.45);
  overflow: hidden;
}

.cta__body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: shine 2.8s ease-in-out 1.5s infinite;
}

.cta__tg { width: 22px; height: 22px; flex-shrink: 0; }

.panel__note {
  margin-top: 8px;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}

/* ── 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; }

@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.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes winGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(229, 5, 57, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(229, 5, 57, 0.85); }
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes logoDriftA {
  0%, 100% { transform: translate(0, 0) rotate(-12deg) scale(1); opacity: 0.05; }
  50% { transform: translate(18px, -14px) rotate(8deg) scale(1.08); opacity: 0.09; }
}

@keyframes logoDriftB {
  0%, 100% { transform: translate(0, 0) rotate(10deg) scale(1); opacity: 0.04; }
  50% { transform: translate(-14px, 12px) rotate(-6deg) scale(1.05); opacity: 0.08; }
}

@keyframes logoDriftC {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); opacity: 0.04; }
  50% { transform: translate(10px, -18px) rotate(12deg); opacity: 0.07; }
}

@keyframes logoPulseCenter {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.03; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.07; }
}

@keyframes logoSpinFloat {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.02; }
  25% { transform: translate(-20px, -10px) rotate(8deg) scale(1.04); opacity: 0.05; }
  50% { transform: translate(-8px, -20px) rotate(-5deg) scale(1.08); opacity: 0.04; }
  75% { transform: translate(12px, -8px) rotate(6deg) scale(1.03); opacity: 0.05; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.02; }
}

@keyframes multFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  15% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-80px) scale(1.1); }
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes chipPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(229, 5, 57, 0.3); }
}

@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes glowRotate {
  0% { filter: blur(8px) hue-rotate(0deg); }
  100% { filter: blur(8px) hue-rotate(30deg); }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

@media (max-height: 680px) {
  .wrap { gap: 10px; }
  .avatar, .avatar__img { width: 90px; height: 90px; }
  .profile__name { font-size: 1rem; }
  .panel__title { font-size: 1.2rem; }
  .panel__sub { font-size: 0.75rem; margin-bottom: 8px; }
  .chips { margin-bottom: 8px; }
  .proof { margin-bottom: 10px; }
  .cta__body { padding: 13px 16px; font-size: 0.875rem; }
}

@media (max-height: 580px) {
  .avatar, .avatar__img { width: 76px; height: 76px; }
  .profile__win { font-size: 0.8125rem; margin-top: 6px; }
  .panel__note { margin-top: 6px; }
}
