/* ============================================================
   The Cyclink — Unknown Island journey
   Warm, quiet editorial layout using the existing brand tokens.
   Mobile first; no artwork is required for the page to feel whole.
   ============================================================ */

.rj {
  --rj-paper: #fffdf8;
  --rj-line: rgba(43, 33, 24, 0.14);
  --rj-line-strong: rgba(43, 33, 24, 0.28);
  --rj-soft: #f6efe2;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.rj *,
.rj *::before,
.rj *::after { box-sizing: border-box; }
.rj [hidden] { display: none !important; }

.rj-container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}
.rj-narrow { width: min(840px, 100% - 40px); }

.rj-view {
  padding: calc(var(--nav-h) + 34px) 0 88px;
}

.rj-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.rj-title,
.rj-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7.2vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.rj-page-title { font-size: clamp(2rem, 7vw, 3rem); }
.rj-title { max-width: 20em; }
.rj-title__line { display: block; }
.rj-title__line--nowrap { white-space: nowrap; }

.rj-intro__grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}
.rj-intro__lead {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink-soft);
  text-wrap: balance;
}
.rj-intro__lead + .rj-intro__lead { margin-top: 0.15rem; }
.rj-intro__body {
  margin: 1.35rem 0 0;
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.95;
  text-wrap: balance;
}
.rj-intro__note {
  margin: 1.35rem 0 0;
  max-width: 38ch;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: balance;
}
.rj-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  margin-top: 1.7rem;
}
.rj-disclaimer {
  margin: 1.5rem 0 0;
  max-width: 42ch;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: balance;
}
.rj-progress-note {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rj-line);
  border-radius: var(--radius-pill);
  background: var(--rj-paper);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.rj-progress-note p { margin: 0; }

/* Ticket: a filled, designed object, not an empty illustration slot. */
.rj-ticket-wrap { min-width: 0; }
.rj-ticket {
  position: relative;
  padding: 1.2rem 1.35rem 1.05rem;
  background: var(--rj-paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 28px 4px 28px;
  box-shadow: 8px 10px 0 rgba(255, 196, 46, 0.45);
  transform: rotate(-1.2deg);
}
.rj-ticket::before,
.rj-ticket::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
}
.rj-ticket::before { left: 26px; }
.rj-ticket::after { right: 26px; }
.rj-ticket__top,
.rj-ticket__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.rj-ticket__bottom { justify-content: flex-end; }
.rj-ticket__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.8rem;
}
.rj-ticket__mark {
  width: 100px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  color: var(--ink);
  fill: currentColor;
}
.rj-ticket__route {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 600;
}
.rj-ticket__stops {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin: 1.4rem 0;
  padding: 0.8rem 0;
  border-top: 1px dashed var(--rj-line-strong);
  border-bottom: 1px dashed var(--rj-line-strong);
}
.rj-ticket__stops span {
  display: block;
  width: 6px;
  height: 6px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--ink);
}
.rj-ticket__stops span:nth-child(3n) { background: var(--yellow-deep); }

/* Buttons */
.rj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.rj-button--primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-1); }
.rj-button--primary:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.rj-button--ghost { background: transparent; color: var(--ink); border-color: var(--rj-line-strong); }
.rj-button--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.rj-button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.rj-text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(43, 33, 24, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}
.rj-text-button:hover { text-decoration-color: var(--ink); }
.rj-text-link {
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(43, 33, 24, 0.3);
  text-underline-offset: 3px;
}
.rj-text-link:hover { text-decoration-color: var(--ink); }

.rj-small {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.rj-back { margin-bottom: 0.7rem; }
.rj-noscript { padding: calc(var(--nav-h) + 40px) 0; }
.rj-noscript a { font-weight: 800; }


/* Basics */
.rj-page-lead {
  margin: 0.85rem 0 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1rem;
}
.rj-form {
  display: grid;
  gap: 1rem;
  max-width: none;
  margin-top: 1.6rem;
}
.rj-field { display: grid; gap: 0.4rem; }
.rj-form__row { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .rj-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rj-field__label { font-weight: 800; font-size: 0.95rem; }
.rj-field__hint {
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--yellow-soft);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink);
}
.rj-field input,
.rj-field select {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--rj-line-strong);
  border-radius: 12px;
  background: var(--rj-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.rj-field input:focus,
.rj-field select:focus { border-color: var(--ink); outline: 3px solid rgba(255, 196, 46, 0.55); outline-offset: 1px; }
.rj-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--tangerine);
  background: #fff5ee;
  font-size: 0.9rem;
  font-weight: 700;
}
.rj-form .rj-button { justify-self: start; margin-top: 0.4rem; }

/* Progress + question */
.rj-progress { margin-bottom: 1.6rem; }
.rj-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rj-station-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rj-bar {
  display: block;
  height: 5px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgba(43, 33, 24, 0.1);
  overflow: hidden;
}
.rj-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}
.rj-question {
  padding: 1.4rem 1.2rem 1.2rem;
  background: var(--rj-paper);
  border: 1.5px solid var(--rj-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}
.rj-question__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.rj-question__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.22;
}
.rj-question__title:focus { outline: none; }
.rj-question__scene {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.95;
}
.rj-question__prompt {
  margin: 0.85rem 0 0;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.75;
}
.rj-media { margin: 1rem 0; }
.rj-media img,
.rj-media video { width: 100%; height: auto; border-radius: 14px; }

.rj-options {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}
.rj-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  width: 100%;
  padding: 1.1rem 1.05rem;
  border: 1.5px solid var(--rj-line);
  border-radius: 16px 16px 26px 16px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.75;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.rj-option:hover { border-color: var(--ink); transform: translateY(-1px); }
.rj-option.is-selected { border-color: var(--ink); background: var(--yellow-soft); }
.rj-option__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--rj-line-strong);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}
.rj-option.is-selected .rj-option__mark { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.rj-skip {
  width: 100%;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px dashed var(--rj-line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.rj-skip.is-selected { border-style: solid; border-color: var(--ink); background: var(--yellow-soft); }
.rj-result-view { padding-top: calc(var(--nav-h) + 28px); }
.rj-result-hero {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--rj-paper);
  border: 1.5px solid var(--rj-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}
.rj-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.rj-event-ref { margin-top: 0.65rem; }
.rj-event-ticket {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px dashed var(--rj-line-strong);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.rj-event-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rj-result-title {
  margin: 0.55rem 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rj-result-title:focus { outline: none; }
.rj-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-top: 1.5rem;
}
.rj-result-hero--neutral .rj-result-title { max-width: 18ch; }
.rj-neutral-body {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-size: 1.03rem;
  line-height: 1.95;
  color: var(--ink-soft);
}
.rj-low-progress {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Role cards */
.rj-role-card {
  margin-top: 1.6rem;
  padding: 1.2rem;
  background: var(--rj-pale);
  border: 1.5px solid var(--rj-line);
  border-color: color-mix(in srgb, var(--rj-accent) 30%, transparent);
  border-radius: 22px 22px 38px 22px;
}
.rj-role-card__top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.rj-role-card__portrait,
.rj-plate {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}
.rj-role-card__portrait {
  object-fit: contain;
  background: #fff8e8;
  border: 1px solid var(--rj-line);
  padding: 0.2rem;
}
.rj-role-card__portrait--head { object-fit: cover; }
.rj-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  background: var(--rj-soft);
  color: var(--rj-accent);
  border: 1px solid var(--rj-line);
  border-color: color-mix(in srgb, var(--rj-accent) 28%, transparent);
  object-fit: cover;
}
.rj-plate__mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.rj-plate__code {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.rj-plate--image {
  display: block;
  object-fit: contain;
  background: #fff8e8;
  padding: 0.2rem;
}
.rj-plate--head { object-fit: cover; }
.rj-role-card__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rj-accent);
}
.rj-role-card__title { margin: 0.2rem 0 0; font-weight: 900; line-height: 1.2; }
.rj-role-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.rj-role-card__en {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rj-accent);
}
.rj-role-card__role {
  margin: 0.4rem 0 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink-soft);
}
.rj-role-card__quote {
  margin: 1.1rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--rj-accent);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rj-role-card__intro {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink-soft);
}
.rj-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rj-keywords li {
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--rj-line);
  border-color: color-mix(in srgb, var(--rj-accent) 28%, transparent);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.rj-role-card .rj-text-link { display: inline-block; margin-top: 1rem; font-size: 0.82rem; }

.rj-card-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
.rj-card-grid .rj-role-card { margin-top: 0; height: 100%; }
.rj-card-grid--dual { grid-template-columns: minmax(0, 1fr); }
.rj-card-grid--mixed { grid-template-columns: minmax(0, 1fr); }
.rj-card-grid--mixed .rj-role-card__top { grid-template-columns: 64px minmax(0, 1fr); }
.rj-card-grid--mixed .rj-plate,
.rj-card-grid--mixed .rj-role-card__portrait { width: 64px; height: 64px; border-radius: 18px; }
.rj-card-grid--mixed .rj-plate__mark { font-size: 1.65rem; }
.rj-card-grid--mixed .rj-role-card__name { font-size: 1.35rem; }
.rj-card-grid--mixed .rj-role-card__quote { font-size: 0.95rem; }

.rj-secondary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--rj-line-strong);
  border-color: color-mix(in srgb, var(--rj-accent) 35%, transparent);
  border-radius: 16px;
  background: var(--rj-pale);
  font-size: 1rem;
}
.rj-secondaries { display: grid; gap: 0.75rem; margin-top: 1rem; }
.rj-secondaries .rj-secondary { margin-top: 0; }
.rj-tie-note {
  margin: 0.7rem 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.rj-role-label {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--rj-accent);
}
.rj-mini-profiles { margin-top: 1.5rem; }
.rj-profile__summary { display: grid; gap: 0.2rem; min-width: 0; }
.rj-profile__role { font-size: 0.88rem; font-weight: 800; color: var(--rj-accent); }
.rj-profile__intro { font-size: 0.95rem; line-height: 1.8; color: var(--ink-soft); }
.rj-profile--main {
  border-color: color-mix(in srgb, var(--rj-accent) 35%, transparent);
  border-radius: 22px;
}
.rj-profile--main summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}
.rj-profile--main summary::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.rj-profile__move {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  background: #fff8e8;
  object-fit: contain;
}
.rj-profile--main .rj-profile__name { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; }
.rj-profile--main .rj-profile__open { margin-top: 0.25rem; }
@media (min-width: 720px) {
  .rj-profile--main summary { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
  .rj-profile__move { margin-inline: 0; }
}
.rj-mini-profiles__title {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.rj-mini-grid { display: grid; gap: 0.7rem; }
.rj-mini-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--rj-line);
  border-radius: 14px;
  background: var(--rj-pale);
}
.rj-mini-profile__head {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff8e8;
  border: 1px solid var(--rj-line);
}
.rj-mini-profile__head--fallback {
  display: grid;
  place-items: center;
  color: var(--rj-accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.rj-mini-profile__body { display: grid; gap: 0.2rem; min-width: 0; }
.rj-mini-profile__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.rj-mini-profile__title { margin: 0; font-size: 0.82rem; font-weight: 800; color: var(--rj-accent); }
.rj-mini-profile__intro { margin: 0.2rem 0 0; font-size: 0.88rem; line-height: 1.7; color: var(--ink-soft); }
@media (min-width: 720px) {
  .rj-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rj-secondary__avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: contain;
  background: #fff8e8;
  border: 1px solid var(--rj-line);
  padding: 0.15rem;
}
.rj-secondary__avatar--head { object-fit: cover; }
.rj-secondary__avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--rj-accent);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.rj-secondary__body { display: grid; gap: 0.45rem; min-width: 0; }
.rj-secondary p { margin: 0; }
.rj-secondary__role { color: var(--ink); font-size: 0.95rem; font-weight: 800; line-height: 1.55; }
.rj-secondary__quote { color: var(--ink-soft); font-weight: 700; }
.rj-secondary .rj-text-link { font-size: 0.82rem; }

/* Sections */
.rj-section {
  margin-top: 1.6rem;
  padding: clamp(1.3rem, 4vw, 2.1rem);
  background: var(--rj-paper);
  border: 1.5px solid var(--rj-line);
  border-radius: 22px 22px 38px 22px;
}
.rj-section__index {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.rj-section__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}
.rj-section__lead {
  margin: 0.55rem 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.rj-scenes {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rj-scenes li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.3rem;
  border-top: 1px solid var(--rj-line);
  font-size: 1rem;
  line-height: 1.8;
}
.rj-scenes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-deep);
}
.rj-scenes--tagged li { padding-left: 1.3rem; }
.rj-scene-tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--rj-soft);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  vertical-align: 0.08em;
}

.rj-pairs { display: grid; gap: 0.8rem; margin-top: 1rem; }
.rj-pair {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rj-line);
}
.rj-pair__item p { margin: 0; font-size: 1rem; line-height: 1.8; }
.rj-pair__label {
  margin-bottom: 0.15rem !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.rj-tips { counter-reset: tip; display: grid; gap: 0.8rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.rj-tips li {
  counter-increment: tip;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.85;
}
.rj-tips li::before {
  content: counter(tip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--yellow-soft);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}
.rj-tips--tagged li { grid-template-columns: minmax(0, 1fr); }
.rj-tips--tagged li::before { display: none; }

.rj-invite {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--yellow-deep);
  background: var(--yellow-soft);
  border-radius: 0 14px 14px 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
}
.rj-invites { display: grid; gap: 0.7rem; margin-top: 1rem; }
.rj-invites .rj-invite { margin: 0; font-size: 0.95rem; }

/* Start / courses */
.rj-start-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
}
.rj-start-list__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rj-line);
  font-size: 0.95rem;
}
.rj-start-list__row dt { color: var(--ink-soft); font-weight: 700; }
.rj-start-list__row dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.rj-section .rj-text-button { margin-top: 0.8rem; }

.rj-course-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1.5px solid var(--rj-line);
  border-radius: 18px;
  background: var(--cream);
}
.rj-course-card--primary { background: var(--yellow-soft); border-color: rgba(43, 33, 24, 0.2); }
.rj-course-card__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.rj-course-card--primary .rj-course-card__label { font-size: 1.15rem; letter-spacing: 0; color: var(--ink); }
.rj-course-card__desc { margin: 0.5rem 0 0; font-size: 0.96rem; line-height: 1.85; color: var(--ink-soft); }
.rj-course-card .rj-button { margin-top: 0.9rem; }
.rj-course-all { margin: 1rem 0 0; font-size: 0.9rem; }

/* Profiles */
.rj-profiles { display: grid; gap: 0.7rem; margin-top: 1rem; }
.rj-profile {
  border: 1.5px solid var(--rj-line);
  border-radius: 16px;
  background: var(--rj-pale);
  overflow: hidden;
}
.rj-profile summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}
.rj-profile summary::-webkit-details-marker { display: none; }
.rj-profile summary::after { content: none; }
.rj-profile[open] summary::after { content: none; }
.rj-profile__name { font-weight: 900; }
.rj-profile__open {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  margin-right: auto;
  padding: 0.34rem 0.65rem;
  border: 1.5px solid var(--rj-accent);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.rj-profile__open::before {
  content: "+";
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}
.rj-profile[open] .rj-profile__open::before { content: "−"; }
.rj-profile summary:hover .rj-profile__open { background: var(--yellow-soft); transform: translateY(-1px); }
.rj-profile__body { padding: 0 1rem 1.1rem; border-top: 1px dashed var(--rj-line); }
.rj-profile__story { margin: 1rem 0 0; font-size: 1rem; line-height: 1.95; }
.rj-profile__list { display: grid; gap: 0.6rem; margin: 1rem 0 0; }
.rj-profile__list div { display: grid; gap: 0.15rem; }
.rj-profile__list dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: var(--rj-accent); }
.rj-profile__list dd { margin: 0; font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft); }
.rj-profile .rj-text-link { display: inline-block; margin-top: 0.9rem; font-size: 0.82rem; }

.rj-others {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--rj-line-strong);
  border-radius: 16px;
  background: transparent;
}
.rj-others summary { cursor: pointer; font-weight: 900; }
.rj-others p { margin: 0.7rem 0 0; font-size: 0.88rem; line-height: 1.8; color: var(--ink-soft); }
.rj-others .rj-button { margin-top: 0.8rem; }

.rj-crew-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rj-crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.4rem;
  border: 1px solid var(--rj-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.rj-crew-card:hover { border-color: var(--ink); }
.rj-crew-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #fff8e8;
}
.rj-crew-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}
.rj-crew-section__link { margin: 1rem 0 0; font-size: 0.86rem; }

.rj-result-footer { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rj-line); }
.rj-result-footer p { margin: 0; font-size: 0.84rem; line-height: 1.8; color: var(--ink-soft); }
.rj-result-footer .rj-small { margin-top: 0.4rem; font-size: 0.78rem; }
.rj-result-footer__actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }
.rj-safety {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--tangerine);
  background: #fff5ee;
  color: var(--ink);
}


.rj-question__actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.rj-question__footer { margin-top: 1.1rem; text-align: center; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Palette tones */
.rj-tone--butter { --rj-accent: #b9800b; --rj-soft: #fff1c9; --rj-pale: #fffaf0; }
.rj-tone--sky { --rj-accent: #3f8ca8; --rj-soft: #e3f3f8; --rj-pale: #f5fbfd; }
.rj-tone--sage { --rj-accent: #5f8243; --rj-soft: #edf3e6; --rj-pale: #f8fbf4; }
.rj-tone--tangerine { --rj-accent: #c96627; --rj-soft: #fff0e6; --rj-pale: #fff9f3; }
.rj-tone--oat { --rj-accent: #7d684f; --rj-soft: #f3ece1; --rj-pale: #fcf8f1; }

/* Share workspace */
.rj-dialog {
  width: min(1080px, calc(100% - 24px));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-3);
  overflow: auto;
}
.rj-dialog::backdrop { background: rgba(43, 33, 24, 0.55); }
.rj-dialog__panel { padding: clamp(1rem, 3vw, 1.8rem); }
.rj-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.rj-dialog__head .rj-eyebrow { margin-bottom: 0.35rem; }
.rj-dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}
.rj-dialog__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rj-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.rj-share-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.2rem;
}
.rj-share-preview { min-width: 0; }
.rj-share-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.rj-share-formats button {
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--rj-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.rj-share-formats button.is-active { border-color: var(--ink); background: var(--yellow); }
.rj-share-canvas {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 0.8rem;
  border: 1.5px dashed var(--rj-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}
.rj-share-placeholder {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}
.rj-share-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-2);
}
.rj-status {
  min-height: 1.5em;
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.rj-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.rj-share-actions .rj-button { min-height: 44px; padding: 0.65rem 1rem; font-size: 0.88rem; }
.rj-share-caption { display: grid; align-content: start; gap: 0.4rem; min-width: 0; }
.rj-share-caption textarea {
  width: 100%;
  min-height: 280px;
  padding: 0.9rem;
  border: 1.5px solid var(--rj-line-strong);
  border-radius: 14px;
  background: var(--rj-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  resize: vertical;
}
.rj-share-caption textarea:focus { border-color: var(--ink); outline: 3px solid rgba(255, 196, 46, 0.55); }
.rj-dialog-open { overflow: hidden; }

/* Wider screens */
@media (min-width: 720px) {
  .rj-container { width: min(1080px, 100% - 64px); }
  .rj-narrow { width: min(840px, 100% - 64px); }
  .rj-view { padding-top: calc(var(--nav-h) + 56px); }
  .rj-ticket { transform: rotate(-1.6deg); }
  .rj-question { padding: 2rem 1.8rem 1.6rem; }
  .rj-role-card { padding: 1.5rem; }
  .rj-role-card__top { grid-template-columns: 112px minmax(0, 1fr); gap: 1.25rem; }
  .rj-role-card__portrait,
  .rj-plate { width: 112px; height: 112px; }
  .rj-plate__mark { font-size: 2.8rem; }
  .rj-card-grid--dual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-card-grid--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-share-grid { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); }
  .rj-crew-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .rj-intro__grid { grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr); gap: 3.4rem; }
}


@media (min-width: 1000px) {
  .rj-result-hero { padding: 2.4rem; }
  .rj-result-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .rj-role-card--primary .rj-role-card__top { grid-template-columns: 170px minmax(0, 1fr); }
  .rj-role-card--primary .rj-plate,
  .rj-role-card--primary .rj-role-card__portrait { width: 170px; height: 170px; border-radius: 36px; }
  .rj-role-card--primary .rj-plate__mark { font-size: 4rem; }
  .rj-role-card--primary .rj-role-card__name { font-size: 2.6rem; }
  .rj-role-card--primary .rj-role-card__role { font-size: 1.02rem; }
  .rj-card-grid--mixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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


/* ---------- Roster ---------- */
.rj-roster-hero { padding-bottom: 1.5rem; }
.rj-roster-hero .rj-button { margin-top: 1.4rem; }
.rj-roster-section { padding: 0 0 88px; }
.rj-roster {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}
.rj-roster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem;
  background: var(--rj-pale);
  border: 1.5px solid var(--rj-line);
  border-color: color-mix(in srgb, var(--rj-accent) 26%, transparent);
  border-radius: 20px 20px 32px 20px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.rj-roster-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rj-roster-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}
.rj-plate--small { width: 72px; height: 72px; border-radius: 17px; }
.rj-plate--small .rj-plate__mark { font-size: 1.55rem; }
.rj-plate--small .rj-plate__code { font-size: 0.55rem; }
.rj-roster-card__code {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rj-accent);
}
.rj-roster-card__name { margin: 0.8rem 0 0; line-height: 1.2; }
.rj-roster-card__name .rj-role-card__name { font-size: 1.45rem; }
.rj-roster-card__name .rj-role-card__en { font-size: 0.8rem; }
.rj-roster-card__role { margin: 0.25rem 0 0; font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.rj-roster-card__quote { margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.7; }
.rj-roster-card__link { margin-top: auto; padding-top: 0.85rem; font-size: 0.8rem; font-weight: 800; color: var(--rj-accent); }

/* ---------- Character profile ---------- */
.rj-character-view { padding-bottom: 88px; }
.rj-detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.rj-character {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--rj-pale);
  border: 1.5px solid var(--rj-line);
  border-color: color-mix(in srgb, var(--rj-accent) 26%, transparent);
  border-radius: 24px 24px 42px 24px;
}
.rj-character__hero {
  display: grid;
  gap: 1rem;
}
.rj-character__visual { min-width: 0; }
.rj-plate--detail {
  width: 116px;
  height: 116px;
  border-radius: 30px;
}
.rj-plate--detail .rj-plate__mark { font-size: 3.1rem; }
.rj-plate--detail .rj-plate__code { font-size: 0.7rem; }
.rj-character__meta { min-width: 0; }
.rj-character__name { margin: 0.2rem 0 0; line-height: 1.15; }
.rj-character__name .rj-role-card__name { font-size: clamp(2rem, 7vw, 3rem); }
.rj-character__title { margin: 0.3rem 0 0; font-size: 0.95rem; font-weight: 800; color: var(--rj-accent); }
.rj-character__quote {
  margin: 0.9rem 0 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--rj-accent);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.65;
}
.rj-character__intro { margin: 1.2rem 0 0; font-size: 1rem; line-height: 1.95; color: var(--ink-soft); }
.rj-character__section { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rj-line); }
.rj-character__section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.rj-character__story { margin: 0.8rem 0 0; font-size: 0.98rem; line-height: 1.95; }
.rj-notice {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--rj-line-strong);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.rj-empty { padding: 1rem 0; }
.rj-empty .rj-button { margin-top: 1rem; }

@media (min-width: 640px) {
  .rj-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .rj-character__hero { grid-template-columns: 150px minmax(0, 1fr); gap: 1.4rem; align-items: center; }
  .rj-plate--detail { width: 150px; height: 150px; border-radius: 38px; }
  .rj-plate--detail .rj-plate__mark { font-size: 4rem; }
}

@media (min-width: 1000px) {
  .rj-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ---------- Homepage teaser ---------- */
.rj-home {
  background: var(--cream);
  padding: 56px 0;
}
.rj-home-card {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  background: var(--rj-paper);
  border: 1.5px solid var(--rj-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}
.rj-home-title {
  margin: 0;
  max-width: 20em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.16;
}
.rj-home-title .rj-title__line { display: block; }
.rj-home-title .rj-title__line--nowrap { white-space: nowrap; }
.rj-home-lead {
  margin: 0.9rem 0 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
}
.rj-home-note {
  margin: 0.9rem 0 1.2rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.rj-home-crew-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.rj-home-crew {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rj-home-crew__item {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--rj-line);
  border-radius: 16px;
  background: #fff8e8;
}
.rj-home-crew__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rj-home-crew__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rj-home-crew__caption a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(43, 33, 24, 0.3);
  text-underline-offset: 3px;
}
.rj-home-crew__caption a:hover { text-decoration-color: var(--ink); }

@media (min-width: 760px) {
  .rj-home { padding: 72px 0; }
  .rj-home-card { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); gap: 2.5rem; }
}


/* Compact station card: keep one question close to one screen. */
.rj-station { padding-top: calc(var(--nav-h) + 16px); }
.rj-station .rj-narrow { width: min(780px, 100% - 40px); }
.rj-station .rj-progress { margin-bottom: 0.9rem; }
.rj-question { padding: 0.9rem 0.95rem 0.85rem; }
.rj-question__eyebrow { display: none; }
.rj-question__title { margin-top: 0; font-size: clamp(1.55rem, 5.6vw, 2.05rem); }
.rj-question__scene { margin-top: 0.65rem; font-size: 1.03rem; line-height: 1.75; text-wrap: pretty; }
.rj-question__prompt { margin-top: 0.55rem; font-size: 1.06rem; line-height: 1.6; text-wrap: pretty; }
.rj-options { gap: 0.45rem; margin-top: 0.8rem; }
.rj-option { gap: 0.75rem; padding: 0.7rem 0.8rem; font-size: 1.01rem; line-height: 1.62; text-wrap: pretty; }
.rj-skip { min-height: 36px; margin-top: 0.55rem; padding: 0.4rem 0.7rem; }
.rj-question__actions { margin-top: 0.7rem; }
.rj-question__footer { margin-top: 0.55rem; }
@media (min-width: 720px) {
  .rj-station { padding-top: calc(var(--nav-h) + 32px); }
  .rj-station .rj-narrow { width: min(780px, 100% - 64px); }
  .rj-question { padding: 1.2rem 1.4rem 1rem; }
}


.rj-roster-hero .rj-intro__body {
  max-width: 52ch;
  text-wrap: balance;
}

