:root {
  --cream: #fff7e8;
  --sun: #ffd166;
  --coral: #ff8a65;
  --pink: #ff6b9a;
  --sky: #58c7f3;
  --mint: #5de2c1;
  --grape: #9b7ede;
  --pencil: #4a4a55;
  --ink: #2d2b32;
  --paper: rgba(255, 247, 232, 0.88);
  --paper-strong: rgba(255, 247, 232, 0.96);
  --shadow: 0 18px 48px rgba(40, 30, 20, 0.28);
}

.growth-section,
.talent-card-section {
  margin-top: 18px;
}

.growth-grid,
.talent-card-grid,
.intent-grid,
.price-grid {
  display: grid;
  gap: 10px;
}

.growth-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.growth-card,
.mini-talent-card,
.intent-grid label,
.price-grid label {
  border: 1px solid rgba(45, 43, 50, 0.14);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.growth-card {
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.growth-card.selected {
  border-color: var(--growth-accent);
  box-shadow: inset 0 0 0 2px var(--growth-accent);
}

.growth-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--growth-accent) 26%, #fff);
  font-weight: 800;
}

.growth-card small,
.mini-talent-card small {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
  color: rgba(45, 43, 50, 0.72);
}

.talent-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-talent-card {
  min-height: 98px;
  text-align: left;
  cursor: pointer;
}

.mini-talent-card.strength {
  border-color: var(--mint);
  background: color-mix(in srgb, var(--mint) 22%, #fff);
}

.mini-talent-card.development {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral) 18%, #fff);
}

.talent-card-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: rgba(45, 43, 50, 0.74);
}

.commercial-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.share-card,
.report-preview,
.intent-form,
.sample-report,
.analytics-panel {
  border: 1px solid rgba(45, 43, 50, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.share-card h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.preview-note {
  margin: 0 0 14px;
  color: rgba(45, 43, 50, 0.72);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.65;
}

.dossier-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.dossier-strip span {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(74, 74, 85, 0.14);
  border-radius: 6px;
  color: rgba(45, 43, 50, 0.7);
  font-size: 12px;
  font-weight: 950;
  background: rgba(255, 250, 240, 0.74);
}

.share-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.share-card span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.32);
  font-weight: 700;
}

.preview-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.service-tracks article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(45, 43, 50, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.service-tracks h4,
.service-tracks p {
  margin: 0;
}

.service-tracks button {
  border: 1px solid rgba(45, 43, 50, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 247, 232, 0.9);
  cursor: pointer;
  text-align: left;
}

.preview-columns article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 4px solid var(--sky);
  background: rgba(255, 247, 232, 0.78);
}

.preview-columns span {
  line-height: 1.55;
  color: rgba(45, 43, 50, 0.78);
}

.commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intent-form {
  display: grid;
  gap: 12px;
}

.intent-form.hidden,
.intent-thanks.hidden {
  display: none;
}

.intent-form h3 {
  margin: 4px 0 0;
}

.intent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.intent-grid label,
.price-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(45, 43, 50, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.sample-report summary {
  cursor: pointer;
  font-weight: 800;
}

.sample-report-link,
.sample-page-cta a {
  display: inline-block;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--sun);
  text-decoration: none;
  font-weight: 800;
}

.sample-cover {
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.26), rgba(88, 199, 243, 0.22));
}

.sample-report li {
  margin: 8px 0;
  line-height: 1.55;
}

.analytics-panel h3 {
  margin: 0 0 8px;
}

.analytics-panel p {
  margin: 4px 0;
  line-height: 1.45;
}

.sample-page {
  background: #f4dfbd;
}

.sample-page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.sample-hero,
.sample-page-cta {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.38), rgba(88, 199, 243, 0.22)),
    #fff7e8;
}

.sample-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1;
}

.sample-hero p,
.sample-page-cta p {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.sample-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.sample-page-grid article {
  min-height: 190px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(45, 43, 50, 0.12);
}

.sample-page-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(93, 226, 193, 0.32);
  font-weight: 900;
}

.sample-page-grid h2 {
  margin: 12px 0 8px;
}

.sample-page-grid p {
  margin: 0;
  line-height: 1.68;
  color: rgba(45, 43, 50, 0.78);
}

.feedback-shell {
  max-width: 1060px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 18px;
}

.feedback-form,
.feedback-preview {
  padding: 20px;
  border: 2px solid rgba(74, 74, 85, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 12px 28px rgba(34, 23, 16, 0.12);
}

.feedback-form {
  display: grid;
  gap: 13px;
}

.feedback-form label,
.feedback-form span {
  display: grid;
  gap: 7px;
}

.feedback-form span {
  color: rgba(45, 43, 50, 0.72);
  font-size: 14px;
  font-weight: 900;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 2px solid rgba(74, 74, 85, 0.14);
  border-radius: 8px;
  color: #2d2b32;
  font: inherit;
  font-weight: 760;
  background: #fff;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-preview h2 {
  margin: 4px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.feedback-preview p {
  color: rgba(45, 43, 50, 0.72);
  font-weight: 760;
  line-height: 1.65;
}

#feedbackSnapshot {
  min-height: 170px;
  padding: 14px;
  border: 2px dashed rgba(74, 74, 85, 0.18);
  border-radius: 8px;
  white-space: pre-line;
  color: rgba(45, 43, 50, 0.78);
  font-weight: 800;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  .growth-grid,
  .talent-card-grid,
  .preview-columns,
  .service-tracks,
  .intent-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .sample-page-grid {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  background: #241f25;
}

button {
  color: inherit;
  font: inherit;
}

.game-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 209, 102, 0.26), transparent 24%),
    radial-gradient(circle at 84% 88%, rgba(93, 226, 193, 0.18), transparent 28%),
    #242029;
}

.scene {
  position: relative;
  width: min(100%, 1500px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 10px solid #f4dfbd;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  background: var(--cream);
}

.scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 900ms ease,
    filter 420ms ease;
}

.choice-aura {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--choice-aura-color, transparent) 34%, transparent), transparent 34%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--choice-aura-color, transparent) 18%, transparent));
  mix-blend-mode: soft-light;
  transition: opacity 420ms ease;
}

.scene.choice-mood-fit .choice-aura,
.scene.choice-mood-mixed .choice-aura,
.scene.choice-mood-hard .choice-aura,
.scene.choice-mood-neutral .choice-aura {
  opacity: 1;
}

.scene.choice-mood-fit .scene-image {
  filter: saturate(1.08) brightness(1.04);
}

.scene.choice-mood-mixed .scene-image {
  filter: saturate(1.02) contrast(1.03);
}

.scene.choice-mood-hard .scene-image {
  filter: saturate(0.86) brightness(0.86) contrast(1.08);
}

.scene.choice-mood-neutral .scene-image {
  filter: saturate(0.98) brightness(0.98);
}

.stage-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--stage-color, var(--sun)) 22%, transparent), transparent 46%),
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--stage-wash, #ffe9a8) 62%, transparent), transparent 22%),
    radial-gradient(circle at 20% 78%, color-mix(in srgb, var(--stage-color, var(--mint)) 24%, transparent), transparent 24%);
  mix-blend-mode: soft-light;
}

.stage-visual::before,
.stage-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.78;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--stage-color, var(--sun)) 42%, #fff7e8), transparent 68%);
}

.stage-visual::before {
  width: 34%;
  height: 34%;
  right: 8%;
  top: 16%;
  transform: rotate(-12deg);
}

.stage-visual::after {
  width: 28%;
  height: 28%;
  left: 8%;
  bottom: 10%;
  transform: rotate(10deg);
}

.stage-symbol {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(54px, 7vw, 108px);
  height: clamp(54px, 7vw, 108px);
  border: 3px solid color-mix(in srgb, var(--stage-color, var(--sun)) 76%, #fff7e8);
  border-radius: 50%;
  color: rgba(45, 43, 50, 0.54);
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 950;
  background: color-mix(in srgb, var(--stage-wash, #ffe9a8) 70%, rgba(255, 247, 232, 0.78));
  box-shadow: 0 18px 42px rgba(34, 23, 16, 0.14);
}

.symbol-1 {
  right: 11%;
  top: 18%;
}

.symbol-2 {
  right: 26%;
  top: 34%;
  transform: scale(0.78) rotate(-10deg);
}

.symbol-3 {
  left: 15%;
  top: 34%;
  transform: scale(0.7) rotate(8deg);
}

.symbol-4 {
  left: 9%;
  bottom: 16%;
  transform: scale(0.88) rotate(-8deg);
}

.symbol-5 {
  right: 14%;
  bottom: 14%;
  transform: scale(0.64) rotate(12deg);
}

.scene.is-changing .scene-image {
  opacity: 0.45;
  transform: scale(1.02);
}

.scene.loading-chapter .story-panel,
.scene.loading-chapter .choice-panel {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
}

.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 26, 32, 0.22), transparent 30%),
    linear-gradient(0deg, rgba(30, 26, 32, 0.3), transparent 46%);
}

.cover-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: #171820;
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    visibility 320ms ease;
}

.cover-screen.hidden {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.talent-screen {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(18, 18, 24, 0.72), rgba(18, 18, 24, 0.28)),
    rgba(30, 26, 32, 0.48);
  backdrop-filter: blur(6px);
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.talent-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.talent-panel {
  width: min(960px, 100%);
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 28px;
  border: 2px solid rgba(74, 74, 85, 0.14);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.97);
  box-shadow: var(--shadow);
}

.talent-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
}

.talent-panel > p {
  margin: 0 0 20px;
  max-width: 760px;
  color: rgba(45, 43, 50, 0.78);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.7;
}

.setup-step.hidden {
  display: none;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.birth-ritual {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 5px 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  border: 2px solid rgba(255, 209, 102, 0.62);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 30%, rgba(255, 209, 102, 0.35), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 240, 197, 0.78));
}

.ritual-mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #332b2f;
  font-size: 18px;
  font-weight: 950;
  background: #ffd166;
  box-shadow: inset 0 0 0 4px rgba(255, 250, 240, 0.5);
}

.birth-ritual strong,
.birth-ritual small {
  display: block;
}

.birth-ritual strong {
  font-size: 20px;
  font-weight: 950;
}

.birth-ritual small {
  color: rgba(45, 43, 50, 0.72);
  font-weight: 750;
  line-height: 1.5;
}

.setup-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.setup-progress span {
  min-height: 38px;
  padding: 9px 10px;
  border: 2px solid rgba(74, 74, 85, 0.12);
  border-radius: 8px;
  color: rgba(45, 43, 50, 0.62);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  background: rgba(255, 250, 240, 0.72);
}

.setup-progress span.done {
  color: #253936;
  border-color: rgba(93, 226, 193, 0.58);
  background: rgba(93, 226, 193, 0.22);
}

.birth-seal {
  margin-top: 18px;
  padding: 13px 15px;
  border: 2px dashed rgba(74, 74, 85, 0.22);
  border-radius: 8px;
  color: rgba(45, 43, 50, 0.74);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.55;
  background: rgba(255, 250, 240, 0.72);
}

.birth-seal.ready {
  color: #253936;
  border-style: solid;
  border-color: rgba(93, 226, 193, 0.7);
  background: linear-gradient(135deg, rgba(93, 226, 193, 0.25), rgba(255, 250, 240, 0.94));
}

.identity-section {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(74, 74, 85, 0.16);
}

.identity-section h2 {
  margin-bottom: 12px;
}

.identity-section > p:not(.eyebrow) {
  margin: 0 0 16px;
  max-width: 780px;
  color: rgba(45, 43, 50, 0.78);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.subject-grid,
.gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subject-card,
.gender-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 15px;
  border: 2px solid var(--gender-accent);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(34, 23, 16, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.subject-card {
  border-color: var(--subject-accent);
}

.subject-card:hover,
.subject-card.selected,
.gender-card:hover,
.gender-card.selected {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--gender-accent) 14%, #fffaf0);
  box-shadow: 0 16px 30px rgba(34, 23, 16, 0.18);
}

.subject-card:hover,
.subject-card.selected {
  background: color-mix(in srgb, var(--subject-accent) 14%, #fffaf0);
}

.subject-icon,
.gender-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 950;
  background: color-mix(in srgb, var(--gender-accent) 28%, #fff7e8);
}

.subject-icon {
  background: color-mix(in srgb, var(--subject-accent) 28%, #fff7e8);
}

.subject-card strong,
.subject-card small,
.gender-card strong,
.gender-card small {
  display: block;
}

.subject-card strong,
.gender-card strong {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 950;
}

.subject-card small,
.gender-card small {
  color: rgba(45, 43, 50, 0.72);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.talent-card {
  min-height: 178px;
  padding: 16px;
  border: 2px solid var(--talent-accent);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(34, 23, 16, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.talent-card:hover,
.talent-card.selected {
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--talent-accent) 14%, #fffaf0);
  box-shadow: 0 18px 34px rgba(34, 23, 16, 0.2);
}

.talent-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
  background: color-mix(in srgb, var(--talent-accent) 28%, #fff7e8);
}

.talent-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.talent-card p {
  margin: 0;
  color: rgba(45, 43, 50, 0.74);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
}

.talent-start {
  margin-top: 18px;
}

.channel-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed rgba(74, 74, 85, 0.16);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 12px;
  border: 2px solid var(--channel-accent);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  background: #fffaf0;
  box-shadow: 0 10px 22px rgba(34, 23, 16, 0.1);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.channel-card:hover,
.channel-card.selected {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--channel-accent) 13%, #fffaf0);
  box-shadow: 0 16px 30px rgba(34, 23, 16, 0.18);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 950;
  background: color-mix(in srgb, var(--channel-accent) 28%, #fff7e8);
}

.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card strong {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 950;
}

.channel-card small {
  color: rgba(45, 43, 50, 0.72);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 24, 0.74), rgba(18, 18, 24, 0.24) 55%, rgba(18, 18, 24, 0.12)),
    linear-gradient(0deg, rgba(18, 18, 24, 0.28), transparent 46%);
}

.cover-copy {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: min(520px, calc(100% - 84px));
  color: #fff7e8;
}

.cover-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
}

.cover-copy p:not(.eyebrow) {
  margin: 0 0 22px;
  max-width: 460px;
  color: rgba(255, 247, 232, 0.88);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 750;
  line-height: 1.7;
}

.start-button {
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  color: #312a2f;
  font-weight: 900;
  cursor: pointer;
  background: var(--sun);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.resume-card {
  display: grid;
  gap: 10px;
  width: min(430px, 100%);
  margin-top: 14px;
  padding: 13px;
  border: 2px solid rgba(255, 247, 232, 0.32);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.14);
  backdrop-filter: blur(8px);
}

.resume-card.hidden {
  display: none;
}

.resume-card span {
  color: rgba(255, 247, 232, 0.86);
  font-size: 14px;
  font-weight: 850;
}

.resume-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-button,
.clear-save-button {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.resume-button {
  color: #312a2f;
  background: var(--sun);
}

.clear-save-button {
  color: #fff7e8;
  background: rgba(255, 247, 232, 0.2);
}

.topbar {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: rgba(74, 74, 85, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  padding: 11px 16px;
  border: 2px solid rgba(74, 74, 85, 0.16);
  border-radius: 8px;
  color: #302a2f;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(34, 23, 16, 0.18);
  backdrop-filter: blur(8px);
}

.player-badge {
  display: inline-flex;
  max-width: 520px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 2px solid rgba(74, 74, 85, 0.12);
  border-radius: 999px;
  color: rgba(45, 43, 50, 0.76);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  background: rgba(255, 247, 232, 0.78);
  box-shadow: 0 10px 22px rgba(34, 23, 16, 0.12);
  backdrop-filter: blur(8px);
}

.player-badge.is-ready {
  color: #2f665f;
  background: color-mix(in srgb, var(--mint) 28%, rgba(255, 247, 232, 0.9));
}

.route-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 520px;
  margin-top: 7px;
}

.route-trail.hidden {
  display: none;
}

.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff7e8;
  font-size: 12px;
  font-weight: 950;
  background: rgba(61, 51, 64, 0.84);
  box-shadow: 0 8px 18px rgba(34, 23, 16, 0.14);
  backdrop-filter: blur(8px);
}

.route-chip strong {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #3d3340;
  font-size: 11px;
  background: var(--sun);
}

.album-button,
.close-button,
.next-button,
.focus-button,
.sound-button {
  border: 0;
  cursor: pointer;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.focus-button {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff7e8;
  font-weight: 900;
  background: rgba(45, 43, 50, 0.74);
  box-shadow: 0 12px 28px rgba(34, 23, 16, 0.18);
  backdrop-filter: blur(8px);
}

.focus-fab {
  position: absolute;
  top: 106px;
  right: 28px;
  z-index: 12;
  min-width: 76px;
}

.test-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.test-panel.hidden {
  display: none;
}

.test-panel button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #fff7e8;
  font-size: 12px;
  font-weight: 900;
  background: rgba(45, 43, 50, 0.78);
  box-shadow: 0 10px 22px rgba(34, 23, 16, 0.16);
  cursor: pointer;
  pointer-events: auto;
}

.test-panel button[data-test-toggle] {
  color: #302a2f;
  background: var(--sun);
}

.test-panel.collapsed {
  right: auto;
  bottom: 72px;
}

.test-panel.collapsed button:not([data-test-toggle]) {
  display: none;
}

.scene.focus-mode .focus-fab {
  color: #302a2f;
  background: var(--sun);
  box-shadow: 0 16px 36px rgba(34, 23, 16, 0.24);
}

.scene.result-mode .focus-fab {
  visibility: hidden;
  pointer-events: none;
}

.album-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #332b2f;
  font-weight: 800;
  background: var(--paper-strong);
  box-shadow: 0 12px 28px rgba(34, 23, 16, 0.18);
}

.sound-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #332b2f;
  font-size: 14px;
  font-weight: 950;
  background: var(--paper-strong);
  box-shadow: 0 12px 28px rgba(34, 23, 16, 0.18);
}

.sound-button.is-muted {
  color: rgba(74, 74, 85, 0.68);
  background: rgba(255, 247, 232, 0.72);
}

.album-button span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
}

.album-button.just-added {
  animation: album-pop 720ms ease both;
}

.album-button.just-added span {
  animation: count-pop 720ms ease both;
}

@keyframes album-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  34% {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 38px rgba(255, 138, 101, 0.26);
  }
}

@keyframes count-pop {
  0%,
  100% {
    transform: scale(1);
  }

  34% {
    transform: scale(1.22);
    background: var(--pink);
  }
}

.progress-road {
  display: none;
}

.road-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(74, 74, 85, 0.14);
  border-radius: 999px;
  color: rgba(74, 74, 85, 0.66);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 250, 240, 0.86);
}

.road-dot.done {
  color: #2f665f;
  background: color-mix(in srgb, var(--mint) 36%, #fff7e8);
}

.road-dot.current {
  color: #392b12;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.28);
}

.story-panel {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  width: min(38%, 480px);
  padding: 22px 24px 22px;
  border: 2px solid rgba(74, 74, 85, 0.14);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.scene.age-pace-child .story-panel {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 247, 232, 0.96) 44%),
    var(--paper-strong);
}

.scene.age-pace-teen .story-panel {
  background:
    linear-gradient(135deg, rgba(255, 107, 154, 0.14), rgba(255, 247, 232, 0.96) 44%),
    var(--paper-strong);
}

.scene.age-pace-adult .story-panel {
  background:
    linear-gradient(135deg, rgba(88, 199, 243, 0.16), rgba(255, 247, 232, 0.96) 44%),
    var(--paper-strong);
}

.scene.age-pace-reflect .story-panel {
  background:
    linear-gradient(135deg, rgba(155, 126, 222, 0.15), rgba(255, 247, 232, 0.96) 44%),
    var(--paper-strong);
}

.scene.event-mode .story-panel {
  border-color: rgba(255, 107, 154, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 107, 154, 0.16), rgba(255, 247, 232, 0.96) 38%),
    var(--paper-strong);
  box-shadow:
    0 0 0 4px rgba(255, 107, 154, 0.12),
    var(--shadow);
}

.scene.event-kind-sudden .story-panel {
  border-color: rgba(255, 107, 154, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 107, 154, 0.2), rgba(255, 247, 232, 0.97) 42%),
    var(--paper-strong);
}

.scene.event-kind-opportunity .story-panel {
  border-color: rgba(93, 226, 193, 0.72);
  background:
    linear-gradient(135deg, rgba(93, 226, 193, 0.22), rgba(255, 247, 232, 0.97) 42%),
    var(--paper-strong);
}

.scene.event-kind-cost .story-panel {
  border-color: rgba(155, 126, 222, 0.72);
  background:
    linear-gradient(135deg, rgba(155, 126, 222, 0.2), rgba(255, 247, 232, 0.97) 42%),
    var(--paper-strong);
}

.scene.event-mode .age-pill {
  color: #fff7e8;
  background: var(--pink);
}

.scene.event-kind-opportunity .age-pill {
  color: #263f3b;
  background: var(--mint);
}

.scene.event-kind-cost .age-pill {
  color: #fff7e8;
  background: var(--grape);
}

.event-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff7e8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  box-shadow: 0 8px 18px rgba(255, 107, 154, 0.24);
}

.scene:not(.event-mode) .event-badge {
  color: #3a3020;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.84), rgba(255, 250, 240, 0.84));
  box-shadow: 0 8px 18px rgba(255, 209, 102, 0.18);
}

.scene.event-kind-opportunity .event-badge {
  color: #243936;
  background: linear-gradient(135deg, var(--mint), var(--sun));
  box-shadow: 0 8px 18px rgba(93, 226, 193, 0.24);
}

.scene.event-kind-cost .event-badge {
  background: linear-gradient(135deg, var(--grape), #5b5472);
  box-shadow: 0 8px 18px rgba(155, 126, 222, 0.24);
}

.event-badge.hidden {
  display: none;
}

.age-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #563b14;
  font-size: 14px;
  font-weight: 900;
  background: var(--sun);
}

.story-panel p,
.result-copy p {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.72;
  font-weight: 650;
  white-space: pre-line;
}

.choice-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  width: min(39%, 520px);
  display: grid;
  gap: 12px;
  perspective: 900px;
}

.scene.result-mode .result-panel {
  pointer-events: auto;
}

.scene.result-mode .result-panel.hidden {
  pointer-events: none;
}

.achievement-toast {
  position: absolute;
  top: 168px;
  left: 50%;
  z-index: 18;
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff7e8;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 107, 154, 0.94), rgba(255, 138, 101, 0.94)),
    #3d3340;
  box-shadow: 0 18px 42px rgba(34, 23, 16, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.94);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.achievement-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.achievement-toast.hidden {
  display: none;
}

.achievement-toast span {
  font-size: 12px;
  font-weight: 950;
}

.achievement-toast strong {
  font-size: 18px;
  line-height: 1.15;
}

.stage-summary-panel {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 209, 102, 0.2), transparent 26%),
    rgba(25, 22, 28, 0.44);
  backdrop-filter: blur(5px);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.stage-summary-panel.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.stage-summary-card {
  width: min(760px, 100%);
  padding: 26px;
  border: 2px solid rgba(255, 209, 102, 0.62);
  border-radius: 8px;
  color: #2d2b32;
  background:
    linear-gradient(135deg, rgba(255, 240, 197, 0.96), rgba(255, 250, 240, 0.98) 40%),
    #fffaf0;
  box-shadow: var(--shadow);
}

.stage-summary-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.stage-summary-card > p {
  margin: 0 0 16px;
  color: rgba(45, 43, 50, 0.74);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.65;
}

.stage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.stage-summary-grid article {
  min-height: 132px;
  padding: 14px;
  border: 2px solid rgba(74, 74, 85, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.stage-summary-grid span,
.stage-summary-grid strong,
.stage-summary-grid small {
  display: block;
}

.stage-summary-grid span {
  min-height: 36px;
  color: #2f665f;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.stage-summary-grid strong {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 950;
}

.stage-summary-grid small {
  margin-top: 6px;
  color: rgba(45, 43, 50, 0.66);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.scene.stage-summary-mode .story-panel,
.scene.stage-summary-mode .choice-panel,
.scene.stage-summary-mode .result-panel {
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

.age-turn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 17;
  display: grid;
  gap: 6px;
  min-width: min(360px, 72vw);
  padding: 18px 22px;
  border: 2px solid rgba(255, 247, 232, 0.7);
  border-radius: 8px;
  color: #fff7e8;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(45, 43, 50, 0.82), rgba(45, 43, 50, 0.54)),
    color-mix(in srgb, var(--stage-color, var(--sun)) 30%, #3d3340);
  box-shadow: 0 22px 58px rgba(34, 23, 16, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.94) rotate(-1deg);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(8px);
}

.age-turn.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.age-turn.hidden {
  display: none;
}

.age-turn span,
.age-turn strong,
.age-turn em {
  display: block;
}

.age-turn span {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
  line-height: 1;
}

.age-turn strong {
  font-size: clamp(15px, 1.8vw, 22px);
  line-height: 1.28;
}

.age-turn em {
  margin-top: 2px;
  color: rgba(255, 247, 232, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.interlude-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 209, 102, 0.26), transparent 26%),
    rgba(36, 32, 41, 0.5);
  backdrop-filter: blur(8px);
}

.interlude-panel.hidden {
  display: none;
}

.interlude-card {
  width: min(92vw, 720px);
  padding: 24px;
  border: 2px solid rgba(255, 209, 102, 0.76);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.96);
  box-shadow: 0 26px 72px rgba(34, 23, 16, 0.34);
}

.interlude-card h2 {
  margin-bottom: 10px;
  color: #2d2b32;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.interlude-card p:not(.eyebrow) {
  margin: 0 0 18px;
  color: rgba(45, 43, 50, 0.78);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.6;
}

.interlude-actions {
  display: grid;
  gap: 10px;
}

.interlude-actions.hidden,
.interlude-result.hidden {
  display: none;
}

.interlude-choice {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 11px 14px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  text-align: left;
  background: #fffaf0;
  box-shadow: 0 10px 22px rgba(34, 23, 16, 0.12);
  cursor: pointer;
}

.interlude-choice:hover,
.interlude-choice:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 12%, #fffaf0);
}

.interlude-result {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 2px solid var(--memory-accent, var(--sun));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--memory-accent, var(--sun)) 18%, #fffaf0), #fffaf0 54%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.interlude-result .memory-art {
  display: grid;
  place-items: center;
  height: 112px;
  border-radius: 8px;
  color: #352e34;
  font-size: 46px;
  font-weight: 900;
  background: color-mix(in srgb, var(--memory-accent, var(--sun)) 25%, #fff7e8);
}

.interlude-result h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
}

.interlude-result p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.interlude-echo {
  padding-top: 10px;
  border-top: 1px dashed rgba(74, 74, 85, 0.22);
}

.interlude-next {
  justify-self: end;
  margin-top: 4px;
}

.scene.interlude-mode .story-panel,
.scene.interlude-mode .choice-panel,
.scene.interlude-mode .result-panel,
.scene.interlude-mode .progress-road,
.scene.interlude-mode .focus-fab {
  opacity: 0;
  pointer-events: none;
}

.scene.focus-mode .progress-road,
.scene.focus-mode .story-panel,
.scene.focus-mode .choice-panel,
.scene.focus-mode .result-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.scene.focus-mode h1 {
  background: rgba(255, 247, 232, 0.7);
}

.action-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 32px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 13px 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, #fff7e8), rgba(255, 250, 240, 0.96) 38%),
    rgba(255, 247, 232, 0.96);
  box-shadow:
    0 12px 28px rgba(34, 23, 16, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.action-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed color-mix(in srgb, var(--accent) 46%, rgba(74, 74, 85, 0.16));
  border-radius: 6px;
  pointer-events: none;
}

.action-card:nth-child(1) {
  transform: rotate(-0.7deg);
}

.action-card:nth-child(2) {
  transform: rotate(0.35deg);
}

.action-card:nth-child(3) {
  transform: rotate(-0.2deg);
}

.action-card:hover,
.action-card:focus-visible {
  outline: none;
  transform: translateY(-5px) rotate(0deg) scale(1.012);
  background: #fffaf0;
  box-shadow:
    0 18px 38px rgba(34, 23, 16, 0.24),
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.action-card[disabled] {
  cursor: default;
  opacity: 0.58;
}

.action-card.fit-fit {
  box-shadow:
    0 14px 30px rgba(34, 23, 16, 0.17),
    0 0 0 3px rgba(93, 226, 193, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.action-card.fit-fit .choice-fit {
  color: #fff7e8;
  background: #2f8f82;
}

.action-card.fit-mixed {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 250, 240, 0.96) 46%),
    rgba(255, 247, 232, 0.96);
}

.action-card.fit-mixed .choice-fit {
  color: #4b3a11;
  background: color-mix(in srgb, var(--sun) 58%, #fff7e8);
}

.action-card.fit-hard {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 107, 154, 0.16), rgba(255, 250, 240, 0.96) 48%),
    rgba(255, 247, 232, 0.96);
}

.action-card.fit-hard .choice-fit {
  color: #fff7e8;
  background: #9b4f68;
}

.action-card.fit-neutral .choice-fit {
  color: rgba(45, 43, 50, 0.72);
  background: rgba(255, 247, 232, 0.94);
}

.action-card.selected {
  opacity: 1;
  transform: translateY(-3px) rotate(0deg) scale(1.018);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, #fff7e8), #fffaf0 58%);
  box-shadow:
    0 18px 42px rgba(34, 23, 16, 0.24),
    0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 0 0 2px rgba(255, 255, 255, 0.68);
}

.action-card.selected::before {
  content: "已选择";
  position: absolute;
  top: 10px;
  right: -28px;
  z-index: 2;
  width: 104px;
  padding: 5px 0;
  color: #fff7e8;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  background: var(--accent);
  transform: rotate(34deg);
}

.talent-specific-choice {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, #fff7e8), #fffaf0 56%);
  box-shadow:
    0 12px 28px rgba(34, 23, 16, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.talent-specific-choice .choice-fit {
  color: #fff;
  background: var(--accent);
}

.route-specific-choice {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff7e8), rgba(255, 250, 240, 0.98) 58%),
    #fffaf0;
  box-shadow:
    0 14px 32px rgba(34, 23, 16, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.route-specific-choice .choice-fit {
  color: #fff7e8;
  background: #3d3340;
}

.event-choice {
  position: relative;
  overflow: hidden;
}

.event-choice::before {
  content: "!";
  position: absolute;
  top: -18px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff7e8;
  font-size: 25px;
  font-weight: 950;
  background: var(--pink);
  box-shadow: 0 10px 24px rgba(255, 107, 154, 0.24);
}

.event-choice.event-kind-opportunity::before {
  content: "＋";
  color: #243936;
  background: var(--mint);
  box-shadow: 0 10px 24px rgba(93, 226, 193, 0.24);
}

.event-choice.event-kind-cost::before {
  content: "!";
  background: var(--grape);
  box-shadow: 0 10px 24px rgba(155, 126, 222, 0.26);
}

.event-choice .choice-fit {
  color: #fff7e8;
  background: linear-gradient(135deg, var(--pink), var(--accent));
}

.event-choice.event-kind-opportunity .choice-fit {
  color: #243936;
  background: linear-gradient(135deg, var(--mint), var(--sun));
}

.event-choice.event-kind-cost .choice-fit {
  color: #fff7e8;
  background: linear-gradient(135deg, var(--grape), #5b5472);
}

.choice-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #332b2f;
  font-size: 26px;
  font-weight: 900;
  background: color-mix(in srgb, var(--accent) 30%, #fff7e8);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.choice-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.choice-title {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 900;
  line-height: 1.25;
}

.choice-hint {
  margin: 0;
  color: rgba(74, 74, 85, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.choice-fit {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #332b2f;
  font-size: 12px;
  font-weight: 900;
  background: color-mix(in srgb, var(--accent) 24%, #fff7e8);
}

.choice-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: var(--accent);
}

.result-panel {
  position: absolute;
  inset: auto 26px 26px auto;
  z-index: 40;
  width: min(36%, 430px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  pointer-events: auto;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.result-panel.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
}

.result-copy {
  display: none;
}

.result-label {
  margin-bottom: 7px;
  color: rgba(74, 74, 85, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.talent-result {
  margin-top: 12px !important;
  padding: 12px 14px;
  border-left: 5px solid var(--talent-result-accent, var(--sun));
  border-radius: 8px;
  color: #3e3338;
  background: color-mix(in srgb, var(--talent-result-accent, var(--sun)) 18%, #fffaf0);
}

.impact-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.impact-title,
.impact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.impact-title {
  color: rgba(45, 43, 50, 0.68);
  background: rgba(255, 247, 232, 0.9);
}

.impact-chip.positive {
  color: #255f58;
  background: color-mix(in srgb, var(--mint) 32%, #fff7e8);
}

.impact-chip.negative {
  color: #8a3c4d;
  background: color-mix(in srgb, var(--pink) 22%, #fff7e8);
}

.impact-chip.unlock {
  color: #4b3a11;
  background: color-mix(in srgb, var(--sun) 45%, #fff7e8);
}

.memory-reveal {
  position: relative;
  min-height: 350px;
}

.memory-card {
  min-height: 330px;
  padding: 18px;
  border: 2px solid var(--memory-accent, var(--sun));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    #fff9eb;
  box-shadow: 0 18px 42px rgba(34, 23, 16, 0.28);
  transform: rotate(1.5deg);
  transform-origin: 82% 12%;
}

.memory-card.collecting {
  animation: collect-card 360ms ease-in forwards;
}

@keyframes collect-card {
  0% {
    opacity: 1;
    transform: rotate(1.5deg) translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: rotate(8deg) translate(120px, -96px) scale(0.72);
  }
}

.memory-art {
  display: grid;
  place-items: center;
  height: 154px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #352e34;
  font-size: 54px;
  font-weight: 900;
  background: color-mix(in srgb, var(--memory-accent, var(--sun)) 25%, #fff7e8);
}

.memory-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.memory-card p {
  margin: 0;
  color: rgba(45, 43, 50, 0.74);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.memory-card .talent-memory {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(74, 74, 85, 0.22);
  color: rgba(45, 43, 50, 0.88);
}

.memory-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #332b2f;
  font-size: 12px;
  font-weight: 900;
  background: color-mix(in srgb, var(--memory-accent, var(--sun)) 35%, #fff7e8);
}

.path-ribbon {
  float: right;
  display: inline-flex;
  margin: 0 0 10px 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff7e8;
  font-size: 12px;
  font-weight: 950;
  background: #3d3340;
}

.echo-note {
  display: none;
}

.next-button {
  grid-column: auto;
  justify-self: end;
  min-width: 190px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  background: #3d7770;
  box-shadow: 0 14px 28px rgba(27, 67, 62, 0.28);
}

.next-button[disabled] {
  cursor: default;
  opacity: 0.76;
}

.album-drawer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: min(520px, 100%);
  height: 100%;
  padding: 26px;
  background: rgba(255, 247, 232, 0.97);
  box-shadow: -22px 0 54px rgba(34, 23, 16, 0.28);
  pointer-events: none;
  transform: translateX(104%);
  transition: transform 240ms ease;
}

.album-drawer.open {
  pointer-events: auto;
  transform: translateX(0);
}

.scene.album-open .focus-fab,
.scene.album-open .choice-panel,
.scene.album-open .story-panel {
  pointer-events: none;
}

.stage-report {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(25, 22, 28, 0.42);
  backdrop-filter: blur(5px);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.stage-report.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.report-card {
  width: min(920px, 100%);
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 28px;
  border: 2px solid rgba(74, 74, 85, 0.14);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.97);
  box-shadow: var(--shadow);
}

.report-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.report-card > p {
  margin: 0 0 20px;
  color: rgba(45, 43, 50, 0.78);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
}

.story-ending {
  margin: 0 0 18px;
  padding: 22px;
  border: 2px solid rgba(255, 209, 102, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(255, 250, 240, 0.96) 38%),
    radial-gradient(circle at 88% 12%, rgba(93, 226, 193, 0.2), transparent 24%),
    #fffaf0;
  box-shadow: 0 14px 30px rgba(34, 23, 16, 0.12);
}

.story-ending-cover {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.story-ending-cover span {
  color: rgba(74, 74, 85, 0.66);
  font-size: 12px;
  font-weight: 950;
}

.story-ending-cover strong {
  color: #2d2b32;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.story-ending-cover em {
  color: #e8675a;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.ending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.ending-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #3e3338;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(74, 74, 85, 0.1);
}

.story-ending p {
  margin: 0 0 10px;
  color: rgba(45, 43, 50, 0.82);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.72;
}

.story-ending p:last-child {
  margin-bottom: 0;
  color: #2f665f;
  font-weight: 900;
}

.ending-memory-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.ending-memory-strip article {
  min-height: 112px;
  padding: 10px;
  border: 2px solid var(--memory-accent, var(--sun));
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 10px 20px rgba(34, 23, 16, 0.1);
}

.ending-memory-strip strong,
.ending-memory-strip span,
.ending-memory-strip small {
  display: block;
}

.ending-memory-strip strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #332b2f;
  font-size: 21px;
  background: color-mix(in srgb, var(--memory-accent, var(--sun)) 28%, #fff7e8);
}

.ending-memory-strip span {
  color: rgba(74, 74, 85, 0.66);
  font-size: 11px;
  font-weight: 950;
}

.ending-memory-strip small {
  margin-top: 4px;
  color: #2d2b32;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.talent-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #332b2f;
  font-weight: 900;
  background: #fff0c5;
}

.report-item {
  min-height: 150px;
  padding: 18px;
  border: 2px solid rgba(74, 74, 85, 0.12);
  border-radius: 8px;
  background: #fffaf0;
}

.report-item h3 {
  margin: 0 0 10px;
  color: #2f665f;
  font-size: 18px;
}

.report-item p {
  margin: 0;
  color: rgba(45, 43, 50, 0.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #332b2f;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  background: var(--sun);
  box-shadow: 0 12px 24px rgba(34, 23, 16, 0.14);
}

.link-button {
  min-height: 44px;
}

.album-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.close-button {
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: var(--coral);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: calc(100% - 82px);
  overflow: auto;
  padding-right: 4px;
}

.album-item {
  min-height: 150px;
  padding: 12px;
  border: 2px solid var(--memory-accent, var(--sun));
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 20px rgba(34, 23, 16, 0.12);
}

.album-summary-card {
  grid-column: 1 / -1;
  padding: 16px;
  border: 2px solid rgba(255, 209, 102, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(255, 250, 240, 0.94) 42%),
    #fffaf0;
  box-shadow: 0 12px 24px rgba(34, 23, 16, 0.12);
}

.album-summary-card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.album-summary-card p:not(.eyebrow) {
  margin: 0;
  color: rgba(45, 43, 50, 0.72);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.album-item.latest-memory {
  animation: latest-memory-glow 900ms ease both;
}

@keyframes latest-memory-glow {
  0% {
    transform: translateY(8px) scale(0.96);
    box-shadow: 0 0 0 rgba(255, 209, 102, 0);
  }

  46% {
    transform: translateY(0) scale(1.02);
    box-shadow:
      0 12px 24px rgba(34, 23, 16, 0.13),
      0 0 0 5px color-mix(in srgb, var(--memory-accent, var(--sun)) 24%, transparent);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 20px rgba(34, 23, 16, 0.12);
  }
}

.album-item.interlude-memory {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--memory-accent, var(--sun)) 18%, #fffaf0), #fffaf0 58%);
  box-shadow:
    0 10px 20px rgba(34, 23, 16, 0.12),
    inset 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.album-item.stage-event-memory {
  position: relative;
  overflow: hidden;
}

.album-item.stage-event-memory::before {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff7e8;
  font-size: 11px;
  font-weight: 950;
  background: var(--pink);
}

.album-item.stage-event-memory.event-kind-sudden::before {
  content: "突发";
}

.album-item.stage-event-memory.event-kind-opportunity::before {
  content: "机会";
  color: #243936;
  background: var(--mint);
}

.album-item.stage-event-memory.event-kind-cost::before {
  content: "代价";
  background: var(--grape);
}

.album-item .memory-art {
  height: 72px;
  margin-bottom: 9px;
  font-size: 30px;
}

.album-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.album-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 2px dashed rgba(74, 74, 85, 0.24);
  border-radius: 8px;
  color: rgba(74, 74, 85, 0.74);
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .game-shell {
    padding: 0;
  }

  .scene {
    width: 100vw;
    min-height: 100vh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .progress-road {
    top: 70px;
    left: 10px;
    right: 10px;
  }

  .focus-fab {
    top: auto;
    right: 14px;
    bottom: calc(31vh + 28px);
    z-index: 18;
  }

  .test-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 6px;
  }

  .test-panel button {
    flex: 0 0 auto;
  }

  .stage-symbol {
    opacity: 0.72;
  }

  .symbol-1 {
    right: 6%;
    top: 17%;
  }

  .symbol-2 {
    right: 22%;
    top: 28%;
  }

  .symbol-3 {
    left: 8%;
    top: 28%;
  }

  .symbol-4 {
    left: 6%;
    bottom: 44%;
  }

  .symbol-5 {
    right: 8%;
    bottom: 42%;
  }

  .cover-copy {
    left: 18px;
    bottom: 24px;
    width: calc(100% - 36px);
  }

  .talent-screen {
    padding: 14px;
  }

  .talent-panel {
    padding: 18px;
    max-height: calc(100vh - 28px);
  }

  .talent-panel h2 {
    font-size: 32px;
  }

  .talent-panel > p {
    font-size: 15px;
    line-height: 1.55;
  }

  .talent-grid {
    grid-template-columns: 1fr;
  }

  .birth-ritual {
    grid-template-columns: 54px 1fr;
  }

  .ritual-mark {
    width: 50px;
    height: 50px;
    font-size: 15px;
  }

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

  .subject-grid,
  .gender-grid {
    grid-template-columns: 1fr;
  }

  .subject-card,
  .gender-card {
    min-height: 94px;
  }

  .setup-actions {
    flex-direction: column;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .cover-copy h2 {
    font-size: 38px;
  }

  .stage-summary-panel {
    padding: 14px;
  }

  .stage-summary-card {
    padding: 18px;
  }

  .stage-summary-grid {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 56vw;
    padding: 8px 10px;
    font-size: 21px;
  }

  .player-badge {
    max-width: 56vw;
    margin-top: 5px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .route-trail {
    max-width: 56vw;
  }

  .story-panel,
  .choice-panel {
    left: 14px;
    right: 14px;
    width: auto;
  }

  .story-panel {
    top: 102px;
    bottom: auto;
    max-height: min(24vh, 178px);
    overflow: auto;
    padding: 12px 13px;
    background: rgba(255, 247, 232, 0.78);
    box-shadow: 0 12px 30px rgba(34, 23, 16, 0.16);
    overscroll-behavior: contain;
  }

  .choice-panel {
    bottom: 10px;
    max-height: none;
    overflow: visible;
    padding-top: 4px;
    gap: 6px;
  }

  .achievement-toast {
    top: 92px;
    min-width: 160px;
    max-width: 72vw;
    padding: 10px 14px;
  }

  .interlude-panel {
    padding: 16px;
  }

  .album-drawer {
    inset: 0;
    z-index: 42;
    width: 100%;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255, 247, 232, 0.99), rgba(255, 247, 232, 0.96)),
      #fff7e8;
    box-shadow: none;
    transform: translateY(104%);
    transition:
      transform 260ms ease,
      opacity 260ms ease;
  }

  .album-drawer.open {
    transform: translateY(0);
  }

  .album-header {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    margin: -18px -18px 14px;
    padding: 18px;
    background: rgba(255, 247, 232, 0.98);
    box-shadow: 0 10px 22px rgba(34, 23, 16, 0.08);
  }

  .album-header h2 {
    margin: 2px 0 0;
    font-size: 30px;
    line-height: 1.05;
  }

  .close-button {
    min-width: 70px;
    min-height: 42px;
  }

  .album-grid {
    grid-template-columns: 1fr;
    max-height: calc(100% - 86px);
    padding: 4px 2px 22px;
  }

  .interlude-card {
    max-height: 82vh;
    overflow: auto;
    padding: 18px;
  }

  .interlude-choice {
    grid-template-columns: 48px 1fr;
    min-height: 68px;
    padding: 10px 12px;
  }

  .action-card {
    min-height: 54px;
    grid-template-columns: 38px 1fr 24px;
    padding: 6px 8px;
    gap: 8px;
  }

  .choice-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .result-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 76px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: 42vh;
    overflow: visible;
    align-items: start;
    padding-bottom: 0;
  }

  .result-copy {
    display: none;
  }

  .memory-reveal {
    min-height: 0;
  }

  .memory-card {
    min-height: 210px;
    padding: 14px;
    transform: rotate(0.8deg);
  }

  .memory-art {
    height: 82px;
    margin-bottom: 10px;
    font-size: 42px;
  }

  .memory-type,
  .path-ribbon {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .memory-card h3 {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .memory-card p {
    font-size: 13px;
    line-height: 1.42;
  }

  .memory-card .talent-memory {
    margin-top: 7px;
    padding-top: 7px;
  }

  .echo-note {
    display: none;
  }

  .next-button {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    min-height: 54px;
    margin-top: 4px;
    box-shadow:
      0 -12px 22px rgba(255, 247, 232, 0.74),
      0 16px 32px rgba(27, 67, 62, 0.3);
  }

  .stage-report {
    padding: 14px;
  }

  .report-card {
    padding: 18px;
    max-height: calc(100vh - 28px);
  }

  .report-card h2 {
    font-size: 31px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .story-ending {
    padding: 16px;
  }

  .ending-memory-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-actions {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
  }

  .album-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .top-actions {
    gap: 6px;
  }

  .route-trail {
    max-width: 52vw;
  }

  .route-chip {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .focus-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .focus-fab {
    right: 14px;
    bottom: calc(30vh + 22px);
  }

  .scene.result-mode .focus-fab {
    visibility: hidden;
    pointer-events: none;
  }

  h1 {
    max-width: 58vw;
    padding: 7px 9px;
    font-size: 19px;
  }

  .player-badge {
    max-width: 62vw;
    padding: 6px 9px;
    font-size: 11px;
  }

  .progress-road {
    top: 68px;
  }

  .story-panel {
    top: 100px;
    max-height: min(23vh, 162px);
  }

  .story-panel p,
  .result-copy p {
    font-size: 15px;
    line-height: 1.58;
  }

  .age-pill {
    margin-bottom: 6px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .choice-panel {
    max-height: none;
    overflow: visible;
    gap: 5px;
  }

  .choice-title {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.16;
  }

  .choice-hint,
  .choice-fit {
    font-size: 10px;
  }

  .choice-hint {
    display: -webkit-box;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .choice-fit {
    margin-top: 3px;
    padding: 2px 6px;
  }

  .choice-arrow {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  .stage-symbol {
    width: 50px;
    height: 50px;
    font-size: 22px;
    opacity: 0.42;
  }

  .event-badge {
    margin-bottom: 6px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .ending-tags {
    gap: 6px;
  }

  .ending-tags span {
    min-height: 26px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .ending-memory-strip {
    grid-template-columns: 1fr;
  }

  .ending-memory-strip article {
    min-height: 82px;
  }
}
