@font-face {
  font-family: 'Vinyl';
  src: url('编号10.ttf') format('truetype');
  font-display: swap;
}

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

html {
  height: 100%;
  height: -webkit-fill-available;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  background: #fff;
  font-family: 'Vinyl', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
  background: #fff;
}

#canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1080px;
  height: 1920px;
  transform-origin: center center;
  overflow: hidden;
  background: #fff;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
}

.screen.is-active { display: block; }

.layer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  pointer-events: none;
  user-select: none;
}

/* ── 首页 Enter ── */
.enter-wrap {
  position: absolute;
  top: 1566px;
  left: 0;
  width: 1080px;
  display: flex;
  justify-content: center;
  z-index: 5;
}

#enter-btn {
  width: 496px;
  height: 141px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  animation: breathe 2.4s ease-in-out infinite;
}

#enter-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.05); }
}

/* ── 首页超链接 ── */
.social-nav a {
  position: absolute;
  z-index: 10;
  font-family: 'Vinyl', sans-serif;
  font-size: 28px;
  color: #333;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.social-nav a:active { opacity: 0.6; }

/* ── 测试界面（参照编号4） ── */
.quiz-stem {
  position: absolute;
  top: 605px;
  left: 204px;
  width: 820px;
  font-family: 'Vinyl', sans-serif;
  font-size: 45px;
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: #111;
  z-index: 3;
}

.quiz-opts {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.opt-btn {
  position: absolute;
  left: 91px;
  width: 880px;
  padding: 8px 14px;
  font-family: 'Vinyl', sans-serif;
  font-size: 40px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #111;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.opt-btn.is-picked {
  background: #111;
  color: #fff;
}

/* 导航按钮：中轴对称，进度条上方 */
.nav-row {
  position: absolute;
  top: 1580px;
  left: 0;
  width: 1080px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 140px;
  z-index: 5;
}

.nav-btn {
  min-width: 220px;
  height: 76px;
  padding: 0 32px;
  font-family: 'Vinyl', sans-serif;
  font-size: 45px;
  color: #fff;
  background: #111;
  border: none;
  cursor: pointer;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 进度条：两个空心圆中间 */
.progress-wrap {
  position: absolute;
  top: 1696px;
  left: 115px;
  width: 850px;
  height: 20px;
  z-index: 5;
}

.progress-track {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #111;
}

.progress-dots {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
}

.dot.is-current { background: #3b82f6; }

/* ── 转场页 ── */
.phone-screen {
  position: absolute;
  top: 439px;
  left: 288px;
  width: 504px;
  height: 673px;
  z-index: 3;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.phone-screen img.anim-in  { animation: fadeIn 1.2s ease forwards; }
.phone-screen img.anim-out { animation: fadeOut 1.2s ease forwards; }

.phone-caption {
  position: absolute;
  top: 1641px;
  left: 266px;
  font-family: 'Vinyl', sans-serif;
  font-size: 34px;
  color: #333;
  white-space: nowrap;
  opacity: 0;
  z-index: 4;
}

.phone-caption.anim-in  { animation: fadeIn 1.2s ease forwards; }
.phone-caption.anim-out { animation: fadeOut 1.2s ease forwards; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── 结果页 ── */
.result-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000;
}

.result-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.result-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  min-height: 100%;
  transition: min-height 0.45s ease, padding 0.45s ease;
}

.result-panel.is-expanded .result-hero {
  flex: none;
  min-height: auto;
  padding: 100px 60px 28px;
  justify-content: flex-start;
}

.result-panel.is-expanded .pull-trigger {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.result-scene {
  font-family: 'Vinyl', sans-serif;
  font-size: 42px;
  font-weight: normal;
  color: #fff;
  text-align: center;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  max-width: 900px;
}

.pull-trigger {
  margin-top: 52px;
  background: none;
  border: none;
  cursor: pointer;
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.pull-arrow {
  font-size: 30px;
  color: #fff;
  display: block;
  transform: rotate(180deg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.result-detail {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0 48px 220px;
}

.result-panel.is-expanded .result-detail {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.result-mask-box {
  width: 100%;
  max-width: 920px;
  padding: 48px 40px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 32px;
  margin-bottom: 40px;
}

.result-body {
  font-family: 'Vinyl', sans-serif;
  font-size: 38px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
}

.result-tagline {
  font-family: 'Vinyl', sans-serif;
  font-size: 30px;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-home {
  min-width: 360px;
  height: 72px;
  font-family: 'Vinyl', sans-serif;
  font-size: 32px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #fff;
  border-radius: 8px;
  cursor: pointer;
}

.btn-sound {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 20;
  padding: 16px 28px;
  font-family: 'Vinyl', sans-serif;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  cursor: pointer;
}
