:root {
  --surface-canvas: #f7f3ea;
  --surface-card: #ffffff;
  --content-primary: #17233f;
  --content-secondary: #667085;
  --content-inverse: #ffffff;
  --border-subtle: #e3ddd1;
  --accent-primary: #d96b2b;
  --action-primary: #c65322;
  --action-soft: #fbe9dc;
  --progress-active: #d96b2b;
  --hierarchy-secondary: #a94e32;
  --reward-accent: #f2b84b;
  --reflection-accent: #5e766d;
  --success: #34715b;
  --success-soft: #eaf4ef;
  --error: #a54432;
  --error-soft: #f9e9e5;
  --shadow-soft: 0 12px 30px rgba(23, 35, 63, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font-ui: "Segoe UI", system-ui, sans-serif;
  --font-symbolic: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--surface-canvas);
  color: var(--content-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--surface-canvas);
}

.app-shell .app-viewport {
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

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

button {
  color: inherit;
}

.prototype-workbench {
  display: grid;
  grid-template-columns: minmax(390px, 430px) minmax(280px, 340px);
  align-items: start;
  justify-content: center;
  gap: 32px;
  min-height: 100vh;
  padding: 24px;
}

.phone-stage {
  position: sticky;
  top: 24px;
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: 390px;
  height: min(844px, calc(100vh - 48px));
  min-height: 680px;
  overflow: hidden;
  background: var(--surface-canvas);
  border: 9px solid #111827;
  border-radius: 42px;
  box-shadow: 0 28px 70px rgba(23, 35, 63, 0.2);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 5px 20px 0;
  background: var(--surface-canvas);
  color: var(--content-primary);
  font-size: 11px;
  font-weight: 700;
}

.status-icons {
  letter-spacing: 2px;
}

.app-viewport {
  height: calc(100% - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface-canvas);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.screen-content {
  flex: 1;
  padding: 18px 20px 24px;
}

.screen-content.with-sticky-action {
  padding-bottom: 116px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  background: rgba(247, 243, 234, 0.96);
  border-bottom: 1px solid rgba(227, 221, 209, 0.8);
  backdrop-filter: blur(8px);
}

.topbar-title {
  text-align: center;
}

.topbar-title strong,
.topbar-title span {
  display: block;
}

.topbar-title strong {
  font-size: 14px;
  font-weight: 700;
}

.topbar-title span {
  color: var(--content-secondary);
  font-size: 11px;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--surface-card);
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--hierarchy-secondary);
  font-size: 12px;
  font-weight: 700;
}

.track-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--content-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.track-label::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--accent-primary);
}

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

h1 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.35;
}

p {
  margin-bottom: 16px;
  color: var(--content-secondary);
}

.lead {
  color: var(--content-primary);
  font-size: 17px;
  line-height: 1.48;
}

.muted {
  color: var(--content-secondary);
}

.small {
  font-size: 13px;
  line-height: 1.45;
}

.symbolic-copy {
  font-family: var(--font-symbolic);
  font-size: 20px;
  line-height: 1.45;
}

.card {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 18px rgba(23, 35, 63, 0.04);
}

.card.soft-orange {
  background: #fff8f2;
  border-color: #f2d4bf;
}

.card.soft-sage {
  background: #f1f5f2;
  border-color: #d5e0da;
}

.card.soft-blue {
  background: #f2f5f9;
  border-color: #dce3ec;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.change-user-button {
  display: block;
  min-height: 32px;
  margin: -4px 0 4px auto;
  padding: 4px 0;
  font-size: 12px;
}

.qa-shortcut {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.qa-shortcut .text-button {
  margin-top: 4px;
  text-align: left;
}

.progress-wrap {
  margin: 14px 0 20px;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--content-secondary);
  font-size: 13px;
  font-weight: 600;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #ebe6dc;
  border-radius: 999px;
}

.progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--progress-active);
  border-radius: inherit;
  transition: width 360ms ease;
}

.experience-card {
  min-height: 230px;
  padding: 22px 20px;
}

.experience-card.has-character {
  padding-right: 106px;
}

.experience-number {
  margin-bottom: 12px;
  color: var(--hierarchy-secondary);
  font-size: 12px;
  font-weight: 700;
}

.experience-card h2 {
  max-width: 210px;
}

.character-bust {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 112px;
  height: 168px;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

.character-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: 50% 16%;
  border: 2px solid var(--surface-card);
  border-radius: 50%;
  background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.guide-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 10px 12px;
  color: var(--content-secondary);
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.guide-line img {
  flex: 0 0 auto;
}

.sticky-action {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--surface-canvas) 78%, rgba(247, 243, 234, 0));
}

.primary-button,
.secondary-button,
.text-button,
.option-button,
.chip-button,
.match-button {
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  color: var(--content-inverse);
  font-weight: 700;
  background: var(--action-primary);
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(198, 83, 34, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #ad461c;
  outline: 3px solid rgba(217, 107, 43, 0.25);
  outline-offset: 2px;
}

.primary-button:active,
.secondary-button:active,
.option-button:active,
.chip-button:active,
.match-button:active {
  transform: scale(0.985);
}

.primary-button:disabled {
  color: #aca59b;
  background: #e5dfd5;
  box-shadow: none;
  cursor: default;
}

.secondary-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--content-primary);
  font-weight: 700;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.secondary-button + .secondary-button,
.primary-button + .secondary-button,
.secondary-button + .text-button {
  margin-top: 10px;
}

.text-button {
  min-height: 42px;
  padding: 8px 4px;
  color: var(--hierarchy-secondary);
  font-weight: 700;
  background: transparent;
}

.text-button.block {
  display: block;
  width: 100%;
  text-align: center;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--content-primary);
  font-size: 14px;
  font-weight: 700;
}

.text-field,
.text-area,
.time-field {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--content-primary);
  background: var(--surface-card);
  border: 1px solid #cfc7ba;
  border-radius: 13px;
  outline: none;
}

.text-area {
  min-height: 112px;
  resize: vertical;
}

.text-field:focus,
.text-area:focus,
.time-field:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(217, 107, 43, 0.14);
}

.field-error {
  margin: 7px 0 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.option-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--content-primary);
  text-align: left;
  line-height: 1.38;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: #d8a17e;
  outline: none;
}

.option-button.selected {
  background: var(--action-soft);
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.option-button.correct {
  padding-right: 46px;
  background: var(--success-soft);
  border-color: var(--success);
}

.option-button.incorrect {
  padding-right: 46px;
  background: var(--error-soft);
  border-color: var(--error);
}

.option-button.correct::after,
.option-button.incorrect::after {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
}

.option-button.correct::after {
  content: "✓";
  color: var(--success);
}

.option-button.incorrect::after {
  content: "×";
  color: var(--error);
}

.feedback-box {
  margin: 16px 0 20px;
  padding: 14px 15px;
  border-radius: 14px;
}

.feedback-box.correct {
  background: var(--success-soft);
  border-left: 4px solid var(--success);
}

.feedback-box.incorrect {
  background: var(--error-soft);
  border-left: 4px solid var(--error);
}

.feedback-box.neutral {
  background: #f1f3f6;
  border-left: 4px solid var(--content-secondary);
}

.feedback-box strong {
  display: block;
  margin-bottom: 4px;
}

.feedback-box p {
  margin: 0;
  color: var(--content-primary);
  font-size: 14px;
}

.step-dots {
  display: flex;
  gap: 6px;
  margin: 10px 0 22px;
}

.step-dot {
  flex: 1;
  height: 5px;
  background: #ded8cd;
  border-radius: 99px;
}

.step-dot.done,
.step-dot.current {
  background: var(--accent-primary);
}

.match-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
}

.match-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.match-label {
  margin-bottom: 2px;
  color: var(--content-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-button {
  min-height: 68px;
  padding: 10px;
  color: var(--content-primary);
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.match-button.active {
  background: var(--action-soft);
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.match-button.matched {
  color: var(--success);
  background: var(--success-soft);
  border-color: #94bbaa;
  cursor: default;
}

.match-button.error-flash {
  background: var(--error-soft);
  border-color: var(--error);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 20px;
}

.chip-button {
  min-height: 42px;
  padding: 9px 13px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.chip-button.selected {
  color: var(--content-inverse);
  background: var(--reflection-accent);
  border-color: var(--reflection-accent);
}

.chip-button.correct {
  color: var(--success);
  background: var(--success-soft);
  border-color: #94bbaa;
}

.chip-button.incorrect {
  color: var(--error);
  background: var(--error-soft);
  border-color: var(--error);
}

.learning-order {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.learning-order li {
  padding: 12px 14px;
  color: var(--content-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
}

.learning-classification-item {
  margin-bottom: 14px;
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--content-primary);
  font: inherit;
  text-align: left;
}

button.path-item {
  cursor: pointer;
}

button.path-item:hover,
button.path-item:focus-visible {
  border-color: var(--accent-primary);
  outline: 2px solid rgba(217, 107, 43, 0.18);
  outline-offset: 1px;
}

.path-item.current {
  background: #fff8f2;
  border-color: #dea17a;
}

.path-item.locked {
  opacity: 0.6;
}

.path-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--content-secondary);
  font-size: 12px;
  font-weight: 700;
  background: #f0ece4;
  border-radius: 50%;
}

.path-item.complete .path-number {
  color: var(--content-inverse);
  background: var(--success);
}

.path-name {
  font-size: 13px;
  font-weight: 700;
}

.path-state {
  color: var(--content-secondary);
  font-size: 11px;
  font-weight: 600;
}

.journey-screen {
  position: relative;
  isolation: isolate;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 48px;
  overflow: clip;
}

.journey-screen::before {
  position: absolute;
  z-index: -2;
  inset: 0 -20px;
  content: "";
  background:
    radial-gradient(circle at 8% 18%, rgba(242, 184, 75, 0.16), transparent 24%),
    radial-gradient(circle at 94% 56%, rgba(217, 107, 43, 0.13), transparent 28%),
    linear-gradient(180deg, #f7f0e5 0%, #eee3d3 52%, #f8f2e8 100%);
  pointer-events: none;
}

.journey-hero {
  position: relative;
  overflow: hidden;
  margin: -18px -20px 24px;
  min-height: 448px;
  padding: 18px 20px 30px;
  text-align: center;
  color: var(--content-inverse);
  background:
    radial-gradient(circle at 50% 32%, rgba(242, 184, 75, 0.2), transparent 33%),
    radial-gradient(circle at 8% 92%, rgba(198, 83, 34, 0.28), transparent 38%),
    linear-gradient(164deg, #0d1830 0%, #192946 58%, #2c3f5c 100%);
  border-radius: 0 0 34px 34px;
  box-shadow: 0 24px 48px rgba(13, 24, 48, 0.28);
}

.journey-hero::before {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 266px;
  height: 266px;
  content: "";
  background: radial-gradient(circle, rgba(255, 220, 139, 0.22) 0 32%, rgba(217, 107, 43, 0.1) 52%, transparent 72%);
  border: 1px solid rgba(255, 213, 133, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 204, 105, 0.025), 0 0 64px rgba(217, 107, 43, 0.16);
  transform: translateX(-50%);
  pointer-events: none;
}

.journey-hero::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 132px;
  height: 70px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 214, 137, 0.18), rgba(244, 233, 213, 0.72));
  clip-path: polygon(28% 0, 72% 0, 87% 100%, 8% 100%);
  filter: drop-shadow(0 -8px 18px rgba(217, 107, 43, 0.16));
  transform: translateX(-50%);
  pointer-events: none;
}

.journey-hero .card-title-row {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  justify-content: stretch;
  gap: 10px;
}

.journey-hero .card-title-row > div {
  max-width: 330px;
}

.journey-hero .eyebrow,
.journey-hero .track-label,
.journey-hero .journey-intro,
.journey-hero .text-button {
  color: rgba(255, 255, 255, 0.82);
}

.journey-hero .track-label::before {
  background: var(--reward-accent);
}

.journey-hero .brand-mark {
  order: -1;
  width: 186px;
  height: 244px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 22px rgba(4, 12, 28, 0.3));
  margin: -4px auto;
}

.journey-hero h1 {
  margin-bottom: 4px;
  color: var(--content-inverse);
}

.journey-hero .change-user-button {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 18px;
  margin: 0;
}

.journey-hero .track-label {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin: 8px auto 10px;
}

.journey-intro {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 4px auto 0;
  font-size: 14px;
}

.phoenix-journey-summary {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 17px 16px 15px;
  color: #fff8ed;
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 211, 118, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(48, 38, 48, 0.98), rgba(28, 43, 67, 0.98));
  border: 1px solid rgba(222, 155, 82, 0.42);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(13, 24, 48, 0.2), inset 0 1px 0 rgba(255, 247, 227, 0.1);
}

.phoenix-journey-summary::after {
  position: absolute;
  top: -32px;
  right: -28px;
  width: 112px;
  height: 112px;
  content: "";
  background: radial-gradient(circle, rgba(242, 184, 75, 0.18), transparent 68%);
  pointer-events: none;
}

.phoenix-journey-summary-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.phoenix-journey-summary-heading h2,
.phoenix-journey-summary-heading p,
.phoenix-journey-message p,
.phoenix-journey-relation {
  margin: 0;
}

.phoenix-journey-summary-heading h2 {
  color: #fff8ed;
  font-family: var(--font-symbolic);
  font-size: 20px;
  line-height: 1.15;
}

.phoenix-journey-summary-heading p {
  margin-top: 3px;
  color: rgba(255, 235, 203, 0.76);
  font-size: 12px;
}

.phoenix-journey-summary-spark {
  width: 20px;
  height: 20px;
  justify-self: center;
  background: radial-gradient(circle at 35% 30%, #fff0a4 0 16%, #e9983d 42%, #9f4026 74%);
  border-radius: 52% 48% 46% 54%;
  box-shadow: 0 0 10px rgba(255, 190, 77, 0.68), 0 0 22px rgba(217, 107, 43, 0.3);
  transform: rotate(45deg);
}

.phoenix-journey-values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 232, 193, 0.12);
  border-bottom: 1px solid rgba(255, 232, 193, 0.12);
}

.phoenix-journey-values > div {
  display: grid;
  align-content: space-between;
  gap: 4px;
  min-height: 44px;
  padding: 2px 9px;
}

.phoenix-journey-values > div:nth-child(2),
.phoenix-journey-values > div:nth-child(3) {
  border-left: 1px solid rgba(255, 232, 193, 0.12);
}

.phoenix-journey-values dt {
  color: rgba(255, 237, 210, 0.7);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.phoenix-journey-values dd {
  margin: 0;
  color: #ffd787;
  font-family: var(--font-symbolic);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.phoenix-journey-values > div:nth-child(4) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
  align-items: center;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 232, 193, 0.12);
  border-left: 0;
}

.phoenix-journey-embers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phoenix-journey-ember {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  color: rgba(255, 240, 218, 0.84);
  background: rgba(10, 20, 37, 0.12);
  border: 1px solid rgba(255, 231, 188, 0.14);
  border-radius: 13px;
}

.phoenix-journey-ember strong {
  font-size: 10px;
  line-height: 1.2;
}

.phoenix-journey-ember > span {
  width: 12px;
  height: 12px;
  background: #766b62;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.phoenix-journey-ember.lit {
  color: #fff2d9;
  border-color: rgba(242, 184, 75, 0.34);
}

.phoenix-journey-ember.lit > span {
  background: radial-gradient(circle at 35% 30%, #fff0a1 0 18%, #ed9a3b 44%, #a44025 76%);
  box-shadow: 0 0 8px rgba(255, 191, 74, 0.72), 0 0 15px rgba(217, 107, 43, 0.34);
}

.phoenix-journey-ember.dim {
  opacity: 0.58;
}

.phoenix-journey-message {
  position: relative;
  z-index: 1;
  color: #f4d39f;
  font-family: var(--font-symbolic);
  font-size: 12px;
  line-height: 1.35;
}

.phoenix-journey-message p + p {
  margin-top: 3px;
}

.phoenix-journey-relation {
  position: relative;
  z-index: 1;
  padding-top: 9px;
  color: rgba(255, 239, 216, 0.66);
  font-size: 10px;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 232, 193, 0.12);
}

.journey-map {
  position: relative;
  display: grid;
  gap: 56px;
}

.journey-section {
  position: relative;
  overflow: hidden;
  padding: 24px 12px 30px;
  color: #f9f3e8;
  background:
    radial-gradient(circle at 76% 8%, rgba(242, 184, 75, 0.16), transparent 22%),
    radial-gradient(circle at 18% 58%, rgba(217, 107, 43, 0.13), transparent 24%),
    linear-gradient(172deg, #14223b 0%, #243652 54%, #182840 100%);
  border: 1px solid rgba(205, 154, 91, 0.34);
  border-radius: 34px;
  box-shadow: 0 26px 54px rgba(13, 24, 48, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.journey-section:first-child::after {
  position: absolute;
  z-index: 2;
  bottom: -57px;
  left: 50%;
  width: 58px;
  height: 58px;
  content: "";
  background: linear-gradient(180deg, rgba(202, 126, 66, 0.72), rgba(184, 167, 146, 0.3));
  clip-path: polygon(44% 0, 58% 0, 77% 100%, 22% 100%);
  filter: drop-shadow(0 0 12px rgba(217, 107, 43, 0.22));
  transform: translateX(-50%);
}

.journey-section.active {
  background:
    radial-gradient(circle at 50% 1%, rgba(255, 199, 97, 0.3), transparent 22%),
    radial-gradient(circle at 84% 38%, rgba(217, 107, 43, 0.19), transparent 26%),
    radial-gradient(circle at 12% 76%, rgba(242, 184, 75, 0.13), transparent 22%),
    linear-gradient(172deg, #17243c 0%, #30415a 48%, #1a2a42 100%);
  border-color: rgba(235, 151, 83, 0.72);
  box-shadow: 0 30px 66px rgba(198, 83, 34, 0.2), inset 0 1px 0 rgba(255, 244, 222, 0.16);
}

.journey-section.locked {
  background: linear-gradient(172deg, #263249, #354155);
  box-shadow: 0 16px 38px rgba(23, 35, 63, 0.12);
  opacity: 0.74;
}

.journey-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
  padding: 2px 2px 18px;
  border-bottom: 1px solid rgba(255, 236, 204, 0.18);
}

.journey-heading h2 {
  margin: 0;
  font-family: var(--font-symbolic);
  font-size: clamp(19px, 5.2vw, 23px);
  line-height: 1.23;
  color: #fffaf1;
}

.journey-heading p {
  margin: 6px 0 0;
  color: rgba(247, 239, 226, 0.7);
  font-size: 13px;
  font-weight: 600;
}

.journey-symbolic-start {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  max-width: 330px;
  margin: -4px auto 8px;
  padding: 12px 14px 14px;
  text-align: center;
  color: rgba(255, 244, 225, 0.9);
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 221, 158, 0.18);
  border-radius: 18px;
}

.journey-symbolic-start p {
  margin: 0;
  font-family: var(--font-symbolic);
  font-size: 13px;
  line-height: 1.4;
}

.journey-start-phoenix {
  position: relative;
  display: grid;
  width: clamp(118px, 33vw, 126px);
  height: clamp(118px, 33vw, 126px);
  justify-self: center;
  place-items: center;
  overflow: visible;
  padding: 5px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 230, 173, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.08), 0 0 28px rgba(242, 184, 75, 0.42);
  isolation: isolate;
}

.journey-start-phoenix::before {
  position: absolute;
  z-index: -1;
  inset: -13%;
  content: "";
  background: radial-gradient(circle, rgba(255, 215, 127, 0.3), rgba(217, 107, 43, 0.12) 43%, transparent 72%);
  border-radius: 50%;
  opacity: 0.7;
  transform: scale(0.94);
  animation: journey-phoenix-halo 5.8s ease-in-out infinite;
}

.journey-start-phoenix img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transform-origin: 50% 58%;
  animation: journey-phoenix-breathe 6.8s ease-in-out infinite;
}

.journey-start-phoenix.journey-phoenix-experience-reaction {
  animation: journey-phoenix-experience 1.6s cubic-bezier(0.22, 0.82, 0.2, 1) both;
}

.journey-start-phoenix.journey-phoenix-experience-reaction::before {
  animation: journey-phoenix-experience-halo 1.6s ease-out both;
}

.journey-start-phoenix.journey-phoenix-experience-reaction img {
  animation: journey-phoenix-experience-flight 1.6s cubic-bezier(0.22, 0.82, 0.2, 1) both;
}

.journey-start-phoenix.journey-phoenix-journey-reaction {
  animation: journey-phoenix-journey 3.4s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.journey-start-phoenix.journey-phoenix-journey-reaction::before {
  animation: journey-phoenix-journey-halo 3.4s ease-out both;
}

.journey-start-phoenix.journey-phoenix-journey-reaction img {
  animation: journey-phoenix-journey-flight 3.4s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes journey-phoenix-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.4deg) scale(0.985); }
  50% { transform: translateY(-4px) rotate(0.6deg) scale(1.015); }
}

@keyframes journey-phoenix-halo {
  0%, 100% { opacity: 0.48; transform: scale(0.92); }
  50% { opacity: 0.82; transform: scale(1.04); }
}

@keyframes journey-phoenix-experience {
  0%, 100% { box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.08), 0 0 28px rgba(242, 184, 75, 0.42); }
  42% { box-shadow: 0 0 0 10px rgba(255, 207, 103, 0.18), 0 0 44px rgba(242, 137, 48, 0.72); }
}

@keyframes journey-phoenix-experience-flight {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  38% { transform: translateY(-8px) rotate(-1.8deg) scale(1.075); }
  68% { transform: translateY(-2px) rotate(1.2deg) scale(1.025); }
}

@keyframes journey-phoenix-experience-halo {
  0%, 100% { opacity: 0.62; transform: scale(0.94); }
  44% { opacity: 1; transform: scale(1.22); }
}

@keyframes journey-phoenix-journey {
  0%, 100% { box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.08), 0 0 28px rgba(242, 184, 75, 0.42); }
  22% { box-shadow: 0 0 0 13px rgba(255, 218, 128, 0.24), 0 0 58px rgba(244, 124, 36, 0.82); }
  58% { box-shadow: 0 0 0 8px rgba(255, 218, 128, 0.16), 0 0 42px rgba(242, 184, 75, 0.64); }
}

@keyframes journey-phoenix-journey-flight {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  18% { transform: translateY(-13px) rotate(-2.5deg) scale(1.13); }
  38% { transform: translateY(-5px) rotate(2deg) scale(1.07); }
  62% { transform: translateY(-9px) rotate(-1deg) scale(1.1); }
}

@keyframes journey-phoenix-journey-halo {
  0%, 100% { opacity: 0.62; transform: scale(0.94); }
  20% { opacity: 1; transform: scale(1.38); }
  62% { opacity: 0.86; transform: scale(1.16); }
}

.journey-section[data-journey-moment="2"] .journey-symbolic-start {
  color: #fff0d4;
  background: linear-gradient(90deg, rgba(217, 107, 43, 0.18), rgba(242, 184, 75, 0.05));
  border-color: rgba(242, 160, 79, 0.28);
}

.journey-section[data-journey-moment="3"] .journey-symbolic-start {
  color: #f5eed5;
  background: linear-gradient(90deg, rgba(81, 121, 116, 0.24), rgba(242, 184, 75, 0.05));
  border-color: rgba(163, 202, 178, 0.28);
}

.journey-section[data-journey-moment="4"] .journey-symbolic-start {
  color: #fff0dc;
  background: linear-gradient(90deg, rgba(151, 75, 52, 0.24), rgba(242, 184, 75, 0.06));
  border-color: rgba(234, 155, 111, 0.3);
}

.journey-section[data-journey-moment="2"] .journey-start-phoenix {
  border-color: rgba(255, 205, 125, 0.84);
  box-shadow: 0 0 0 3px rgba(217, 107, 43, 0.12), 0 0 17px rgba(242, 142, 69, 0.58);
}

.journey-section.locked .journey-symbolic-start {
  opacity: 0.5;
}

.journey-section.active .journey-heading .eyebrow {
  color: #ffc66f;
}

.journey-section.previous .journey-heading .eyebrow,
.journey-section.locked .journey-heading .eyebrow {
  color: rgba(246, 225, 191, 0.66);
}

.journey-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: rgba(255, 245, 229, 0.78);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.journey-section.active .journey-count {
  color: #fff1d8;
  background: rgba(217, 107, 43, 0.26);
}

.journey-path-stage {
  position: relative;
  isolation: isolate;
}

.journey-path {
  position: relative;
  z-index: 0;
  gap: 56px;
  padding: 18px 0 16px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 200, 105, 0.11), transparent 10%),
    radial-gradient(circle at 26% 48%, rgba(217, 107, 43, 0.13), transparent 11%),
    radial-gradient(circle at 66% 78%, rgba(255, 200, 105, 0.1), transparent 10%);
}

.journey-path::before {
  content: none;
}

.journey-path::after {
  content: none;
}

.journey-section.active .journey-path::before {
  content: none;
}

.journey-feather-trail {
  position: absolute;
  z-index: -1;
  inset: 18px 0 16px;
  pointer-events: none;
}

.journey-feather {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 58px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(111, 61, 24, 0.56) 48% 52%, transparent 53%),
    repeating-linear-gradient(145deg, transparent 0 5px, rgba(255, 242, 205, 0.58) 6px 7px, transparent 8px 11px),
    linear-gradient(155deg, #ffd980 0%, #df8845 58%, #a94f28 100%);
  border: 1px solid rgba(255, 223, 157, 0.58);
  border-radius: 82% 12% 76% 18%;
  clip-path: polygon(48% 0, 75% 15%, 100% 43%, 70% 71%, 53% 100%, 43% 72%, 7% 50%, 27% 19%);
  box-shadow: 0 0 10px rgba(242, 184, 75, 0.34);
  opacity: 0.64;
  transform: translateX(-50%) rotate(10deg) scale(0.92);
  transform-origin: 50% 50%;
}

.journey-feather:nth-child(1) { top: 0%; left: 50%; transform: translateX(-50%) rotate(5deg) scale(1); }
.journey-feather:nth-child(2) { top: 7%; left: 56%; transform: translateX(-50%) rotate(19deg) scale(0.74); }
.journey-feather:nth-child(3) { top: 14%; left: 53%; transform: translateX(-50%) rotate(-7deg) scale(0.96); }
.journey-feather:nth-child(4) { top: 21%; left: 46%; transform: translateX(-50%) rotate(-18deg) scale(0.72); }
.journey-feather:nth-child(5) { top: 28%; left: 42%; transform: translateX(-50%) rotate(-13deg) scale(1.04); }
.journey-feather:nth-child(6) { top: 35%; left: 47%; transform: translateX(-50%) rotate(13deg) scale(0.76); }
.journey-feather:nth-child(7) { top: 42%; left: 54%; transform: translateX(-50%) rotate(21deg) scale(0.98); }
.journey-feather:nth-child(8) { top: 49%; left: 58%; transform: translateX(-50%) rotate(14deg) scale(0.72); }
.journey-feather:nth-child(9) { top: 56%; left: 53%; transform: translateX(-50%) rotate(-10deg) scale(1.06); }
.journey-feather:nth-child(10) { top: 63%; left: 46%; transform: translateX(-50%) rotate(-20deg) scale(0.74); }
.journey-feather:nth-child(11) { top: 70%; left: 42%; transform: translateX(-50%) rotate(-12deg) scale(0.98); }
.journey-feather:nth-child(12) { top: 77%; left: 47%; transform: translateX(-50%) rotate(15deg) scale(0.72); }
.journey-feather:nth-child(13) { top: 84%; left: 54%; transform: translateX(-50%) rotate(21deg) scale(1.02); }
.journey-feather:nth-child(14) { top: 91%; left: 58%; transform: translateX(-50%) rotate(11deg) scale(0.76); }
.journey-feather:nth-child(15) { top: 97%; left: 52%; transform: translateX(-50%) rotate(-8deg) scale(0.94); }

.journey-feather:nth-child(even) {
  opacity: 0.4;
}

.journey-section.active .journey-feather {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(255, 190, 77, 0.58);
}

.journey-section.active .journey-feather:nth-child(even) {
  opacity: 0.58;
}

.journey-section[data-journey-moment="2"] .journey-feather {
  background:
    linear-gradient(90deg, transparent 47%, rgba(100, 46, 20, 0.62) 48% 52%, transparent 53%),
    repeating-linear-gradient(145deg, transparent 0 5px, rgba(255, 236, 194, 0.56) 6px 7px, transparent 8px 11px),
    linear-gradient(155deg, #ffd46f 0%, #e87339 58%, #90351f 100%);
}

.journey-section[data-journey-moment="3"] .journey-feather {
  background:
    linear-gradient(90deg, transparent 47%, rgba(44, 79, 72, 0.62) 48% 52%, transparent 53%),
    repeating-linear-gradient(145deg, transparent 0 5px, rgba(235, 246, 221, 0.54) 6px 7px, transparent 8px 11px),
    linear-gradient(155deg, #d7cf7a 0%, #799b72 58%, #345f59 100%);
}

.journey-section[data-journey-moment="4"] .journey-feather {
  background:
    linear-gradient(90deg, transparent 47%, rgba(104, 43, 29, 0.64) 48% 52%, transparent 53%),
    repeating-linear-gradient(145deg, transparent 0 5px, rgba(255, 231, 197, 0.56) 6px 7px, transparent 8px 11px),
    linear-gradient(155deg, #ffc06a 0%, #c75a32 58%, #6c2b2d 100%);
}

.journey-section.previous .journey-feather {
  opacity: 0.66;
}

.journey-section.previous .journey-feather:nth-child(even) {
  opacity: 0.42;
}

.journey-section.locked .journey-feather {
  filter: grayscale(0.45);
  opacity: 0.24;
}

.journey-section.locked .journey-feather:nth-child(even) {
  opacity: 0.14;
}

.journey-step {
  position: relative;
  z-index: 1;
  width: 84%;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 14px;
  min-height: 88px;
  margin-right: 16%;
  padding: 14px 4px 14px 16px;
  overflow: visible;
  border-color: rgba(255, 232, 195, 0.44);
  border-radius: 28px 18px 28px 28px;
  background: linear-gradient(112deg, rgba(255, 253, 246, 0.95), rgba(244, 235, 221, 0.86));
  box-shadow: 0 14px 30px rgba(4, 12, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.journey-step:nth-child(even) {
  width: 84%;
  grid-template-columns: 50px minmax(0, 1fr);
  margin-right: 0;
  margin-left: 16%;
  padding: 14px 16px 14px 4px;
  border-radius: 18px 28px 28px 28px;
  box-shadow: 0 18px 34px rgba(4, 12, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.journey-step::before {
  content: none;
}

.journey-step:nth-child(even)::before {
  content: none;
}

.journey-step::after {
  content: none;
}

.journey-step:nth-child(odd) .journey-marker {
  grid-column: 2;
  grid-row: 1;
}

.journey-step:nth-child(odd) .journey-copy {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.journey-step.current {
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 197, 94, 0.24), transparent 25%),
    linear-gradient(105deg, #fff5e8, #fffdf9 76%);
  border-color: var(--accent-primary);
  box-shadow: 0 18px 38px rgba(217, 107, 43, 0.28), 0 0 28px rgba(242, 184, 75, 0.12), inset 0 1px 0 #fff;
}

.journey-step.available {
  border-color: #cdb79f;
  background: linear-gradient(105deg, rgba(255, 251, 245, 0.96), rgba(250, 246, 239, 0.72));
}

.journey-step.locked {
  color: #515b6b;
  border-color: rgba(235, 224, 207, 0.56);
  background: linear-gradient(105deg, rgba(238, 235, 228, 0.92), rgba(255, 249, 239, 0.84));
  box-shadow: none;
  opacity: 0.84;
}

.journey-step.locked .path-state {
  color: #747b87;
}

.journey-marker {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #7a7168;
  font-size: 13px;
  font-weight: 800;
  background: #eee8de;
  position: relative;
  border: 3px solid #fffdf9;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d0c3b4, 0 5px 14px rgba(23, 35, 63, 0.12);
}

.journey-step.complete .journey-marker {
  color: #5e3a12;
  font-size: 19px;
  background: radial-gradient(circle at 35% 28%, #fff1b2 0%, #ffd369 32%, #edae36 100%);
  box-shadow: 0 0 0 1px #d59a2e, 0 0 22px rgba(242, 184, 75, 0.52), 0 6px 14px rgba(141, 91, 23, 0.16);
}

.journey-step.complete .journey-marker::after {
  position: absolute;
  top: -5px;
  right: -3px;
  width: 7px;
  height: 7px;
  content: "";
  background: #fff1af;
  border-radius: 50%;
  box-shadow: 0 0 7px #ffc55f, 0 0 14px rgba(232, 115, 48, 0.74);
}

.journey-step.complete {
  border-color: rgba(219, 175, 91, 0.48);
  background: linear-gradient(105deg, rgba(255, 249, 228, 0.94), rgba(255, 255, 255, 0.76));
}

.journey-step.current .journey-marker {
  color: var(--content-inverse);
  background: linear-gradient(145deg, var(--accent-primary), var(--action-primary));
  box-shadow: 0 0 0 3px #f9dfc9, 0 0 25px rgba(217, 107, 43, 0.48), 0 7px 16px rgba(128, 54, 19, 0.2);
}

.journey-step.current {
  outline: 1px solid rgba(255, 210, 135, 0.32);
  outline-offset: 3px;
}

.journey-step.available .journey-marker {
  color: var(--hierarchy-secondary);
  background: #fff5eb;
  box-shadow: 0 0 0 1px #d9a27e;
}

.journey-copy,
.journey-copy .path-name,
.journey-copy .path-state {
  display: block;
  min-width: 0;
}

.journey-copy .path-name {
  font-family: var(--font-symbolic);
  font-size: 17px;
  line-height: 1.3;
}

.journey-copy .path-state {
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.journey-step.current .path-state {
  color: var(--action-primary);
}

.journey-pending {
  width: 100%;
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
  text-align: left;
  border-color: #e5b78f;
  cursor: pointer;
}

.journey-section .qa-shortcut {
  margin-top: 14px;
}

.journey-symbolic-close {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 8px 0;
  padding: 18px 14px 4px;
  text-align: center;
  border-top: 1px solid rgba(255, 224, 172, 0.18);
}

.journey-symbolic-close p {
  margin: 0;
  color: rgba(255, 244, 226, 0.9);
  font-family: var(--font-symbolic);
  font-size: 14px;
  line-height: 1.45;
}

.journey-symbolic-close p span {
  display: block;
}

.journey-close-ember {
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 36% 30%, #fff1a8 0 18%, #ed993e 42%, #9f3f25 74%);
  border-radius: 50% 50% 46% 54%;
  box-shadow: 0 0 10px rgba(255, 190, 77, 0.72), 0 0 24px rgba(217, 107, 43, 0.38);
  transform: rotate(45deg);
}

.journey-section[data-journey-moment="2"] .journey-close-ember {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 12px rgba(255, 196, 83, 0.84), 0 0 30px rgba(217, 84, 43, 0.52);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  padding: 11px 12px;
  color: var(--content-secondary);
  font-size: 12px;
  background: #f0ede7;
  border-radius: 12px;
}

.record-orb {
  width: 116px;
  height: 116px;
  margin: 22px auto;
  display: grid;
  place-items: center;
  color: var(--content-inverse);
  font-size: 15px;
  font-weight: 700;
  background: var(--action-primary);
  border: 10px solid #f6d8c6;
  border-radius: 50%;
  cursor: pointer;
}

.record-orb.recording {
  animation: breathe 1.6s ease-in-out infinite;
  background: var(--error);
  border-color: #f1c6bd;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.audio-player {
  width: 100%;
  margin: 12px 0 16px;
}

.preparation-list {
  counter-reset: prep;
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.preparation-list li {
  counter-increment: prep;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--content-primary);
}

.preparation-list li::before {
  content: counter(prep);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--hierarchy-secondary);
  font-size: 12px;
  font-weight: 700;
  background: var(--action-soft);
  border-radius: 50%;
}

.reward-stage,
.moment-close-stage,
.access-stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  text-align: center;
}

.fenix-hero {
  width: 176px;
  height: 176px;
  margin: 0 auto 14px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.access-stage .fenix-hero {
  width: 132px;
  height: 132px;
  margin-bottom: 4px;
}

.access-stage h1 {
  margin-bottom: 6px;
}

.access-stage > p {
  margin-bottom: 24px;
}

.access-form {
  text-align: left;
}

.entry-screen {
  background:
    radial-gradient(circle at 82% 8%, rgba(242, 184, 75, 0.13), transparent 28%),
    var(--surface-canvas);
}

.welcome-stage,
.entry-content {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 26px 22px calc(32px + env(safe-area-inset-bottom));
}

.welcome-stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.welcome-phoenix {
  width: 150px;
  height: 198px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.welcome-stage h1 {
  margin-bottom: 8px;
  font-family: var(--font-symbolic);
  font-size: 38px;
  letter-spacing: 0.04em;
}

.welcome-stage .lead {
  max-width: 330px;
  margin: 0 auto 28px;
}

.entry-actions {
  width: 100%;
}

.entry-prompt {
  margin: 24px 0 8px;
  color: var(--content-primary);
  font-size: 14px;
  font-weight: 600;
}

.entry-content {
  flex: 1;
  padding-top: 28px;
}

.entry-content > h1 {
  margin-bottom: 8px;
}

.entry-form {
  margin-top: 24px;
}

.entry-form select.text-field {
  appearance: auto;
}

.field-help {
  margin: -2px 0 8px;
  font-size: 13px;
}

.entry-status {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100dvh - 58px);
  text-align: center;
}

.entry-mark {
  width: 96px;
  height: 126px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.entry-notice {
  margin: 34px 0 24px;
  padding: 24px 20px;
  background: #fff8f2;
  border: 1px solid #f2d4bf;
  border-radius: var(--radius-md);
}

.entry-notice h1 {
  font-size: 24px;
}

.entry-notice p {
  margin-bottom: 0;
}

.site-combobox {
  position: relative;
  min-width: 0;
}

.site-results {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  max-height: min(320px, 42vh);
  max-height: min(320px, 42dvh);
  margin-top: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
}

.site-result {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  text-align: left;
  overflow-wrap: anywhere;
  background: var(--surface-card);
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.site-result:last-child {
  border-bottom: 0;
}

.site-result:hover,
.site-result.is-active,
.site-result:focus-visible {
  background: var(--action-soft);
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}

.site-empty {
  margin: 7px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  background: #efede8;
  border-radius: var(--radius-sm);
}

.success-stage {
  text-align: center;
}

.success-stage .entry-mark {
  width: 116px;
  height: 156px;
}

.phoenix-code-card {
  margin: 22px 0 18px;
  padding: 22px 18px;
  background: #fff8ed;
  border: 1px solid #efc87a;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(169, 78, 50, 0.1);
}

.phoenix-code-card h2 {
  font-size: 18px;
}

.phoenix-code {
  display: block;
  margin: 10px 0 14px;
  color: var(--content-primary);
  font-size: clamp(34px, 11vw, 46px);
  line-height: 1;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.phoenix-code-card p {
  margin-bottom: 18px;
}

.confirmation-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 14px;
  text-align: left;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  cursor: pointer;
}

.confirmation-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--action-primary);
}

.secondary-button:focus-visible,
.text-button:focus-visible,
.confirmation-check:has(input:focus-visible) {
  outline: 3px solid rgba(217, 107, 43, 0.35);
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .welcome-stage,
  .entry-content,
  .access-stage {
    padding-right: 16px;
    padding-left: 16px;
  }

  .welcome-phoenix {
    width: 126px;
    height: 166px;
  }

  .phoenix-code {
    letter-spacing: 0.08em;
  }
}

.reward-icon {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: var(--hierarchy-secondary);
  font-size: 48px;
  background: #fff7df;
  border: 1px solid #f0d184;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(242, 184, 75, 0.25);
}

.flame {
  display: inline-block;
  color: var(--reward-accent);
  font-size: 1em;
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(169, 78, 50, 0.18));
}

.badge-seal {
  width: 122px;
  height: 122px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--content-inverse);
  background: var(--content-primary);
  border: 8px solid #f8df9e;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(23, 35, 63, 0.18);
}

.badge-seal span {
  font-size: 52px;
}

.reward-stage .symbolic-copy,
.moment-close-stage .symbolic-copy {
  max-width: 300px;
  margin-right: auto;
  margin-left: auto;
}

.micro-question {
  margin-bottom: 18px;
  padding-bottom: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.micro-question:last-child {
  border-bottom: 0;
}

.micro-question h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.micro-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.micro-options .chip-button {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 12px;
}

.success-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.pending-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hierarchy-secondary);
  font-size: 13px;
  font-weight: 700;
}

.locked-card {
  text-align: center;
}

.value-reference {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.value-reference .eyebrow {
  margin-bottom: 4px;
}

.value-reference strong {
  color: var(--content-primary);
  font-size: 17px;
}

.lock-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--content-primary);
  background: #ede9e1;
  border-radius: 50%;
  font-size: 23px;
}

.toast {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 20;
  padding: 12px 14px;
  color: var(--content-inverse);
  font-size: 13px;
  font-weight: 600;
  background: var(--content-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  animation: toast-in 220ms ease both;
}

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

.test-panel {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: #f8f8f7;
  border: 1px solid #d6d3cd;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(23, 35, 63, 0.08);
}

.panel-kicker {
  margin-bottom: 6px;
  color: var(--hierarchy-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.test-panel h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.test-panel > p {
  font-size: 13px;
}

.panel-section {
  margin-top: 20px;
}

.panel-section h2 {
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-details summary {
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.panel-details[open] summary {
  color: var(--hierarchy-secondary);
}

.panel-section button {
  width: 100%;
  min-height: 38px;
  margin-bottom: 6px;
  padding: 8px 10px;
  color: #28344f;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #dedbd4;
  border-radius: 9px;
  cursor: pointer;
}

.panel-section button:hover,
.panel-section button.active {
  color: var(--action-primary);
  border-color: #d8a17e;
  background: #fff8f2;
}

.panel-note {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding: 12px;
  color: #4b5563;
  font-size: 12px;
  background: #efede8;
  border-radius: 10px;
}

.panel-note code {
  color: var(--hierarchy-secondary);
  font-weight: 700;
}

@media (max-width: 760px) {
  body {
    background: var(--surface-canvas);
  }

  .prototype-workbench {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .phone-stage {
    position: static;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-status {
    display: none;
  }

  .app-viewport {
    height: 100%;
  }

  .test-panel {
    display: none;
  }
}

@media (min-width: 761px) {
  body {
    background: #e9e5dd;
  }

  .app-shell {
    max-width: 480px;
    box-shadow: 0 0 48px rgba(23, 35, 63, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .journey-start-phoenix img,
  .journey-start-phoenix::before {
    animation: none !important;
  }

  .journey-start-phoenix.journey-phoenix-experience-reaction,
  .journey-start-phoenix.journey-phoenix-journey-reaction {
    animation-name: journey-phoenix-reduced-reaction !important;
  }
}

@keyframes journey-phoenix-reduced-reaction {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.025); }
}

.phoenix-fire-portal {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: visible;
  margin-top: 28px;
  padding: 28px 24px;
  color: #fff8ed;
  background: radial-gradient(circle at 82% 12%, rgba(242, 184, 75, 0.22), transparent 34%), linear-gradient(145deg, #43231f, #172641 72%);
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(10, 20, 37, 0.28);
}

.phoenix-fire-portal::before {
  position: absolute;
  z-index: 0;
  top: -54px;
  left: 50%;
  width: 2px;
  height: 60px;
  content: "";
  background: linear-gradient(180deg, rgba(242, 184, 75, 0.05), rgba(242, 184, 75, 0.7));
  box-shadow: 0 0 12px rgba(217, 107, 43, 0.34);
  transform: translateX(-50%);
}

.phoenix-fire-path-link {
  position: absolute;
  z-index: 2;
  top: -45px;
  left: 50%;
  width: 70px;
  height: 58px;
  transform: translateX(-50%);
  pointer-events: none;
}

.phoenix-fire-path-link span {
  position: absolute;
  width: 12px;
  height: 22px;
  background: linear-gradient(155deg, #ffe28e, #df7740 68%, #82301e);
  border-radius: 82% 12% 76% 18%;
  clip-path: polygon(48% 0, 75% 15%, 100% 43%, 70% 71%, 53% 100%, 43% 72%, 7% 50%, 27% 19%);
  filter: drop-shadow(0 0 6px rgba(242, 184, 75, 0.66));
}

.phoenix-fire-path-link span:nth-child(1) { top: 0; left: 25px; transform: rotate(-14deg); }
.phoenix-fire-path-link span:nth-child(2) { top: 18px; left: 38px; transform: rotate(18deg) scale(0.86); }
.phoenix-fire-path-link span:nth-child(3) { top: 36px; left: 28px; transform: rotate(-5deg) scale(0.72); }

.phoenix-fire-continuation {
  color: #ffd99e;
  font-family: var(--font-symbolic);
  font-size: 14px;
}

.phoenix-fire-portal.secondary {
  opacity: 0.94;
}

.phoenix-fire-portal .eyebrow,
.phoenix-fire-portal .small {
  color: #f3d6ad;
}

.phoenix-fire-portal h2,
.phoenix-fire-portal p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.phoenix-fire-portal .primary-button,
.phoenix-fire-portal .secondary-button {
  position: relative;
  z-index: 1;
  width: 100%;
}

.phoenix-fire-halo {
  position: absolute;
  top: 18px;
  right: 18px;
  opacity: 0.7;
  filter: drop-shadow(0 0 16px rgba(242, 184, 75, 0.5));
}

.phoenix-fire-flame.large {
  width: 72px;
  height: 86px;
}

.phoenix-fire-portal-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.phoenix-fire-portal-status span {
  color: #f3d6ad;
  font-size: 13px;
}

.fire-screen {
  background: linear-gradient(180deg, #f7f1e8 0, #fffaf4 34%, #f7f4ee 100%);
}

.fire-header {
  text-align: center;
}

.fire-brazier {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  background: radial-gradient(circle, rgba(242, 184, 75, 0.3), rgba(198, 83, 34, 0.08) 56%, transparent 70%);
}

.fire-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  color: #fff8ed;
  background: linear-gradient(145deg, #172641, #43231f);
  border-radius: 18px;
}

.fire-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fire-summary span {
  color: #e7cda8;
  font-size: 11px;
  line-height: 1.25;
}

.fire-summary strong {
  font-size: 15px;
  line-height: 1.2;
}

.fire-summary p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #f4ddba;
}

.fire-suggested,
.fire-choose,
.fire-reading,
.fire-closing,
.fire-recording {
  margin: 18px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ead8c5;
  border-radius: 18px;
}

.fire-suggested {
  border-color: #d49a5c;
  box-shadow: 0 12px 28px rgba(105, 58, 31, 0.1);
}

.fire-suggested .primary-button {
  width: 100%;
  margin-top: 16px;
}

.fire-family-grid,
.fire-food-list {
  display: grid;
  gap: 10px;
}

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

.fire-family-button,
.fire-food-card {
  min-width: 0;
  padding: 14px;
  color: #263650;
  text-align: left;
  background: #fffaf4;
  border: 1px solid #dfc4a6;
  border-radius: 14px;
  cursor: pointer;
}

.fire-family-button.selected {
  color: #7b341e;
  background: #fbe8d5;
  border-color: #c65322;
}

.fire-food-list {
  margin-top: 14px;
}

.fire-food-card {
  display: grid;
  gap: 5px;
}

.fire-food-card span:last-child {
  color: #687386;
  font-size: 13px;
}

.fire-food-screen h1 {
  margin-top: 6px;
}

.fire-reading {
  background: #fff8ee;
}

.fire-recording audio {
  width: 100%;
}

.fire-closing {
  color: #6c391f;
  background: #fbe8d5;
}

@media (max-width: 390px) {
  .fire-summary {
    grid-template-columns: 1fr 1fr;
  }

  .fire-summary div:first-child,
  .fire-summary p {
    grid-column: 1 / -1;
  }
}

.journey-ceremony-screen {
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff6d4 0, #f7dfad 26%, #bf5d2b 66%, #52261f 100%);
}

.journey-ceremony-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100dvh - 76px);
  padding: 24px;
  color: #fff9ef;
  text-align: center;
}

.journey-ceremony-halo {
  position: absolute;
  top: 39%;
  left: 50%;
  z-index: -1;
  width: min(78vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 180, 0.86), rgba(242, 184, 75, 0.24) 52%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: journey-ceremony-halo 4.2s ease-out both;
}

.journey-ceremony-phoenix {
  width: min(68vw, 310px);
  max-height: 48vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(55, 20, 10, 0.35));
  animation: journey-ceremony-flight 4.2s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.journey-ceremony-stage h1 {
  margin: 4px 0 6px;
  color: #fffdf5;
  font-size: clamp(30px, 8vw, 48px);
}

.journey-ceremony-stage p {
  max-width: 480px;
  margin: 0 0 18px;
  color: #ffe8c8;
}

.journey-ceremony-skip {
  color: #fff7e8;
  border-color: rgba(255, 255, 255, 0.55);
}

@keyframes journey-ceremony-flight {
  0% { opacity: 0; transform: translateY(32px) scale(0.88); }
  18% { opacity: 1; }
  64% { transform: translateY(-4px) scale(1.04); }
  100% { opacity: 1; transform: translateY(-12px) scale(1); }
}

@keyframes journey-ceremony-halo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  35%, 72% { opacity: 1; }
  100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .journey-ceremony-halo,
  .journey-ceremony-phoenix { animation: none; }
}

@media (max-width: 390px) {
  .journey-ceremony-stage { padding: 16px; }
  .journey-ceremony-phoenix { width: min(72vw, 270px); }
}

.learning-notes {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.learning-notes p {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--reflection-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f3f7f5;
}

.attention-countdown,
.attention-focus-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #000;
}

.attention-countdown strong {
  font: 400 clamp(56px, 18vw, 96px)/1 var(--font-ui);
}

.attention-circle {
  position: relative;
  width: min(62vw, 280px);
  aspect-ratio: 1;
  border: 3px solid #000;
  border-radius: 50%;
}

.attention-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

.attention-timer {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  color: #777;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.phoenix-progress-bar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100% - 24px, 680px);
  margin: 10px auto 14px;
  padding: 8px;
  color: #4b2b25;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(198, 83, 34, 0.2);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(76, 44, 34, 0.1);
  backdrop-filter: blur(12px);
}

.phoenix-progress-bar.after-topbar {
  top: 58px;
}

.phoenix-progress-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.phoenix-progress-value span {
  display: grid;
  min-width: 0;
}

.phoenix-progress-value small {
  overflow: hidden;
  color: #78594e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.phoenix-progress-value strong {
  font-size: 20px;
  line-height: 1;
}

.phoenix-progress-flame {
  width: 24px;
  height: 28px;
  flex: 0 0 auto;
}

.phoenix-progress-sun {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 5px solid #e5a83b;
  border-radius: 50%;
  box-shadow: 0 -11px 0 -8px #c65322, 0 11px 0 -8px #c65322, 11px 0 0 -8px #c65322, -11px 0 0 -8px #c65322;
}

.phoenix-progress-value em {
  position: absolute;
  top: -14px;
  right: 6px;
  padding: 4px 7px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: #c65322;
  border-radius: 999px;
  animation: phoenix-fire-gain 1.4s ease both;
}

.phoenix-progress-bar.has-fire-gain .phoenix-progress-flame {
  animation: phoenix-progress-pulse 850ms ease-out;
}

@keyframes phoenix-fire-gain {
  0% { opacity: 0; transform: translateY(12px) scale(0.8); }
  25%, 70% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.92); }
}

@keyframes phoenix-progress-pulse {
  35% { transform: scale(1.2); filter: drop-shadow(0 0 7px rgba(242, 184, 75, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .phoenix-progress-value em,
  .phoenix-progress-bar.has-fire-gain .phoenix-progress-flame { animation: none; }
}

@media (max-width: 390px) {
  .phoenix-progress-bar {
    width: calc(100% - 20px);
    margin-block: 8px 12px;
    padding: 6px;
  }

  .phoenix-progress-value {
    gap: 6px;
    padding: 7px 6px;
  }

  .phoenix-progress-value small { font-size: 9px; }
  .phoenix-progress-value strong { font-size: 18px; }
}

@media (max-width: 390px) {
  .attention-circle { width: min(68vw, 240px); }
}
