/* Role Play how-it-works — chrome + in-phone screens.
   Grey/blue canvas; one teal moment per view. */

:root {
  --void: #0c1318;
  --mist: #7a99ab;
  --halo: #b8cdd8;
  --teal-core: #00c4a0;
  --teal-glow: #00e5c0;
  --teal-mid: #007a64;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.hidden { display: none !important; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 50% -8%, rgba(0, 196, 160, 0.10), transparent 42%),
    linear-gradient(180deg, #0a0f12 0%, #07090c 60%, #050507 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 72px;
}

.page-header { text-align: center; margin-bottom: 36px; max-width: 560px; }
.page-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-core); margin-bottom: 12px;
}
.page-headline {
  font-size: clamp(28px, 6vw, 38px); font-weight: 850; line-height: 1.08;
  letter-spacing: -0.035em; color: #fff; margin: 0 0 14px;
}
.page-sub { font-size: 16px; color: rgba(255, 255, 255, 0.62); line-height: 1.62; margin: 0; }

.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; }

.hiw-device {
  position: relative;
  width: min(92vw, 392px);
  height: min(82vh, 788px);
  border-radius: 46px;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 44px 96px rgba(0, 0, 0, 0.62),
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.hiw-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #04060a;
  border-radius: 0 0 18px 18px; z-index: 60;
}

.hiw-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: linear-gradient(180deg, #08080c 0%, #060609 44%, #040407 100%);
}
.hiw-screen::-webkit-scrollbar { display: none; }
.hiw-screen::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

.hiw-screen .rp-page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 36px 16px 78px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hiw-screen[data-state="live"] { overflow: hidden; }
.hiw-screen[data-state="live"] .rp-page {
  min-height: 0;
  height: 100%;
  padding-bottom: 78px;
}

.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 8px 8px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 10, 0.94) 28%);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px;
}
.bottom-nav svg { width: 20px; height: 20px; }
.bottom-nav .nav-item.active { color: rgba(255, 255, 255, 0.88); }
.bottom-nav .nav-item--coach { color: var(--teal-core); }

.rp-topbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px;
}
.rp-wordmark {
  font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em;
}
.rp-back {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}

/* Home */
.hiw-home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; margin-bottom: 2px;
}
.hiw-home-wordmark {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
}
.hiw-home-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: rgba(255, 255, 255, 0.8);
}
.hiw-home-greeting {
  margin: 8px 0 0; font-size: 1.85rem; line-height: 1.05;
  letter-spacing: -0.045em; font-weight: 850;
}
.hiw-home-sub {
  margin: 4px 0 0; font-size: 0.92rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}
.hiw-practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hiw-practice-card {
  appearance: none; width: 100%; text-align: left; font-family: inherit;
  padding: 14px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex; flex-direction: column; gap: 8px; min-height: 74px;
  color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; font-weight: 750;
}
button.hiw-practice-card { cursor: pointer; }
.hiw-practice-card.is-featured {
  border-color: rgba(0, 196, 160, 0.42);
  background: rgba(0, 196, 160, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 196, 160, 0.18), 0 10px 24px rgba(0, 150, 124, 0.18);
}
.hiw-practice-icon { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.55); }
.hiw-practice-icon svg { width: 100%; height: 100%; }
.hiw-home-focus {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 4px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}
.hiw-home-focus-label {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); flex: 0 0 auto;
  padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hiw-home-focus-text { flex: 1; font-size: 0.86rem; color: rgba(255, 255, 255, 0.55); }
.hiw-home-focus-edit { flex: 0 0 auto; color: rgba(255, 255, 255, 0.4); display: inline-flex; }
.hiw-home-focus-edit svg { width: 15px; height: 15px; }

/* Home + debrief coach mist — same recipe as Interview / Pitch / Speech */
.kouli-mist-button {
  position: relative;
  appearance: none;
  width: 100%;
  height: clamp(180px, 28vh, 240px);
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hiw-home .kouli-mist-button { height: clamp(150px, 24vh, 196px); margin: 2px 0 0; }
.rp-debrief .kouli-mist-button { height: clamp(140px, 22vh, 180px); }

/* Debrief coach — dense organosynth mist, audio-reactive */
.rp-coach-mist {
  position: relative;
  appearance: none;
  width: 100%;
  height: clamp(156px, 24vh, 200px);
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.rp-coach-mist:focus-visible {
  outline: 3px solid rgba(0, 196, 160, 0.85);
  outline-offset: 6px;
  border-radius: 22px;
}
.rp-coach-mist .kouli-coach-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  pointer-events: none;
}
.rp-coach-mist .kouli-mist-label { pointer-events: none; }
.rp-coach-mist.is-speaking .kouli-mist-label {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55), 0 0 48px rgba(0, 196, 160, 0.85);
}
.kouli-mist-button:focus-visible {
  outline: 3px solid rgba(0, 196, 160, 0.85);
  outline-offset: 6px;
  border-radius: 28px;
}
.kouli-mist {
  position: absolute;
  inset: 18px 0 4px;
  overflow: hidden;
  pointer-events: none;
  filter: saturate(1.32);
  animation: kouliMistBreathe 5.2s ease-in-out infinite;
}
.kouli-mist::before,
.kouli-mist::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 44%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(0, 196, 160, 0.32), rgba(0, 229, 192, 0.42), rgba(34, 211, 238, 0.24), transparent);
  filter: blur(22px);
  opacity: 0.78;
  animation: kouliMistDrift 8s ease-in-out infinite alternate;
}
.kouli-mist::after {
  width: 78%;
  height: 64%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.22), rgba(0, 196, 160, 0.46), rgba(96, 165, 250, 0.24), transparent);
  filter: blur(34px);
  opacity: 0.5;
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}
.kouli-mist .kouli-mist-col {
  position: absolute;
  left: var(--mist-left);
  bottom: 12%;
  width: clamp(10px, 3.8vw, 18px);
  height: calc(62px + (var(--mist-i) * 4px));
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--mist-color), rgba(255, 255, 255, 0));
  filter: blur(8px);
  opacity: 0.46;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: kouliMistColumn 4.6s ease-in-out infinite;
  animation-delay: var(--mist-delay);
}
.kouli-mist-label {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(8, 8, 18, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.45), 0 0 42px rgba(0, 196, 160, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 24px rgba(8, 8, 18, 0.32);
  white-space: nowrap;
}
.rp-mist-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-core);
  box-shadow: 0 0 10px rgba(0, 196, 160, 0.7);
}
.kouli-mist-button:hover .kouli-mist { filter: saturate(1.55) brightness(1.08); }
.kouli-mist-button:active .kouli-mist { transform: scale(0.985); }
.kouli-mist-button.is-speaking .kouli-mist { filter: saturate(1.7) brightness(1.14); }
.kouli-mist-button.is-speaking .rp-mist-dot,
.rp-coach-mist.is-speaking .rp-mist-dot {
  box-shadow: 0 0 12px rgba(0, 196, 160, 0.95);
  animation: rp-mist-dot-pulse 1s ease-in-out infinite;
}
@keyframes rp-mist-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
@keyframes kouliMistBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes kouliMistDrift {
  0% { transform: translate(-58%, -50%); }
  100% { transform: translate(-42%, -50%); }
}
@keyframes kouliMistColumn {
  0%, 100% { opacity: 0.32; transform: translateX(-50%) scaleY(0.85); }
  50% { opacity: 0.7; transform: translateX(-50%) scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .kouli-mist,
  .kouli-mist::before,
  .kouli-mist::after,
  .kouli-mist .kouli-mist-col { animation: none; }
}

/* List */
#list-card { gap: 10px; }
.rp-list-title {
  margin: 4px 0 0; font-size: 1.7rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.08;
}
.rp-list-sub {
  margin: 4px 0 2px; font-size: 0.88rem; line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}
.rp-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rp-label {
  margin: 0 0 1px 2px; font-size: 0.66rem; font-weight: 850;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.46);
}
.rp-rows {
  display: flex; flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  overflow: hidden;
}
.rp-row {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 10px 14px;
  background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff; font-family: inherit;
}
.rp-row:first-child { border-top: 0; }
.rp-row.is-selected {
  background: rgba(0, 229, 192, 0.09);
}
.rp-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-row-name { font-size: 0.9rem; font-weight: 700; }
.rp-row-desc {
  font-size: 0.76rem; color: rgba(255, 255, 255, 0.56);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rp-row-chev { color: rgba(255, 255, 255, 0.34); font-size: 1.2rem; }
.rp-row.is-selected .rp-row-chev { color: rgba(0, 229, 192, 0.9); }
.rp-more-row {
  appearance: none; width: 100%; margin-top: 4px; padding: 10px 2px 2px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.rp-more-row .rp-label { margin: 0; }
.rp-more-row .rp-row-chev { font-size: 1.05rem; }

/* Brief */
.rp-title { margin: 4px 0 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; }
.rp-tag { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.4; color: rgba(255, 255, 255, 0.58); }
.rp-field-label {
  margin: 0 0 6px; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.46);
}
.rp-scene-box {
  margin: 0; padding: 12px 13px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82);
}
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip {
  appearance: none; cursor: pointer; font-family: inherit;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.78);
}
.rp-chip.is-on {
  border-color: rgba(184, 205, 216, 0.4);
  color: #fff;
}
.rp-cta {
  appearance: none; width: 100%; min-height: 52px; margin-top: auto;
  border: none; border-radius: 15px; cursor: pointer;
  color: var(--void); font-size: 1.02rem; font-weight: 750; font-family: inherit;
  background: var(--teal-core);
}
.rp-cta:hover { background: var(--teal-glow); }

/* Live */
#live-card {
  gap: 10px;
  height: 100%;
  padding-bottom: 78px;
}
.kouli-coach-stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid rgba(0, 196, 160, 0.18);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 95%, rgba(0, 122, 100, 0.20) 0%, transparent 58%),
    linear-gradient(180deg, #0a0d0e 0%, #07090c 45%, #050608 100%);
  --voice-energy: 0.45;
}
.kouli-voice-stage-inner { position: absolute; inset: 0; overflow: hidden; }
.kouli-voice-glow {
  position: absolute; left: 50%; bottom: 0; width: 92%; height: 88%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 95% at 50% 100%,
    rgba(0, 196, 160, calc(0.22 + var(--voice-energy) * 0.4)) 0%,
    rgba(0, 122, 100, calc(0.1 + var(--voice-energy) * 0.2)) 40%,
    transparent 85%
  );
  filter: blur(22px); pointer-events: none;
}
.kouli-voice-mist-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.kouli-voice-mist-field.is-speaking .kouli-mist-col {
  animation-duration: calc(0.55s + (var(--col-i) % 5) * 0.07s);
}
.kouli-voice-mist-field .kouli-mist-col {
  position: absolute; bottom: -4%; left: var(--col-left, 50%);
  width: 8.5%; min-width: 10px; max-width: 36px; height: 88%;
  margin-left: -4.25%;
  transform-origin: center bottom;
  transform: scaleY(var(--col-scale, 0.32));
  filter: blur(22px);
  opacity: calc(0.38 + var(--voice-energy) * 0.42);
  border-radius: 40% 40% 8% 8% / 55% 55% 12% 12%;
  animation: kouli-mist-col-rise 2.6s ease-in-out infinite;
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='violet'] {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 192, 0.45) 50%, rgba(0, 196, 160, 0.72) 100%);
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='purple'] {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 196, 160, 0.5) 52%, rgba(0, 150, 124, 0.78) 100%);
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='plum'] {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 100, 0.42) 55%, rgba(0, 61, 51, 0.7) 100%);
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='indigo'] {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.48) 50%, rgba(14, 165, 233, 0.75) 100%);
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='blue'] {
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.46) 55%, rgba(2, 132, 199, 0.72) 100%);
}
.kouli-voice-mist-field .kouli-mist-col[data-tone='charcoal'] {
  background: linear-gradient(180deg, transparent 0%, rgba(51, 65, 85, 0.38) 50%, rgba(18, 30, 36, 0.85) 100%);
}
@keyframes kouli-mist-col-rise {
  0%, 100% { transform: scaleY(calc(var(--col-scale, 0.3) * 0.75)) translateY(2%); }
  45% { transform: scaleY(calc(var(--col-scale, 0.3) * 1.08)) translateY(-8%); }
}
.rp-counterpart {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 4; margin: 0; max-width: calc(100% - 24px);
  font-size: 0.78rem; font-weight: 650; color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.rp-counterpart span { color: var(--mist); font-weight: 500; }
.rp-turn {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
}
.rp-turn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mist);
}
.rp-turn.is-you .rp-turn-dot {
  background: var(--teal-core);
  box-shadow: 0 0 10px rgba(0, 196, 160, 0.45);
}
.rp-progress-track {
  height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.rp-progress-fill {
  display: block; height: 100%; width: 42%;
  border-radius: 999px; background: rgba(184, 205, 216, 0.7);
}

.sc-self-view {
  appearance: none; position: relative; width: 100%;
  min-height: 148px; flex: 1 1 auto; padding: 0; border: 0; border-radius: 18px;
  overflow: hidden; cursor: default;
  background: #0a1014;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sc-self-view-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
}
.sc-self-view:not(.is-on) .sc-self-view-video { opacity: 0; }
.sc-self-view-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(8, 12, 16, 0.55);
  pointer-events: none;
}
.sc-self-view.is-on .sc-self-view-placeholder { display: none; }
.sc-self-view.is-placeholder .sc-self-view-video { opacity: 0; }
.sc-self-view.is-placeholder .sc-self-view-placeholder { display: flex; }
.sc-self-view-label { font-size: 0.82rem; font-weight: 700; color: rgba(255, 255, 255, 0.88); }
.sc-self-view-hint { font-size: 0.72rem; color: var(--mist); }
.sc-self-view-guide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 0.4;
}
.sc-self-view-nudge {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(8, 12, 16, 0.72);
  color: var(--halo); font-size: 0.72rem; font-weight: 650;
}
.rp-end-wrap { margin-top: auto; }
.sc-end-cta { margin-top: 0; }

/* Debrief */
.rp-outcome {
  padding: 4px 2px 8px;
}
.rp-outcome-kicker {
  margin: 0 0 8px; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.46);
}
.rp-outcome-lens {
  margin: 0 0 6px; font-size: 0.72rem; font-weight: 750;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88);
}
.rp-outcome-status {
  margin: 0; font-size: 1.7rem; font-weight: 850; letter-spacing: -0.04em; line-height: 1.08;
}
.rp-outcome-line {
  margin: 8px 0 0; font-size: 0.92rem; line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}
.rp-metrics {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rp-metric-row { display: flex; flex-direction: column; gap: 5px; }
.rp-metric-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rp-metric-name { font-size: 0.9rem; font-weight: 700; color: var(--halo); }
.rp-metric-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin: 0; }
.rp-metric-score { font-size: 0.72rem; font-weight: 700; color: var(--mist); text-transform: uppercase; letter-spacing: 0.08em; }
.rp-metric-track {
  height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.rp-metric-fill {
  display: block; height: 100%; border-radius: 999px;
  background: rgba(184, 205, 216, 0.55);
}
.rp-metric-row.is-focus .rp-metric-name { color: #fff; }
.rp-metric-row.is-focus .rp-metric-score { color: var(--halo); }
.rp-metric-row.is-focus .rp-metric-fill { background: rgba(184, 205, 216, 0.88); }
.rp-said-try {
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px 2px;
}
.rp-said,
.rp-try-line {
  margin: 0; font-size: 0.9rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78);
}
.rp-said span,
.rp-try-line span {
  display: block; margin-bottom: 4px;
  font-size: 0.9rem; font-weight: 750; color: #fff;
}

.kouli-analyzing {
  position: absolute; inset: 0 0 60px 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}
.kouli-analyzing-label {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.step-nav-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%; max-width: 360px;
}
.nav-controls { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: center; }
.nav-arrow {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(0, 196, 160, 0.55);
  background: linear-gradient(135deg, rgba(0, 196, 160, 0.22), rgba(0, 196, 160, 0.10));
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--teal-glow); flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 196, 160, 0.22);
}
.nav-arrow:hover:not(:disabled) {
  color: #fff; transform: translateY(-1px);
}
.nav-arrow:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.28);
  box-shadow: none; cursor: default;
}
.nav-arrow svg { width: 24px; height: 24px; }
.nav-label { text-align: center; min-width: 190px; }
.nav-step-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.nav-step-desc { font-size: 11.5px; color: rgba(255, 255, 255, 0.46); line-height: 1.45; }
.dot-row { display: flex; gap: 7px; align-items: center; }
.step-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer; border: none; padding: 0;
}
.step-dot.active { background: var(--teal-core); transform: scale(1.4); }
.embed-note { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.3); text-align: center; }
