body.world-intro-open { overflow: hidden; }

.world-intro {
  width: min(850px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 0;
  border: 1px solid #fffdf6;
  border-radius: 7px 22px 22px 7px;
  color: #3f463d;
  background: #f3efe6;
  box-shadow: 0 24px 90px #38303c36, 0 2px 0 #d2c9bb;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-gutter: auto;
  animation: world-intro-arrive .25s ease-out;
}
.world-intro *, .world-intro { scrollbar-width: none; scrollbar-gutter: auto; }
.world-intro::-webkit-scrollbar, .world-intro *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.world-intro::backdrop { background: #3c394669; backdrop-filter: blur(9px); }
.world-intro__sheet { position: relative; display: grid; grid-template-columns: 145px 1fr; min-height: 650px; }
.world-intro .world-intro__close {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #8a7895; box-shadow: none; isolation: isolate;
}
.world-intro__close::before {
  content: ''; position: absolute; inset: 8px; z-index: -1; border: 1px solid #fffdf8b8; border-radius: inherit;
  background: linear-gradient(135deg, #fffdf6b0, #f7f2f14d 45%, #e9e1f08a);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #bcadc42b, 0 2px 8px #7968800b;
  backdrop-filter: blur(12px) saturate(1.05); -webkit-backdrop-filter: blur(12px) saturate(1.05);
}
.world-intro__close > span { font: 22px/1 var(--serif, serif); transition: opacity .18s ease; }
.world-intro__close::after { content: '×'; position: absolute; font: 18px/1 var(--sans, sans-serif); opacity: 0; transition: opacity .18s ease; }
.world-intro .world-intro__close:hover, .world-intro .world-intro__close:focus-visible { background: transparent; color: #73617f; box-shadow: none; }
.world-intro__close:hover > span, .world-intro__close:focus-visible > span { opacity: 0; }
.world-intro__close:hover::after, .world-intro__close:focus-visible::after { opacity: 1; }
.world-intro__close:disabled { opacity: .45; }
.world-intro__spine {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 39px 18px 28px;
  background: radial-gradient(ellipse at 10% 30%, #f4efef9c, transparent 65%), linear-gradient(135deg, #e2dde7, #e6e2df 72%, #e5e8dd);
  border-right: 1px solid #a69ba430;
  position: relative;
  text-align: center;
}
.world-intro__spine::after { content: ''; position: absolute; inset: 14px 8px 14px 12px; border: 1px solid #fffaf566; border-right: 0; pointer-events: none; }
.world-intro__book-label { font: 18px/1.8 var(--serif, Georgia, 'Songti SC', serif); writing-mode: vertical-rl; letter-spacing: .36em; color: #635d6d; }
.world-intro__book-note { margin-top: 46px; font: 12px/2.2 var(--serif, serif); letter-spacing: .2em; color: #746b7a; }
.world-intro__edition { margin-top: auto; padding-top: 30px; font-size: 8px; letter-spacing: .16em; color: #746b7a; }
.world-intro__page { padding: 29px 42px 28px; background: radial-gradient(ellipse at 100% 0, #fffdfa, transparent 70%); min-width: 0; }
.world-intro__folio { display: flex; justify-content: space-between; gap: 16px; padding: 0 32px 15px 0; border-bottom: 1px solid #84796730; font-size: 10px; letter-spacing: .16em; color: #756c7c; }
.world-intro__steps { display: flex; gap: 27px; margin: 17px 0 0; padding: 0; list-style: none; font-size: 11px; color: #8a8586; }
.world-intro__steps li { display: flex; align-items: center; gap: 7px; }
.world-intro__steps li > span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #c8bec866; border-radius: 50%; font: 10px/1 var(--sans, sans-serif); }
.world-intro__steps li[aria-current="step"] { color: #6a5974; }
.world-intro__steps li[aria-current="step"] > span { background: #e9e2ee; border-color: #b8a9c388; }
.world-intro__overline { font-size: 11px; color: #776e7c; letter-spacing: .08em; margin: 27px 0 11px; }
.world-intro h2 { font: 400 clamp(26px, 3.1vw, 33px)/1.55 var(--serif, Georgia, 'Songti SC', serif); letter-spacing: .035em; margin: 0 0 19px; }
.world-intro h2:focus { outline: none; box-shadow: none; }
.world-intro__narrative { font-size: 13px; line-height: 2; color: #646357; }
.world-intro__narrative p { margin: 0 0 13px; }
.world-intro__identity { margin: 21px 0 0; padding: 12px 17px; border: 1px solid #c8bdcc60; border-radius: 9px; background: linear-gradient(120deg, #fffdf98c, #eee9f066); }
.world-intro__identity > div { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 4px 0; font-size: 11px; line-height: 1.8; }
.world-intro__identity dt { color: #86758b; }
.world-intro__identity dd { margin: 0; color: #65645a; }
.world-intro__signature { display: flex; gap: 10px; align-items: center; margin: 21px 0 0; font: 12px/1.8 var(--serif, serif); color: #7d6c83; }
.world-intro__signature span { font-size: 24px; }
.world-intro__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 21px; margin-top: 23px; border-top: 1px solid #84796730; }
.world-intro__actions--single { justify-content: flex-end; }
.world-intro button { font-size: 12px; min-height: 46px; cursor: pointer; }
.world-intro button:disabled { cursor: wait; }
.world-intro button:focus-visible, .world-intro input:focus-visible { outline: 2px solid #a596b4; outline-offset: 3px; }
.world-intro__quiet { background: transparent; border: 0; padding: 8px 0; border-radius: 5px; color: #706779; box-shadow: none; }
.world-intro__quiet:hover { background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 5px; }
.world-intro__primary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 183px; padding: 12px 18px; border: 1px solid #fffcf7; border-radius: 13px; background: linear-gradient(115deg, #fffdf7, #f4efe9 45%, #e9e2f0); box-shadow: inset 0 -1px 2px #bcadc430, 0 0 0 1px #b7a8bd50, 0 5px 15px #7767800c; color: #51495a; }
.world-intro__primary:hover { background: linear-gradient(115deg, #fffdf7, #f1ebf3); }
.world-intro__primary > span { font-size: 17px; color: #8b7796; }
.world-intro__primary.magic-cue { animation: intro-pearl-invite 2.6s ease-in-out .2s 2; overflow: visible; }
.world-intro__primary.magic-cue::before { inset: -4px; border-color: #b7a4ca80; animation-delay: .2s; }
.world-intro__primary.magic-cue::after {
  inset: 1px; width: auto; height: auto; border-radius: inherit; background: linear-gradient(110deg, transparent 10%, #fffdf8b8 38%, #f6efff9e 49%, transparent 71%);
  box-shadow: none; animation: intro-pearl-sheen 2.6s ease-in-out .2s 2;
}
.world-intro__instruction { font-size: 12px; line-height: 1.9; color: #756d72; margin: -5px 0 22px; }
.world-intro__luggage-tag { position: relative; display: flex; flex-direction: column; align-items: center; gap: 13px; width: min(100%, 330px); margin: 22px auto 25px; padding: 22px 25px 18px; border: 1px solid #d8cdbd; border-radius: 6px 27px 6px 6px; background: linear-gradient(115deg, #f9f5e8, #fffdf7 60%, #ede7d9); box-shadow: 0 4px 12px #8d7c6810; transform: rotate(-1.5deg); text-align: center; }
.world-intro__luggage-tag::before { content: ''; position: absolute; top: 11px; right: 12px; width: 7px; height: 7px; border: 1px solid #c4b9a6; border-radius: 50%; background: #ebe5da; box-shadow: inset 0 1px 2px #8e837c22; }
.world-intro__tag-caption { color: #8a7c70; font-size: 8px; letter-spacing: .16em; }
.world-intro__tag-name { width: 100%; min-height: 42px; display: grid; place-items: center; overflow-wrap: anywhere; font: 26px/1.5 var(--serif, Georgia, 'Songti SC', serif); color: #62586b; }
.world-intro__tag-name.is-empty { color: #aaa095; font-size: 19px; }
.world-intro__tag-footer { width: 100%; border-top: 1px dashed #cec3b5; padding-top: 9px; color: #958a7d; font-size: 9px; letter-spacing: .09em; }
.world-intro__name > label { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; gap: 12px; margin-bottom: 8px; }
.world-intro__name > label span { font-size: 10px; color: #857a86; }
.world-intro__name-controls { display: flex; align-items: stretch; gap: 9px; border-radius: 9px; }
.world-intro__name input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1px solid #b8aebc77; border-radius: 9px; background: #fffdf5b8; padding: 10px 13px; font: 16px/1.5 var(--serif, serif); color: #48433f; }
.world-intro__name input::placeholder { font: 12px var(--sans, sans-serif); color: #8c858b; }
.world-intro__name input[aria-invalid="true"] { border-color: #ad786d; }
.world-intro__dice { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-width: 112px; padding: 10px 13px; border: 1px solid #b8a9c365; border-radius: 9px; background: linear-gradient(135deg, #fcfaf5, #ebe5f0); color: #71617c; box-shadow: inset 0 1px 0 #ffffffc9; }
.world-intro__dice:hover { background: linear-gradient(135deg, #fffdf8, #e6deed); }
.world-intro__dice svg { width: 23px; height: 23px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.2; }
.world-intro__dice svg circle { fill: currentColor; stroke: none; }
.world-intro__dice:active svg { transform: rotate(14deg); }
.world-intro__name p { font-size: 10px; color: #807880; margin: 8px 0 0; line-height: 1.7; }
.world-intro__error { margin: 16px 0 0; padding: 10px 13px; font-size: 12px; border: 1px solid #af7a6c55; border-radius: 8px; background: #fff5ed; color: #874f43; line-height: 1.8; }
.world-intro__status { font-size: 11px; color: #756a7c; line-height: 1.8; margin: 10px 0 0; }
.world-intro__status:empty { display: none; }
.world-intro[aria-busy="true"] { cursor: progress; }

@keyframes world-intro-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes intro-pearl-invite { 0%,74%,100% { box-shadow: inset 0 -1px 2px #bcadc430, 0 0 0 1px #b7a8bd50, 0 5px 15px #7767800c; } 34% { box-shadow: inset 0 1px 2px #fff, 0 0 0 1px #b6a0cb8c, 0 0 22px #c4b0d64f, 0 7px 19px #ad97bf1c; } }
@keyframes intro-pearl-sheen { 0%,9%,77%,100% { opacity: 0; transform: translateX(-5%); } 35% { opacity: .65; transform: translateX(0); } 64% { opacity: 0; transform: translateX(5%); } }
@media (min-width: 621px) and (max-height: 800px) {
  .world-intro__sheet { min-height: 0; }
  .world-intro__page { padding: 19px 36px 20px; }
  .world-intro__folio { padding-bottom: 10px; }
  .world-intro__steps { margin-top: 11px; }
  .world-intro__steps li > span { width: 21px; height: 21px; }
  .world-intro__overline { margin: 17px 0 8px; }
  .world-intro h2 { font-size: 30px; line-height: 1.4; margin-bottom: 13px; }
  .world-intro__narrative { font-size: 12px; line-height: 1.8; }
  .world-intro__narrative p { margin-bottom: 9px; }
  .world-intro__identity { margin-top: 13px; padding: 8px 14px; }
  .world-intro__identity > div { padding: 3px 0; line-height: 1.7; }
  .world-intro__signature { margin-top: 12px; }
  .world-intro__signature span { font-size: 21px; }
  .world-intro__actions { padding-top: 15px; margin-top: 15px; }
  .world-intro button { min-height: 44px; }
  .world-intro__primary { padding-block: 10px; }
  .world-intro__instruction { line-height: 1.75; margin: -2px 0 13px; }
  .world-intro__luggage-tag { margin: 14px auto 18px; padding: 14px 22px 12px; gap: 8px; }
  .world-intro__tag-name { min-height: 33px; font-size: 24px; }
  .world-intro__tag-footer { padding-top: 7px; }
  .world-intro__name input { min-height: 46px; }
  .world-intro__status { margin-top: 8px; }
}
@media (max-width: 620px) {
  .world-intro { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .world-intro__sheet { grid-template-columns: 1fr; min-height: 0; }
  .world-intro__spine { padding: 14px 23px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid #a69ba430; }
  .world-intro__spine::after { inset: 5px; border: 1px solid #fffaf566; border-radius: 11px 11px 0 0; }
  .world-intro__book-label { writing-mode: horizontal-tb; font-size: 15px; letter-spacing: .2em; }
  .world-intro .world-intro__close { top: 7px; right: 12px; }
  .world-intro__book-note, .world-intro__edition { display: none; }
  .world-intro__page { padding: 20px 23px 22px; }
  .world-intro__folio { padding-right: 0; padding-bottom: 12px; font-size: 9px; }
  .world-intro__steps { gap: 24px; margin-top: 14px; }
  .world-intro__overline { margin-top: 22px; }
  .world-intro h2 { font-size: 27px; margin-bottom: 17px; }
  .world-intro__narrative { font-size: 12px; line-height: 1.95; }
  .world-intro__narrative p { margin-bottom: 12px; }
  .world-intro__identity { margin-top: 17px; padding: 10px 13px; }
  .world-intro__identity > div { gap: 10px; grid-template-columns: 30px 1fr; }
  .world-intro__signature { margin-top: 17px; font-size: 12px; }
  .world-intro__actions { margin-top: 20px; padding-top: 17px; gap: 10px; }
  .world-intro__primary { min-width: 0; gap: 16px; padding-inline: 14px; }
  .world-intro__actions--single .world-intro__primary { width: 100%; }
  .world-intro__luggage-tag { margin-block: 20px 24px; padding-inline: 17px; }
  .world-intro__dice { min-width: 102px; padding-inline: 10px; gap: 5px; }
}
@media (max-width: 350px) {
  .world-intro__page { padding-inline: 17px; }
  .world-intro h2 { font-size: 24px; }
  .world-intro button { font-size: 11px; }
  .world-intro__primary { padding-inline: 11px; gap: 9px; }
  .world-intro__dice { min-width: 46px; width: 46px; padding: 10px; }
  .world-intro__dice > span { display: none; }
  .world-intro__tag-name { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-intro { animation: none; }
  .world-intro__dice:active svg { transform: none; }
  .world-intro__close > span, .world-intro__close::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .world-intro::backdrop { background: #55505b; backdrop-filter: none; }
  .world-intro__identity { background: #f5f0f3; }
  .world-intro__name input { background: #fffdf7; }
  .world-intro__close::before { background: #f6f0f5; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .world-intro__narrative, .world-intro__instruction, .world-intro__name p, .world-intro__identity dd { color: #4d454f; }
  .world-intro__steps, .world-intro__tag-footer, .world-intro__tag-caption { color: #686064; }
  .world-intro__name input, .world-intro__dice, .world-intro__luggage-tag, .world-intro__identity { border-color: #776582; }
}
@media (forced-colors: active) {
  .world-intro, .world-intro__page, .world-intro__spine, .world-intro__primary, .world-intro__dice, .world-intro__luggage-tag, .world-intro__identity { background: Canvas; color: CanvasText; }
  .world-intro__steps li[aria-current="step"] > span { border: 2px solid Highlight; color: Highlight; background: Canvas; }
  .world-intro__spine::after { display: none; }
  .world-intro__close::before { background: Canvas; border-color: ButtonText; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .world-intro button, .world-intro__name input { border: 1px solid ButtonText; }
}

