:root {
  --bg-1: #06111b;
  --bg-2: #0a1624;
  --panel: rgba(9, 20, 34, 0.72);
  --panel-edge: rgba(255, 255, 255, 0.08);
  --panel-highlight: rgba(255, 255, 255, 0.12);
  --text: #f3f7fb;
  --muted: #96a7bb;
  --gold: #d2a85f;
  --blue: #5eabff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(94, 171, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(210, 168, 95, 0.14), transparent 24%),
    linear-gradient(160deg, var(--bg-1) 0%, #08111b 42%, var(--bg-2) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 11, 20, 0) 0%, rgba(4, 11, 20, 0.2) 65%, rgba(4, 11, 20, 0.52) 100%);
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  pointer-events: none;
}

.countdown-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
}

.scene {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 28px);
  perspective: 1600px;
  transform-style: preserve-3d;
}

.scene__glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.32;
  pointer-events: none;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform 160ms linear;
}

.scene__orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 58%, transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0.45;
}

.scene__orb--blue {
  top: 12%;
  right: 16%;
  transform: translateZ(120px);
}

.scene__orb--gold {
  bottom: 14%;
  left: 12%;
  width: 140px;
  height: 140px;
  transform: translateZ(80px);
}

.scene__glow--blue {
  top: 6%;
  left: 9%;
  background: radial-gradient(circle, rgba(94, 171, 255, 0.82) 0%, rgba(94, 171, 255, 0) 68%);
}

.scene__glow--gold {
  right: 6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(210, 168, 95, 0.72) 0%, rgba(210, 168, 95, 0) 70%);
}

.scene__grid {
  position: absolute;
  inset: auto 0 -16vh 0;
  height: 42vh;
  background:
    linear-gradient(to top, rgba(94, 171, 255, 0.14), transparent 75%),
    repeating-linear-gradient(90deg, rgba(94, 171, 255, 0.14) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(94, 171, 255, 0.14) 0 1px, transparent 1px 80px);
  transform: rotateX(74deg) translateZ(-120px);
  transform-origin: center bottom;
  opacity: 0.5;
  pointer-events: none;
}

.countdown-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 40px) clamp(16px, 3.3vw, 34px);
  border: 1px solid var(--panel-edge);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
  transform: rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg)) translateZ(42px);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.countdown-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.brand-lockup {
  display: inline-grid;
  justify-items: center;
  gap: 14px;
  transform: translateZ(74px);
}

.brand-mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 58%, rgba(6, 18, 30, 0.92) 100%),
    rgba(6, 18, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.34),
    0 0 0 8px rgba(210, 168, 95, 0.06),
    0 0 48px rgba(94, 171, 255, 0.18);
}

.brand-mark-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(210, 168, 95, 0.8), rgba(94, 171, 255, 0.55), rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.14));
}

.countdown-kicker {
  margin: 0;
  color: #f6d79c;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(210, 168, 95, 0.26);
}

h1 {
  margin: 14px auto 0;
  max-width: 900px;
  font-size: clamp(2.2rem, 6.8vw, 5.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.countdown-lead {
  max-width: 720px;
  margin: 18px auto 0;
  color: #c7d4e1;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  line-height: 1.7;
  transform: translateZ(50px);
}

.timer-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
  transform: translateZ(46px);
}

.timer-card {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 12, 22, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.28);
  transform: translateZ(30px);
}

.timer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue), transparent);
  opacity: 0.88;
}

.timer-card strong {
  display: block;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.timer-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown-meta,
.countdown-status {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  transform: translateZ(38px);
}

.countdown-status {
  margin-top: 8px;
}

@media (min-width: 1440px) {
  .countdown-shell {
    width: min(1180px, 100%);
  }

  .timer-board {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .scene__grid {
    height: 34vh;
    inset: auto 0 -10vh 0;
  }

  .countdown-shell {
    padding: 32px 22px;
  }

  .brand-mark-wrap {
    width: 112px;
    height: 112px;
    border-radius: 26px;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
  }

  .timer-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .scene__orb--blue {
    top: 8%;
    right: -4%;
    width: 170px;
    height: 170px;
  }

  .scene__orb--gold {
    left: -2%;
    bottom: 10%;
    width: 110px;
    height: 110px;
  }

  .scene__glow {
    width: 24rem;
    height: 24rem;
  }

  h1 {
    margin-top: 12px;
  }

  .countdown-lead {
    max-width: 32rem;
  }
}

@media (max-width: 560px) {
  .scene {
    padding: 16px;
  }

  .countdown-shell {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .countdown-shell::before {
    border-radius: 23px;
  }

  .timer-board {
    gap: 12px;
    margin-top: 24px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark-wrap {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .countdown-lead {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .timer-card {
    padding: 20px 12px 16px;
    border-radius: 18px;
  }

  .countdown-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.18em;
  }

  .countdown-meta,
  .countdown-status {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .scene {
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  }

  .scene__grid {
    height: 26vh;
    inset: auto 0 -6vh 0;
    opacity: 0.4;
  }

  .countdown-shell {
    border-radius: 20px;
    width: 100%;
  }

  .countdown-shell::before {
    border-radius: 19px;
  }

  .brand-mark-wrap {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .countdown-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.05;
  }

  .countdown-lead {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .timer-board {
    grid-template-columns: 1fr;
  }

  .timer-card {
    padding: 18px 12px 14px;
  }

  .timer-card strong {
    font-size: 2.2rem;
  }

  .timer-card span {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 760px) {
  .scene {
    min-height: 100vh;
    min-height: 100dvh;
    align-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .scene__grid {
    height: 28vh;
    inset: auto 0 -8vh 0;
  }
}
