:root {
  --ink: #f8f1e3;
  --muted: #b7a894;
  --gold: #e4c36a;
  --gold-deep: #a97820;
  --gold-bright: #fff3c9;
  --black: #070605;
  --brown: #1c1408;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(280px 220px at 50% 180px, rgba(228, 195, 106, 0.22), transparent 68%),
    radial-gradient(180px 120px at 50% 420px, rgba(169, 120, 32, 0.12), transparent 70%),
    var(--black);
}

.stage {
  width: min(430px, 100%);
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    18px
    max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.medal {
  width: min(188px, 50vw);
  margin: 0;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #fff6d6,
    #e4c36a 18%,
    #8d6418 38%,
    #fff1c4 52%,
    #c9962e 74%,
    #fff6d6
  );
  box-shadow:
    0 0 0 7px rgba(7, 6, 5, 0.72),
    0 0 0 8px rgba(228, 195, 106, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(228, 195, 106, 0.28);
  animation: medalGlow 3.4s ease-in-out infinite;
}
.medal img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

h1 {
  margin: 16px 0 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(26px, 7.4vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff8e6 0%, #f0d78c 42%, #c4922a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
h1 span {
  font-size: 0.62em;
  letter-spacing: 0.22em;
  padding: 0 0.12em;
}

.motto {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.motto i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(228, 195, 106, 0.8);
}

.deck {
  margin: 12px 0 0;
  max-width: 32ch;
  color: #f4eadc;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1c4 0%, #e4c36a 42%, #b8862a 100%);
  color: var(--brown);
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 0 rgba(80, 48, 8, 0.35),
    0 10px 24px rgba(169, 120, 32, 0.38);
}
.cta svg,
.cta span { position: relative; z-index: 1; }
.cta svg { width: 18px; height: 18px; fill: currentColor; }
.cta:hover { filter: brightness(1.05); }
.cta-join { animation: ctaGlow 2.4s ease-in-out infinite; }
.cta-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, 0.62) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: ctaShine 2.8s ease-in-out infinite;
}
.cta-join svg { animation: ctaNudge 1.6s ease-in-out infinite; }

@keyframes medalGlow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(7, 6, 5, 0.72), 0 0 0 8px rgba(228, 195, 106, 0.28), 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 36px rgba(228, 195, 106, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(7, 6, 5, 0.72), 0 0 0 8px rgba(228, 195, 106, 0.5), 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 56px rgba(228, 195, 106, 0.42); }
}
@keyframes ctaGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      inset 0 -2px 0 rgba(80, 48, 8, 0.35),
      0 8px 18px rgba(169, 120, 32, 0.32);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      inset 0 -2px 0 rgba(80, 48, 8, 0.35),
      0 0 0 4px rgba(228, 195, 106, 0.16),
      0 12px 28px rgba(228, 195, 106, 0.48);
  }
}
@keyframes ctaShine {
  0%, 42% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes ctaNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.cta:focus-visible,
.links button:focus-visible,
.links a:focus-visible,
.ads a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.clock {
  width: 100%;
  margin-top: 14px;
  padding: 12px 12px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  border: 1px solid rgba(228, 195, 106, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(228, 195, 106, 0.12), rgba(28, 20, 8, 0.35));
}
.clock p { margin: 0; }
.clock strong {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8e6, #e4c36a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.clock span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.clock .colon {
  padding-top: 2px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 0.9;
}

.market {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  margin-top: 12px;
}
.market-card {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(228, 195, 106, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(228, 195, 106, 0.1), rgba(12, 9, 6, 0.35));
}
.market-kicker {
  margin: 0 0 6px;
  text-align: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.points {
  list-style: none;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 4px;
}
.points li {
  position: relative;
  padding-left: 12px;
  color: #f4eadc;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.foot {
  width: 100%;
  flex-shrink: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(228, 195, 106, 0.2);
  text-align: center;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.links button,
.links a {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.ads {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ads a {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

.sheet {
  width: min(400px, calc(100% - 28px));
  border: 1px solid rgba(228, 195, 106, 0.4);
  border-radius: 16px;
  padding: 22px 18px;
  color: var(--ink);
  background: #120e09;
  text-align: left;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.78); }
.sheet h2 {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.sheet p {
  margin: 0 0 16px;
  color: #f4eadc;
  font-size: 15px;
  line-height: 1.5;
}
.sheet .cta { margin-top: 0; }

@media (max-height: 740px) {
  .medal { width: min(168px, 46vw); }
  h1 { margin-top: 10px; font-size: clamp(22px, 6.6vw, 28px); }
  .motto { margin-top: 8px; }
  .deck { margin-top: 8px; font-size: 14px; }
  .cta { margin-top: 12px; min-height: 48px; font-size: 16px; }
  .clock { margin-top: 10px; padding: 8px 12px; }
  .clock strong { font-size: 38px; }
  .clock .colon { font-size: 32px; }
  .market { margin-top: 8px; }
  .market-card { padding: 8px 10px; }
  .points li { font-size: 12px; }
  .foot { margin-top: 10px; padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .medal,
  .cta-join,
  .cta-join::before,
  .cta-join svg { animation: none; }
}
