/* =====================================================================
   FunTimeHoldings — Coming Soon
   Dark, layered, animated. Everything is vanilla CSS; no build step.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #07070f;
  --bg-2: #0e0b20;
  --ink: #f6f5ff;
  --muted: rgba(246, 245, 255, .62);
  --muted-2: rgba(246, 245, 255, .38);
  --line: rgba(255, 255, 255, .1);

  --electric: #ffd60a;   /* Pikachu  */
  --electric-2: #ff9f1c;
  --aqua: #4cc9f0;       /* Squirtle */
  --aqua-2: #3a86ff;
  --psychic: #c77dff;    /* Mewtwo   */
  --psychic-2: #9d4edd;
  --hot: #ff4d8d;
  --mint: #3dfc9b;

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 48px);

  /* Driven by JS: normalized pointer (-1..1) and raw pointer position. */
  --px: 0;
  --py: 0;
  --mx: 50vw;
  --my: 45vh;
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
button, input { font: inherit; color: inherit; }

::selection { background: rgba(255, 214, 10, .35); color: #fff; }

/* =====================================================================
   BACKGROUND STACK (fixed, behind everything)
   ===================================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, #1a1540 0%, transparent 60%),
    radial-gradient(70% 55% at 105% 95%, #0a1c2e 0%, transparent 60%),
    radial-gradient(60% 50% at -5% 90%, #1d0f2e 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

/* Aurora: soft radial blobs, no filter:blur (cheap on GPU). */
.bg__aurora {
  position: absolute;
  inset: -12%;
  transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 14px), 0);
  will-change: transform;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: .6;
  animation: drift var(--dur, 28s) var(--ease-io) infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.blob--electric {
  width: 62vmax; height: 62vmax; left: -16vmax; top: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(255, 214, 10, .5) 0%, rgba(255, 159, 28, .16) 30%, transparent 64%);
  --dur: 30s;
}
.blob--aqua {
  width: 56vmax; height: 56vmax; right: -18vmax; top: 6vmax;
  background: radial-gradient(circle, rgba(76, 201, 240, .48) 0%, rgba(58, 134, 255, .14) 32%, transparent 64%);
  --dur: 36s; --delay: -9s;
}
.blob--psychic {
  width: 72vmax; height: 72vmax; left: 8vmax; bottom: -38vmax;
  background: radial-gradient(circle, rgba(199, 125, 255, .42) 0%, rgba(157, 78, 221, .14) 30%, transparent 64%);
  --dur: 42s; --delay: -18s;
}
.blob--hot {
  width: 36vmax; height: 36vmax; right: 8vmax; bottom: -8vmax;
  background: radial-gradient(circle, rgba(255, 77, 141, .3) 0%, transparent 60%);
  --dur: 24s; --delay: -5s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-4vmax, 5vmax, 0) scale(.94); }
}

.bg__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dot grid, revealed only near the cursor. */
.bg__grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .38) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(340px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
          mask-image: radial-gradient(340px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
}

.bg__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(720px circle at var(--mx) var(--my), rgba(255, 214, 10, .075) 0%, rgba(76, 201, 240, .035) 40%, transparent 66%);
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3, 3, 8, .8) 100%);
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: .075;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;          /* own stacking context so depth layers behave */
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(36px, 6vh, 72px);
  overflow: hidden;
}

/* ---- Depth 0: orbit rings ---- */
.orbit {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(150vw, 1180px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translate3d(calc(var(--px) * 18px), calc(var(--py) * 18px), 0);
  pointer-events: none;
  will-change: transform;
}
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit__ring {
  fill: none;
  stroke-width: 1;
  transform-origin: 500px 500px;
  animation: spin var(--dur) linear infinite;
}
.orbit__ring--a { stroke: rgba(199, 125, 255, .22); stroke-dasharray: 6 18; --dur: 140s; }
.orbit__ring--b { stroke: rgba(76, 201, 240, .2);  stroke-dasharray: 2 10; --dur: 100s; animation-direction: reverse; }
.orbit__ring--c { stroke: rgba(255, 214, 10, .18); stroke-dasharray: 1 6;  --dur: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: spin var(--dur) linear infinite;
  animation-direction: var(--dir, normal);
}
.orbit__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--r);
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px 2px var(--c), 0 0 30px 6px color-mix(in srgb, var(--c) 40%, transparent);
}
.orbit__dot--a { --dur: 140s; --r: 3%;  --c: var(--psychic); }
.orbit__dot--b { --dur: 100s; --r: 12%; --c: var(--aqua); --dir: reverse; }

/* ---- Depth 0: giant ghost day counter ---- */
.ghost {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%) translate3d(calc(var(--px) * 34px), calc(var(--py) * 34px), 0);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(220px, 46vw, 780px);
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .012);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* ---- Depth 1 & 3: characters ---- */
.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Intentionally NOT a stacking context: children interleave with .content */
}

.mon {
  position: absolute;
  transform: translate3d(calc(var(--px) * var(--depth)), calc(var(--py) * var(--depth)), 0);
  will-change: transform;
}
.mon__float {
  animation: float var(--float-dur, 7s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}
.mon__enter {
  opacity: 0;
  transform: scale(.72) translateY(48px);
  filter: blur(14px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.5s var(--ease-spring),
    filter 1.1s ease;
  transition-delay: var(--enter-delay, .2s);
}
.mon.is-loaded .mon__enter {
  opacity: 1;
  transform: none;
  filter: none;
}
.mon img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 30px 34px rgba(0, 0, 0, .6))
    drop-shadow(0 0 54px var(--glow));
}

.mon--mewtwo {
  --depth: 22px;
  --glow: rgba(157, 78, 221, .42);
  --float-dur: 9.5s;
  --enter-delay: .15s;
  width: clamp(300px, 36vw, 580px);
  left: -5%;
  top: 4%;
  z-index: 1;
}
.mon--mewtwo .mon__float { --rot: -4deg; --lift: -22px; }

.mon--pika {
  --depth: 48px;
  --glow: rgba(255, 214, 10, .42);
  --float-dur: 6.5s;
  --float-delay: -2.2s;
  --enter-delay: .55s;
  width: clamp(150px, 19vw, 290px);
  right: 4%;
  top: 6%;
  z-index: 3;
}
.mon--pika .mon__float { --rot: 9deg; --lift: -28px; }

.mon--squirtle {
  --depth: 38px;
  --glow: rgba(76, 201, 240, .42);
  --float-dur: 7.5s;
  --float-delay: -4.4s;
  --enter-delay: .8s;
  width: clamp(140px, 16vw, 260px);
  right: 4.5%;
  bottom: 3%;
  z-index: 3;
}
.mon--squirtle .mon__float { --rot: -10deg; --lift: -18px; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50%      { transform: translate3d(0, var(--lift, -22px), 0) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ---- Depth 2: content ---- */
.content {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 28px);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(12px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.15s var(--ease-out),
    filter .9s ease;
  transition-delay: calc(var(--i, 0) * 120ms + 120ms);
}
.reveal--wide { width: 100%; display: flex; justify-content: center; filter: none; }
.is-ready .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Eyebrow pill */
.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 10, .3);
  background:
    linear-gradient(90deg, rgba(255, 214, 10, .14), rgba(255, 255, 255, .03) 70%),
    rgba(9, 8, 22, .74);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 0 44px rgba(255, 214, 10, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #ffe58a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow__bolt {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--electric);
  color: #1a1200;
  box-shadow: 0 0 18px rgba(255, 214, 10, .7);
  animation: flicker 3.6s infinite;
}
.eyebrow__bolt svg { width: 13px; height: 13px; }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: .35; }
  94%  { opacity: 1; }
  96%  { opacity: .5; }
  97%  { opacity: 1; }
}

/* Title */
.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .04em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8.4vw, 7.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transform: perspective(1100px) rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 5deg));
  transform-style: flat;
  will-change: transform;
}
.title__row {
  display: block;
  opacity: 0;
  transform: translateY(.45em);
  filter: blur(10px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s ease;
  transition-delay: calc(.35s + var(--i, 0) * 140ms);
}
.is-ready .title__row { opacity: 1; transform: none; filter: none; }

.title__line {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: .04em .06em;   /* room for the glow */
}
/* Shadow layer: a duplicate of the text painted beneath the face. */
.title__line::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.title__line--fill {
  background: linear-gradient(100deg,
    #fff8d6 0%, var(--electric) 18%, var(--electric-2) 42%, var(--hot) 68%, var(--psychic) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shimmer 9s var(--ease-io) infinite alternate;
}
.title__line--fill::before {
  text-shadow:
    0 .018em 0 #6a2f00,
    0 .036em 0 #582600,
    0 .054em 0 #451d00,
    0 .072em 0 #331500,
    0 .11em .28em rgba(0, 0, 0, .75),
    0 0 .5em rgba(255, 190, 10, .38),
    0 0 1.2em rgba(255, 120, 60, .22);
}
@keyframes shimmer { to { background-position: 100% 50%; } }

.title__line--outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .017em, 2.6px) rgba(255, 255, 255, .92);
  transition: color .5s ease;
}
.title__line--outline::before {
  color: rgba(9, 8, 22, .82);
  text-shadow:
    0 0 .32em rgba(76, 201, 240, .45),
    0 0 .9em rgba(157, 78, 221, .32),
    0 .12em .3em rgba(0, 0, 0, .6);
}
.title:hover .title__line--outline { color: rgba(255, 255, 255, .96); }

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  text-wrap: balance;
}

/* =====================================================================
   COUNTDOWN
   ===================================================================== */
.countdown {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.5vw, 18px);
  transform: perspective(1400px) rotateX(calc(var(--py) * -2.5deg)) rotateY(calc(var(--px) * 3.5deg));
  will-change: transform;
}

.unit {
  position: relative;
  min-width: clamp(78px, 12.5vw, 154px);
  padding: clamp(14px, 2.2vw, 24px) clamp(10px, 1.8vw, 22px) clamp(12px, 2vw, 18px);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 30px 60px -28px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  overflow: hidden;
}
/* Rotating gradient border (mask trick). */
.unit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle),
    rgba(255, 255, 255, .06) 0%,
    rgba(255, 214, 10, .7) 12%,
    rgba(255, 255, 255, .06) 28%,
    rgba(76, 201, 240, .65) 50%,
    rgba(255, 255, 255, .06) 66%,
    rgba(199, 125, 255, .65) 84%,
    rgba(255, 255, 255, .06) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: rotate-angle 9s linear infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}
.unit:nth-child(3)  { --delay: -2.2s; }
.unit:nth-child(5)  { --delay: -4.4s; }
.unit:nth-child(7)  { --delay: -6.6s; }
@keyframes rotate-angle { to { --angle: 360deg; } }

/* Top sheen */
.unit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 55% at 50% -5%, rgba(255, 255, 255, .13), transparent 60%);
  pointer-events: none;
}
.unit__flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 80% at 50% 40%, rgba(255, 214, 10, .35), transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.unit.is-tick .unit__flash { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .5; } 100% { opacity: 0; } }

.unit__digits {
  position: relative;
  z-index: 1;
  display: flex;
  gap: .02em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.digit {
  position: relative;
  display: block;
  width: .74em;
  height: 1.12em;
  overflow: hidden;
}
.digit__val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-shadow: 0 0 22px rgba(255, 255, 255, .22);
  transition:
    transform .55s var(--ease-out),
    opacity .38s ease,
    filter .38s ease;
  will-change: transform, opacity;
}
.digit__val.is-enter   { transform: translateY(75%);  opacity: 0; filter: blur(5px); }
.digit__val.is-current { transform: translateY(0);    opacity: 1; filter: blur(0); }
.digit__val.is-leave   { transform: translateY(-75%); opacity: 0; filter: blur(5px); }

.unit__label {
  position: relative;
  z-index: 1;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.sep {
  align-self: center;
  transform: translateY(-.55em);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1;
  color: rgba(255, 255, 255, .32);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* =====================================================================
   NOTIFY FORM
   ===================================================================== */
.notify {
  width: min(100%, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.notify__panel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 40px 90px -36px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
          backdrop-filter: blur(18px) saturate(1.2);
}
.notify__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 214, 10, .35), transparent 30%, transparent 70%, rgba(76, 201, 240, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.notify__panel:focus-within::before { opacity: 1; }

.notify__fields {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 8px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
}
.field__label {
  padding: 4px 0 0 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color .2s;
}
.field:focus-within .field__label { color: #ffe58a; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(6, 6, 14, .62);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .25s, background .2s;
  -webkit-appearance: none;
          appearance: none;
}
.field input::placeholder { color: rgba(246, 245, 255, .3); }
.field input:focus {
  border-color: rgba(255, 214, 10, .65);
  background: rgba(6, 6, 14, .85);
  box-shadow:
    0 0 0 4px rgba(255, 214, 10, .14),
    0 0 32px rgba(255, 214, 10, .14);
}
.field.is-invalid input {
  border-color: rgba(255, 77, 141, .75);
  box-shadow: 0 0 0 4px rgba(255, 77, 141, .16);
  animation: shake .45s var(--ease-io);
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.btn {
  position: relative;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  color: #1a1200;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff3b0 0%, var(--electric) 38%, var(--electric-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 12px 30px -8px rgba(255, 190, 10, .7);
  transition: transform .3s var(--ease-spring), box-shadow .3s, filter .3s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -8px rgba(255, 190, 10, .85);
}
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .75s ease;
  pointer-events: none;
}
.btn:hover .btn__shine { transform: translateX(130%); }
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(26, 18, 0, .25);
  border-top-color: #1a1200;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; filter: saturate(.8) brightness(.95); }
.btn.is-loading .btn__text { opacity: .6; }
.btn.is-loading .btn__spinner { display: block; }

.notify__hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: .02em;
}
.notify__error {
  margin: 10px 4px 2px;
  font-size: 13px;
  color: #ff8fb4;
  text-align: left;
}
.notify__error[hidden] { display: none; }

/* Success state */
.success {
  position: relative;
  width: 100%;
  padding: 28px 20px 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 10, .28);
  background: linear-gradient(180deg, rgba(255, 214, 10, .08), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 60px rgba(255, 214, 10, .12);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: pop .7s var(--ease-spring) both;
}
.success[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }

.success__check { width: 66px; height: 66px; margin-bottom: 6px; }
.success__ring {
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: draw 1s var(--ease-out) .1s forwards;
}
.success__tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .5s var(--ease-out) .75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}
.success__title span { color: var(--electric); }
.success__sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.success__sub span { color: var(--ink); font-weight: 600; }

.sparks {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.sparks span {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c, var(--electric));
  box-shadow: 0 0 10px var(--c, var(--electric));
  transform: rotate(var(--a)) translateY(0) scale(0);
  animation: spark .9s var(--ease-out) .55s forwards;
}
@keyframes spark {
  0%   { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(0); opacity: 0; }
}

/* =====================================================================
   TICKER
   ===================================================================== */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 245, 255, .34);
  white-space: nowrap;
}
.ticker__group i {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  font-size: 12.5px;
  color: var(--muted-2);
}
.foot__bolt { filter: drop-shadow(0 0 6px rgba(255, 214, 10, .7)); }

/* =====================================================================
   LIVE STATE (countdown hit zero)
   ===================================================================== */
.is-live .eyebrow {
  border-color: rgba(61, 252, 155, .4);
  background: linear-gradient(90deg, rgba(61, 252, 155, .16), rgba(255, 255, 255, .03) 70%);
  color: #b8ffd9;
  box-shadow: 0 0 44px rgba(61, 252, 155, .16);
}
.is-live .eyebrow__bolt { background: var(--mint); box-shadow: 0 0 18px rgba(61, 252, 155, .8); }
.is-live .sep { animation: none; visibility: visible; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .mon--mewtwo { left: -12%; top: 2%; width: clamp(280px, 40vw, 520px); }
  .mon--pika { right: 1%; top: 3%; }
  .mon--squirtle { right: 3%; bottom: 4%; }
}

@media (max-width: 860px) {
  .hero { padding-bottom: clamp(40px, 8vh, 80px); }
  .content { gap: clamp(16px, 2.6vh, 24px); }

  /* Push the crew to the edges so the text owns the middle. */
  .mon--mewtwo { width: 58vw; left: -24vw; top: -4%; opacity: .9; }
  .mon--pika { width: 30vw; right: -5vw; top: 2%; }
  .mon--squirtle { width: 27vw; right: -5vw; bottom: 0; z-index: 1; opacity: .95; }
  .mon img { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px var(--glow)); }

  .notify__fields { grid-template-columns: 1fr 1fr; }
  .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 600px) {
  .title { font-size: clamp(2.35rem, 11.5vw, 3.4rem); letter-spacing: -.015em; }
  .lede { font-size: 15px; max-width: 26rem; }
  .eyebrow { font-size: 10.5px; letter-spacing: .14em; padding: 7px 14px 7px 8px; gap: 8px; }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 440px;
    gap: 10px;
    transform: none;
  }
  .sep { display: none; }
  .unit { min-width: 0; padding: 16px 10px 14px; border-radius: 18px; }
  .unit__digits { font-size: clamp(2.3rem, 12vw, 3rem); }
  .unit__label { font-size: 10px; letter-spacing: .2em; }

  .notify__fields { grid-template-columns: 1fr; }
  .notify__panel { padding: 8px; border-radius: 20px; }

  /* On phones the characters go behind the copy, slightly dimmed, so the
     text always wins. They still float and glow. */
  .mon--mewtwo { width: 66vw; left: -30vw; top: -2%; opacity: .7; z-index: 1; }
  .mon--pika { width: 36vw; right: -9vw; top: 1%; opacity: .95; z-index: 1; }
  .mon--squirtle { width: 36vw; left: -9vw; right: auto; bottom: -1%; opacity: .95; z-index: 1; }
  .mon--squirtle img { transform: scaleX(-1); }

  .ghost { font-size: 62vw; }
  .orbit { width: 190vw; }
  .ticker__group { gap: 28px; padding-right: 28px; font-size: 10.5px; }
  .foot { justify-content: center; text-align: center; font-size: 12px; }
}

@media (max-width: 380px) {
  .title { font-size: 2.15rem; }
}

/* Height-aware rhythm: common laptops should fit header → footer in one screen. */
@media (min-width: 861px) and (max-height: 980px) {
  .hero { padding-top: 24px; padding-bottom: 34px; }
  .content { gap: 16px; }
  .title { font-size: clamp(2.2rem, 7vw, 6.2rem); }
  .lede { font-size: clamp(1rem, 1.3vw, 1.08rem); }
  .unit { padding: 16px 18px 14px; }
  .unit__digits { font-size: clamp(2rem, 5.2vw, 3.8rem); }
}
@media (min-width: 861px) and (max-height: 800px) {
  .hero { padding-top: 16px; padding-bottom: 24px; }
  .content { gap: 12px; }
  .title { font-size: clamp(2rem, 6vw, 5.3rem); }
  .unit { padding: 12px 16px 10px; border-radius: 18px; }
  .unit__digits { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
  .ticker { padding: 10px 0; }
  .foot { padding-top: 12px; padding-bottom: 12px; }
}

/* Touch devices: no pointer spotlight, softer glass. */
@media (hover: none) {
  .bg__spotlight { opacity: .7; }
  .btn:hover { transform: none; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .title__row, .mon__enter { opacity: 1; transform: none; filter: none; }
  .title, .countdown, .mon, .orbit, .ghost, .bg__aurora { transform: none !important; }
  .orbit__ring, .orbit__dot, .ticker__track { animation: none !important; }
  .sep { animation: none; visibility: visible; }
}
