/* ═══════════════════════════════════════════
   SCREENS — Per-screen styles
   Decision 5: Title/welcome overlay gradient
   Decision 6: Ambient image reuse
   Decision 11: Difficulty pill-row (title screen)
   Decision 13: [EXPERIMENTAL] Bottom-sheets game mobile
   Decision 15: [EXPERIMENTAL] Onboarding briefing single view
   Decision 18: [EXPERIMENTAL] Debrief 3 sections
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════
   WELCOME SCREEN — merged Splash + Title
   (Decisions 2, 3, 5: cover image fullbleed + title overlay)
   ══════════════════════════════════════ */

/* Cover image fills screen as absolute background (Decisions 2, 3) */
.splash-content {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b11;
}

/* Decision 2: portrait uses cover; landscape switches to contain in responsive rules */
.splash-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Decision 5: welcome screen — cover image + overlay gradients for readability */
#screen-title {
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #060b11; /* fallback while image loads */
}

#screen-title::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 24%, rgba(185, 211, 230, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(9, 14, 21, 0.14), rgba(9, 14, 21, 0.64));
}

.title-shell {
  text-align: center;
  padding: 3rem 2rem;
  flex: 1;
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.title-shell-minimal {
  width: 100%;
  max-width: none;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2.2rem;
}

.title-screen-advance {
  width: min(100%, 32rem);
  margin-top: auto;
  margin-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 1.25rem 1rem;
  font-family: var(--heading);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: opacity var(--dur-normal), transform var(--dur-fast), color var(--dur-normal);
}

.title-screen-advance:hover,
.title-screen-advance:focus-visible {
  color: var(--ochre);
  transform: translateY(-1px);
}

.title-screen-advance:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.title-screen-advance span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--white) 26%, transparent);
  background: rgba(9, 14, 21, 0.42);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 44px rgba(3, 6, 10, 0.36);
}

.title-screen-advance span::before {
  content: '›';
  color: var(--ochre);
}

.startup-status-line {
  margin: 0.35rem auto 0;
  width: min(100%, 32rem);
  text-align: center;
  font-family: var(--heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--text-soft) 74%, var(--white) 26%);
}

.startup-status-line[data-state='ready'] {
  color: color-mix(in srgb, var(--ice) 76%, var(--white) 24%);
}

.startup-status-line[data-state='error'] {
  color: color-mix(in srgb, var(--red) 70%, var(--white) 30%);
}

.title-info-trigger {
  z-index: 3;
  min-width: auto;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--white) 24%, transparent);
  background: rgba(9, 14, 21, 0.26);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.title-top-controls > .title-info-trigger {
  align-self: flex-start;
}

.title-info-trigger:hover,
.title-info-trigger:focus-visible {
  border-color: var(--ice);
  background: rgba(9, 14, 21, 0.62);
  box-shadow: 0 0 0 3px rgba(185, 211, 230, 0.18);
}

.title-eyebrow {
  font-family: var(--heading); /* Decision 8 */
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.title-main {
  font-family: var(--heading); /* Decision 8 */
  font-size: clamp(1.75rem, 5vw, 2.8rem); /* Decision 9: 28px min */
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.title-sub {
  color: var(--stone);
  font-size: 1rem;        /* Decision 9: exactly 16px */
  font-weight: 400;
  letter-spacing: 0.02em;
}

.title-sentinel { color: var(--ice); }

.title-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 2rem auto;
}

.title-tagline {
  font-style: italic;
  color: var(--stone);
  font-size: 0.9375rem;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ══════════════════════════════════════
   CHARACTER SELECT SCREEN (Decision 6)
   ══════════════════════════════════════ */

/* Decision 6: concept-curated-4 as ambient background with blur */
#screen-character {
  padding: 2.5rem 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#screen-character::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../../../art/concept-art/curated/concept-curated-4.webp');
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.2); /* Decision 6 */
  transform: scale(1.05); /* compensate blur edge */
}

#screen-character > * {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   SCENARIO SELECT SCREEN (Decision 6)
   ══════════════════════════════════════ */

/* Decision 6: concept-curated-4 with different filter */
#screen-scenario {
  padding: 2.5rem 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#screen-scenario::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../../../art/concept-art/curated/concept-curated-4.webp');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.25) saturate(0.6); /* Decision 6 */
  transform: scale(1.05);
}

#screen-scenario > * {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   EXPEDITION SETUP SCREEN
   ══════════════════════════════════════ */

/* NOTE: #screen-expedition-setup and #screen-part2-character intentionally share
   the same background and layout treatment. When updating the background image,
   padding, or z-index stacking here, mirror the same change to
   #screen-part2-character below. */
#screen-expedition-setup,
#screen-part2-character {
  padding: 2.5rem 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#screen-expedition-setup::before,
#screen-part2-character::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../../../art/concept-art/curated/concept-curated-4.webp');
  background-size: cover;
  background-position: center;
  filter: blur(9px) brightness(0.26) saturate(0.62);
  transform: scale(1.05);
}

#screen-expedition-setup > *,
#screen-part2-character > * {
  position: relative;
  z-index: 1;
}

#screen-expedition-setup::after,
#screen-part2-character::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 20, 0.35), rgba(8, 13, 20, 0.74)),
    radial-gradient(circle at 78% 22%, rgba(185, 211, 230, 0.08), transparent 38%);
}

.expedition-setup-shell {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 20px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--surface2) 82%, #0b121d), color-mix(in srgb, var(--surface) 90%, #0b121d));
  box-shadow: 0 30px 70px rgba(5, 9, 14, 0.45);
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.intro-links-section {
  display: grid;
  gap: 0.85rem;
}

.intro-support-note {
  margin: 0;
  color: color-mix(in srgb, var(--text) 84%, var(--ice) 16%);
}

.intro-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.intro-share-actions .intro-link-btn {
  flex: 1 1 168px;
}

.intro-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Locked carousel card in Part 2 — applied to .carousel-card.part2-locked */
.carousel-card.part2-locked {
  opacity: 0.7;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--border) 70%, var(--stone) 30%);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg) 10%);
  cursor: default;
}

.part2-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   ONBOARDING — EXPERIMENTAL (Decision 15)
   ══════════════════════════════════════ */

/* ══════════════════════════════════════
   FATAL ERROR
   ══════════════════════════════════════ */

#screen-fatal-error {
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* ══════════════════════════════════════
   GAME SCREEN — new single-column layout
   ══════════════════════════════════════ */

/* Panel overrides inside game screen */
#screen-game .decision-panel {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* Mountain view fills the available space */
#screen-game .mountain-view {
  flex: 1;
  min-height: 0;
}

/* Overlay panels inside watch-detail-overlay use normal padding */
.watch-detail-overlay .watch-body-row {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* EXPERIMENTAL — Mobile bottom-sheet triggers (Decision 13) */
.game-mobile-bar {
  display: none; /* hidden on desktop; shown in responsive.css */
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.game-mobile-bar .btn-ghost {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.875rem;
}

/* EXPERIMENTAL — Bottom-sheet base (Decision 13) */
.bottom-sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  display: none; /* shown in responsive.css on mobile */
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 1rem;
}

.bottom-sheet-title {
  font-family: var(--heading);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* EXPERIMENTAL — Mini status bar for mobile game (Decision 13) */
.game-mini-status {
  display: none; /* shown in responsive.css on mobile */
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--stone);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-mini-status strong { color: var(--white); }

/* Bottom sheet backdrop */
.bottom-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.6);
  z-index: 499;
}

.bottom-sheet-backdrop.visible { display: block; }

/* ══════════════════════════════════════
   DEBRIEF — EXPERIMENTAL (Decision 18)
   ══════════════════════════════════════ */

/* EXPERIMENTAL — 3-section debrief layout (Decision 18) */
#screen-debrief {
  padding: 0;
  align-items: stretch;
}

.debrief-box {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

/* Section 1 — Emotional result (Decision 18) */
.debrief-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background:
    url('../../../art/concept-art/curated/concept-curated-4.webp') center/cover no-repeat;
}

/* Outcome-specific filters (Decision 18) */
.debrief-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background var(--dur-slow);
}

/* Default / safe return — neutral contemplative */
.debrief-hero.outcome-retreat::before,
.debrief-hero.outcome-stabilized::before {
  background: linear-gradient(
    180deg,
    rgba(12, 16, 23, 0.35) 0%,
    rgba(12, 16, 23, 0.80) 100%
  );
}

/* Summit reached — warm golden */
.debrief-hero.outcome-success::before {
  background: linear-gradient(
    180deg,
    rgba(30, 20, 8, 0.40) 0%,
    rgba(196, 154, 92, 0.38) 40%,
    rgba(12, 16, 23, 0.82) 100%
  );
}

/* Lost / Death — cold ice blue */
.debrief-hero.outcome-collapse::before {
  background: linear-gradient(
    180deg,
    rgba(5, 15, 30, 0.45) 0%,
    rgba(32, 65, 90, 0.55) 40%,
    rgba(12, 16, 23, 0.85) 100%
  );
}

.debrief-hero > * { position: relative; z-index: 1; }

.debrief-hero-icon {
  display: none;
}

.debrief-outcome-headline {
  font-family: var(--heading); /* Decision 8 */
  font-size: clamp(1.5rem, 5vw, 2.2rem); /* Decision 9: big headline */
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.debrief-outcome-headline.outcome-success  { color: var(--ochre); }
.debrief-outcome-headline.outcome-retreat  { color: var(--ice); }
.debrief-outcome-headline.outcome-collapse { color: var(--red); }

.debrief-key-stats {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--stone);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.debrief-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.debrief-stat-card {
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 0.9rem 0.85rem;
  text-align: left;
  font-family: var(--mono);
  border-radius: 14px;
}

.debrief-stat-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.debrief-stat-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--heading);
  line-height: 1.25;
}

.debrief-stat-card-value-wide {
  font-size: 1rem;
  font-family: var(--mono);
}

/* Legacy debrief stats (flat) — kept for compatibility */
.debrief-header { margin-bottom: 2rem; }

.debrief-outcome-label {
  font-family: var(--heading);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.debrief-outcome-value {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.debrief-outcome-value.outcome-retreat    { color: var(--ice); }
.debrief-outcome-value.outcome-collapse   { color: var(--red); }
.debrief-outcome-value.outcome-stabilized { color: var(--stone); }
.debrief-outcome-value.outcome-success    { color: var(--ochre); }

.debrief-retreat-msg {
  color: var(--stone);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  line-height: 1.65;
}

.debrief-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.debrief-stat-label { color: var(--text-dim); }
.debrief-stat-val   { color: var(--white); margin-top: 0.15rem; }

.debrief-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.debrief-section-title {
  font-family: var(--heading); /* Decision 8 */
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.debrief-turning-point {
  font-size: 0.9375rem;
  color: var(--white);
  line-height: 1.6;
}

.debrief-cause {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--stone);
  margin-top: 0.5rem;
}

.debrief-structured-grid {
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--stone);
}

.debrief-structured-grid > div {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.debrief-structured-grid strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.debrief-structured-grid span {
  color: var(--text);
}


  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.debrief-log-table th {
  text-align: left;
  color: var(--text-dim);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.debrief-log-table td {
  padding: 0.3rem 0.5rem;
  color: var(--stone);
  border-bottom: 1px solid rgba(42, 43, 48, 0.5);
  vertical-align: top;
}

.debrief-log-table tr:last-child td { border-bottom: none; }
.debrief-log-table td.td-decision { color: var(--white); }
.debrief-log-table td.td-flag     { color: var(--red); }

.reflection-list { list-style: none; }

.reflection-list li {
  font-style: italic;
  color: var(--stone);
  font-size: 0.9375rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.reflection-list li.dynamic { border-left-color: var(--ochre-dim); }

/* Section 3 — Actions (Decision 18) */
.debrief-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.bottom-sheet-watch-body {
  display: grid;
  gap: 0.85rem;
}

.bottom-sheet-watch-metrics {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottom-sheet-watch-card {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.bottom-sheet-watch-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bottom-sheet-watch-card strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   SUMMIT SUCCESS SCREEN
   ══════════════════════════════════════ */

#screen-summit-success {
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   PART 2 NARRATIVE SCREENS
   ══════════════════════════════════════ */

.part2-step {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  flex: 1;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: part2ContainerIn 950ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 24%, transparent), color-mix(in srgb, var(--surface2) 20%, transparent));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  backdrop-filter: blur(2px);
}

.part2-step > * {
  position: relative;
  z-index: 1;
}

.part2-step-kicker {
  font-family: var(--heading);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.85rem;
}

.part2-step h3 {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.2rem;
}

.part2-step p {
  color: var(--text);
  line-height: 1.75;
  margin: 0 auto 0.9rem;
  max-width: 620px;
  font-size: 1rem;
  opacity: 0;
  animation: part2ParagraphIn 760ms ease-out forwards;
  animation-delay: calc(260ms + (var(--part2-paragraph-index, 0) * 160ms));
}

.part2-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.part2-step-illustration {
  width: min(620px, 100%);
  margin: 1.1rem auto 0.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, rgba(0, 0, 0, 0.2));
}

.part2-step-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.part2-step--titleless h3 {
  display: none;
}

.part2-breath-line {
  margin-top: 0.25rem;
  margin-bottom: 1.15rem;
}

.part2-anim-room_stillness { animation-duration: 1080ms; }
.part2-anim-room_stillness p { animation-delay: calc(330ms + (var(--part2-paragraph-index, 0) * 170ms)); }

.part2-anim-lobby_drift::before,
.part2-anim-social_fragments::before,
.part2-anim-road_transition::before,
.part2-anim-guided_stability::before,
.part2-anim-night_breath::before,
.part2-anim-future_hold::before,
.part2-anim-room_stillness::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(127, 179, 200, 0.06), transparent 60%);
  transform-origin: center;
  animation: part2BackgroundDrift 16s ease-in-out infinite alternate;
}

.part2-anim-lobby_drift::before { animation-duration: 14s; }
.part2-anim-social_fragments p { animation-delay: calc(220ms + (var(--part2-paragraph-index, 0) * 210ms)); }
.part2-anim-guided_stability::before { animation-duration: 20s; opacity: 0.45; }
.part2-anim-night_breath::before {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 58%);
  animation: part2BackgroundDrift 18s ease-in-out infinite alternate, part2NightBreath 7.5s ease-in-out infinite;
}
.part2-anim-road_transition::before { animation-duration: 12.5s; }
.part2-anim-future_hold {
  animation-duration: 1020ms;
}
.part2-anim-future_hold::before {
  animation: none;
  opacity: 0.28;
}

.part2-visual-dark-room {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, #000 18%), color-mix(in srgb, var(--surface2) 88%, #000 12%));
}

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

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

@keyframes part2BackgroundDrift {
  from { transform: translateX(0px) scale(1.00); }
  to { transform: translateX(6px) scale(1.03); }
}

@keyframes part2NightBreath {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.32; }
}

/* ══════════════════════════════════════
   JOURNAL SCREEN
   ══════════════════════════════════════ */

#screen-journal {
  padding: 2rem 1.5rem;
  align-items: center;
}

.journal-box { max-width: 680px; width: 100%; }

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.journal-title {
  font-family: var(--heading);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.journal-entries { display: flex; flex-direction: column; gap: 0; }

.journal-entry {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.journal-entry:first-child { border-top: none; }
.journal-entry-header { color: var(--white); margin-bottom: 0.2rem; }
.journal-entry-detail { color: var(--stone); line-height: 1.6; }

.journal-empty {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}


.part2-feedback-cta {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--ice) 34%, var(--border));
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
  text-align: left;
}

.part2-feedback-cta h4 {
  margin: 0 0 0.5rem;
  font-family: var(--heading);
  font-size: 1rem;
  color: var(--white);
}

.part2-feedback-cta p {
  margin: 0;
}

.part2-feedback-cta a {
  color: var(--ice);
}
