.welcome-trigger { cursor: pointer; font-family: Arial, sans-serif; }

.welcome-scroll {
  width: min(760px, calc(100% - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  color: #3a0a06;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}
.welcome-scroll::backdrop {
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.welcome-scroll-inner {
  position: relative;
  min-height: 100%;
  overflow: visible;
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 8vw, 5.5rem);
  background:
    radial-gradient(circle at 22% 18%, rgba(119, 18, 7, .12), transparent 21rem),
    repeating-linear-gradient(3deg, rgba(73, 28, 8, .035) 0 1px, transparent 1px 5px),
    linear-gradient(100deg, #b99458, #e1c98f 13%, #d5b776 50%, #ead59e 87%, #a77d42);
  border-inline: 8px solid #3c1708;
  box-shadow: 0 0 90px #000, inset 0 0 65px rgba(52, 19, 4, .55);
  scrollbar-color: #76150c #b48c55;
}
.welcome-scroll-inner::before,
.welcome-scroll-inner::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(#251006, #7b4720 44%, #1c0903 52%, #6b3a18);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .75);
}
.welcome-scroll-inner::before { top: -10px; }
.welcome-scroll-inner::after { bottom: -10px; transform: rotate(180deg); }
.welcome-scroll h2 {
  margin: 0 0 1.5rem;
  color: #690d08;
  text-align: center;
  font-size: clamp(2rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 1px rgba(255, 220, 151, .45);
}
.welcome-scroll p,
.welcome-scroll li { color: #4a100b; font-size: 1rem; line-height: 1.75; }
.welcome-scroll p:first-of-type::first-letter {
  float: left; padding: .12em .12em 0 0; color: #7e0c08;
  font-size: 4.4rem; line-height: .72; font-family: Georgia, serif;
}
.welcome-scroll ol { padding-left: 1.5rem; }
.welcome-scroll li { margin: .45rem 0; }
.welcome-scroll strong { color: #74100a; }
.welcome-signature {
  margin: 2rem 1rem 0 0;
  text-align: right;
}
.welcome-signature img {
  display: inline-block;
  width: clamp(110px, 24vw, 180px);
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(1.2) contrast(1.08);
  transform: rotate(-5deg);
}
.welcome-close {
  display: block; margin: 2rem auto 0; padding: .75rem 1.2rem; cursor: pointer;
  color: #f2d7a2; border: 1px solid #68110b; background: #3d0805;
  text-transform: uppercase; letter-spacing: .14em; font: 800 .7rem Arial, sans-serif;
}

.tribunal-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(182, 38, 8, .16), transparent 34rem),
    linear-gradient(180deg, rgba(5, 1, 0, .5), rgba(22, 4, 2, .4) 52%, rgba(4, 1, 0, .52));
  border-block: 1px solid #561008;
}
.tribunal-intro { max-width: 860px; margin: 1rem auto 2rem; color: #b99a83; text-align: center; font-size: 1.08rem; line-height: 1.75; }
.tribunal-figure { width: min(1120px, 100%); margin: 2.5rem auto; }
.tribunal-figure img {
  display: block; width: 100%; height: auto; border: 1px solid rgba(174, 52, 25, .48);
  filter: sepia(.25) contrast(1.08) saturate(.8);
  box-shadow: 0 0 55px rgba(184, 27, 3, .2), inset 0 0 30px #000;
}
.tribunal-figure figcaption { margin-top: .8rem; color: #795f50; text-align: center; font-style: italic; }
.tribunal-order {
  display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: .8rem; max-width: 1080px; margin: 2rem auto;
}
.tribunal-order article {
  padding: 1.25rem .8rem; text-align: center; border: 1px solid rgba(139, 35, 18, .46);
  background: rgba(26, 4, 2, .72); box-shadow: inset 0 0 22px rgba(0, 0, 0, .7);
}
.tribunal-count { display: block; color: #ee4924; font: 800 clamp(1.8rem, 4vw, 3rem) Impact, sans-serif; text-shadow: 0 0 16px rgba(255, 55, 13, .35); }
.tribunal-role { color: #b99880; text-transform: uppercase; letter-spacing: .12em; font: 800 .66rem Arial, sans-serif; }
.tribunal-note { max-width: 820px; margin: 1.5rem auto 0; color: #9f806c; text-align: center; line-height: 1.75; }
.tribunal-action { margin-top: 2rem; text-align: center; }
.tribunal-button {
  display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.35rem;
  color: #ffe0c3; border: 1px solid #d9431e; border-radius: 5px;
  background: linear-gradient(#5d0d04, #230301); box-shadow: 0 0 20px rgba(255, 48, 8, .22), inset 0 0 18px rgba(0,0,0,.56);
  text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font: 800 .75rem Arial, sans-serif;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tribunal-button:hover, .tribunal-button:focus-visible {
  transform: translateY(-2px); border-color: #ff7142;
  box-shadow: 0 0 32px rgba(255, 58, 10, .46), inset 0 0 18px rgba(0,0,0,.56);
}
@media (max-width: 760px) {
  .tribunal-order { grid-template-columns: repeat(2, 1fr); }
  .tribunal-order article:last-child { grid-column: 1 / -1; }
  .welcome-scroll-inner { padding-inline: 1.5rem; }
}

/* Read section V, VI and VIII pages without leaving the descent. */
.page-popup {
  width: min(1100px, calc(100% - 2rem));
  height: 88vh;
  max-height: 88dvh;
  overflow: hidden;
  border: 2px solid #a77d42;
  background: #100301;
  box-shadow: 0 0 80px #000;
}
.page-popup[open] { display: flex; flex-direction: column; }
.page-popup-close { flex: 0 0 auto; margin: .7rem auto; }
.page-popup iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #050100; }
html:has(.page-popup[open]) { overflow: hidden; }
