:root {
  --bg: #05060a;
  --panel: rgba(8, 9, 15, 0.86);
  --panel-strong: rgba(13, 12, 18, 0.96);
  --gold: #f5c55b;
  --gold-bright: #fff2b8;
  --gold-deep: #9b5b15;
  --ink: #f9efd2;
  --muted: #b9a47e;
  --purple: #6f45ff;
  --line: rgba(245, 197, 91, 0.38);
  --danger: #ff5f79;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 197, 91, 0.16), transparent 27rem),
    radial-gradient(circle at 82% 32%, rgba(111, 69, 255, 0.16), transparent 25rem),
    linear-gradient(180deg, #090a10 0%, #030305 52%, #080607 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  appearance: none;
  -webkit-appearance: none;
}

img,
svg {
  max-width: 100%;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 calc(56px + env(safe-area-inset-bottom, 0px));
}

.hero {
  display: grid;
  gap: 18px;
}

.hero-frame,
.clock-panel,
.presale-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 224, 139, 0.11), rgba(7, 8, 14, 0.94) 18%, rgba(12, 9, 11, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 242, 184, 0.08) inset,
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(168, 105, 30, 0.12);
}

.hero-frame {
  overflow: hidden;
  border-radius: 8px;
}

.hero-frame::before,
.hero-frame::after,
.presale-card::before,
.presale-card::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(245, 197, 91, 0.36));
}

.hero-frame::before,
.presale-card::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.hero-frame::after,
.presale-card::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 2px 2px 0;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1536 / 512;
  object-fit: cover;
}

.countdown-stage {
  display: grid;
  min-height: 196px;
}

.clock-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 380px) minmax(238px, 320px);
  align-items: center;
  gap: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  border-radius: 8px;
  min-height: 196px;
  padding: 14px;
}

.clock-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 226, 145, 0.42);
  background:
    linear-gradient(90deg, transparent, rgba(255, 242, 184, 0.14), transparent),
    repeating-linear-gradient(90deg, rgba(245, 197, 91, 0.18) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.clock-copy {
  position: relative;
  z-index: 2;
  padding: 18px clamp(10px, 2.4vw, 28px);
}

.eyebrow,
.stage-strip span,
.field span,
.progress-copy span {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.timer {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 12px);
  margin-top: 10px;
  font-family: Cinzel, Georgia, serif;
}

.timer span {
  display: grid;
  justify-items: center;
  min-width: clamp(78px, 9.2vw, 118px);
  padding: 13px 8px 11px;
  border: 1px solid rgba(255, 226, 145, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 242, 184, 0.14), rgba(167, 93, 14, 0.12)),
    rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 24px rgba(245, 197, 91, 0.13) inset;
}

.timer strong {
  font-size: clamp(1.85rem, 5.2vw, 4.15rem);
  line-height: 0.92;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(245, 197, 91, 0.44);
}

.timer em {
  margin-top: 7px;
  font-family: Inter, sans-serif;
  font-style: normal;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.timer i {
  color: var(--gold);
  font-style: normal;
  font-size: clamp(1.35rem, 3.4vw, 3rem);
}

.signature-mark {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: end;
  width: min(78%, 270px);
  margin-left: 120px;
  margin-right: -26px;
  overflow: hidden;
  transform: translateX(72px) rotate(-20deg);
  opacity: 0.96;
}

.signature-mark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.signature-stroke {
  fill: none;
  stroke: rgba(1, 1, 2, 0.94);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 236, 168, 0.1));
}

.signature-main {
  stroke-width: 4.2;
}

.signature-underline {
  stroke-width: 2.1;
  opacity: 0.82;
}

.signature-flick {
  stroke-width: 2;
  opacity: 0.9;
}

.character-card {
  position: relative;
  z-index: 3;
  width: 100%;
  height: min(168px, 24vw);
  min-height: 154px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 91, 0.5);
  background: rgba(0, 0, 0, 0.38);
  filter: drop-shadow(0 0 22px rgba(245, 197, 91, 0.24));
}

.character-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.presale-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 32px);
  border-radius: 8px;
  overflow: hidden;
}

.presale-card > * {
  position: relative;
  z-index: 2;
}

.presale-card::before,
.presale-card::after {
  z-index: 1;
}

.stage-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245, 197, 91, 0.22);
}

.stage-strip strong {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--gold-bright);
}

.stage-strip em {
  margin-left: auto;
  border: 1px solid rgba(245, 197, 91, 0.55);
  color: var(--gold-bright);
  padding: 8px 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-copy {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.progress-copy div {
  display: grid;
  gap: 6px;
}

.progress-copy strong {
  font-size: clamp(1rem, 2.3vw, 1.34rem);
  color: var(--ink);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-label i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3dff7a;
  box-shadow: 0 0 0 rgba(61, 255, 122, 0.42);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(61, 255, 122, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(61, 255, 122, 0);
  }
}

.progress-bar {
  height: 16px;
  padding: 3px;
  margin: 18px 0 24px;
  border: 1px solid rgba(245, 197, 91, 0.38);
  background: rgba(0, 0, 0, 0.38);
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 18px rgba(245, 197, 91, 0.32);
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field input {
  width: 100%;
  height: 54px;
  border-radius: 0;
  border: 1px solid rgba(245, 197, 91, 0.42);
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold-bright);
  padding: 0 14px;
  outline: none;
  font-weight: 900;
  font-size: 16px;
}

.field input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 197, 91, 0.16);
}

.quote-row,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-row {
  justify-content: space-between;
  margin: 14px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.quote-row span:last-child {
  color: var(--gold-bright);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

button {
  min-height: 54px;
  border: 1px solid rgba(245, 197, 91, 0.48);
  color: #100a02;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 44%, #b66e19);
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(116, 64, 13, 0.28);
}

button:hover:not(:disabled) {
  filter: brightness(1.08);
}

button:disabled {
  cursor: not-allowed;
  color: rgba(249, 239, 210, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status.is-error {
  color: var(--danger);
}

.status.is-ok {
  color: var(--gold-bright);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
  gap: 22px;
  margin-top: 8px;
}

.about-image-frame,
.about-copy {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 224, 139, 0.1), rgba(7, 8, 14, 0.94) 22%, rgba(12, 9, 11, 0.97));
  box-shadow:
    0 0 0 1px rgba(255, 242, 184, 0.07) inset,
    0 24px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.about-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.about-copy::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 197, 91, 0.24);
  pointer-events: none;
}

.about-copy > * {
  position: relative;
  z-index: 2;
}

.about-copy h2 {
  margin: 10px 0 18px;
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(245, 197, 91, 0.24);
}

.about-copy p {
  margin: 0 0 16px;
  color: rgba(249, 239, 210, 0.84);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.75;
  font-weight: 650;
}

.about-copy .about-statement {
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 197, 91, 0.28);
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.social-section,
.logo-marquee-section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 224, 139, 0.09), rgba(7, 8, 14, 0.95) 24%, rgba(12, 9, 11, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 242, 184, 0.07) inset,
    0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.social-section {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 54px) 18px;
  text-align: center;
}

.social-section h2 {
  margin: 0;
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.x-link {
  display: grid;
  place-items: center;
  width: clamp(82px, 10vw, 118px);
  aspect-ratio: 1;
  margin-top: 4px;
  border: 1px solid rgba(245, 197, 91, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 242, 184, 0.1), rgba(0, 0, 0, 0.42)),
    #050505;
  box-shadow:
    0 0 0 1px rgba(255, 242, 184, 0.09) inset,
    0 18px 42px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease;
}

.x-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 242, 184, 0.78);
}

.x-link svg {
  width: 54%;
  fill: #fff;
}

.logo-marquee-section {
  padding: 18px 0;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: logoSlide 28s linear infinite;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  justify-content: center;
  padding: 18px 26px;
  border: 1px solid rgba(245, 197, 91, 0.26);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.partner-logo i {
  display: inline-block;
  width: 28px;
  height: 28px;
}

.pump-logo i {
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ff75, #44d06f);
  transform: rotate(-18deg);
}

.dex-logo i {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0b101b 0 34%, transparent 35%),
    conic-gradient(from 30deg, #37d5ff, #7c5cff, #37d5ff);
}

.cmc-logo i {
  border: 3px solid #3861fb;
  border-top-color: transparent;
  border-radius: 50%;
}

.raydium-logo i {
  border-radius: 50%;
  background: linear-gradient(135deg, #38f8ff, #7b61ff 48%, #c45cff);
  box-shadow: 0 0 14px rgba(56, 248, 255, 0.24);
}

@keyframes logoSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }

  .hero-image {
    min-height: 210px;
  }

  .clock-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .signature-mark {
    width: min(286px, 74%);
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
    transform: rotate(-14deg);
  }

  .character-card {
    width: min(360px, 100%);
    height: 210px;
    justify-self: center;
  }

  .progress-copy,
  .purchase-grid,
  .actions,
  .about-section {
    grid-template-columns: 1fr;
  }

  .about-image-frame img {
    min-height: 360px;
  }

  .partner-logo {
    min-width: 220px;
  }

  .quote-row,
  .stage-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-strip em {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 16px);
  }

  .hero {
    gap: 14px;
  }

  .hero-image {
    min-height: 178px;
    object-position: center;
  }

  .clock-panel {
    padding: 10px;
  }

  .clock-copy {
    padding: 14px 8px 8px;
  }

  .timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .timer i {
    display: none;
  }

  .timer span {
    width: 100%;
    min-width: 0;
    padding: 10px 4px 8px;
  }

  .timer strong {
    font-size: clamp(1.65rem, 11vw, 3rem);
  }

  .signature-mark {
    width: min(270px, 82%);
    transform: rotate(-13deg);
  }

  .presale-card,
  .about-copy {
    padding: 20px 16px;
  }

  .about-copy p {
    line-height: 1.65;
  }

  .about-image-frame img {
    min-height: 300px;
  }

  .social-section {
    padding: 30px 14px;
  }

  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 520px) {
  .timer em {
    font-size: 0.58rem;
  }

  .eyebrow,
  .stage-strip span,
  .field span,
  .progress-copy span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .quote-row {
    font-size: 0.9rem;
  }

  .x-link {
    width: 86px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .hero-image {
    min-height: 156px;
  }

  .timer {
    gap: 4px;
  }

  .timer strong {
    font-size: clamp(1.4rem, 10vw, 2.35rem);
  }

  .timer em {
    font-size: 0.46rem;
  }

  .character-card {
    height: 188px;
    min-height: 188px;
  }

  .stage-strip strong,
  .progress-copy strong {
    overflow-wrap: anywhere;
  }

  .actions {
    gap: 10px;
  }

  button {
    min-height: 52px;
    font-size: 0.86rem;
  }

  .partner-logo {
    min-width: 190px;
    padding: 15px 18px;
  }
}
