/* ══════════════════════════════════════════════════════
   ForTheOne Demo — Cinematic Presentation Styles
   ══════════════════════════════════════════════════════ */

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

:root {
  --bg: #0D0B08;
  --surface: #1A1714;
  --surface-alt: #231F1A;
  --border: #3A332A;
  --border-light: #2E2820;
  --text: #F5F0E8;
  --text-muted: #B8A98F;
  --text-light: #8A7B68;
  --primary: #B8860B;
  --primary-light: #D4A520;
  --primary-glow: rgba(184, 134, 11, 0.15);
  --accent: #C9983A;
  --warm-bg: #1E1A14;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-scripture: 'Lora', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
}

/* ── Scenes ── */
.scene {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  overflow-y: auto;
  padding: 2rem;
}
.scene.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

/* Remove horizontal padding when scene has full-width content */
.scene:has(.scene-inner-wide) {
  padding-left: 0;
  padding-right: 0;
}

.scene-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.scene-inner-wide {
  max-width: 100%;
  padding: 2rem 0 2rem;
}

/* ── Intro / Closing ── */
.intro-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(184,134,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  text-align: center;
  z-index: 2;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-logo {
  font-family: var(--font-scripture);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.intro-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.intro-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Closing Icon ── */
.closing-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ── Cross on Green Hills Scene ── */
.hills-scene {
  position: relative;
  width: 200px;
  height: 160px;
  border-radius: 50% 50% 0 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hills-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1510 0%, #4a3520 20%, #c9873a 55%, #e8b84d 75%, #f5d87a 100%);
}

.hills-sun {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #f5d87a 40%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 30px 15px rgba(245,216,122,0.3);
}

.hills-rays {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 180px;
  height: 100px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(245,216,122,0.08) 10deg, transparent 20deg, transparent 30deg, rgba(245,216,122,0.06) 40deg, transparent 50deg, transparent 60deg, rgba(245,216,122,0.08) 70deg, transparent 80deg, transparent 90deg, rgba(245,216,122,0.06) 100deg, transparent 110deg, transparent 120deg, rgba(245,216,122,0.08) 130deg, transparent 140deg, transparent 150deg, rgba(245,216,122,0.06) 160deg, transparent 170deg, transparent 180deg, rgba(245,216,122,0.08) 190deg, transparent 200deg, transparent 210deg, rgba(245,216,122,0.06) 220deg, transparent 230deg, transparent 240deg, rgba(245,216,122,0.08) 250deg, transparent 260deg, transparent 270deg, rgba(245,216,122,0.06) 280deg, transparent 290deg, transparent 300deg, rgba(245,216,122,0.08) 310deg, transparent 320deg, transparent 330deg, rgba(245,216,122,0.06) 340deg, transparent 350deg);
  opacity: 0.6;
}

.hill {
  position: absolute;
  border-radius: 50%;
  bottom: 0;
}

.hill-back {
  width: 250px;
  height: 100px;
  background: linear-gradient(180deg, #4a7a3a 0%, #3a6630 100%);
  left: -30px;
  bottom: -20px;
}

.hill-mid {
  width: 200px;
  height: 80px;
  background: linear-gradient(180deg, #5a8f45 0%, #4a7a3a 100%);
  right: -20px;
  bottom: -15px;
}

.hill-front {
  width: 160px;
  height: 90px;
  background: linear-gradient(180deg, #6ba053 0%, #5a8f45 100%);
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  z-index: 2;
}

.cross-structure {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 3;
}

.cross-vertical {
  width: 6px;
  height: 52px;
  background: linear-gradient(180deg, #8B6914, #6B4C10);
  border-radius: 1px;
  margin: 0 auto;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.cross-horizontal {
  width: 32px;
  height: 5px;
  background: linear-gradient(90deg, #8B6914, #7B5C12, #8B6914);
  border-radius: 1px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ── Closing Layout ── */
.closing-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.closing-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.closing-highlight {
  font-family: var(--font-scripture);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.25rem;
  line-height: 1.85;
}

.closing-final {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  opacity: 0.4;
}
.scroll-hint-dot {
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: 50%;
  margin: 8px auto 0;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

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

/* ── Continue Button ── */
.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}
.btn-continue:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.25);
}
.btn-continue:active { transform: scale(0.97); }

.btn-restart {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  margin-top: 2rem;
}
.btn-restart:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: none;
}

/* ── Narrator ── */
.narrator {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.narrator-step {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.narrator-title {
  font-family: var(--font-scripture);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.narrator-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.narrator-text strong { color: var(--text); }
.narrator-text em { color: var(--primary-light); font-style: normal; }

/* ── Pause Badge ── */
.pause-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  animation: pulse 2.5s ease-in-out infinite;
}
.pause-icon { font-size: 0.85rem; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,134,11,0); }
  50% { box-shadow: 0 0 0 8px rgba(184,134,11,0.06); }
}

/* ── Scroll Prompt (prominent) ── */
.scroll-prompt {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.scroll-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.12), rgba(184,134,11,0.06));
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-light);
  animation: promptGlow 2.5s ease-in-out infinite;
}
.scroll-prompt-arrow {
  display: flex;
  animation: arrowBounce 1.5s ease-in-out infinite;
  color: var(--primary-light);
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(5px); }
}
@keyframes promptGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,134,11,0); }
  50% { box-shadow: 0 0 16px 4px rgba(184,134,11,0.1); }
}

/* ── Demo Frame (Browser Chrome) ── */
.demo-frame {
  width: 100%;
  max-width: 780px;
  background: #FFFCF5;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Full-width variant for explanation scene */
.full-width-frame {
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  width: 100%;
}

.scene-inner-wide .narrator,
.scene-inner-wide .scroll-prompt,
.scene-inner-wide .btn-continue {
  max-width: 700px;
  padding-left: 2rem;
  padding-right: 2rem;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #2A2520;
  border-bottom: 1px solid #3A332A;
  border-radius: 12px 12px 0 0;
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4A4138;
}
.chrome-dots span:first-child { background: #FF5F57; }
.chrome-dots span:nth-child(2) { background: #FEBC2E; }
.chrome-dots span:last-child { background: #28C840; }
.chrome-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #8A7B68;
  background: #1A1714;
  padding: 0.3rem 1rem;
  border-radius: 6px;
}

.demo-screen {
  color: #2D2416;
  font-family: var(--font-ui);
}
.scrollable-screen {
  max-height: 50vh;
  overflow-y: auto;
  padding: 2rem 3rem;
  scroll-behavior: smooth;
}
.scrollable-screen::-webkit-scrollbar { width: 8px; }
.scrollable-screen::-webkit-scrollbar-track { background: #F0EBE0; }
.scrollable-screen::-webkit-scrollbar-thumb { background: #C4B8A4; border-radius: 4px; }
.scrollable-screen::-webkit-scrollbar-thumb:hover { background: #A89880; }

/* ── Simulated App UI ── */
.sim-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #FFFCF5;
  border-bottom: 1px solid #E8E0D0;
  font-size: 0.82rem;
  color: #6B5D4D;
}
.sim-logo {
  font-family: var(--font-scripture);
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D2416;
  margin-right: auto;
}
.sim-nav-active {
  color: #6B4C2A;
  font-weight: 600;
  border-bottom: 2px solid #B8860B;
  padding-bottom: 2px;
}
.sim-translation {
  font-size: 0.75rem;
  background: #F8F5EE;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #E8E0D0;
  color: #6B5D4D;
}
.sim-passage-bar {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: #F8F5EE;
  border-bottom: 1px solid #F0EBE0;
  font-size: 0.82rem;
  color: #2D2416;
  font-weight: 500;
}
.sim-passage-bar span {
  background: #FFFCF5;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #E8E0D0;
}

/* ── Simulated Verses ── */
.sim-verses { padding: 0.5rem 0 4rem; }
.sim-verse {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  line-height: 1.85;
  position: relative;
  align-items: flex-start;
  transition: opacity 0.3s;
}
.sim-verse.dim { opacity: 0.45; }
.sim-verse.highlight-verse {
  background: rgba(107,76,42,0.06);
  border-radius: 6px;
}
.sim-vnum {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: #6B4C2A;
  min-width: 20px;
  padding-top: 0.35em;
  text-align: right;
  opacity: 0.7;
  flex-shrink: 0;
}
.sim-vtext {
  font-family: var(--font-scripture);
  font-size: 1rem;
  color: #2D2416;
  flex: 1;
}
.sim-dots {
  font-size: 0.9rem;
  color: #9A8B78;
  opacity: 0.2;
  flex-shrink: 0;
  align-self: center;
  letter-spacing: 1px;
}
.sim-dots.bright {
  opacity: 0.8;
  color: #6B4C2A;
}

/* ── Action Popup ── */
.sim-action-popup {
  position: absolute;
  right: 1rem;
  top: calc(50% + 14px);
  background: #FFFFFF;
  border: 1px solid #E8E0D0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 210px;
  z-index: 10;
  overflow: hidden;
  animation: popIn 0.3s ease;
}
.popup-header {
  padding: 0.45rem 1rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #B8860B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #F8F5EE;
  border-bottom: 1px solid #F0EBE0;
}
.popup-item {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #2D2416;
  border-bottom: 1px solid #F0EBE0;
  font-weight: 500;
}
.popup-item:last-child { border-bottom: none; }
.popup-item.active-item {
  background: #FFF9ED;
  color: #6B4C2A;
  font-weight: 600;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Explanation Modal Sim ── */
.explanation-frame .demo-screen { padding: 0; }
.explanation-frame { overflow: hidden; }

.exp-ref {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: #B8860B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.exp-verse-text {
  font-family: var(--font-scripture);
  font-size: 1.05rem;
  color: #2D2416;
  line-height: 1.8;
  padding: 0.85rem 1rem;
  background: #FFF9ED;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 3px solid #B8860B;
}
.exp-section { margin-bottom: 1.25rem; }
.exp-section-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B4C2A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.exp-section-body {
  font-size: 0.92rem;
  color: #6B5D4D;
  line-height: 1.75;
}
.exp-section-body strong {
  color: #2D2416;
  font-weight: 600;
}

.crossref-item {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: #6B5D4D;
  line-height: 1.6;
}
.crossref-link {
  color: #6B4C2A;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(107,76,42,0.3);
  cursor: pointer;
}

/* ── Guidance Sim ── */
.guidance-search-bar {
  padding: 1.25rem;
  background: #F8F5EE;
  border-bottom: 1px solid #E8E0D0;
}
.guidance-label {
  font-family: var(--font-scripture);
  font-size: 1.3rem;
  font-weight: 600;
  color: #2D2416;
  margin-bottom: 0.75rem;
}
.guidance-input-sim {
  background: #FFFFFF;
  border: 1px solid #E8E0D0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #2D2416;
  font-family: var(--font-ui);
  margin-bottom: 0.75rem;
}
.guidance-submit {
  display: inline-block;
  background: #6B4C2A;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.guidance-results { padding: 1.25rem; }
.guidance-encouragement {
  font-family: var(--font-scripture);
  font-size: 0.95rem;
  color: #4A3D2E;
  line-height: 1.8;
  padding: 1rem 1.25rem;
  background: #FFF9ED;
  border-radius: 8px;
  border-left: 3px solid #B8860B;
  margin-bottom: 1.25rem;
}
.guidance-verse-card {
  background: #FFFFFF;
  border: 1px solid #E8E0D0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
.gv-text {
  font-family: var(--font-scripture);
  font-size: 0.92rem;
  color: #2D2416;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.gv-ref {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B4C2A;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gv-link {
  font-size: 0.72rem;
  color: #B8860B;
  font-weight: 500;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 780px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.1);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--surface);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 768px) {
  .intro-logo { font-size: 2.5rem; }
  .narrator-title { font-size: 1.4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .scene { padding: 1.5rem 1.25rem; }
  .demo-frame { border-radius: 10px; }
  .sim-header { font-size: 0.72rem; gap: 0.5rem; }

  .scrollable-screen {
    padding: 1.5rem 1.25rem;
    max-height: 45vh;
  }

  .scene-inner-wide {
    padding: 1.5rem 0;
  }

  .scene-inner-wide .narrator,
  .scene-inner-wide .scroll-prompt,
  .scene-inner-wide .btn-continue {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .full-width-frame .scrollable-screen {
    padding: 1.5rem 1.25rem;
  }

  .sim-action-popup {
    right: 0.5rem;
    min-width: 180px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .scene {
    padding: 1.25rem 1rem;
    align-items: flex-start;
  }

  .scene-inner {
    gap: 1.25rem;
    padding: 1rem 0;
  }

  .intro-logo { font-size: 1.8rem; }
  .intro-tagline { font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 1rem; }
  .intro-desc { font-size: 0.92rem; margin-bottom: 1.5rem; }

  .narrator-step { font-size: 0.65rem; }
  .narrator-title { font-size: 1.2rem; }
  .narrator-text { font-size: 0.88rem; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .feature-card { padding: 1.1rem; }
  .feature-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .feature-card h3 { font-size: 0.85rem; }
  .feature-card p { font-size: 0.78rem; }

  /* Demo frame on mobile */
  .demo-frame {
    border-radius: 8px;
  }
  .demo-chrome {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
  .chrome-dots span { width: 8px; height: 8px; }
  .chrome-url { font-size: 0.62rem; padding: 0.2rem 0.5rem; }

  .demo-screen { font-size: 0.85rem; }

  .scrollable-screen {
    padding: 1rem;
    max-height: 40vh;
    -webkit-overflow-scrolling: touch;
  }

  /* Full-width frame on mobile — keep some breathing room */
  .full-width-frame {
    border-radius: 8px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .scene:has(.scene-inner-wide) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .scene-inner-wide {
    padding: 1rem 0;
    gap: 1rem;
  }

  .scene-inner-wide .narrator,
  .scene-inner-wide .scroll-prompt,
  .scene-inner-wide .btn-continue {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .full-width-frame .scrollable-screen {
    padding: 1rem;
  }

  /* Scroll prompt mobile */
  .scroll-prompt { max-width: 100%; }
  .scroll-prompt-inner {
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .scroll-prompt-arrow svg { width: 16px; height: 16px; }

  /* Pause badge mobile */
  .pause-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }

  /* Simulated app header on mobile */
  .sim-header {
    font-size: 0.62rem;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
  }
  .sim-logo { font-size: 0.9rem; }
  .sim-nav, .sim-nav-active { font-size: 0.6rem; }
  .sim-translation { font-size: 0.6rem; padding: 0.15rem 0.35rem; }

  .sim-passage-bar {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
  .sim-passage-bar span { padding: 0.2rem 0.5rem; }

  /* Verse rows on mobile */
  .sim-verse { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
  .sim-vnum { font-size: 0.6rem; min-width: 16px; }
  .sim-vtext { font-size: 0.85rem; }
  .sim-dots { font-size: 0.8rem; }

  /* Action popup — position above the verse instead of below to prevent cutoff */
  .sim-action-popup {
    right: 0.5rem;
    top: auto;
    bottom: calc(100% + 4px);
    min-width: 170px;
  }
  .popup-header { font-size: 0.58rem; padding: 0.35rem 0.75rem; }
  .popup-item { font-size: 0.78rem; padding: 0.45rem 0.75rem; }

  /* Explanation content on mobile */
  .exp-ref { font-size: 0.65rem; }
  .exp-verse-text { font-size: 0.9rem; padding: 0.65rem 0.75rem; }
  .exp-section-title { font-size: 0.68rem; }
  .exp-section-body { font-size: 0.85rem; }
  .crossref-item { font-size: 0.8rem; }

  /* Guidance on mobile */
  .guidance-search-bar { padding: 0.85rem; }
  .guidance-label { font-size: 1.05rem; }
  .guidance-input-sim { font-size: 0.85rem; padding: 0.55rem 0.75rem; }
  .guidance-submit { font-size: 0.78rem; padding: 0.4rem 1rem; }
  .guidance-results { padding: 0.85rem; }
  .guidance-encouragement { font-size: 0.85rem; padding: 0.75rem 0.85rem; }
  .guidance-verse-card { padding: 0.75rem 0.85rem; }
  .gv-text { font-size: 0.82rem; }
  .gv-ref { font-size: 0.7rem; }

  /* Closing scene on mobile */
  .closing-layout { padding: 0 0.5rem; }
  .closing-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
  .closing-body { max-width: 100%; padding: 0 0.25rem; }
  .closing-lead { font-size: 1rem; }
  .closing-highlight { font-size: 1.15rem; }
  .closing-text { font-size: 0.92rem; line-height: 1.75; }
  .closing-final { font-size: 0.95rem; }

  .btn-continue { font-size: 0.85rem; padding: 0.7rem 1.5rem; }
  .btn-restart { margin-top: 1.25rem; }

  /* Scroll hint */
  .scroll-hint { bottom: 1.25rem; }
}

.hidden {
  display: none !important;
}

/* ── Closing Scene (Scene 7) Light Theme Refinement ── */
.scene-closing {
  background: #FFFCF5 !important;
  color: #2D2416 !important;
}

.scene-closing .intro-bg {
  background: radial-gradient(ellipse at 50% 40%, rgba(184,134,11,0.12) 0%, transparent 70%) !important;
}

.scene-closing .intro-logo {
  color: #6B4C2A !important;
}

.scene-closing .intro-tagline {
  color: #B8860B !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.scene-closing .closing-lead {
  color: #5C4E3C !important;
}

.scene-closing .closing-highlight {
  color: #8B6914 !important;
}

.scene-closing .closing-final {
  color: #2D2416 !important;
  font-weight: 700 !important;
}

.scene-closing .btn-continue {
  background: #6B4C2A !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(107, 76, 42, 0.15) !important;
}

.scene-closing .btn-continue:hover {
  background: #B8860B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.25) !important;
}

.scene-closing .btn-restart {
  background: transparent !important;
  border: 2px solid #E8E0D0 !important;
  color: #6B5D4D !important;
}

.scene-closing .btn-restart:hover {
  background: #FFF9ED !important;
  border-color: #B8860B !important;
  color: #6B4C2A !important;
  transform: translateY(-2px) !important;
}

