/* =================================================================
   THEME / COLORS — edit here to change the look of the page
   ================================================================= */
:root {
  --c-bg-1: #150022;
  --c-bg-2: #3d0866;
  --c-bg-3: #8b1a5a;
  --c-bg-4: #ff6a3d;
  --c-accent: #c084fc;
  --c-accent-2: #ff7a59;
  --c-text: #ffffff;
  --c-text-dim: rgba(255, 255, 255, 0.72);
  --c-card: rgba(18, 4, 32, 0.55);
  --c-card-border: rgba(255, 255, 255, 0.16);
  --c-online: #34d27a;
  --c-warn-1: #ff2d6b;
  --c-warn-2: #ffa83d;

  --radius-card: 26px;
  --radius-btn: 18px;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.5),
                 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background:
    radial-gradient(1200px 800px at 80% 110%,
      rgba(255, 122, 89, 0.55), transparent 60%),
    radial-gradient(900px 700px at 10% 0%,
      rgba(192, 132, 252, 0.45), transparent 55%),
    linear-gradient(160deg,
      var(--c-bg-1) 0%,
      var(--c-bg-2) 35%,
      var(--c-bg-3) 70%,
      var(--c-bg-4) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Soft glowy orbs in background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.bg-orb-1 {
  width: 380px; height: 380px;
  background: #b14cff;
  top: -120px; left: -120px;
  animation: float 14s ease-in-out infinite;
}
.bg-orb-2 {
  width: 420px; height: 420px;
  background: #ff5f3d;
  bottom: -160px; right: -120px;
  animation: float 18s ease-in-out -6s infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.06); }
}

/* very subtle film grain via SVG noise */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* -----------------------------------------------------------------
   STAGE — vertically centered on mobile, tighter spacing
   ----------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 14px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  min-height: 100dvh;
}

/* -----------------------------------------------------------------
   CARD
   ----------------------------------------------------------------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  padding: 14px 12px 14px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 600ms cubic-bezier(.2,.8,.2,1) both;
}

.photo-wrap {
  position: relative;
  width: 78%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #1a0226;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 12px 30px rgba(0, 0, 0, 0.35);
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.card:hover .photo { transform: scale(1.02); }

.photo-gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0) 32%),
    linear-gradient(180deg,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}

.brand {
  margin: 2px 0 -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.05;
  -webkit-text-stroke: 1.2px #0a0014;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.6),
    0 3px 10px rgba(0,0,0,0.55);
}
.brand-name {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  -webkit-text-stroke: 0;
}
.verified svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bio {
  margin: 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--c-text-dim);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* -----------------------------------------------------------------
   STATUS ROW — socials flanking the online pill
   ----------------------------------------------------------------- */
.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: transform 200ms cubic-bezier(.2,.8,.2,1),
              filter 240ms ease,
              box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.08);
}
.social:active { transform: translateY(0) scale(0.97); }

.social.facebook {
  background: linear-gradient(180deg, #2a7bff 0%, #1565d8 100%);
}
.social.twitch {
  background: linear-gradient(180deg, #a970ff 0%, #6441a5 100%);
}

/* -----------------------------------------------------------------
   STATUS BADGE
   ----------------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-online);
  box-shadow: 0 0 0 0 rgba(52, 210, 122, 0.7);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(52,210,122,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(52,210,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,210,122,0); }
}

/* -----------------------------------------------------------------
   BUTTONS — glossy, premium feel
   ----------------------------------------------------------------- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-btn);
  color: var(--c-text);
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 320ms ease,
    background 420ms ease,
    border-color 320ms ease,
    filter 320ms ease;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

/* glossy top highlight */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.06) 18%,
      rgba(255,255,255,0) 50%),
    linear-gradient(180deg,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

/* swept shine */
.cta-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 60%, 100% { left: -60%; }
  80%           { left: 130%; }
}

.cta-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cta.primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12)),
    linear-gradient(135deg, #a32ee6 0%, #ff5a3d 100%);
  box-shadow:
    0 18px 36px rgba(163, 46, 230, 0.42),
    0 6px 14px rgba(255, 90, 61, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.cta.secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18)),
    linear-gradient(135deg, #2a0b3a 0%, #5a1e7d 100%);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.cta:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.98);
}

/* gentle attention bounce for the primary CTA */
.cta.attention {
  animation: attention-bounce 2.4s ease-in-out infinite;
}
.cta.attention:hover,
.cta.attention:active { animation: none; }
@keyframes attention-bounce {
  0%, 100% { transform: translateY(0); }
  10%      { transform: translateY(-5px); }
  22%      { transform: translateY(0); }
  30%      { transform: translateY(-2px); }
  38%      { transform: translateY(0); }
}

.cta-main {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.cta-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.4px;
}
.cta-sub:empty { display: none; }

/* highlighted, gently pulsing offer subtitle */
.cta-sub.pulse {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(6px);
  animation: gentle-pulse 2.4s ease-in-out infinite;
}

.cta-sub.free-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 210, 122, 0.22);
  border: 1px solid rgba(52, 210, 122, 0.55);
  color: #d6ffe6;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
@keyframes gentle-pulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
  50%      { transform: translateY(-1px) scale(1.04); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* -----------------------------------------------------------------
   CONFIRM / WARNING STATE — smooth, high contrast
   ----------------------------------------------------------------- */
.cta[data-confirm="true"] {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(0,0,0,0.1)),
    linear-gradient(135deg, var(--c-warn-1) 0%, var(--c-warn-2) 100%);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 45, 107, 0.28),
    0 18px 40px rgba(255, 45, 107, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  animation: warn-in 380ms cubic-bezier(.2,.8,.2,1);
}
.cta[data-confirm="true"] .cta-shine { animation: none; opacity: 0; }
.cta[data-confirm="true"] .cta-main {
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.cta[data-confirm="true"] .cta-main::before {
  content: "⚠ ";
  margin-right: 2px;
}
@keyframes warn-in {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-1px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

/* -----------------------------------------------------------------
   TIMER — compact, polished, eye-catching
   ----------------------------------------------------------------- */
.timer {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25)),
    rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.timer::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-warn-2);
  box-shadow: 0 0 8px var(--c-warn-2);
  animation: timer-blink 1.6s ease-in-out infinite;
}
@keyframes timer-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.timer-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--c-text-dim);
  font-weight: 600;
}
.timer-value {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffe6d3 0%, #ffffff 50%, #f0d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------------------------------------------
   ENTRY ANIMATION
   ----------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------
   DESKTOP TWEAKS
   ----------------------------------------------------------------- */
/* -----------------------------------------------------------------
   "OPEN IN BROWSER" HINT (mobile only) — points at the browser's
   overflow menu in the top-right corner.
   ----------------------------------------------------------------- */
.open-hint {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 12px 11px;
  border-radius: 16px;
  pointer-events: none;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.28)),
    radial-gradient(120% 120% at 100% 0%, rgba(255,168,61,0.35), rgba(20,5,35,0.6) 60%);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.5),
    0 0 24px rgba(255, 168, 61, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
  animation: hint-aura 2s ease-in-out infinite;
}

/* wrapper handles the 45° rotation cleanly */
.open-hint-arrow-wrap {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  animation: hint-arrow-nudge 1.4s ease-in-out infinite;
}
.open-hint-arrow {
  width: 100%;
  height: 100%;
  color: #fff;
  filter:
    drop-shadow(0 0 8px rgba(255, 168, 61, 0.95))
    drop-shadow(0 2px 3px rgba(0,0,0,0.55));
}
.open-hint-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.15;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 168, 61, 0.7),
    0 0 2px rgba(255, 168, 61, 0.5),
    0 1px 2px rgba(0,0,0,0.75);
}
.open-hint-text b { font-weight: 800; font-size: 14px; }

@keyframes hint-aura {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(0,0,0,0.5),
      0 0 0 0 rgba(255, 168, 61, 0.6),
      0 0 24px rgba(255, 168, 61, 0.3),
      inset 0 1px 0 rgba(255,255,255,0.35);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(0,0,0,0.5),
      0 0 0 12px rgba(255, 168, 61, 0),
      0 0 32px rgba(255, 168, 61, 0.55),
      inset 0 1px 0 rgba(255,255,255,0.35);
  }
}
@keyframes hint-arrow-nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(0, -5px); }
}

@media (min-width: 720px) {
  .open-hint { display: none; }
  .stage {
    max-width: 380px;
    padding: 28px 24px;
    gap: 16px;
    justify-content: center;
  }
  .photo-wrap { max-width: 260px; }
  .brand { font-size: 30px; }
  .verified { width: 24px; height: 24px; flex-basis: 24px; }
  .bio { font-size: 15px; }
  .cta-main { font-size: 17.5px; }
  .timer-value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
