/* SpookyVideoStore.com. Built in 1999. Never updated. Mostly. */
:root {
  --dark: #0E0F12; --fluor: #E8E4C9; --label: #F2EAD3; --marker: #1A1A1A;
  --red: #B3262D; --rain: #2B3A55; --link: #8fb4ff; --visited: #c79cff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--dark);
  background-image:
    repeating-linear-gradient(45deg, rgba(43,58,85,.25) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(43,58,85,.18) 0 2px, transparent 2px 14px);
  color: var(--fluor);
  font-family: "Times New Roman", Times, serif;
  font-size: 17px; line-height: 1.45;
}
a { color: var(--link); } a:visited { color: var(--visited); }
.wrap { max-width: 780px; margin: 0 auto; padding: 10px; }
.frame { border: 2px solid #2a2a30; background: #15171c; padding: 14px; box-shadow: 0 0 0 1px #000, 0 0 40px rgba(0,0,0,.6); }
@media (max-width: 600px) { .wrap { padding: 0; } .frame { border-width: 0; padding: 10px; } }
h1.logo {
  font-family: Impact, "Arial Black", sans-serif; letter-spacing: 2px;
  font-size: clamp(30px, 8vw, 56px); margin: 6px 0 2px; text-align: center;
  color: var(--red); text-shadow: 3px 3px 0 #000, 0 0 12px rgba(179,38,45,.6);
}
h1.logo a { color: inherit; text-decoration: none; }
h2 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; letter-spacing: 1px; }
.tagline { text-align: center; font-style: italic; margin: 0 0 8px; }
.ticker { background: #000; color: #e9d36b; font-family: Verdana, "Trebuchet MS", Arial, sans-serif;
  border: 1px solid #444; overflow: hidden; white-space: nowrap; padding: 3px 0; }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 30s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
nav { text-align: center; margin: 12px 0; font-family: Verdana, sans-serif; font-size: 14px; line-height: 2; }
nav a { margin: 0 4px; white-space: nowrap; }
hr { border: 0; border-top: 2px groove #555; margin: 16px 0; }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.uc { display: inline-block; padding: 4px 10px; color: #000; font: bold 13px Verdana, sans-serif;
  background: repeating-linear-gradient(45deg, #f2c200 0 10px, #111 10px 20px); }
.uc b { background: #f2c200; padding: 0 4px; }
.counter { font-family: "Courier New", monospace; background: #000; color: #3f3;
  border: 2px inset #555; padding: 2px 6px; letter-spacing: 3px; }
.small { font-size: 13px; font-family: Verdana, sans-serif; }
.center { text-align: center; }
.hidden { display: none !important; }
footer { margin-top: 18px; text-align: center; font: 12px Verdana, sans-serif; color: #9a9888; }
/* buttons are tape labels: cream sticker, black edge, a hard shadow like a cassette on a shelf */
.btn { font: bold 14px Verdana, Arial, sans-serif; padding: 7px 12px; margin: 3px; cursor: pointer;
  background: var(--label); color: var(--marker); border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  text-decoration: none; display: inline-block; }
.btn:hover, .btn:focus-visible { background: #fff6dc; outline: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn[disabled] { color: #777; cursor: default; }
.note { font-family: "Comic Sans MS", "Marker Felt", cursive; color: #c9b3ff; }
.night-only { display: none; }
body.night .night-only { display: revert; }
body.night .day-only { display: none; }
body.night { background-color: #050506; }
body.night .frame { background: #0b0c0f; border-color: #3a3a3a; }
body.night h1.logo { color: #6a1418; text-shadow: 0 0 18px rgba(179,38,45,.35); }

/* ---------- THE COUNTER ---------- */
.stage { position: relative; height: min(68vh, 520px); min-height: 330px; overflow: hidden;
  background: linear-gradient(#1b1f2a, #0d0f14 70%); border: 2px inset #333; }
.stage .shelfwall { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.0) 0 22px, rgba(0,0,0,.35) 22px 24px),
    repeating-linear-gradient(180deg, transparent 0 70px, #2a1d14 70px 78px);
  opacity: .55; }
.stage .neon { position: absolute; top: 12px; right: 14px; font: bold 22px "Courier New", monospace; color: #ff4d6d;
  text-shadow: 0 0 8px #ff4d6d, 0 0 18px #b3262d; letter-spacing: 3px; }
.stage .neon .dead { color: #3a1a20; text-shadow: none; }
#mel { position: absolute; left: 50%; bottom: 18%; height: 92%; transform: translateX(-50%);
  transition: opacity 1.4s ease, filter 1.4s ease; cursor: pointer; user-select: none; -webkit-user-drag: none; }
#mel.blended { opacity: .04; filter: hue-rotate(180deg) saturate(.2) brightness(.6); }
.countertop { position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(#5a3b26, #3a2416 18%, #24160d); border-top: 4px solid #7a5638; }
.countertop .till { position: absolute; right: 8%; bottom: 40%; width: 70px; height: 42px; background: #222;
  border: 2px solid #555; font: 12px "Courier New", monospace; color: #3f3; text-align: center; line-height: 40px; }
.bubble { position: absolute; left: 4%; top: 6%; max-width: 46%; background: var(--label); color: var(--marker);
  font: 15px Verdana, "Trebuchet MS", Arial, sans-serif; padding: 8px 10px; border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  transition: opacity .3s; }
.bubble:empty { opacity: 0; }
.bubble { z-index: 3; }
@media (max-width: 640px) {
  .stage { height: 72vw; min-height: 0; }
  #mel { height: 96%; bottom: 10%; }
  .countertop { height: 16%; }
  .countertop .till { display: none; }
  .stage .neon { font-size: 14px; top: 6px; right: 8px; }
  .bubble { font-size: 12px; max-width: 58%; padding: 5px 7px; top: 4%; left: 3%; }
}
.controls { margin-top: 8px; }
.controls fieldset { border: 2px groove #555; margin: 6px 0; padding: 4px 6px; }
.controls legend { font: bold 12px Verdana, sans-serif; color: #e9d36b; padding: 0 4px; }
.controls .btn { font-size: 12px; padding: 4px 8px; }

/* ---------- BARGAIN BIN ---------- */
.bin { background: #1d1a12; border: 3px dashed #8a6d2b; padding: 12px; text-align: center; }
.bin .fortune { background: var(--label); color: var(--marker); font: 16px Verdana, "Trebuchet MS", Arial, sans-serif;
  padding: 12px; margin: 10px auto 0; max-width: 460px; border: 2px solid #000; box-shadow: 4px 4px 0 #000; text-align: left; }
.bin .fortune b { display: block; font-family: "Comic Sans MS", cursive; margin-bottom: 4px; }

/* ---------- NOTICE (community unlocks) ---------- */
.notice { background: #f5e663; color: #222; border: 1px solid #000; padding: 8px 10px; transform: rotate(-.6deg);
  box-shadow: 3px 3px 0 #000; font: 15px "Comic Sans MS", cursive; }
.notice h3 { margin: 0 0 4px; font: bold 15px Verdana, sans-serif; }
.notice .done { text-decoration: line-through; opacity: .6; }

/* ---------- CATALOGUE ---------- */
.tapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tape { background: var(--label); color: var(--marker); border: 2px solid #000;
  box-shadow: 4px 4px 0 #000; display: flex; flex-direction: column; }
.spine { background: #111; color: var(--label); font: bold 13px "Courier New", monospace;
  padding: 4px 8px; display: flex; justify-content: space-between; }
.tape h3 { font-family: "Comic Sans MS", "Marker Felt", cursive; margin: 8px 8px 4px; font-size: 19px; }
.tape p { margin: 0 8px 8px; font-size: 14px; }
.status { margin-top: auto; padding: 4px 8px; font: bold 12px Verdana, sans-serif; border-top: 1px dashed #000; }
.status.rented { color: #555; } .status.available { color: #0a7a2a; } .status.overdue { color: var(--red); }
.status.yours { color: #1b3fa0; }
.tape .btn { margin: 0 8px 8px; align-self: flex-start; }
body.night .tape { filter: saturate(.6) brightness(.85); }

/* ---------- MONITOR ---------- */
.monitor { background: #111; border: 10px solid #2b2b2b; border-radius: 14px; padding: 10px;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000; }
#cctv { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; display: block; background: #000; }
.camrow { text-align: center; margin-top: 8px; }

/* ---------- RETURNS ---------- */
.slot { background: #000; border: 3px inset #444; padding: 16px; text-align: center; }
.slot input { font: 20px Verdana, "Trebuchet MS", Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase;
  width: min(100%, 420px); padding: 6px; background: #111; color: #3f3; border: 2px inset #555; }
#result { margin-top: 16px; min-height: 1.5em; }
.sealed { background: var(--label); color: var(--marker); padding: 14px; border: 2px solid #000; text-align: left; }
.sealed h2 { margin-top: 0; }
.sealed .note { color: #4a2a8a; }
.mine { list-style: none; padding: 0; }
.mine li { padding: 6px 0; border-bottom: 1px dashed #444; }

/* ---------- THE VCR ---------- */
.tv { background: #2a2622; border-radius: 18px; padding: 18px 18px 10px; box-shadow: inset 0 0 0 3px #3b352f, 6px 6px 0 #000; max-width: 640px; margin: 0 auto; }
.tv-screen { --roll: 0; position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 22px / 16px; overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,.9); }
.tv-screen video { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: translateY(calc(var(--roll) * 6%)); filter: blur(calc(var(--roll) * 1.5px)); }
.tv-noise { position: absolute; inset: 0; pointer-events: none; opacity: .1; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px);
  animation: tvnoise .18s steps(3) infinite; }
@keyframes tvnoise { 0% { transform: translate(0,0); } 50% { transform: translate(-3px, 2px); } 100% { transform: translate(2px,-1px); } }
.tv-lines { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6)); }
.tv-screen.rewinding video { filter: blur(1px) brightness(1.2); }
.tv-screen.rewinding .tv-noise { opacity: .7; }
.tv-msg { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: #4f8cff; font: bold 22px Verdana, "Trebuchet MS", Arial, sans-serif;
  text-shadow: 2px 2px 0 #000; padding: 0 12px; }
.tv-brand { text-align: center; font: bold 12px Verdana, sans-serif; color: #b9ad98; letter-spacing: 3px; margin-top: 8px; }
.tv-brand span { color: #b3262d; }
.vcr { max-width: 640px; margin: 14px auto 0; background: linear-gradient(#3a3a3a, #1f1f1f); border: 2px solid #000; border-radius: 6px; padding: 10px; box-shadow: 4px 4px 0 #000; }
.vcr-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slot-door { flex: 1; min-width: 180px; background: #111; border: 2px inset #555; padding: 6px 10px; font: bold 13px "Comic Sans MS", cursive; color: var(--label); }
.vfd { background: #071a10; color: #57ff9a; font: bold 16px "Courier New", monospace; padding: 6px 10px; border: 2px inset #333; text-shadow: 0 0 6px #2dff7a; min-width: 190px; }
.deck { text-align: center; margin-top: 8px; }
.deck .btn { min-width: 44px; }
.track { display: block; text-align: center; color: #bbb; margin-top: 6px; }
.track input { vertical-align: middle; width: 160px; }
.bin .btn.play { margin-top: 8px; }

/* ---------- CARD ---------- */
#card { width: 100%; max-width: 520px; display: block; margin: 0 auto; border: 2px solid #000; box-shadow: 5px 5px 0 #000; }

/* ---------- STAFF / HOURS ---------- */
.staff { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.staff img { border: 6px solid #eee; border-bottom-width: 26px; box-shadow: 4px 4px 0 #000; transform: rotate(2deg); max-width: 45%; }
.staff dl { margin: 0; flex: 1; min-width: 200px; }
.staff dt { font-weight: bold; font-family: Verdana, sans-serif; font-size: 14px; margin-top: 8px; }
.staff dd { margin: 0 0 0 12px; }
table.hours { border-collapse: collapse; margin: 0 auto; }
table.hours td { border: 1px solid #555; padding: 4px 12px; }

@media print {
  body * { visibility: hidden; }
  body::after { visibility: visible; content: "PLEASE RETURN THIS PAGE BY 4AM."; display: block; font: 28px Verdana, "Trebuchet MS", Arial, sans-serif; color: #000; padding: 40px; }
}

/* ---------- TALKING TO HER (homepage) ---------- */
.talk { position: relative; margin: 10px auto 0; max-width: 760px; background: #0b0b10; border: 3px double var(--label);
  box-shadow: 4px 4px 0 #000; padding: 22px 16px 12px; min-height: 150px; }
.talk-name { position: absolute; top: -12px; left: 14px; background: var(--red); color: var(--label);
  font: bold 12px Verdana, "Trebuchet MS", Arial, sans-serif; letter-spacing: 2px; padding: 2px 8px; border: 2px solid #000; }
.talk-text { font: 17px/1.45 Verdana, "Trebuchet MS", Arial, sans-serif; color: var(--fluor); margin: 0 0 10px; min-height: 2.9em; cursor: default; }
.talk-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.talk-choice { font: bold 14px Verdana, "Trebuchet MS", Arial, sans-serif; text-align: left; background: transparent; color: #e9d36b;
  border: 0; padding: 4px 6px; margin: 0; text-decoration: none; }
.talk-choice:hover, .talk-choice:focus { color: #fff; background: #2a1a3a; outline: none; }
.talk-next { font: bold 14px Verdana, "Trebuchet MS", Arial, sans-serif; background: transparent; color: #e9d36b; border: 0; margin: 0;
  animation: talknext 1s steps(2) infinite; }
@keyframes talknext { 50% { opacity: .2; } }
@media (max-width: 600px) { .talk-text { font-size: 15px; } .talk-choice { font-size: 14px; padding: 7px 6px; } }
.case-code input { font: bold 14px Verdana, "Trebuchet MS", Arial, sans-serif; width: 100%; padding: 5px; margin: 4px 0; text-transform: uppercase; }
.tape .sealed { font-size: 13px; padding: 8px; margin-top: 6px; }

/* ---------- NEW RELEASES (YouTube, click to play) ---------- */
.shelf-head { font: bold 15px Verdana, "Trebuchet MS", Arial, sans-serif; color: #e9d36b; letter-spacing: 2px; border-bottom: 2px dashed #444; padding-bottom: 4px; margin-top: 22px; }
.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 10px 0; }
.upload { display: flex; flex-direction: column; text-align: left; background: var(--label); color: var(--marker); border: 2px solid #000;
  box-shadow: 3px 3px 0 #000; padding: 6px; cursor: pointer; font: 13px Verdana, sans-serif; }
.upload:hover, .upload:focus { outline: 2px solid #e9d36b; }
.upload-pic { position: relative; aspect-ratio: 16 / 9; background: #111 repeating-linear-gradient(0deg, #1b1b1b 0 2px, #111 2px 4px); overflow: hidden; }
.upload.tall .upload-pic { aspect-ratio: 9 / 16; }
.upload-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff;
  text-shadow: 0 0 6px #000, 2px 2px 0 #000; }
.upload-title { font-weight: bold; margin-top: 6px; }
.upload-blurb { font-size: 12px; color: #444; margin-top: 2px; }
.yt-tv { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.86); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; }
.yt-tv.hidden { display: none; }
.yt-screen { width: min(92vw, 960px); aspect-ratio: 16 / 9; background: #000; border: 10px solid #222; border-radius: 14px; box-shadow: 0 0 0 3px #000, 0 0 40px #000; }
.yt-screen.tall { width: auto; height: min(80vh, 760px); aspect-ratio: 9 / 16; }
.yt-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-close { margin-top: 10px; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 10px 0; }
.g-item { background: var(--label); color: var(--marker); border: 2px solid #000; box-shadow: 3px 3px 0 #000; padding: 6px; cursor: pointer;
  text-align: left; font: 12px Verdana, sans-serif; display: flex; flex-direction: column; }
.g-item:hover, .g-item:focus { outline: 2px solid #e9d36b; }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #111; }
.g-item .g-file { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #f7f3e3;
  font: bold 13px Verdana, "Trebuchet MS", Arial, sans-serif; border: 1px dashed #999; padding: 8px; text-align: center; }
.g-item b { margin-top: 6px; }
.g-view { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 16px; overflow: auto; }
.g-view.hidden { display: none; }
.g-view img { max-width: 94vw; max-height: 80vh; border: 3px solid #000; box-shadow: 0 0 30px #000; }
.g-view pre { max-width: 680px; width: 94vw; max-height: 78vh; overflow: auto; background: #f7f3e3; color: #1a1a1a; white-space: pre-wrap;
  font: 15px/1.5 Verdana, "Trebuchet MS", Arial, sans-serif; padding: 18px; border: 2px solid #000; margin: 0; }
.g-view .g-cap { color: var(--fluor); font: 13px Verdana, sans-serif; margin-top: 8px; max-width: 680px; text-align: center; }
.talk-choice, .talk-next { box-shadow: none; }
.talk-choice:active, .talk-next:active { transform: none; }
