.journey .series-display {
  display: block;
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: clamp(37px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #e8dcc1;
  font-variant: normal;
  margin: 10px 0 22px;
  text-shadow: 0 2px 20px #000;
}
.series-author {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2em;
  margin: 12px 0;
}
.journey #world-intro h2 {
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 400;
  margin: 14px 0 22px;
}
.journey-card {
  width: min(1000px, 100%);
}
#title-effects-dialog {
  width: min(1160px, 96vw);
  max-height: 93vh;
  overflow: auto;
  background: #10191d;
  border: 1px solid #9d8358;
}
#title-effects-dialog h2 {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}
.effect-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.effect-studies article {
  min-width: 0;
}
.effect-studies p {
  font-size: 14px;
  line-height: 1.6;
}
.effect-screen {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(#10171988, #10171966),
    url('assets/intro/smoke.png') center/cover;
  border: 1px solid #7f7155;
}
.effect-sample {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
  font-weight: 400;
  color: #f3e6cb;
}
.effect-studies button {
  border: 1px solid #aa9368;
  padding: 9px 15px;
}
.effect-studies button[aria-pressed='true'] {
  background: #aa936833;
}
.journey .title-study-open {
  font-size: 12px;
  padding: 7px 13px;
  margin: 8px;
  border-color: #796948;
}
.title-depth {
  animation: mistTitle 3.6s ease-out both;
}
.title-gold {
  animation: goldTitle 3.6s ease-out both;
}
.title-whisper {
  animation: whisperTitle 3.6s ease-out both;
}
@keyframes mistTitle {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: scale(0.78) translateY(14px);
  }
  35% {
    opacity: 0.55;
    filter: blur(4px);
  }
  72%,
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}
@keyframes goldTitle {
  0% {
    opacity: 0;
    filter: blur(5px);
    text-shadow: -100px 0 0 #efce8100;
  }
  40% {
    opacity: 1;
    text-shadow: -35px 0 25px #ebc987aa;
  }
  70% {
    text-shadow: 35px 0 22px #f9e0a3aa;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 2px 16px #0008;
  }
}
@keyframes whisperTitle {
  0% {
    opacity: 0;
    letter-spacing: 0.15em;
    filter: blur(9px);
    transform: scale(0.88);
  }
  70%,
  100% {
    opacity: 1;
    letter-spacing: 0.025em;
    filter: blur(0);
    transform: scale(1);
  }
}
.journey #welcome .book-title {
  font-size: clamp(68px, 9vw, 126px);
  font-weight: 400;
  font-optical-sizing: auto;
}
.journey #welcome {
  padding: 16px 20px;
}
.journey #welcome .notice {
  font-size: 12px;
  margin: 10px auto;
}
.journey #welcome .book-title {
  margin: 18px 0;
}
.journey #welcome p {
  margin: 10px auto;
}
@media (prefers-reduced-motion: reduce) {
  .title-depth,
  .title-gold,
  .title-whisper {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@media (max-width: 700px) {
  .effect-studies {
    grid-template-columns: 1fr;
  }
  .effect-screen {
    height: 170px;
  }
  .journey .series-display {
    font-size: 38px;
  }
  .journey #welcome .book-title {
    font-size: 68px;
  }
  .series-author {
    font-size: 11px;
  }
  .journey {
    padding: 65px 16px 20px;
  }
}
#film-lettering {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  background: radial-gradient(ellipse, #050a1044, transparent 65%);
}
#film-lettering[hidden] {
  display: none;
}
#film-lettering .book-title {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 28px #000;
}
#film-lettering .eyebrow {
  margin-bottom: 25px;
}
.journey .book-title {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-weight: 400;
  font-variant: normal;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.015em;
  font-size: clamp(64px, 8vw, 112px);
  margin: 28px 0 24px;
  text-shadow: 0 2px 25px #0008;
}
.book-title span {
  display: block;
}
.journey .book-title small {
  display: block;
  font-size: 0.25em;
  line-height: 1.5;
  letter-spacing: 0.16em;
  margin: 9px 0;
}
.journey .eyebrow,
.brand {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-weight: 400;
}
.journey .eyebrow {
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: 0.12em;
}
.journey-card {
  padding-top: 20px;
}
.journey .notice {
  margin: 16px auto;
}
.journey p {
  margin: 12px auto;
}
.brand {
  font-size: 25px;
  letter-spacing: 0.05em;
}
#steven-notice {
  position: absolute;
  top: 78px;
  left: 22px;
  z-index: 5;
  background: #182528ed;
  border: 1px solid #c2a775;
  color: #f0dfbe;
  border-radius: 5px;
  padding: 13px 16px;
  max-width: min(440px, calc(100% - 44px));
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 20px #0005;
}
#steven-notice[hidden] {
  display: none;
}
#stage:has(details[open]:not([hidden])) #steven-notice {
  top: 220px;
}
#editor :disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#environment-toggle {
  border: 1px solid #b59b67;
  padding: 9px 16px;
  font-weight: bold;
}
#environment-toggle b {
  font-size: 20px;
  margin-left: 10px;
}
.environment-drawer {
  width: min(390px, 90%);
  border: 1px solid #b59b67;
  box-shadow: 0 10px 50px #000c;
}
.preview-tools #clean {
  font-size: 14px;
  border: 1px solid #b59b67;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
}
.preview-tools #clean b {
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}
.preview-tools [hidden] {
  display: none !important;
}
#music-toggle {
  position: fixed;
  right: 16px;
  top: 54px;
  z-index: 25;
  font-size: 12px;
  padding: 7px 12px;
  background: #101719e8;
  border: 1px solid #85734f;
}
body:not(.opening) #music-toggle {
  top: 106px;
  right: 18px;
}
body.clean #music-toggle {
  display: none;
}
#tour-help {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #71664b;
  margin-top: 4px;
}
#creator-tour {
  position: fixed;
  z-index: 18;
  right: 24px;
  top: 132px;
  width: min(360px, calc(100vw - 30px));
  padding: 20px 22px;
  background: #101c20fa;
  border: 2px solid #ba9d65;
  box-shadow: 0 10px 50px #000b;
  border-radius: 6px;
}
#creator-tour[hidden] {
  display: none;
}
#creator-tour h2 {
  font-size: 23px;
  margin: 9px 0 12px;
}
#creator-tour p {
  font-size: 15px;
  line-height: 1.6;
}
.tour-progress {
  color: #cbb480;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.tour-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}
.tour-actions button {
  padding: 7px 10px;
  border: 1px solid #85734f;
}
.tour-highlight {
  outline: 2px solid #e3c282 !important;
  outline-offset: 3px;
  box-shadow: 0 0 20px #e3c28240 !important;
}
#bond-film-dialog {
  width: min(1050px, 95vw);
  max-height: 94vh;
  text-align: center;
  overflow: auto;
}
#bond-film {
  width: 100%;
  max-height: 65vh;
  background: #101719;
}
#bond-film-dialog h2 {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  margin: 8px;
}
@media (max-width: 650px) {
  #creator-tour {
    top: auto;
    bottom: 90px;
    right: 15px;
    max-height: 42vh;
    overflow: auto;
    padding: 13px;
  }
  #creator-tour h2 {
    font-size: 20px;
  }
  #creator-tour p {
    font-size: 13px;
  }
  .journey .book-title {
    font-size: 64px;
  }
  #steven-notice {
    left: 10px;
    top: 68px;
    font-size: 12px;
    padding: 8px;
    max-width: calc(100% - 20px);
  }
  #clean span {
    display: none;
  }
}
.journey #world-intro .series-display,
.journey #welcome .series-display {
  font-family: Cinzel, Alegreya, Georgia, serif;
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.025em;
  color: #e8dcc1;
}
.journey .journey-card {
  width: min(1000px, 100%);
}
.journey #world-intro .series-display {
  margin-bottom: 28px;
}
.journey #welcome .series-display {
  font-size: clamp(32px, 4.3vw, 60px);
}
.journey .book-title {
  position: relative;
}
.title-flourish {
  display: block;
  width: 60%;
  height: 28px;
  margin: 8px auto 0;
  color: #cbb792;
}
.journey #welcome .book-title {
  font-weight: 400;
}

#welcome .book-title,
#film-lettering .book-title,
.effect-sample {
  font-family: FantasyDisplay, BookDisplay, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
#welcome .book-title {
  font-size: clamp(66px, 8.6vw, 126px);
  line-height: 0.97;
}
#welcome .book-title small {
  letter-spacing: 0.05em;
  font-size: 0.26em;
}

/* Narrow screens: the creator footer stays above the panel it overlaps while sticky, and the music
   toggle sits just above the footer instead of over the wrapped tab row. */
@media (max-width: 900px) {
  footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
  }
  body:not(.opening) #music-toggle {
    top: auto;
    bottom: 118px;
    right: 12px;
  }
}
