/* ============================================================
   LOCAL HAUNTINGS — DISCLAIMER LAUNCH PAGE
   Background, closed-scroll art, open-scroll container and text
   are independent layers and may be changed separately.
   ============================================================ */

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background:#070608}
body{
  color:#24170e;
  font-family:Georgia,"Times New Roman",serif;
  overflow:hidden;
}

/* SIMPLE BACKGROUND LAYER — no image required */
.disclaimer-room{
  position:relative;
  width:100%;
  height:calc(100vh - var(--shell-height));
  height:calc(100svh - var(--shell-height));
  min-height:0;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:20px 20px 64px;
  background:
    radial-gradient(circle at 50% 28%,rgba(83,48,100,.16),transparent 32%),
    radial-gradient(circle at 16% 70%,rgba(117,70,27,.11),transparent 25%),
    linear-gradient(180deg,#151017 0%,#0b090d 48%,#050506 100%);
}
.disclaimer-room::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 1px,transparent 1px 86px),
    linear-gradient(90deg,rgba(0,0,0,.64),transparent 22%,transparent 78%,rgba(0,0,0,.64));
}
.disclaimer-room::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  pointer-events:none;
  background:linear-gradient(transparent,rgba(0,0,0,.58));
}

/* CLOSED SCROLL — independent PNG layer */
.closed-scroll-stage{
  position:relative;
  z-index:2;
  width:min(675px,82vw);
  max-height:calc(100% - 6px);
  display:grid;
  place-items:center;
  transform-origin:center;
  transition:opacity .34s ease,transform .5s cubic-bezier(.2,.7,.1,1),filter .35s ease;
}
.closed-scroll-stage.is-opening{
  opacity:0;
  transform:scale(.92,.52);
  filter:blur(2px);
  pointer-events:none;
}
.closed-scroll-art{
  display:block;
  max-width:100%;
  max-height:calc(100vh - var(--shell-height) - 72px);
  object-fit:contain;
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.72));
  user-select:none;
  pointer-events:none;
}
.open-scroll-hotspot{
  position:absolute;
  left:34%;
  right:34%;
  bottom:10.5%;
  height:8.5%;
  min-height:42px;
  border:0;
  border-radius:12px;
  background:transparent;
  cursor:pointer;
  color:transparent;
  outline:none;
}
.open-scroll-hotspot:hover,
.open-scroll-hotspot:focus-visible{
  box-shadow:0 0 20px 6px rgba(205,148,72,.42);
}
.open-scroll-hotspot:focus-visible{outline:2px solid #e6c58d;outline-offset:4px}

/* OPEN SCROLL — HTML/CSS layer, NOT baked into artwork */
.open-scroll-stage{
  position:absolute;
  z-index:3;
  inset:18px 20px 66px;
  display:grid;
  place-items:center;
  opacity:0;
  visibility:hidden;
  transform:scaleY(.16);
  transform-origin:center;
  transition:
    opacity .28s ease .16s,
    transform .72s cubic-bezier(.16,.8,.2,1),
    visibility 0s linear .18s;
}
.open-scroll-stage.is-open{
  opacity:1;
  visibility:visible;
  transform:scaleY(1);
  transition:
    opacity .30s ease .14s,
    transform .72s cubic-bezier(.16,.8,.2,1),
    visibility 0s;
}
.open-scroll{
  position:relative;
  width:min(760px,90vw);
  height:min(780px,calc(100vh - var(--shell-height) - 100px));
  min-height:430px;
  padding:55px 52px 52px;
  border-left:1px solid rgba(86,53,23,.48);
  border-right:1px solid rgba(86,53,23,.48);
  background:
    radial-gradient(circle at 27% 15%,rgba(112,70,25,.12),transparent 18%),
    radial-gradient(circle at 82% 63%,rgba(104,61,20,.09),transparent 21%),
    repeating-linear-gradient(0deg,rgba(94,54,21,.025) 0 1px,transparent 1px 5px),
    linear-gradient(90deg,#a77a43 0,#d2a96d 3%,#e2c18e 8%,#e7c999 48%,#dec08d 92%,#c39861 97%,#8f642f 100%);
  box-shadow:
    0 25px 60px rgba(0,0,0,.72),
    inset 0 0 45px rgba(83,48,16,.27),
    inset 20px 0 24px rgba(82,44,14,.10),
    inset -20px 0 24px rgba(82,44,14,.10);
  clip-path:polygon(
    1.5% 0,98.5% 0,99.2% 7%,98.4% 14%,99.1% 21%,98.4% 29%,99% 37%,98.3% 45%,
    99.1% 53%,98.4% 61%,99% 69%,98.3% 77%,99% 85%,98.5% 93%,99% 100%,
    1% 100%,1.6% 92%,.9% 84%,1.7% 76%,1% 68%,1.6% 60%,.9% 52%,1.7% 44%,
    1% 36%,1.6% 28%,.9% 20%,1.7% 12%,1% 5%
  );
}
.open-scroll::before,
.open-scroll::after{
  content:"";
  position:absolute;
  left:-32px;
  right:-32px;
  height:48px;
  z-index:4;
  border-radius:52% 48% 44% 56%;
  background:
    linear-gradient(180deg,#5c381c 0 6%,#bc844b 14%,#d7a460 44%,#8c582d 78%,#3e2414 100%);
  border:1px solid #3c2415;
  box-shadow:
    0 8px 13px rgba(0,0,0,.5),
    inset 0 2px 4px rgba(255,226,172,.28),
    inset 0 -5px 7px rgba(55,29,12,.45);
}
.open-scroll::before{top:-24px}
.open-scroll::after{bottom:-24px;transform:scaleY(-1)}

.scroll-reader{
  position:relative;
  z-index:5;
  height:100%;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:4px 18px 24px 8px;
  scrollbar-width:thin;
  scrollbar-color:#6d4423 rgba(82,50,23,.15);
}
.scroll-reader::-webkit-scrollbar{width:11px}
.scroll-reader::-webkit-scrollbar-track{background:rgba(82,50,23,.13);border-radius:12px}
.scroll-reader::-webkit-scrollbar-thumb{background:#79502b;border:2px solid #c99a62;border-radius:12px}

.disclaimer-title{
  margin:0 auto 12px;
  max-width:620px;
  text-align:center;
  color:#28180e;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.35rem,2.6vw,2.05rem);
  line-height:1.05;
  letter-spacing:.025em;
}
.disclaimer-ornament{
  margin:0 auto 24px;
  width:min(390px,82%);
  height:15px;
  position:relative;
}
.disclaimer-ornament::before{
  content:"";
  position:absolute;left:0;right:0;top:7px;height:1px;background:rgba(75,41,17,.58)
}
.disclaimer-ornament::after{
  content:"◆";
  position:absolute;left:50%;top:-2px;transform:translateX(-50%);
  padding:0 10px;background:#e3c493;color:#5b371d;font-size:12px
}
.disclaimer-intro{
  text-align:center;
  margin:0 auto 25px;
  max-width:610px;
  font-size:1rem;
  font-style:italic;
  line-height:1.45;
}
.disclaimer-section{margin:0 0 22px}
.disclaimer-section h2{
  margin:0 0 6px;
  color:#5d2a2a;
  font-size:.93rem;
  letter-spacing:.045em;
}
.disclaimer-section p{
  margin:0 0 9px;
  font-size:.88rem;
  line-height:1.44;
  color:#24170e;
}
.disclaimer-ack{
  margin:24px 0 12px;
  padding-top:17px;
  border-top:1px solid rgba(79,46,22,.35);
  font-weight:700;
  font-size:.9rem;
  line-height:1.45;
  text-align:center;
}
.disclaimer-future{
  margin:12px auto 18px;
  color:#472053;
  font-weight:700;
  font-size:1.02rem;
  line-height:1.3;
  text-align:center;
  max-width:600px;
}
.disclaimer-actions{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  padding:5px 0 10px;
}
.disclaimer-actions button,
.disclaimer-actions a{
  min-width:210px;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #5b351d;
  border-radius:5px;
  background:
    linear-gradient(180deg,rgba(60,26,68,.97),rgba(30,13,35,.98));
  color:#ecd198;
  text-decoration:none;
  font:700 .85rem/1.15 Georgia,serif;
  letter-spacing:.06em;
  cursor:pointer;
  box-shadow:0 5px 13px rgba(0,0,0,.35),inset 0 0 0 2px rgba(206,166,96,.12);
}
.disclaimer-actions .return{
  background:linear-gradient(180deg,#30271f,#17120f);
}
.disclaimer-actions button:hover,
.disclaimer-actions a:hover,
.disclaimer-actions button:focus-visible,
.disclaimer-actions a:focus-visible{
  border-color:#c49b58;
  color:#fff0c8;
  box-shadow:0 0 16px rgba(115,53,135,.34),0 5px 13px rgba(0,0,0,.35)
}
.disclaimer-note{
  text-align:center;
  margin:6px 0 0;
  color:#5c4329;
  font-size:.73rem;
  font-style:italic;
}

/* avoid the permanent Archives button from the selection/map chrome on gate */
.disclaimer-room ~ .gs-local-back{display:none!important}

@media(max-width:720px){
  .disclaimer-room{padding:12px 10px 52px}
  .closed-scroll-stage{width:min(675px,96vw)}
  .open-scroll-stage{inset:8px 5px 52px}
  .open-scroll{
    width:96vw;
    height:calc(100vh - var(--shell-height) - 82px);
    padding:44px 24px 38px;
  }
  .open-scroll::before,.open-scroll::after{left:-8px;right:-8px}
  .scroll-reader{padding-right:10px}
  .disclaimer-section p{font-size:.83rem}
}
@media(prefers-reduced-motion:reduce){
  .closed-scroll-stage,.open-scroll-stage{transition:none!important}
}
