.journey-entry {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.journey-card-entry { margin-top: 15px; }
.result-copy > .journey-entry {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.journey-screen { padding-top: clamp(12px, 4vh, 35px); }
.journey-screen h1 {
  margin: 4px 0 11px;
  font: 700 clamp(25px, 6.6vw, 38px)/1.42 var(--display);
  letter-spacing: .012em;
}
.journey-screen .section-description { line-height: 1.7; }
.journey-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.journey-status:empty { display: none; }

.spell-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9c1d9;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 23px #69486e16;
}
.spell-visual, .mission-illustration {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 60%, #ffedd8, #f1e5f7 66%, #e7d9f0);
}
.spell-visual { height: clamp(175px, 33vh, 280px); }
.spell-sun, .festival-moon {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(58%, 190px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid #f5ddb4;
  border-radius: 50%;
  background: #fff6dd;
  box-shadow: 0 0 36px #ffedb8b8;
}
.spell-orbit {
  position: absolute;
  z-index: -1;
  inset: 24% 7% 20%;
  transform: rotate(-14deg);
  border: 1px solid #c7a2bc;
  border-radius: 50%;
}
.spell-glyph {
  position: absolute;
  top: 14%;
  left: 10%;
  color: var(--spell-color);
  font-size: clamp(22px, 6vw, 35px);
}
.spell-portrait { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.spell-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#spell-halo { z-index: 0; }
#spell-stage { z-index: 2; }
.spell-announcement {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 12px;
  opacity: 0;
  padding: 4px 9px;
  border: 1px solid var(--spell-color);
  border-radius: 5px;
  background: #fffaf2f0;
  color: var(--spell-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  pointer-events: none;
}
.is-casting .spell-announcement { animation: spell-label 3.2s ease-out both; }
.is-casting .spell-portrait { animation: spell-lift 3.2s ease-in-out both; }
.is-casting .spell-glyph { opacity: 0; }
@keyframes spell-label {
  0%, 100% { opacity: 0; }
  10%, 72% { opacity: 1; }
}
@keyframes spell-lift {
  0%, 100% { transform: translateY(0); }
  32%, 65% { transform: translateY(-6px) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .is-casting .spell-announcement, .is-casting .spell-portrait { animation: none; }
}
.spell-copy {
  padding: clamp(15px, 4vw, 23px);
  border-top: 1px solid #e2cde2;
}
.spell-ability { font-weight: 750; color: var(--ink); }
.spell-copy .journey-status { margin-top: 12px; }

.lens-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 13px 0;
}
.lens-pair div {
  overflow: hidden;
  min-width: 0;
  padding-bottom: 11px;
  text-align: center;
  border: 1px solid #dac8df;
  border-radius: 12px;
  background: linear-gradient(#eee2f6, #fff8f0);
}
.lens-pair img { display: block; width: 100%; height: clamp(105px, 21vh, 170px); object-fit: contain; object-position: center bottom; }
.lens-pair span, .lens-pair strong { display: block; padding: 0 5px; }
.lens-pair span { font-size: 11px; color: var(--accent); font-weight: 700; }
.lens-pair strong { font-size: 14px; overflow-wrap: anywhere; }
.journey-note {
  padding: 12px 14px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid #bb88af;
  border-radius: 8px;
  background: var(--panel);
}
.journey-note h2 { margin: 0 0 3px; color: var(--accent); font-size: 14px; }
.journey-note h2:not(:first-child) { margin-top: 10px; }
.journey-note p { font-size: 14px; }

.mission-illustration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(132px, 29vh, 225px);
  padding: 4px 4% 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mission-illustration img { min-width: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.festival-moon { width: min(45%, 165px); top: 12%; }
.festival-lights {
  position: absolute;
  z-index: -1;
  bottom: 5%;
  inset-inline: 0;
  height: 35%;
  background:
    radial-gradient(circle at 13% 45%, #e5a45c 0 3px, transparent 6px),
    radial-gradient(circle at 24% 70%, #e5a45c 0 2px, transparent 5px),
    radial-gradient(circle at 85% 44%, #e5a45c 0 3px, transparent 6px),
    radial-gradient(circle at 76% 73%, #e5a45c 0 2px, transparent 5px);
}
.two-name { margin: 9px 0; color: var(--accent); font-size: 14px; font-weight: 750; }
.two-name span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.mission-copy { line-height: 1.8; margin-top: 10px; }
.mission-steps { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.mission-steps li { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); }
.mission-steps strong { color: var(--accent); font-size: 13px; }
.mission-steps p { font-size: 14px; }

.share-scenes { display: grid; gap: 7px; min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.share-scenes legend { padding: 0; margin-bottom: 7px; color: var(--accent); font-size: 13px; font-weight: 750; }
.share-option {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  cursor: pointer;
}
.share-option:has(input:checked) { border-color: #b47ca9; background: #f6eaf6; }
.share-option input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
.share-option strong, .share-option small { display: block; overflow-wrap: anywhere; }
.share-option strong { font-size: 14px; }
.share-option small { color: var(--muted); font-size: 12px; }
.share-controls { gap: 8px; }
.share-controls progress { height: 8px; }
.button:disabled { opacity: .48; cursor: default; box-shadow: none; }
.clip-preview { display: grid; justify-items: center; gap: 9px; margin: 14px 0; }
.clip-preview video {
  display: block;
  width: min(100%, 250px, 37vh);
  aspect-ratio: 9/16;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f1e6f2;
}
.share-screen a.button { text-decoration: none; }
.share-screen a.button[hidden] { display: none; }
#x-post {
  display: block;
  width: 100%;
  min-height: 93px;
  border: 1px solid #af94bb;
  border-radius: 9px;
  padding: 8px 10px;
  resize: vertical;
  font: 16px/1.55 var(--ui);
  color: var(--text);
  background: var(--panel);
}
#x-post:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#x-compose { margin-top: 10px; }
.share-hint { margin-top: 6px; }

@media (orientation: landscape) and (max-height: 499px) {
  .mission-illustration { height: 139px; }
  .clip-preview video { width: 142px; }
}
