/* Sect Day — a candlelit, gold-leaf story room within Fandom Vibes. */
.sect-shell {
  --sect-ink: #071725;
  --sect-panel: rgba(13, 32, 47, .92);
  --sect-panel-raised: rgba(20, 43, 58, .88);
  --sect-gold: var(--gold, #d5ac58);
  --sect-paper: var(--paper, #f3eee5);
  --sect-mist: var(--mist, #a9bbc8);
  --sect-line: var(--line, rgba(222, 228, 226, .2));
  color: var(--sect-paper);
  margin: 0 auto;
  max-width: 1000px;
  min-width: 0;
  padding: 0 24px clamp(64px, 9vw, 112px);
}

.sect-shell :focus-visible {
  outline: 3px solid var(--sect-gold);
  outline-offset: 4px;
}

.sect-shell [hidden] {
  display: none !important;
}

.sect-intro {
  border-block: 1px solid rgba(213, 172, 88, .4);
  color: #d0d8db;
  font: 500 clamp(19px, 2.4vw, 25px)/1.55 Georgia, "Times New Roman", serif;
  margin: 0 0 clamp(28px, 5vw, 52px);
  max-width: 780px;
  padding: 22px 0 25px;
}

.sect-intro::before {
  color: var(--sect-gold);
  content: "THE PREMISE";
  display: block;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  margin-bottom: 10px;
}

.sect-stage {
  background:
    linear-gradient(135deg, rgba(213, 172, 88, .075), transparent 42%),
    var(--sect-panel);
  border: 1px solid rgba(213, 172, 88, .38);
  margin: 0 auto;
  max-width: 880px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 5.4vw, 58px);
  position: relative;
}

.sect-stage::before,
.sect-stage::after {
  border-color: rgba(213, 172, 88, .55);
  border-style: solid;
  content: "";
  height: 17px;
  pointer-events: none;
  position: absolute;
  width: 17px;
}

.sect-stage::before {
  border-width: 1px 0 0 1px;
  left: 10px;
  top: 10px;
}

.sect-stage::after {
  border-width: 0 1px 1px 0;
  bottom: 10px;
  right: 10px;
}

.sect-heading {
  color: var(--sect-paper);
  font: 500 clamp(34px, 6.3vw, 62px)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  margin: 0 0 18px;
  max-width: 760px;
  text-wrap: balance;
}

.sect-heading:focus {
  outline-offset: 8px;
}

.sect-progress {
  align-items: center;
  color: var(--sect-gold);
  display: flex;
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  gap: 14px;
  letter-spacing: .12em;
  margin: 0 0 27px;
  text-transform: uppercase;
}

.sect-progress::after {
  background: linear-gradient(90deg, var(--sect-gold), rgba(213, 172, 88, .16));
  content: "";
  height: 1px;
  flex: 1;
}

.sect-stage > p:not(.sect-progress),
.sect-stage .sect-narrative {
  color: #c7d1d7;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
  margin: 0 0 25px;
  max-width: 720px;
}

.sect-choices {
  counter-reset: sect-choice;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.sect-choices li {
  counter-increment: sect-choice;
  min-width: 0;
}

.sect-choices button {
  align-items: flex-start;
  background:
    linear-gradient(100deg, rgba(213, 172, 88, .075), transparent 36%),
    rgba(6, 19, 33, .56);
  border: 1px solid var(--sect-line);
  color: var(--sect-paper);
  cursor: pointer;
  display: grid;
  gap: 8px 16px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 76px;
  padding: 17px 20px;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  width: 100%;
}

.sect-choices button::before {
  color: var(--sect-gold);
  content: "0" counter(sect-choice);
  font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  padding-top: 3px;
}

.sect-choices button:hover {
  background-color: rgba(213, 172, 88, .09);
  border-color: rgba(213, 172, 88, .72);
  transform: translateX(3px);
}

.sect-choices button:focus-visible {
  border-color: var(--sect-gold);
}

.sect-choices button strong,
.sect-choices button > span:first-child {
  font: 500 19px/1.35 Georgia, "Times New Roman", serif;
}

.sect-choices button small,
.sect-choices button .sect-choice-note {
  color: var(--sect-mist);
  display: block;
  font-size: 14px;
  grid-column: 2;
  line-height: 1.55;
}

.sect-consequence {
  background:
    linear-gradient(115deg, rgba(213, 172, 88, .13), transparent 78%),
    rgba(6, 19, 33, .72);
  border: 1px solid rgba(213, 172, 88, .46);
  border-left: 3px solid var(--sect-gold);
  margin: 30px 0 0;
  padding: clamp(20px, 3.5vw, 30px);
}

.sect-consequence::before {
  color: var(--sect-gold);
  content: "THE IMMEDIATE COST";
  display: block;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.sect-consequence h2,
.sect-consequence h3 {
  color: var(--sect-paper);
  font: 500 clamp(25px, 4vw, 38px)/1.12 Georgia, "Times New Roman", serif;
  margin: 0 0 12px;
}

.sect-consequence p {
  color: #ccd5d9;
  margin: 0;
  max-width: 700px;
}

.sect-recap {
  border-top: 1px solid var(--sect-line);
  counter-reset: recap;
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.sect-recap::before {
  color: var(--sect-mist);
  content: "YOUR RECORD";
  display: block;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  padding: 20px 0 8px;
}

.sect-recap li {
  align-items: baseline;
  border-bottom: 1px solid rgba(222, 228, 226, .12);
  color: #c7d1d7;
  counter-increment: recap;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 12px 0;
}

.sect-recap li::before {
  color: var(--sect-gold);
  content: counter(recap, decimal-leading-zero);
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.sect-actions .button {
  max-width: 100%;
}

.sect-shell .button:disabled,
.sect-shell button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 620px) {
  .sect-shell {
    padding-inline: 16px;
  }

  .sect-intro {
    font-size: 19px;
    padding-block: 18px 20px;
  }

  .sect-stage {
    padding: 26px 19px;
  }

  .sect-stage::before { left: 7px; top: 7px; }
  .sect-stage::after { bottom: 7px; right: 7px; }

  .sect-progress {
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
  }

  .sect-choices { gap: 9px; margin-top: 23px; }

  .sect-choices button {
    gap: 6px 11px;
    min-height: 72px;
    padding: 15px 13px;
  }

  .sect-choices button strong,
  .sect-choices button > span:first-child {
    font-size: 17px;
  }

  .sect-choices button small,
  .sect-choices button .sect-choice-note {
    font-size: 13px;
  }

  .sect-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sect-actions .button {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sect-shell *,
  .sect-shell *::before,
  .sect-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
