:root {
  color-scheme: dark;
  --bg: #081011;
  --panel: #101a1b;
  --panel-2: #142325;
  --text: #edf7f4;
  --muted: #91a6a2;
  --line: rgba(206, 238, 228, 0.16);
  --accent: #64e3c2;
  --accent-2: #f0c66e;
  --danger: #ff8770;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(100, 227, 194, 0.12), transparent 34rem),
    linear-gradient(135deg, #081011 0%, #0b1517 48%, #111816 100%);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(8, 16, 17, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(100, 227, 194, 0.12);
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.hero,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 52px;
}

.hero-copy,
.mission-panel,
.section,
.sound-dialog .dialog-shell {
  border: 1px solid var(--line);
  background: rgba(16, 26, 27, 0.78);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.hero-text,
.section-heading p,
.split-section p {
  color: var(--muted);
  max-width: 720px;
}

.hero-actions,
.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip,
.close-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--accent);
  border-color: var(--accent);
  color: #06211c;
  font-weight: 800;
}

.secondary-button,
.ghost-button,
.chip {
  min-height: 40px;
  padding: 9px 14px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 227, 194, 0.66);
}

.mission-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.signal-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.wave-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 128px;
  padding: 20px 0;
}

.wave-strip span {
  display: block;
  height: 44px;
  background: linear-gradient(180deg, var(--accent), rgba(100, 227, 194, 0.1));
}

.wave-strip span:nth-child(2) { height: 82px; background: linear-gradient(180deg, var(--accent-2), rgba(240, 198, 110, 0.1)); }
.wave-strip span:nth-child(3) { height: 58px; }
.wave-strip span:nth-child(4) { height: 112px; }
.wave-strip span:nth-child(5) { height: 72px; background: linear-gradient(180deg, #8db7ff, rgba(141, 183, 255, 0.08)); }
.wave-strip span:nth-child(6) { height: 96px; }

.stats-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stats-grid div,
.identity-card dl div,
.protocol-steps div,
.sound-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.stats-grid div {
  padding: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.section {
  padding: 34px;
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip.active {
  background: rgba(100, 227, 194, 0.15);
  border-color: var(--accent);
}

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

.sound-card {
  padding: 16px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sound-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.card-coreid {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-thumb {
  width: 100%;
  height: 80px;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  border-radius: 2px;
}

.sound-card h3 {
  min-height: 48px;
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 12px;
}

.sound-card button {
  margin-top: auto;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

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

.protocol-steps div {
  padding: 18px;
}

.protocol-steps span {
  color: var(--accent-2);
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.protocol-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wish-form,
.upload-form,
.feedback-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.wide,
.checkbox-label {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

.wish-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.wish-item {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.upload-section {
  position: relative;
  overflow: hidden;
}

.upload-section::after {
  content: "";
  position: absolute;
  inset: auto 34px 34px auto;
  width: 240px;
  height: 240px;
  background:
    linear-gradient(90deg, rgba(100, 227, 194, 0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100, 227, 194, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.26;
  pointer-events: none;
}

.geo-hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 68vh, 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020606;
}

.geo-slider {
  position: absolute;
  inset: 0;
  min-width: 1900px;
  left: 50%;
  transform: translateX(-50%);
}

.geo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1200ms ease, transform 5200ms ease;
}

.geo-slide.active {
  opacity: 1;
  transform: scale(1);
}

.geo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 9, 0.8), rgba(3, 8, 9, 0.28) 44%, rgba(3, 8, 9, 0.72)),
    linear-gradient(0deg, rgba(3, 8, 9, 0.66), transparent 45%);
}

.geo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.08);
}

.geo-slide figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 4vw, 64px);
  bottom: clamp(28px, 8vh, 90px);
  display: grid;
  gap: 8px;
  color: var(--text);
}

.geo-slide figcaption span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.geo-slide figcaption strong {
  font-size: clamp(24px, 4vw, 54px);
  line-height: 1.08;
}

.geo-hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  padding: clamp(86px, 13vh, 156px) 0 0 clamp(18px, 4vw, 64px);
}

.geo-hero-copy h2 {
  font-size: clamp(42px, 7vw, 92px);
  margin-bottom: 16px;
}

.geo-hero-copy p:not(.eyebrow) {
  color: rgba(237, 247, 244, 0.78);
  max-width: 620px;
}

.sound-dialog {
  width: min(1100px, calc(100% - 28px));
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.sound-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.dialog-shell {
  position: relative;
  padding: 26px;
  overflow: auto;
  max-height: 92vh;
}

.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  padding-right: 42px;
}

.sound-visual {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 3px;
  align-items: center;
  min-height: 110px;
  margin: 18px 0;
  border: 1px solid var(--line);
  padding: 14px;
}

.sound-visual span {
  display: block;
  height: var(--bar-height);
  background: linear-gradient(180deg, rgba(100, 227, 194, 0.95), rgba(100, 227, 194, 0.08));
}

#videoPlayer {
  width: 100%;
  max-height: 420px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #000;
}

.identity-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.identity-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.identity-card dl div {
  padding: 10px;
}

.copyright-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.copyright-divider::before,
.copyright-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.copyright-divider span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.copyright-row dt {
  color: var(--accent-2);
  opacity: 0.8;
}

.copyright-row {
  border-color: rgba(240, 198, 110, 0.18) !important;
  background: rgba(240, 198, 110, 0.04) !important;
}

.feedback-area {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.feedback-form {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.report-box {
  margin-top: 18px;
  border: 1px solid rgba(100, 227, 194, 0.42);
  background: rgba(100, 227, 194, 0.1);
  padding: 18px;
}

/* ── Section scroll anchors ──────────────────────────────────────────────── */
#archive, #upload, #geo, #protocol, #wishpool {
  scroll-margin-top: 70px;
}

.upload-section {
  margin-top: 32px;
}

/* ── Video preview notice ────────────────────────────────────────────────── */
.video-preview-notice {
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(100, 227, 194, 0.08);
  text-align: center;
}

.video-preview-notice p { margin: 4px 0; }

.video-preview-notice .scroll-cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .dialog-layout,
  .playing-layout,
  .step4-layout {
    grid-template-columns: 1fr;
  }

  .scale-ends { width: 180px; }
  .step4-guide { display: none; }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-layout {
    padding-right: 0;
  }
}

/* ── Entry Card (T1) ────────────────────────────────────────────────────── */
.entry-card {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -32px 80px rgba(0, 0, 0, 0.6);
}

.entry-card.visible { transform: translateY(0); }

.entry-card-inner {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 26px;
  position: relative;
}

.entry-skip {
  position: absolute;
  top: 22px; right: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.entry-skip:hover { color: var(--text); }

.entry-title {
  margin: 6px 0 18px;
  font-size: 18px;
}

.entry-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.entry-form .chip-question { min-width: 220px; flex: 1; }

.entry-privacy {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 0;
}

.entry-actions { margin-top: 16px; }

/* ── Chip form (fchip system) ────────────────────────────────────────────── */
.chip-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chip-question { display: flex; flex-direction: column; gap: 8px; }
.chip-question.wide { grid-column: 1 / -1; }
.chip-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 100ms ease;
  white-space: nowrap;
}

.fchip:hover {
  border-color: rgba(100, 227, 194, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}

.fchip.selected {
  border-color: var(--accent);
  background: rgba(100, 227, 194, 0.12);
  color: var(--text);
}

/* ── Scale dots ──────────────────────────────────────────────────────────── */
.scale-question { display: flex; flex-direction: column; gap: 8px; }

.scale-dots {
  display: flex;
  gap: 8px;
}

.sdot {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sdot:hover { border-color: rgba(100, 227, 194, 0.4); color: var(--text); }
.sdot.selected {
  border-color: var(--accent);
  background: rgba(100, 227, 194, 0.14);
  color: var(--accent);
}

.scale-val {
  color: var(--accent);
  font-weight: 800;
  margin-left: 6px;
}

/* ── Step progress bar ───────────────────────────────────────────────────── */
.step-progress {
  margin-bottom: 28px;
  padding-right: 42px;
}

.step-bar-track {
  height: 2px;
  background: var(--line);
  margin-bottom: 14px;
  position: relative;
}

.step-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.step-labels {
  display: flex;
  justify-content: space-between;
}

.step-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  transition: color 300ms ease;
  position: relative;
}

.step-label::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin: 0 auto 5px;
  background: var(--bg);
  transition: background 300ms ease;
}

.step-label.active { color: var(--accent); }
.step-label.active::before { background: var(--accent); }
.step-label.done { color: rgba(100, 227, 194, 0.45); }
.step-label.done::before { background: rgba(100, 227, 194, 0.3); }

/* ── Step panels ─────────────────────────────────────────────────────────── */
.step-panel.hidden { display: none; }

.step-header { margin-bottom: 22px; }
.step-header h3 { margin-bottom: 4px; }
.step-sub { color: var(--muted); font-size: 14px; margin: 0; }

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-hint-text { color: var(--muted); font-size: 13px; margin-right: auto; }

/* ── Step 3: Playing state ───────────────────────────────────────────────── */
.playing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 0 32px;
  text-align: center;
}

.playing-title {
  font-size: clamp(22px, 4vw, 40px);
  margin: 0;
}

.sound-visual.playing {
  width: 100%;
  max-width: 480px;
}

.play-timer {
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.play-status-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ── Step 5: T3 section ──────────────────────────────────────────────────── */
.t3-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.t3-header { margin-bottom: 22px; }
.t3-header h3 { margin-bottom: 4px; }

.seed-counter {
  text-align: center;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 0;
}

/* ── Sound card badges ───────────────────────────────────────────────────── */
.real-badge {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(100, 227, 194, 0.4);
  padding: 2px 7px;
  white-space: nowrap;
}

.placeholder-badge {
  color: var(--muted);
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 7px;
  white-space: nowrap;
}

.card-location { color: var(--muted); font-size: 13px; margin: 0; }
.card-coreid { font-size: 11px; color: var(--muted); }

/* ── Copyright rows in identity card ─────────────────────────────────────── */
.copyright-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 !important;
  border: none !important;
  background: none !important;
}

.copyright-divider::before,
.copyright-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.copyright-divider span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.copyright-row { border-color: rgba(240, 198, 110, 0.18) !important; background: rgba(240, 198, 110, 0.04) !important; }
.copyright-row dt { color: var(--accent-2) !important; opacity: 0.8; }

/* ── Waveform animations ─────────────────────────────────────────────────── */
@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(0.55); opacity: 0.6; }
}

@keyframes bar-play {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.2); }
}

.sound-visual span {
  display: block;
  height: var(--bar-height);
  background: linear-gradient(180deg, rgba(100, 227, 194, 0.95), rgba(100, 227, 194, 0.08));
  transform-origin: bottom;
  animation: bar-breathe 2.8s ease-in-out infinite;
}

/* Stagger delays for 28 bars */
.sound-visual span:nth-child(1)  { animation-delay: 0s;      animation-duration: 2.6s; }
.sound-visual span:nth-child(2)  { animation-delay: 0.12s;   animation-duration: 3.1s; }
.sound-visual span:nth-child(3)  { animation-delay: 0.25s;   animation-duration: 2.4s; }
.sound-visual span:nth-child(4)  { animation-delay: 0.08s;   animation-duration: 2.9s; }
.sound-visual span:nth-child(5)  { animation-delay: 0.35s;   animation-duration: 2.7s; }
.sound-visual span:nth-child(6)  { animation-delay: 0.18s;   animation-duration: 3.2s; }
.sound-visual span:nth-child(7)  { animation-delay: 0.42s;   animation-duration: 2.5s; }
.sound-visual span:nth-child(8)  { animation-delay: 0.05s;   animation-duration: 2.8s; }
.sound-visual span:nth-child(9)  { animation-delay: 0.28s;   animation-duration: 3.0s; }
.sound-visual span:nth-child(10) { animation-delay: 0.50s;   animation-duration: 2.3s; }
.sound-visual span:nth-child(11) { animation-delay: 0.14s;   animation-duration: 2.9s; }
.sound-visual span:nth-child(12) { animation-delay: 0.38s;   animation-duration: 3.3s; }
.sound-visual span:nth-child(13) { animation-delay: 0.22s;   animation-duration: 2.6s; }
.sound-visual span:nth-child(14) { animation-delay: 0.55s;   animation-duration: 2.4s; }
.sound-visual span:nth-child(15) { animation-delay: 0.10s;   animation-duration: 3.1s; }
.sound-visual span:nth-child(16) { animation-delay: 0.32s;   animation-duration: 2.7s; }
.sound-visual span:nth-child(17) { animation-delay: 0.45s;   animation-duration: 2.5s; }
.sound-visual span:nth-child(18) { animation-delay: 0.18s;   animation-duration: 3.0s; }
.sound-visual span:nth-child(19) { animation-delay: 0.60s;   animation-duration: 2.8s; }
.sound-visual span:nth-child(20) { animation-delay: 0.25s;   animation-duration: 2.3s; }
.sound-visual span:nth-child(21) { animation-delay: 0.40s;   animation-duration: 3.2s; }
.sound-visual span:nth-child(22) { animation-delay: 0.08s;   animation-duration: 2.6s; }
.sound-visual span:nth-child(23) { animation-delay: 0.52s;   animation-duration: 2.9s; }
.sound-visual span:nth-child(24) { animation-delay: 0.30s;   animation-duration: 2.4s; }
.sound-visual span:nth-child(25) { animation-delay: 0.16s;   animation-duration: 3.1s; }
.sound-visual span:nth-child(26) { animation-delay: 0.48s;   animation-duration: 2.7s; }
.sound-visual span:nth-child(27) { animation-delay: 0.36s;   animation-duration: 2.5s; }
.sound-visual span:nth-child(28) { animation-delay: 0.20s;   animation-duration: 3.0s; }

/* Playing mode: faster, more energetic */
.sound-visual.is-playing span {
  animation-name: bar-play;
  animation-duration: 0.7s !important;
  opacity: 1;
}

.sound-visual.is-playing span:nth-child(odd)  { animation-duration: 0.55s !important; }
.sound-visual.is-playing span:nth-child(3n)   { animation-duration: 0.85s !important; }
.sound-visual.is-playing span:nth-child(5n)   { animation-duration: 0.45s !important; }

/* ── Scale label row ──────────────────────────────────────────────────────── */
.scale-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  width: 230px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

/* ── Step 1 detail-meta ───────────────────────────────────────────────────── */
.detail-meta {
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.meta-key {
  color: var(--muted);
  white-space: nowrap;
  min-width: 56px;
  font-size: 12px;
  padding-top: 2px;
}

.meta-val { color: var(--text); }
.meta-val.muted { color: var(--muted); }

.detail-meta-row .tag-row { flex: 1; }

.use-tag {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid rgba(240, 198, 110, 0.35);
  color: var(--accent-2);
  font-size: 12px;
  margin-right: 4px;
}

/* ── Step 3 playing layout ────────────────────────────────────────────────── */
.playing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.playing-video { display: flex; flex-direction: column; justify-content: center; }
.playing-video video {
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
  display: block;
}

/* ── Step 4 two-column layout ─────────────────────────────────────────────── */
.step4-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.step4-left { display: flex; flex-direction: column; }

.step4-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
}

.guide-listened {
  border: 1px solid var(--line);
  background: rgba(100, 227, 194, 0.06);
  padding: 18px;
  text-align: center;
}

.guide-label { color: var(--muted); font-size: 12px; margin: 0 0 6px; }
.guide-time {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.guide-tip {
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(255,255,255,0.025);
}

.guide-tip-title {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin: 0 0 10px;
}

.guide-tip ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.guide-sound {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255,255,255,0.025);
}

.guide-sound-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.guide-reward {
  border: 1px solid rgba(240, 198, 110, 0.3);
  background: rgba(240, 198, 110, 0.06);
  padding: 16px;
  text-align: center;
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1.7;
}

.guide-reward-icon { font-size: 24px; margin: 0 0 8px; }
.guide-reward p:last-child { margin: 0; }

/* ── Scale description (inline) ─────────────────────────────────────────── */
.scale-desc {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
  transition: opacity 200ms ease;
}

/* ── Story paragraphs ────────────────────────────────────────────────────── */
.story-para {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(237, 247, 244, 0.85);
  margin: 0 0 14px;
}

.story-para:last-child { margin-bottom: 0; }

/* ── Step 5 typography overhaul ──────────────────────────────────────────── */
.report-box h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--accent);
}

.report-box p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(237, 247, 244, 0.9);
  margin-bottom: 10px;
}

.t3-header .eyebrow { margin-bottom: 8px; }

.t3-header h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.t3-header .step-sub {
  font-size: 14px;
  line-height: 1.7;
}

.t3-section .chip-label {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Payment chips with sub-label */
.fchip-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}

.fchip.selected .fchip-sub { color: rgba(100, 227, 194, 0.7); }

.t3-section .fchip {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  min-width: 140px;
}

.seed-counter {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(240, 198, 110, 0.25);
  background: rgba(240, 198, 110, 0.05);
  text-align: center;
}

/* ── Step 4 textarea ─────────────────────────────────────────────────────── */
.chip-question textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  padding: 11px 12px;
  outline: none;
  resize: vertical;
  font: inherit;
}

.chip-question textarea:focus { border-color: var(--accent); }

.chip-question input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  padding: 11px 12px;
  outline: none;
  font: inherit;
}

.chip-question input[type="text"]:focus { border-color: var(--accent); }

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    padding-top: 34px;
  }

  .archive-grid,
  .protocol-steps,
  .wish-form,
  .upload-form,
  .feedback-area {
    grid-template-columns: 1fr;
  }

  .geo-hero {
    min-height: 580px;
  }

  .geo-slider {
    min-width: 1120px;
  }

  .geo-hero-copy {
    padding-top: 76px;
  }

  .section,
  .hero-copy,
  .mission-panel {
    padding: 22px;
  }

  /* Dialog full-screen on mobile */
  dialog.sound-dialog {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
  }

  .dialog-shell {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 12px 14px;
    border-radius: 0;
  }

  /* Step labels smaller text */
  .step-label { font-size: 9px; }
  .step-progress { padding-right: 46px; }

  /* Force single-column layouts */
  .step4-layout { grid-template-columns: 1fr !important; }
  .step4-guide { display: none !important; }
  .playing-layout { grid-template-columns: 1fr !important; }

  /* Step 3: compact video */
  #videoContainer3 video { max-height: 140px; }
  .sound-visual { min-height: 60px; }

  /* Step actions: stack buttons vertically */
  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .step-actions button { width: 100%; }
  .step-hint-text { text-align: center; }
}
