/* ══════════════════════════════════════════════════════
   FinalEcho — Cinematic CSS
   Palette: Deep navy · Warm amber/gold · Moonwhite
══════════════════════════════════════════════════════ */

:root {
  --black:       #050505;
  --navy:        #0a0f1e;
  --charcoal:    #1a1a1a;
  --border:      rgba(255,255,255,0.08);
  --border-warm: rgba(201,168,90,0.2);
  --amber:       #c9a85a;
  --amber-dim:   #a88840;
  --amber-light: #e2c07a;
  --moonwhite:   #eae4d6;
  --text-1:      #d8cfc0;
  --text-2:      #8a8272;
  --text-3:      #524c40;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --radius:      16px;
  --radius-sm:   10px;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--navy);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}


/* ══════════════════════════════════════
   SCENE BACKGROUND (echo screen)
══════════════════════════════════════ */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body[class*="scene-"] .bg-scene { opacity: 1; }

body.scene-rain .bg-scene {
  background-image:
    linear-gradient(to bottom,
      rgba(4,8,20,0.65) 0%,
      rgba(3,6,16,0.35) 50%,
      rgba(4,8,20,0.72) 100%
    ),
    url('/static/images/bg_rain.png');
  background-size: cover;
  background-position: center;
}

body.scene-ocean .bg-scene {
  background-image:
    linear-gradient(to bottom,
      rgba(2,6,18,0.62) 0%,
      rgba(2,5,14,0.30) 50%,
      rgba(2,6,18,0.68) 100%
    ),
    url('/static/images/bg_ocean.jpg');
  background-size: cover;
  background-position: center;
}

body.scene-field .bg-scene {
  background-image:
    linear-gradient(to bottom,
      rgba(2,10,6,0.62) 0%,
      rgba(2,8,4,0.28) 50%,
      rgba(2,10,6,0.68) 100%
    ),
    url('/static/images/bg_field.jpg');
  background-size: cover;
  background-position: center;
}

body.scene-room .bg-scene {
  background-image:
    linear-gradient(to bottom,
      rgba(10,5,2,0.62) 0%,
      rgba(8,4,1,0.28) 50%,
      rgba(10,5,2,0.68) 100%
    ),
    url('/static/images/bg_room.png');
  background-size: cover;
  background-position: center;
}

body.scene-train .bg-scene {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(22,34,65,0.85) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 70%, rgba(14,22,46,0.70) 0%, transparent 50%),
    linear-gradient(155deg, #07091a 0%, #0c1224 50%, #07091a 100%);
}

body.scene-office .bg-scene {
  background:
    radial-gradient(ellipse at 60% 25%, rgba(16,22,42,0.85) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 72%, rgba(10,15,30,0.70) 0%, transparent 50%),
    linear-gradient(150deg, #060810 0%, #090d1c 50%, #060810 100%);
}

/* ── Particles Canvas ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.45;
}

/* ── Film Grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ══════════════════════════════════════
   SCREENS
══════════════════════════════════════ */

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s var(--ease-out);
  overflow: hidden;
}

.screen.active { opacity: 1; pointer-events: all; }

#screen-echo {
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════
   LANDING SCREEN — matches MobilePageLoadView.png
══════════════════════════════════════ */

/* Full-bleed hero image */
.landing-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero.png');
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
}

/* Single vignette overlay — dark at top & bottom, clear in the middle */
.landing-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48%;
  background: linear-gradient(to bottom,
    rgba(6,10,20,0.82) 0%,
    rgba(6,10,20,0.48) 55%,
    transparent 100%
  );
  z-index: 1;
}

.landing-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52%;
  background: linear-gradient(to top,
    rgba(6,10,20,0.92) 0%,
    rgba(6,10,20,0.60) 40%,
    rgba(6,10,20,0.18) 75%,
    transparent 100%
  );
  z-index: 1;
}

/* ── TOP block: brand ── */
.landing-top {
  position: absolute;
  top: max(env(safe-area-inset-top, 0px), 44px);
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeDown 0.9s var(--ease-out) 0.2s both;
}


.echo-ekg {
  width: 110px;
  height: auto;
  color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(201,168,90,0.45));
}

.ekg-line {
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: ekgDraw 4s ease-in-out infinite;
}

@keyframes ekgDraw {
  0%   { stroke-dashoffset: 210; opacity: 1; }
  55%  { stroke-dashoffset: 0;   opacity: 1; }
  80%  { stroke-dashoffset: 0;   opacity: 1; }
  94%  { stroke-dashoffset: 0;   opacity: 0; }
  95%  { stroke-dashoffset: 210; opacity: 0; }
  100% { stroke-dashoffset: 210; opacity: 0; }
}

/* Brand name */
.landing-brand-name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 12vw, 4.6rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(0,0,0,0.7);
}

/* Brand subtitle */
.landing-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.9;
  margin-top: 12px;
}

/* ── BOTTOM block: tagline + rule + button ── */
.landing-bottom {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom, 0px), 40px);
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  animation: fadeUp 0.9s var(--ease-out) 0.5s both;
}

.landing-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--moonwhite);
  text-align: center;
  white-space: nowrap;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Decorative amber rule between tagline and button */
.landing-rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(201,168,90,0.5) 25%,
    var(--amber) 50%,
    rgba(201,168,90,0.5) 75%,
    transparent 100%
  );
}

/* Begin button — same style as btn-next.enabled */
.btn-begin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 14px;
  background: rgba(201,168,90,0.11);
  border: 1px solid rgba(201,168,90,0.32);
  border-radius: var(--radius-sm);
  color: var(--amber-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-begin:hover {
  background: rgba(201,168,90,0.2);
  border-color: rgba(201,168,90,0.52);
  transform: translateY(-1px);
}

.btn-begin:active { transform: none; }

/* ══════════════════════════════════════
   QUESTION SCREENS
══════════════════════════════════════ */

/* Q1 — ember warmth: room/ambition */
#screen-q1 {
  background-image:
    linear-gradient(to bottom,
      rgba(10,6,2,0.78) 0%,
      rgba(8,5,1,0.52) 45%,
      rgba(10,6,2,0.82) 100%
    ),
    url('/static/images/bg_room.png');
  background-size: cover;
  background-position: center;
}

/* Q2 — cold ocean: neglect/distance */
#screen-q2 {
  background-image:
    linear-gradient(to bottom,
      rgba(2,6,18,0.78) 0%,
      rgba(2,5,14,0.50) 45%,
      rgba(2,6,18,0.84) 100%
    ),
    url('/static/images/bg_ocean.jpg');
  background-size: cover;
  background-position: center;
}

/* Q3 — open field: vitality/alive */
#screen-q3 {
  background-image:
    linear-gradient(to bottom,
      rgba(2,10,8,0.76) 0%,
      rgba(2,8,5,0.48) 45%,
      rgba(2,10,8,0.82) 100%
    ),
    url('/static/images/bg_field.jpg');
  background-size: cover;
  background-position: center;
}

.q-wrap {
  width: 100%;
  max-width: 460px;
  padding: 28px 26px max(env(safe-area-inset-bottom, 0px), 28px);
  position: relative;
  z-index: 5;
  overflow-y: auto;
  max-height: 100dvh;
}

.q-wrap::-webkit-scrollbar { display: none; }

.q-progress {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}

.q-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--amber-dim), var(--amber));
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}

.q-step {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 12px;
  opacity: 0.85;
}

.q-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--moonwhite);
  margin-bottom: 12px;
}

.q-hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.q-hint {
  font-size: 0.78rem;
  color: var(--text-2);
  font-style: italic;
}

/* Chip counter badge */
.chip-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50px;
  background: rgba(201,168,90,0.16);
  border: 1px solid rgba(201,168,90,0.32);
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  pointer-events: none;
}

.chip-counter.visible { opacity: 1; transform: scale(1); }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.22s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chip:hover { border-color: rgba(201,168,90,0.55); color: #fff; background: rgba(0,0,0,0.58); }
.chip:active { transform: scale(0.96); }

.chip.selected {
  background: rgba(201,168,90,0.28);
  border-color: rgba(201,168,90,0.70);
  color: #fff;
  box-shadow: 0 0 16px rgba(201,168,90,0.22);
}

.chip.selected::before {
  content: '✓ ';
  font-size: 0.6rem;
  opacity: 0.75;
}

/* Custom input */
.custom-input-wrap { margin-bottom: 20px; }

.custom-input {
  width: 100%;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.87rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.custom-input::placeholder { color: rgba(255,255,255,0.45); }
.custom-input:focus { border-color: rgba(201,168,90,0.55); background: rgba(0,0,0,0.58); }

/* Next button */
.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.40);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: default;
  transition: all 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-next.enabled {
  opacity: 1;
  cursor: pointer;
  background: rgba(201,168,90,0.11);
  border-color: rgba(201,168,90,0.32);
  color: var(--amber-light);
}

.btn-next.enabled:hover {
  background: rgba(201,168,90,0.2);
  border-color: rgba(201,168,90,0.52);
  transform: translateY(-1px);
}

.btn-next.enabled:active { transform: none; }

/* Back button + row layout */
.btn-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 14px 18px;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-back:hover {
  background: rgba(0,0,0,0.62);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

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

.btn-actions .btn-next { flex: 1; }

/* ══════════════════════════════════════
   ANALYSIS SCREEN
══════════════════════════════════════ */

/* Analysis — introspection: dark rain/room blend */
#screen-analysis {
  background-image:
    linear-gradient(to bottom,
      rgba(6,2,14,0.82) 0%,
      rgba(4,2,10,0.60) 50%,
      rgba(6,2,14,0.88) 100%
    ),
    url('/static/images/bg_rain.png');
  background-size: cover;
  background-position: center;
}

.analysis-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 5;
  padding: 24px;
}

.analysis-orb {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,90,0.2);
}

.r1 { width:140px; height:140px; animation: orbPulse 3s ease-in-out infinite; }
.r2 { width:100px; height:100px; animation: orbPulse 3s ease-in-out 0.5s infinite; border-color: rgba(201,168,90,0.32); }
.r3 { width: 65px; height: 65px; animation: orbPulse 3s ease-in-out 1s infinite; border-color: rgba(201,168,90,0.5); }

.orb-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,90,0.9), rgba(160,130,60,0.6));
  box-shadow: 0 0 28px rgba(201,168,90,0.55), 0 0 70px rgba(201,168,90,0.18);
  animation: coreBreath 2.5s ease-in-out infinite;
}

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

@keyframes coreBreath {
  0%,100% { transform:scale(1); box-shadow:0 0 28px rgba(201,168,90,0.55),0 0 70px rgba(201,168,90,0.18); }
  50%     { transform:scale(1.14); box-shadow:0 0 42px rgba(201,168,90,0.75),0 0 100px rgba(201,168,90,0.28); }
}

.analysis-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-1);
  text-align: center;
}

/* ══════════════════════════════════════
   ECHO SCREEN
══════════════════════════════════════ */

#screen-echo {
  background: rgba(5,8,18,0.15);
  backdrop-filter: blur(1px);
}

.echo-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px max(env(safe-area-inset-bottom, 0px), 60px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.echo-header { text-align: center; padding: 20px 0 8px; }

.echo-archetype-badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(201,168,90,0.55);
  border-radius: 50px;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 14px;
  background: rgba(201,168,90,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.echo-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--moonwhite);
  margin-bottom: 8px;
}

.echo-state-line { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.echo-state-line span { color: var(--amber-light); font-weight: 500; }

.echo-card {
  background: rgba(6,10,22,0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.echo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,90,0.22), transparent);
}

.echo-main-card {
  border-color: var(--border-warm);
  background: rgba(8,12,26,0.76);
}

.echo-card-icon { color: var(--amber-dim); margin-bottom: 16px; opacity: 0.7; }

.echo-main-text {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-1);
  font-style: italic;
}

.echo-section { display: flex; flex-direction: column; gap: 12px; }

.echo-section-title {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Regrets */
.regrets-list { display: flex; flex-direction: column; gap: 10px; }

.regret-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(6,10,22,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.regret-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201,168,90,0.08);
  border: 1px solid rgba(201,168,90,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dim);
  margin-top: 1px;
}

.regret-text { font-size: 0.87rem; line-height: 1.65; color: var(--text-2); }

/* Chapters */
.chapters-list { display: flex; flex-direction: column; gap: 10px; }

.chapter-item {
  background: rgba(6,10,22,0.6);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(201,168,90,0.32);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--moonwhite);
  margin-bottom: 5px;
}

.chapter-text { font-size: 0.83rem; line-height: 1.62; color: var(--text-2); }

/* Alternate Futures */
.futures-tabs { display: flex; gap: 8px; margin-bottom: 4px; }

.future-tab {
  flex: 1;
  padding: 9px 12px;
  background: rgba(6,10,22,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  backdrop-filter: blur(8px);
}

.future-tab.active {
  background: rgba(201,168,90,0.1);
  border-color: rgba(201,168,90,0.28);
  color: var(--amber-light);
}

.future-content {
  background: rgba(6,10,22,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  min-height: 90px;
  backdrop-filter: blur(8px);
}

.future-text {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-1);
  font-style: italic;
  transition: opacity 0.25s;
}

/* Legacy */
.echo-legacy { text-align: center; padding: 32px 16px; }

.legacy-line-mark {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,90,0.42), transparent);
  margin: 0 auto 24px;
}

.legacy-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 4vw, 1.32rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.68;
  color: var(--moonwhite);
}

.legacy-quote::before {
  content: '"';
  display: block;
  font-size: 2.5rem;
  line-height: 0.8;
  color: var(--amber-dim);
  opacity: 0.42;
  margin-bottom: 12px;
}

/* Actions */
.echo-actions { display: flex; gap: 12px; padding-top: 8px; }

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.btn-share {
  background: rgba(201,168,90,0.1);
  border: 1px solid rgba(201,168,90,0.26);
  color: var(--amber-light);
}

.btn-share:hover { background: rgba(201,168,90,0.2); border-color: rgba(201,168,90,0.44); }

.btn-again {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn-again:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: var(--text-1); }

/* ══════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════ */

.btn-hamburger {
  position: fixed;
  top: max(env(safe-area-inset-top, 0px), 16px);
  left: 18px;
  z-index: 9999;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,90,0.22);
  background: rgba(10,15,30,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: border-color 0.25s, background 0.25s;
}

.btn-hamburger:hover { border-color: rgba(201,168,90,0.48); background: rgba(10,15,30,0.80); }

.btn-hamburger span {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(255,255,255,0.75);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.btn-hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ══════════════════════════════════════
   MENU OVERLAY
══════════════════════════════════════ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-overlay.open { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════
   MENU DRAWER
══════════════════════════════════════ */

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 9995;
  background: rgba(6, 9, 20, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(201,168,90,0.14);
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.menu-drawer::-webkit-scrollbar { width: 2px; }
.menu-drawer::-webkit-scrollbar-track { background: transparent; }
.menu-drawer::-webkit-scrollbar-thumb { background: rgba(201,168,90,0.18); border-radius: 2px; }

.menu-drawer.open { transform: translateX(0); }

/* Header */
.menu-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(201,168,90,0.10);
  flex-shrink: 0;
}

.menu-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.menu-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.menu-close-btn:hover { border-color: rgba(255,255,255,0.22); color: var(--text-1); }

/* Sections */
.menu-block {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-divider {
  height: 1px;
  background: rgba(201,168,90,0.08);
  flex-shrink: 0;
  margin: 0;
}

.menu-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 2px;
}

.menu-about {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-2);
}

.menu-about em { color: var(--text-1); font-style: italic; }

/* Narak AI card */
.menu-narak-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,168,90,0.20);
  background: rgba(201,168,90,0.04);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.menu-narak-card:hover { border-color: rgba(201,168,90,0.42); background: rgba(201,168,90,0.08); }

.menu-narak-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--amber-light);
}

.menu-narak-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.menu-narak-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Feedback form */
.menu-feedback { display: flex; flex-direction: column; gap: 10px; }

.menu-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.menu-input::placeholder { color: rgba(255,255,255,0.25); }
.menu-input:focus { border-color: rgba(201,168,90,0.35); }

.menu-textarea { line-height: 1.55; }

.menu-send-btn {
  align-self: flex-end;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,90,0.35);
  background: rgba(201,168,90,0.10);
  color: var(--amber-light);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
}

.menu-send-btn:hover { background: rgba(201,168,90,0.20); border-color: rgba(201,168,90,0.55); }

/* Credits */
.menu-credits-block { gap: 8px; }

.menu-credits-by {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.menu-credits-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--amber-light);
  letter-spacing: 0.02em;
}

.menu-social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.menu-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.82rem;
  transition: background 0.2s, color 0.2s;
}

.menu-social-link:hover { background: rgba(201,168,90,0.07); color: var(--amber-light); }

.menu-social-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.menu-copyright {
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ══════════════════════════════════════
   MUTE BUTTON
══════════════════════════════════════ */

.btn-mute {
  position: fixed;
  top: max(env(safe-area-inset-top, 0px), 16px);
  right: 18px;
  z-index: 9999;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-mute:hover {
  background: rgba(0,0,0,0.62);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.btn-mute.muted { color: rgba(255,255,255,0.35); }
.btn-mute.muted .icon-sound { display: none; }
.btn-mute.muted .icon-mute  { display: block !important; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: max(env(safe-area-inset-bottom, 0px), 24px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(8,12,26,0.96);
  border: 1px solid rgba(201,168,90,0.22);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.8rem;
  color: var(--amber-light);
  letter-spacing: 0.04em;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

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

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes textCycle {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Echo reveal stagger */
.echo-reveal { animation: fadeUp 0.7s var(--ease-out) both; }
.echo-reveal:nth-child(1) { animation-delay: 0.00s; }
.echo-reveal:nth-child(2) { animation-delay: 0.12s; }
.echo-reveal:nth-child(3) { animation-delay: 0.24s; }
.echo-reveal:nth-child(4) { animation-delay: 0.36s; }
.echo-reveal:nth-child(5) { animation-delay: 0.48s; }
.echo-reveal:nth-child(6) { animation-delay: 0.60s; }
.echo-reveal:nth-child(7) { animation-delay: 0.72s; }

/* ══════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════ */

#screen-echo::-webkit-scrollbar { width: 3px; }
#screen-echo::-webkit-scrollbar-track { background: transparent; }
#screen-echo::-webkit-scrollbar-thumb { background: rgba(201,168,90,0.2); border-radius: 3px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (min-width: 480px) {
  .landing-bottom { padding: 0 48px; }
  .landing-tagline { font-size: 1.5rem; }
  .landing-brand-name { font-size: 3.8rem; }
  .q-wrap { padding: 44px 36px max(env(safe-area-inset-bottom,0px),36px); }
  .echo-wrap { padding: 80px 36px 80px; }
}

@media (min-width: 768px) {
  .landing-hero-bg { background-position: center 20%; }
  .landing-brand-name { font-size: 4.4rem; }
  .landing-tagline { font-size: 1.7rem; }
  .echo-wrap { max-width: 560px; }
  .echo-main-text { font-size: 1.1rem; }
}

/* Wide screens — show the image without cropping the person */
@media (min-width: 1024px) {
  .landing-hero-bg { background-position: center center; }
  .landing-top { top: 52px; }
}
