html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.door {
  margin: 0;
  color: #f4f1e8;
  background: #0e2a22;
  font-family: Epilogue, sans-serif;
}

.door h1,
.door h2,
.door h3 {
  margin: 0 0 12px;
  color: #f7f4ec;
  font-family: Urbanist, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.door h1 {
  font-size: clamp(52px, 8vw, 92px);
  max-width: 11ch;
}

.door h2 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 16ch;
}

.kicker {
  margin: 0 0 14px;
  color: #e2b15a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede,
.door-note,
.door-blurb {
  max-width: 42ch;
  color: rgba(244, 241, 232, 0.82);
  font-size: 18px;
  line-height: 1.45;
}

.chapter {
  position: relative;
  box-sizing: border-box;
  min-height: 100svh;
  padding: 108px 7vw 128px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.film-bar {
  position: fixed;
  z-index: 5;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.film-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f4ec;
  font-family: Urbanist, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.film-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #f7f4ec;
  color: #12382c;
  font-family: Urbanist, sans-serif;
  font-weight: 800;
}

.film-start,
.pill {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 15px Epilogue, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.film-start,
.pill-ghost {
  background: rgba(8, 28, 22, 0.45);
  color: #f7f4ec;
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.28);
  backdrop-filter: blur(8px);
}

.pill-gold {
  background: #f0c14a;
  color: #163028;
}

.film-actions,
.door-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chapter-open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(242, 212, 138, 0.95) 0 42px, rgba(242, 212, 138, 0.28) 43px 78px, transparent 80px),
    linear-gradient(180deg, #6eafd4 0%, #9ec8c0 38%, #2f6a52 68%, #12382c 100%);
}

.chapter-open .field {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46%;
  pointer-events: none;
}

.chapter-open .chapter-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.chapter-steps,
.chapter-account,
.chapter-pass {
  background: #12382c;
}

.chapter-ask,
.chapter-prices {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: #0e2a22;
}

.chapter-prices {
  align-items: start;
  background: #12382c;
}

.door-notes {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.door-notes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
}

.door-notes em {
  color: #f0c14a;
  font-style: normal;
}

.chapter-steps ol,
.door-roles,
.door-plans {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chapter-steps ol,
.door-roles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.door-plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chapter-steps li,
.door-role,
.door-plans li,
.film-card {
  border-radius: 22px;
  background: rgba(247, 244, 236, 0.08);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.12);
}

.chapter-steps li,
.door-role {
  padding: 18px;
}

.chapter-steps em {
  display: block;
  color: #f0c14a;
  font-family: Urbanist, sans-serif;
  font-style: normal;
  font-weight: 800;
}

.chapter-steps strong,
.door-role strong,
.door-plan-copy strong {
  display: block;
  margin-top: 8px;
  color: #f7f4ec;
  font-family: Urbanist, sans-serif;
  font-size: 24px;
}

.chapter-steps span,
.door-blurb,
.door-plan-copy em {
  display: block;
  margin-top: 6px;
  color: rgba(244, 241, 232, 0.75);
  font-style: normal;
}

.door-role {
  display: block;
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.door-role.is-on {
  background: rgba(240, 193, 74, 0.16);
  box-shadow: inset 0 0 0 2px #f0c14a;
}

.film-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.door label {
  display: grid;
  gap: 6px;
  color: rgba(244, 241, 232, 0.8);
  font-size: 14px;
}

.door input,
.door textarea,
.door select {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  background: rgba(8, 24, 20, 0.45);
  color: #f7f4ec;
  font: 400 16px Epilogue, sans-serif;
  padding: 12px;
}

.door-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.door-langs button,
.door-chips button {
  border: 0;
  border-radius: 999px;
  background: rgba(247, 244, 236, 0.12);
  color: #f7f4ec;
  padding: 8px 12px;
  font: 600 14px Epilogue, sans-serif;
  cursor: pointer;
}

.door-langs button.is-on {
  background: #f0c14a;
  color: #12382c;
}

.door-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.door-meter i {
  width: 14px;
  height: 22px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(247, 244, 236, 0.2);
}

.door-meter[data-left="3"] i,
.door-meter[data-left="2"] i:nth-child(-n + 2),
.door-meter[data-left="1"] i:first-child {
  background: #f0c14a;
}

.door-plans li {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.door-plans b {
  align-self: flex-start;
  border-radius: 999px;
  background: #f0c14a;
  color: #163028;
  padding: 6px 10px;
  font-size: 13px;
}

.door-reply {
  color: #f7f4ec;
  white-space: pre-wrap;
}

.door-note a {
  color: #f0c14a;
}

.rail {
  position: fixed;
  z-index: 6;
  bottom: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 24, 20, 0.62);
  padding: 6px;
  backdrop-filter: blur(10px);
}

.rail button,
.rail-dot {
  border: 0;
  background: transparent;
  color: #f7f4ec;
  cursor: pointer;
}

#railPrev,
#railNext {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 244, 236, 0.1);
  font-size: 20px;
}

#railName {
  border-radius: 999px;
  background: #f0c14a;
  color: #163028;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}

#railDots {
  display: flex;
  gap: 6px;
  padding-right: 6px;
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 244, 236, 0.35);
}

.rail-dot.is-on {
  background: #f7f4ec;
}

@media (max-width: 900px) {
  .chapter-ask,
  .chapter-prices,
  .chapter-steps ol,
  .door-roles,
  .door-plans {
    grid-template-columns: 1fr;
  }
  .door h1 {
    font-size: 48px;
  }
  #railName {
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
