 /* background image */
 body {
  cursor: url("https://files.catbox.moe/la50e1.png") 6 24, auto;
  min-height: 100vh;
  min-height: 100svh; /*mobile?idk*/
  margin: 0;
  padding: 0;
  /* background image */
  background: url("https://files.catbox.moe/cdlk04.jpg") no-repeat center;
  background-size: cover; /* cover keeps proportions */
  background-attachment: fixed; /* makes it stay when scrolling */
}

/* iOS/mobile */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}
/* Arrow buttons */
.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  user-select: none;
}

.arrow img {
  width: 120px;      /* adjust size */
  display:block;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

/* hover effect */
.arrow img:hover {
  opacity: 1;
  transform: scale(1.05) rotate(-2deg);
}


/* left button placement */
.arrow.left {
  left: 20px; 
}

/* right button placement */
.arrow.right {
  right: 20px;
}
/* Make the page always at least one viewport tall */
html { min-height: 100%; }


/* Nurse position + gentle float */
.nurse{
  position: fixed;          /* stays put as you scroll */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(350px, 154vw, 490px);
  height: auto;
  z-index: 50;
  animation: nurse-float 4.5s ease-in-out infinite;
  cursor: pointer;          /* she’s clickable */
}

@keyframes nurse-float{
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* Paper dialogue overlay */
.dialog{
  position: fixed; inset: 0;
  display: none;                 /* hidden by default */
  place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.0), rgba(0,0,0,.55));
  z-index: 900;
}
.dialog[aria-hidden="false"]{ display: grid; }

/* Paper card */
.dialog-paper{
  position: relative;
  width: min(680px, 92vw);
  padding: 18px 20px 16px;
  color: #2b2b2b;
  background: #f4efe6;
  border: 2px solid #c9b89f;
  box-shadow: 8px 10px 0 rgba(0,0,0,.45);
  transform: rotate(-.6deg);
  background-image:
    radial-gradient(transparent 60%, rgba(0,0,0,.05) 61%),
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-blend-mode: multiply;
  clip-path: polygon(
    4% 3%, 96% 2%, 98% 18%, 95% 36%, 99% 51%,
    96% 67%, 98% 84%, 95% 97%, 6% 98%, 3% 82%,
    5% 66%, 2% 49%, 4% 31%, 2% 15%
  );
}

/* Tape corners */
.dialog-paper::before, .dialog-paper::after{
  content:"";
  position:absolute; width:70px; height:14px;
  background: linear-gradient(#f9f3c8,#e8dfa2);
  opacity:.85; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}
.dialog-paper::before{ top:-12px; left:14px; transform: rotate(-4deg); }
.dialog-paper::after { bottom:-12px; right:12px; transform: rotate(6deg); }

/* Close button */
.dialog-close{
  position:absolute; top:6px; right:8px;
  border:0; background:transparent; font-size:18px; line-height:1;
  cursor:pointer; color:#444;
}

/* Line text */
.dialog-line{
  font-family: "IM Fell English", "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  margin: 6px 4px 12px;
}

/* Choices (paper scraps) */
.dialog-choices{
  display: grid;
  gap: 10px;
}

.choice{
  display:inline-block;
  text-align:left;
  padding: .6rem .9rem;
  background:#fffdf6;
  border:2px solid #cbbca1;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  transform: rotate(-.4deg);
  cursor:pointer;
  font-family: "IM Fell English", serif;
  font-size: clamp(14px, 2vw, 18px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.choice:hover{ transform: translate(-2px,-2px) rotate(-.4deg); box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.choice:active{ transform: translate(1px,1px) rotate(-.4deg); box-shadow: 1px 1px 0 rgba(0,0,0,.2); }

/* small screens: keep the paper comfy */
@media (max-width: 600px){
  .dialog-paper{ padding: 16px; }
  .choice{ padding: .55rem .75rem; }
}
/* Position clipboard wherever on the bulletin */
.clipboard{
  position: absolute;      /* or fixed, depending on your layout */
  right: 70%;
  top: 19%;
  width: 180px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  transform: rotate(-2deg);
  transition: transform .15s ease, filter .15s ease;
  z-index:200;
}
.clipboard:hover{ transform: rotate(-1deg) scale(1.02); }

/* Modal backdrop */
.sign-modal{
  position: fixed; inset: 0;
  display: none;                  /* hidden by default */
  place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.6));
  z-index: 999;
}
.sign-modal[aria-hidden="false"]{ display: grid; }

/* Paper card */
.sign-card{
  position: relative;
  width: min(780px, 94vw);
  padding: 18px 18px 16px;
  color: #2b2b2b;
  background: #f4efe6;
  border: 2px solid #c9b89f;
  box-shadow: 8px 10px 0 rgba(0,0,0,.45);
  transform: rotate(-.6deg);
  background-image:
    radial-gradient(transparent 60%, rgba(0,0,0,.05) 61%),
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-blend-mode: multiply;
  clip-path: polygon(
    4% 3%, 96% 2%, 98% 18%, 95% 36%, 99% 51%,
    96% 67%, 98% 84%, 95% 97%, 6% 98%, 3% 82%,
    5% 66%, 2% 49%, 4% 31%, 2% 15%
  );
}
.sign-card::before,
.sign-card::after{
  content:"";
  position:absolute; width:70px; height:14px;
  background: linear-gradient(#f9f3c8,#e8dfa2);
  opacity:.85; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}
.sign-card::before{ top:-12px; left:14px; transform: rotate(-4deg); }
.sign-card::after { bottom:-12px; right:12px; transform: rotate(6deg); }

.sign-close{
  position:absolute; top:8px; right:30px;
  border:0; background:transparent; z-index: 5; padding: 6px; font-size:18px; line-height:1;
  cursor:pointer; color:#444;
}

.sign-title{
  margin: 6px 4px 2px;
  font-family:'IM Fell English', 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 30px);
}
.sign-sub{
  margin: 0 4px 10px;
  font-family:'Crimson Text', serif;
  color:#4a3e30;
}

/* Signature pad */
.sign-pad-wrap{
  background: #fffdf6;
  border: 2px dashed #cbbca1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  padding: 8px;
}
#signpad{
  display:block;
  width: min(720px, 90vw);
  height: 220px;              /* CSS size; JS will scale pixels for crisp lines */
  background: #fffef9;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  cursor: crosshair;
}

/* Buttons */
.sign-actions{
  display:flex; gap:10px; justify-content:flex-end;
  margin-top: 10px;
}
.paper-action{
  display:inline-block;
  padding:.55rem .9rem;
  background:#fffdf6;
  border:2px solid #cbbca1;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  transform: rotate(-.4deg);
  cursor:pointer;
  font-family: "IM Fell English", serif;
  font-size: 16px;
  color:#2b2b2b;
  text-decoration:none;  /* for the <a> */
  transition: transform .15s ease, box-shadow .15s ease;
}
.paper-action:hover{ transform: translate(-2px,-2px) rotate(-.4deg); box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.paper-action:active{ transform: translate(1px,1px) rotate(-.4deg); box-shadow: 1px 1px 0 rgba(0,0,0,.2); }

/* Small screens */
@media (max-width:600px){
  #signpad{ height: 180px; }
}
/* generic hotspot helper */
.hotspot{
  position: fixed;      /* stays put on the background */
  display: block;
  z-index: 120;         /* above background, below modals */
  cursor: pointer;
}

/* the computer monitor area — adjust these */
.hotspot.monitor{
  /* position relative to viewport (because background is fixed/cover) */
  left: 62%;            /* ← move horizontally */
  top: 30.5%;             /* ← move vertically */
  width: 11.5%;           /* ← set the width of the clickable area */
  height: 13%;          /* ← set the height of the clickable area */
  /* optional: subtle glow when you hover so users notice it */
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
  transition: box-shadow .15s ease;
}
.hotspot.monitor:hover{
  box-shadow: 0 0 18px 4px rgba(255, 248, 200, .35);
}
/* =============== AMBIENT =============== */

/* Flickering overhead light bar */
.fx-lightbar{
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 80vw);
  height: 10px;
  background: linear-gradient(90deg, transparent, #eee, transparent);
  opacity: .85;
  filter: blur(0.6px) drop-shadow(0 2px 6px rgba(0,0,0,.45));
  z-index: 1;
  animation: fx-flicker 6s infinite;
  pointer-events: none;
}
@keyframes fx-flicker{
  0%, 4%   { opacity: .9; }
  5%       { opacity: .45; }
  6%       { opacity: .9; }
  14%      { opacity: .9; }
  15%      { opacity: .2; }
  16%      { opacity: .9; }
  70%      { opacity: .85; }
  72%      { opacity: .55; }
  75%,100% { opacity: .9; }
}

/* Dust motes drifting upward */
.fx-dust{
  position: fixed; inset: 0; pointer-events:none; z-index: 0;
}
.fx-dust span{
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  filter: blur(1px);
  left: calc(var(--x, 50) * 1%);
  top: 100%;
  animation: mote 14s linear infinite;
  animation-delay: var(--d, 0s);
}
.fx-dust span:nth-child(1){ --x:15; --d:-2s; }
.fx-dust span:nth-child(2){ --x:30; --d:-6s; }
.fx-dust span:nth-child(3){ --x:55; --d:-1s; }
.fx-dust span:nth-child(4){ --x:72; --d:-9s; }
.fx-dust span:nth-child(5){ --x:88; --d:-4s; }
@keyframes mote{
  0%   { transform: translateY(0) scale(.7); opacity:.0; }
  8%   { opacity:.5; }
  50%  { opacity:.35; }
  100% { transform: translateY(-120vh) scale(1.2); opacity:.0; }
}

/* =============== POSTER =============== */

.poster{
  position: absolute;
  /* poster” position-lobby */
  left: 10%;
  top: 22%;
  width: 100px;
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  cursor: pointer;
  z-index: 2;
  transition: transform .15s ease;
}
.poster:hover{ transform: rotate(-2deg) scale(1.02); }

/* Modal */
.poster-modal{
  position: fixed; inset: 0; display: none; place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.65));
  z-index: 999;
}
.poster-modal[aria-hidden="false"]{ display: grid; }

/* Paper frame around poster */
.poster-paper{
  position: relative;
  width: min(760px, 94vw);
  padding: 16px;
  background: #f4efe6;
  border: 2px solid #c9b89f;
  box-shadow: 8px 10px 0 rgba(0,0,0,.45);
  transform: rotate(-.6deg);
  background-image:
    radial-gradient(transparent 60%, rgba(0,0,0,.05) 61%),
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-blend-mode: multiply;
  clip-path: polygon(
    4% 3%, 96% 2%, 98% 18%, 95% 36%, 99% 51%,
    96% 67%, 98% 84%, 95% 97%, 6% 98%, 3% 82%,
    5% 66%, 2% 49%, 4% 31%, 2% 15%
  );
}
.poster-paper img{
  display:block; width: 100%; height: auto; border:1px solid rgba(0,0,0,.12);
}
.poster-paper p{
  margin:.6rem .25rem 0;
  font-family:"IM Fell English","Times New Roman",serif;
  color:#2b2b2b; text-align:center;
}
.poster-close{
  position:absolute; top:6px; right:8px;
  border:0; background:transparent; font-size:18px; line-height:1;
  cursor:pointer; color:#444;
}

/* =============== TICKET DISPENSER =============== */

.ticket-dispenser{
  position: absolute;
  left: 34%;
  top: 34%;
  width: 80px;
  height: auto;
  transform: rotate(2deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  cursor: pointer;
  z-index: 300;
  transition: transform .15s ease;
}
.ticket-dispenser:hover{ transform: rotate(1deg) scale(1.03); }

/* Ticket slip popup */
.ticket-slip{
  position: fixed; inset: 0; display: none; place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.12), rgba(0,0,0,.55));
  z-index: 999;
}
.ticket-slip[aria-hidden="false"]{ display: grid; }
.ticket-paper{
  background:#fffdf6; color:#2b2b2b;
  border:2px dashed #cbbca1;
  box-shadow: 8px 10px 0 rgba(0,0,0,.45);
  padding: 16px 22px;
  transform: rotate(-1deg);
  text-align:center;
  font-family:"IM Fell English", serif;
}
.ticket-label{ display:block; font-size:18px; letter-spacing:2px; }
.ticket-number{
  display:block; font-size: clamp(42px, 7vw, 72px);
  margin-top: 6px; font-weight: 700;
}

/* =============== CHAIR HOTSPOT + TOAST =============== */

/* Put a clickable invisible box where the chair is */
.chair-hotspot{
  position: absolute;
  /* adjust to your background chair placement */
  left: 340px;
  top: 540px;
  width: 180px; height: 140px;
  cursor: pointer;
  z-index: 2;
  outline:4px rgba(255,255,255,.25);
  /* outline for debugging: remove when placed well */
  /* outline: 1px dashed rgba(255,255,255,.25); */
}

/* Little toast bubble for quick lines */
.toast{
  position: fixed; bottom: 300px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: rgba(0,0,0,.75); color:#f4efe6;
  border:1px solid rgba(255,255,255,.1);
  padding: 10px 14px; border-radius: 10px;
  font-family: 'Crimson Text', serif;
  font-size: 16px; line-height:1.3;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  opacity: 0; pointer-events:none; z-index: 1000;
  transition: opacity .2s ease, transform .2s ease;
}
.toast[aria-hidden="false"]{
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.poster{
  position: absolute;
  /* poster” position-lobby */
  left: 10%;
  top: 12%;
  width: 100px;
  height: auto;
  transform: rotate(3deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  cursor: pointer;
  z-index: 2;
  transition: transform .15s ease;
}
.poster-paper{
  width: 400px;   
  max-height: auto;        
}