:root {
  --pending-black: #0a0a0a;
  --pending-black-deep: #050505;
  --pending-orange: #f05a22;
  --pending-white: #f7f4f0;
  --pending-font: "Inter", sans-serif;
  --pending-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background-color: #03060c;
}

html,
body {
  min-height: 100%;
  overscroll-behavior: none;
}

body.pending {
  position: relative;
  overflow: hidden;
  color: var(--pending-white);
  font-family: var(--pending-font);
  background-color: #03060c;
  background-image:
    radial-gradient(ellipse 85% 65% at 50% 42%, #101826 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 78% 78%, rgba(240, 90, 34, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 18% 22%, rgba(90, 130, 190, 0.08) 0%, transparent 48%),
    linear-gradient(165deg, #03060c 0%, var(--pending-black-deep) 42%, #0a0e16 100%);
  background-attachment: fixed;
}

.pending__field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.pending__vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 28%, rgba(3, 6, 12, 0.62) 100%),
    linear-gradient(to bottom, transparent 68%, rgba(3, 6, 12, 0.8) 100%);
}

.pending-index {
  position: fixed;
  z-index: 3;
  top: 50%;
  left: clamp(1.25rem, 3vw, 2.5rem);
  width: min(15rem, 34vw);
  transform: translateY(-50%);
  animation: pending-fade-up 1s var(--pending-ease) 0.55s both;
}

.pending-index__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.pending-index__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pending-index__trigger {
  padding: 0.15rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: left;
  color: rgba(247, 244, 240, 0.28);
  cursor: pointer;
  transition: color 0.7s var(--pending-ease);
  -webkit-tap-highlight-color: transparent;
}

.pending-index__trigger:hover,
.pending-index__trigger:focus-visible {
  color: rgba(247, 244, 240, 0.55);
  outline: none;
}

.pending-index__item--open .pending-index__trigger {
  color: rgba(247, 244, 240, 0.95);
}

.pending-index__item--open .pending-index__trigger:hover,
.pending-index__item--open .pending-index__trigger:focus-visible {
  color: var(--pending-white);
}

.pending-index__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.7s var(--pending-ease),
    opacity 0.65s var(--pending-ease);
}

.pending-index__item--open .pending-index__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.pending-index__panel[hidden] {
  display: grid;
}

.pending-index__copy {
  overflow: hidden;
  max-width: 18ch;
  margin-top: 0.35rem;
  font-size: 0.71rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(247, 244, 240, 0.55);
  transform: translateY(-4px);
  transition:
    transform 0.7s var(--pending-ease),
    color 0.7s var(--pending-ease);
}

.pending-index__item--open .pending-index__copy {
  transform: translateY(0);
  color: rgba(247, 244, 240, 0.62);
}

.pending__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pending__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.pending__brand {
  position: relative;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  animation: pending-brand-in 1.1s var(--pending-ease) both;
}

.pending__logo {
  display: block;
  width: min(36vw, 210px);
  height: auto;
}

.pending-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--pending-font);
  font-size: clamp(0.95rem, 2.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--pending-white);
  animation: pending-fade-up 0.9s var(--pending-ease) 0.4s both;
}

.pending-countdown__time {
  color: inherit;
}

.pending-countdown__egg {
  max-width: 28ch;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pending-orange);
}

.pending-countdown--tampered .pending-countdown__egg {
  color: var(--pending-orange);
}

@media (max-width: 720px) {
  body.pending {
    overflow: hidden;
  }

  .pending__stage {
    justify-content: flex-start;
    padding-top: clamp(4.5rem, 14vh, 7rem);
    padding-bottom: calc(42vh + env(safe-area-inset-bottom, 0px));
  }

  .pending__brand {
    margin-bottom: 1.25rem;
  }

  .pending__logo {
    width: min(42vw, 168px);
  }

  .pending-countdown {
    font-size: clamp(0.9rem, 4.2vw, 1.2rem);
  }

  .pending-index {
    top: auto;
    bottom: 0;
    left: clamp(1.25rem, 5vw, 1.75rem);
    right: auto;
    max-height: none;
    overflow: visible;
    transform: none;
    width: min(88vw, 22rem);
    padding: 0.75rem 0 calc(0.9rem + 20px + env(safe-area-inset-bottom, 0px));
    background: none;
  }

  .pending-index__list {
    gap: 0.15rem;
    align-items: flex-start;
  }

  .pending-index__item {
    align-items: flex-start;
    width: 100%;
  }

  .pending-index__trigger {
    min-height: 2rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-align: left;
  }

  .pending-index__copy {
    max-width: 34ch;
    font-size: 0.85rem;
    text-align: left;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .pending__stage {
    padding-top: clamp(3rem, 10vh, 4.5rem);
  }

  .pending__logo {
    width: min(36vw, 140px);
  }

  .pending-index__trigger {
    min-height: 1.75rem;
    padding: 0.28rem 0;
    font-size: 0.8125rem;
  }

  .pending-index__copy {
    font-size: 0.775rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pending__brand,
  .pending-countdown,
  .pending-index {
    animation: none !important;
  }

  .pending-index__panel,
  .pending-index__copy,
  .pending-index__trigger {
    transition: none;
  }
}

@keyframes pending-brand-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes pending-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
