:root {
  --bg-deep: #121714;
  --bg: #1a1f1c;
  --bg-elevated: #222824;
  --bg-card: #2a302c;
  --ink: #f2efe8;
  --ink-muted: rgba(242, 239, 232, 0.62);
  --ink-soft: rgba(242, 239, 232, 0.42);
  --line: rgba(196, 165, 116, 0.18);
  --champagne: #c4a574;
  --champagne-soft: rgba(196, 165, 116, 0.35);
  --moss: #5a6b52;
  --radius: 16px;
  --radius-sm: 12px;
  --space: 20px;
  --max: 430px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.app {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(196, 165, 116, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 40%, rgba(90, 107, 82, 0.08), transparent 50%),
    var(--bg);
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
  overflow-x: hidden;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(40px + var(--safe-t))
    calc(28px + var(--safe-r))
    calc(40px + var(--safe-b))
    calc(28px + var(--safe-l));
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(196, 165, 116, 0.14), transparent 60%),
    linear-gradient(180deg, #1a1f1c 0%, #121714 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover__inner {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.cover__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
}

.cover__brand {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--champagne);
  text-indent: 0.28em;
  margin-bottom: 20px;
  font-weight: 500;
}

.cover__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin-bottom: 14px;
}

.cover__subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.cover__line {
  width: 40px;
  height: 1px;
  margin: 0 auto 48px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.cover__hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  pointer-events: none;
}

.cover__hint-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.cover__hint-chevron {
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--champagne-soft);
  border-bottom: 1px solid var(--champagne-soft);
  transform: rotate(45deg);
  animation: hint-bounce 1.8s var(--ease) infinite;
  opacity: 0.75;
}

@keyframes hint-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: 0.9;
  }
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 32px;
  border: 1px solid var(--champagne-soft);
  border-radius: 999px;
  color: var(--champagne);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  font-size: 15px;
  background: rgba(196, 165, 116, 0.06);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  text-align: center;
}

.btn-enter:active {
  transform: scale(0.97);
  background: rgba(196, 165, 116, 0.14);
}

.main {
  padding-bottom: calc(48px + var(--safe-b));
}

.main.is-locked {
  visibility: hidden;
}

.section {
  padding: 40px var(--space) 8px;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--champagne);
  margin-bottom: 14px;
}

.section__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.7;
}

.section__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section__desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.overview-card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.12), transparent 70%);
  pointer-events: none;
}

.overview-card__honor {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.overview-card__project {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.meta-grid {
  display: grid;
  gap: 14px;
}

.meta-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  font-size: 14px;
  align-items: baseline;
}

.meta-item__label {
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.meta-item__value {
  color: var(--ink);
  word-break: break-word;
}

.checklist-grid {
  display: grid;
  gap: 12px;
}

.check-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(42, 48, 44, 0.92), rgba(34, 40, 36, 0.88));
}

.check-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--champagne-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 165, 116, 0.05);
  flex-shrink: 0;
}

.check-card__icon svg {
  width: 26px;
  height: 26px;
}

.check-card__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.check-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.spaces-track-wrap {
  margin: 0 calc(-1 * var(--space));
  padding: 0 var(--space);
  overflow: hidden;
}

.spaces-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px var(--space) 12px;
  margin: 0 calc(-1 * var(--space));
  scrollbar-width: none;
}

.spaces-track::-webkit-scrollbar {
  display: none;
}

.space-card {
  flex: 0 0 72%;
  max-width: 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.space-card__visual {
  height: 88px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3630, #1f2421);
}

.space-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(196, 165, 116, 0.08) 100%);
}

.space-card--moss .space-card__visual {
  background: linear-gradient(135deg, #2a3028, #1a1e19);
}

.space-card--moss .space-card__visual::before {
  background: linear-gradient(120deg, transparent 40%, rgba(90, 107, 82, 0.18) 100%);
}

.space-card__icon {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

.space-card__name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.space-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.spaces-hint {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.scene-feedback {
  min-height: 0;
  margin: -8px 0 14px;
  font-size: 13px;
  color: var(--champagne);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.scene-feedback.is-show {
  opacity: 1;
  transform: none;
}

.scenes-list {
  display: grid;
  gap: 12px;
}

.scene-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(42, 48, 44, 0.72);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.scene-card:active {
  transform: scale(0.985);
}

.scene-card.is-active {
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(196, 165, 116, 0.1);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.scene-card.is-active .scene-card__index {
  background: rgba(196, 165, 116, 0.16);
  border-color: rgba(196, 165, 116, 0.55);
}

.scene-card__index {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--champagne-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--champagne);
  letter-spacing: 0.04em;
  background: rgba(196, 165, 116, 0.05);
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.scene-card__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.scene-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.closing-block {
  text-align: center;
  padding: 8px 8px 0;
  position: relative;
}

.closing-block.is-ceremony {
  animation: ceremony-pulse 1.1s var(--ease);
}

@keyframes ceremony-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.closing-quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.closing-brand {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--champagne);
  margin-bottom: 6px;
}

.closing-team {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b89564, #c4a574 45%, #a88455);
  color: #1a1f1c;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(196, 165, 116, 0.18);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: center;
}

.btn-confirm:active {
  transform: scale(0.97);
}

.btn-confirm.is-done {
  background: transparent;
  color: var(--champagne);
  border: 1px solid var(--champagne-soft);
  box-shadow: none;
  font-weight: 500;
}

.confirm-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.confirm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(34, 40, 36, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirm-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ceremony-glow {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 70%, rgba(196, 165, 116, 0.22), transparent 70%);
}

.ceremony-glow.is-show {
  animation: glow-fade 1.1s var(--ease) forwards;
}

@keyframes glow-fade {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.footer-note {
  margin-top: 36px;
  padding: 0 var(--space);
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cover,
  .btn-enter,
  .btn-confirm,
  .confirm-toast,
  .reveal,
  .scene-card,
  .scene-feedback,
  .ceremony-glow,
  .closing-block {
    transition: none !important;
    animation: none !important;
  }

  .cover__hint-chevron { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cover.is-hidden { display: none; }
}

@media (max-width: 340px) {
  .cover__title { font-size: 24px; }
  .space-card { flex-basis: 78%; }
  .meta-item { grid-template-columns: 56px 1fr; }
  .check-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
}
