:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  background: #1a0505;
  color: #fff0d4;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M6 6h12v12H6zm18 0h12v12H24zm18 0h12v12H42zM6 24h12v12H6zm18 0h12v12H24zm18 0h12v12H42zM6 42h12v12H6zm18 0h12v12H24zm18 0h12v12H42z' fill='rgba(212%2C 175%2C 55%2C 0.025)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 16%, rgba(212, 60, 60, 0.35), transparent 24rem),
    radial-gradient(circle at 82% 24%, rgba(212, 175, 55, 0.18), transparent 22rem),
    linear-gradient(160deg, #140303 0%, #240a0a 52%, #1a0805 100%);
}

/* ===== Unlock Overlay ===== */
.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M6 6h12v12H6zm18 0h12v12H24zm18 0h12v12H42zM6 24h12v12H6zm18 0h12v12H24zm18 0h12v12H42zM6 42h12v12H6zm18 0h12v12H24zm18 0h12v12H42z' fill='rgba(212%2C 175%2C 55%2C 0.035)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 50%, rgba(212, 60, 60, 0.2), transparent 60%),
    linear-gradient(160deg, #120202 0%, #1f0808 50%, #140503 100%);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0, 1), visibility 0.9s;
}

.unlock-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.unlock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  cursor: pointer;
  touch-action: none;
}

.unlock-ring {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}

.unlock-ring-bg {
  fill: none;
  stroke: rgba(212, 175, 55, 0.18);
  stroke-width: 5;
}

.unlock-ring-progress {
  fill: none;
  stroke: #d4af37;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  transition: stroke-dashoffset 0.05s linear;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.unlock-hint {
  margin: 0;
  color: #d4af37;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.28em;
  animation: hintPulse 2.4s ease-in-out infinite;
}

.unlock-overlay.fade-out .unlock-hint {
  animation: none;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* ===== Main Page ===== */
.page {
  min-height: 100vh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(310px, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page--locked {
  opacity: 0;
  pointer-events: none;
}

.page--reveal {
  animation: pageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageReveal {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); filter: blur(8px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.scene-panel {
  position: relative;
  min-height: min(78vh, 680px);
}

#badge-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.copy {
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.page--reveal .copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 14px;
  color: #d4af37;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: #fff5e0;
  text-shadow: 0 2px 24px rgba(157, 41, 51, 0.35);
}

.lead {
  margin: 24px 0 32px;
  color: #e8d5b5;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.85;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats div {
  min-height: 92px;
  padding: 16px 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(60, 10, 10, 0.45);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}

.stats div:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(80, 15, 15, 0.55);
}

.page--reveal .stats div {
  opacity: 1;
  transform: translateY(0);
}

.page--reveal .stats div:nth-child(1) { transition-delay: 0.5s; }
.page--reveal .stats div:nth-child(2) { transition-delay: 0.65s; }
.page--reveal .stats div:nth-child(3) { transition-delay: 0.8s; }

.stats span {
  display: block;
  color: #f2c15e;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 900;
}

.stats small {
  display: block;
  margin-top: 6px;
  color: #c9b896;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .scene-panel { min-height: 52vh; }
  .copy { text-align: center; margin: 0 auto; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .unlock-ring { width: 150px; height: 150px; }
}
