/* =================================================================
   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;

  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Consolas, monospace;

  --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-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.05;
  -webkit-text-stroke: 0.5px #0a0014;
  text-shadow:
    0 0 2px rgba(0,0,0,0.6),
    0 2px 0 rgba(0,0,0,0.45),
    0 4px 12px rgba(0,0,0,0.5);
}
.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 — electric gloss stack
   ----------------------------------------------------------------- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-btn);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 320ms ease,
    filter 320ms ease;
}

/* glossy top highlight */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.26) 0%,
      rgba(255,255,255,0) 46%,
      rgba(0,0,0,0.18) 100%);
}
.cta > * { position: relative; z-index: 2; }

/* swept shine — hero button only */
.cta-shine {
  position: absolute;
  top: -60%;
  left: -70%;
  width: 44%;
  height: 220%;
  z-index: 1;
  background: linear-gradient(112deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.44) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-17deg);
  pointer-events: none;
  animation: shine 4.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 62%, 100% { left: -70%; }
  82%           { left: 132%; }
}

.cta-body {
  flex: 1;
  min-width: 0;
  display: block;
}

/* dark halo keeps white type crisp on the bright fills */
.cta-main,
.cta-sub {
  color: #fff;
  text-shadow:
    0 0 2px rgba(0,0,0,0.72),
    0 1px 0 rgba(0,0,0,0.55),
    1px 0 0 rgba(0,0,0,0.4),
    -1px 0 0 rgba(0,0,0,0.4),
    0 -1px 0 rgba(0,0,0,0.4);
}
.cta-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.cta-sub {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  opacity: 0.94;
}
.cta-sub:empty { display: none; }

.cta-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.24);
  color: #fff;
}
.cta-icon svg { width: 20px; height: 20px; display: block; }

.cta-pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 5px 9px;
  border-radius: 999px;
}
.pill-light { background: #ffffff; color: #2a3bc4; }
.pill-mint  { background: var(--c-online); color: #05372a; }

.cta-chev {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.7;
  color: #fff;
}

/* --- the four surfaces --- */
.cta.hero {
  background: linear-gradient(178deg, #35dbff 0%, #4b5bff 100%);
  box-shadow:
    0 14px 30px rgba(70, 120, 255, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.cta.free {
  background: linear-gradient(178deg, #2a3cb4 0%, #141c64 100%);
  box-shadow:
    0 11px 24px rgba(25, 40, 130, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.cta.ig {
  background:
    linear-gradient(94deg,
      rgba(0,0,0,0.34), rgba(0,0,0,0.14) 58%, rgba(0,0,0,0)),
    radial-gradient(circle at 28% 112%,
      #fdf497 0%, #fdf497 5%, #fd5949 42%, #d6249f 62%, #285aeb 92%);
  box-shadow:
    0 13px 28px rgba(214, 36, 159, 0.46),
    inset 0 1px 0 rgba(255,255,255,0.45);
}
.cta.bk {
  padding: 11px 13px;
  border-radius: 15px;
  border-color: rgba(196, 176, 255, 0.5);
  background: linear-gradient(178deg, #8a5cff 0%, #4a22b8 100%);
  box-shadow:
    0 10px 22px rgba(105, 60, 220, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.38);
}
.cta.bk .cta-icon { width: 28px; height: 28px; border-radius: 9px; }
.cta.bk .cta-icon svg { width: 16px; height: 16px; }
.cta.bk .cta-main { font-size: 12.5px; }
.cta.bk .cta-sub  { font-size: 10.5px; margin-top: 2px; }

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.cta:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.98);
}
.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* -----------------------------------------------------------------
   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-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--c-text-dim);
  font-weight: 500;
}
.timer-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  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: 26px; }
  .verified { width: 24px; height: 24px; flex-basis: 24px; }
  .bio { font-size: 15px; }
  .cta-main { font-size: 15px; }
  .cta.bk .cta-main { font-size: 13px; }
  .timer-value { font-size: 14px; }
}

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