@import url("https://fonts.googleapis.com/css2?family=Creepster&display=swap");
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.font-select-happy {
  --site-font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
}

.font-select-spooky {
  --site-font-family: Georgia, "Times New Roman", Times, serif;
}

.font-select-whacky {
  --site-font-family: "Comic Sans MS", "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.font-select-classic {
  --site-font-family: Garamond, Georgia, "Times New Roman", Times, serif;
}

.font-select-clean {
  --site-font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.monster-site {
  margin: 0;
  padding: 28px;
  background: #070b12;
  color: #e6eadf;
  font-family: var(--site-font-family, Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif);
}

body.monster-site a {
  color: #ffffff;
  transition: color 150ms ease;
}

body.monster-site a:visited {
  color: #b7d7b0;
}

body.monster-site a:hover,
body.monster-site a:focus {
  color: #ff2a36;
}

body.monster-site a:visited:hover,
body.monster-site a:visited:focus {
  color: #f05a61;
}

body.monster-site a:active {
  color: #c01824;
}

.monster-site .page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  background: #0d1519;
  border: 1px solid #6f0710;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(192, 24, 36, 0.22);
}

.monster-site .nav-frame {
  display: block;
  width: 150px;
  height: 380px;
  border: 0;
}

.modern-page .site-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: flex-start;
}

.modern-page .sidebar {
  width: 150px;
  flex: 0 0 150px;
}

.modern-page .main-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.modern-page .page-title {
  margin: 0 0 12px;
  padding-bottom: 5px;
  color: #c01824;
  font-size: 30px;
  line-height: 1.1;
  border-bottom: 1px solid rgba(192, 24, 36, 0.7);
  text-shadow: 0 0 8px rgba(192, 24, 36, 0.55);
}

.page-intro {
  margin: 0 0 20px;
  color: #cbd7c3;
  font-size: 16px;
  line-height: 1.45;
}

.hero-image,
.artifact-card {
  background: #05080a;
  border: 1px solid #6f0710;
  box-shadow:
    0 0 0 3px #111b22,
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(192, 24, 36, 0.18);
}

.hero-image {
  padding: 10px;
}

.hero-image {
  margin: 0 0 22px;
}

.artifact-card {
  padding: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.story .artifact-card {
  margin-top: 10px;
}

.hero-image img,
.artifact-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.more-link {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

.page-note {
  margin: 24px 0 0;
  color: #aabda2;
  font-size: 11px;
  line-height: 1.35;
}

.site-footer {
  display: block;
  margin: 28px auto 0;
  clear: both;
  color: #757e7e;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.caption {
  margin: 8px 0 0;
  padding: 5px 7px;
  background: #111b22;
  color: #ece7d8;
  border-left: 3px solid #c01824;
  font-size: 12px;
}

.intro-grid,
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-single {
  grid-template-columns: 1fr;
}

.intro-grid {
  margin-bottom: 24px;
}

.story > div {
  padding: 6px;
  background: rgba(5, 8, 10, 0.28);
  border-left: 2px solid rgba(192, 24, 36, 0.55);
}

.intro-grid h2,
.story h2,
.artifact-section h2 {
  margin: 0 0 4px;
  color: #c01824;
  font-size: 18px;
}

.artifact-section > h2 + p {
  margin: 0 0 12px;
}

.intro-grid p,
.story p,
.source-list {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.source-list {
  padding-left: 18px;
  font-size: 12px;
}

.article-list {
  margin: 0 0 18px 18px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
}

.article-list li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 28px;
}

.article-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("images/skull_bullet.svg") no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 0 3px rgba(192, 24, 36, 0.72));
}

.artifact-section {
  padding-top: 22px;
  border-top: 1px solid rgba(192, 24, 36, 0.58);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.artifact-section + .artifact-section {
  margin-top: 22px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.artifact-card img {
  max-width: 100%;
  height: 122px;
  object-fit: contain;
}

.artifact-grid-crop .artifact-card img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.artifact-grid-crop-med .artifact-card img {
  width: 100%;
  object-fit: contain;
  object-position: center center;
}

.artifact-grid-contain .artifact-card img {
  width: auto;
  height: auto;
  max-width: 125px;
  object-fit: contain;
}

.artifact-card a {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.artifact-card p {
  margin: 5px 0 0;
  color: #cbd7c3;
  font-size: 11px;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.roster-card {
  padding: 12px;
  background: #0f191e;
  border: 1px solid #6f0710;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
}

.roster-card img {
  display: block;
  width: 100%;
  aspect-ratio: 159 / 198;
  height: auto;
  margin: 0 0 10px;
  object-fit: contain;
  border: 1px solid #6f0710;
}

.roster-card h3 {
  margin: 0 0 5px;
  color: #c01824;
  font-size: 16px;
}

.roster-card .year {
  display: inline-block;
  margin-bottom: 7px;
  color: #c01824;
  font-size: 12px;
  font-weight: bold;
}

.roster-card p {
  margin: 0;
  color: #cbd7c3;
  font-size: 12px;
  line-height: 1.35;
}

.timeline-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  margin-bottom: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(192, 24, 36, 0.35);
}

.timeline-list .year {
  color: #c01824;
  font-weight: bold;
}

.timeline-list p {
  margin: 2px 0 0;
  color: #cbd7c3;
  font-size: 13px;
  line-height: 1.35;
}

body.nav-page {
  margin: 0;
  padding: 0;
  background: #111b22;
  color: #e6eadf;
  font-family: var(--site-font-family, Verdana, Helvetica, Arial, sans-serif);
}

.nav-page a {
  color: #ffffff;
  transition: color 150ms ease;
}

.nav-page a:visited {
  color: #b7d7b0;
}

.nav-page a:hover,
.nav-page a:focus {
  color: #ff2a36;
}

.nav-page a:visited:hover,
.nav-page a:visited:focus {
  color: #f05a61;
}

.nav-wrap {
  width: 150px;
  padding: 6px 0 0;
}

.brand {
  display: block;
  width: 124px;
  margin: 0 0 18px 8px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 74px;
  height: auto;
  margin: -2px 0 4px 12px;
  border: 0;
  clip-path: inset(4% 7%);
}

.brand-title {
  display: inline-block;
  margin-top: 0;
  padding: 3px 9px 5px;
  background: #6f0710;
  color: #ffffff;
  font-family: var(--site-font-family, Arial, Helvetica, sans-serif);
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  line-height: 0.9;
}

.home-brand-intro .brand img {
  transform-origin: 50% 82%;
  animation: monsterGraveRise 1200ms ease-out both;
}

.home-brand-intro .brand-title {
  animation: monsterTitleFlash 980ms steps(1, end) 260ms both, monsterTitleGlow 900ms ease-out 980ms both;
}

@keyframes monsterBadgeDrop {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(-6deg) scale(.92);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) rotate(3deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes monsterGraveRise {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(.88);
    filter: brightness(.35) blur(1px);
  }
  42% {
    opacity: .34;
    transform: translateY(18px) scale(.94);
    filter: brightness(.55) blur(.5px);
  }
  78% {
    opacity: .9;
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.18) blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes monsterTitlePop {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(.94);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes monsterTitleFlash {
  0% {
    opacity: 0;
  }
  14% {
    opacity: .18;
  }
  24% {
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  46% {
    opacity: .28;
  }
  58% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes monsterTitleGlow {
  0% {
    box-shadow: 0 0 0 rgba(192, 24, 36, 0);
  }
  45% {
    box-shadow: 0 0 14px rgba(192, 24, 36, .82), 0 0 0 2px rgba(236, 231, 216, .22);
  }
  100% {
    box-shadow: 0 0 0 rgba(192, 24, 36, 0);
  }
}

.nav {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--site-font-family, Verdana, Helvetica, Arial, sans-serif);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.35;
}

.nav-prep .nav {
  visibility: hidden;
}

.nav li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 21px;
}

.nav-timesync {
  position: relative;
  background: none;
}

.nav li::before,
.nav-timesync::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  background: url("images/skull_bullet.svg") no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 0 3px rgba(192, 24, 36, 0.72));
}

.nav .sub {
  margin-top: 4px;
  padding-left: 12px;
  color: #c01824;
  font-size: 10px;
  font-weight: normal;
}

.nav .sub a {
  font-weight: normal;
}

.feature-note {
  display: block;
  color: #c01824;
  font-style: italic;
  font-size: 10px;
  font-weight: normal;
}

.current,
.current:visited,
.current a {
  color: #ff2a36;
}

body.animation-index {
  margin: 0;
  background: #070b12;
  color: #e6eadf;
  font-family: var(--site-font-family, Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif);
}

body.animation-index a {
  color: #ffffff;
}

body.animation-index a:visited {
  color: #b7d7b0;
}

body.animation-index a:active {
  color: #c01824;
}

body.popup-page {
  margin: 8px;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

body.popup-page a,
body.popup-page a:visited {
  color: #c0c0c0;
}

body.popup-page a:active {
  color: #ff0000;
}

body.popup-page img {
  max-width: 100%;
  height: auto;
}

body.ascii-popup {
  margin: 8px;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, Monaco, monospace;
  font-size: 10px;
  line-height: 1;
}


/* Start: Mobile / narrow screen styles */

/* Hide the phone badge until the narrow-screen rules turn it on. */

#mobile-indicator { display: none; }


/* Stack the page and loosen spacing for smaller screens. */
@media (max-width: 760px) {   
  #mobile-indicator {
    display: block;
  }
  
  body.monster-site {
    padding: 12px;
  }

  .monster-site .page-container {
    padding: 18px;
  }

  .modern-page .site-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .modern-page .sidebar {
    width: 100%;
    flex: none;
    margin-bottom: 0;
  }

  .modern-page .nav-frame {
    width: 100%;
    height: 250px;
  }

  /* Let main content and grid sections use the full phone width. */
  .modern-page .main-content {
    width: 100%;
  }

  .intro-grid,
  .story {
    display: block;
  }

  .artifact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artifact-card {
    margin-bottom: 14px;
  }

  /* Keep images and old table layouts from overflowing sideways. */
  .modern-page .main-content > img,
  .modern-page .main-content table {
    max-width: 100%;
    height: auto;
  }

  .modern-page .main-content blockquote {
    margin-left: 0;
    margin-right: 0;
  }

}

/* Mobile nav: only use mobile-only Timesync/nav styling when the frame is wide enough. */
@media (min-width: 300px) {
  .parent-is-narrow .nav-timesync {
    opacity: 0.45;
    filter: grayscale(1);
  }

  .parent-is-narrow .nav-timesync a {
    color: #9a99ad;
    text-decoration: none;
  }

  .parent-is-narrow .nav-timesync::after {
    content: "(not available on mobile)";
    display: block;
    margin-top: 2px;
    color: #6f6e82;
    font-size: 9px;
    font-weight: normal;
    line-height: 1.2;
  }

  .parent-is-narrow .nav-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    padding-top: 4px;
  }

  .parent-is-narrow .brand {
    flex: 0 0 124px;
    margin-bottom: 0;
  }

  .parent-is-narrow .nav {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
  }
}

/* Compact the nav frame for very short browser windows. */
@media (max-height: 180px) {
  .nav-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    padding-top: 4px;
  }

  .brand {
    flex: 0 0 124px;
    margin-bottom: 0;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
  }

}

/* Mobile indicator badge: small fixed lozenge in the corner. */

#mobile-indicator {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9500;      /* above page chrome, below lightbox overlay */
    box-sizing: border-box;
    max-width: 34px;
    overflow: hidden;
    padding: 4px 10px 4px 8px; /* added 6/15 top/right/bottom/left */
    font-size: 13px;
    line-height: 1.2;
    font-family: helvetica, arial, sans-serif;
    white-space: nowrap;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    opacity: 0.5;  /* added 6/15 */
    pointer-events: none;     /* inert on touch devices */
    transition: max-width 180ms ease-out, background-color 180ms ease-out, opacity 180ms ease-out;
}


/* desktop/mouse only: rolling over the lozenge reveals the text label */

@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  #mobile-indicator {
    pointer-events: auto;
    cursor: default;
  }

  #mobile-indicator:hover {
    max-width: 190px;
    background: rgba(0, 0, 0, 0.74);
    opacity: .8;
  }

  #mobile-indicator:hover::after {
    content: " Viewing MOBILE Settings";
    font-size: 10px;
    letter-spacing: 0.05em;
  }
}

/* Mini lightbox: a simple in-page image viewer for desktop and mobile. */

.mini-lightbox[hidden] {
  display: none;
}

.mini-lightbox-trigger,
.mini-lightbox-card > img {
  cursor: zoom-in;
}

.mini-lightbox-trigger {
  overflow: hidden;
}

.mini-lightbox-trigger img,
.mini-lightbox-card > img {
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mini-lightbox-trigger:hover img,
.mini-lightbox-trigger:focus img,
.mini-lightbox-card > img:hover,
.mini-lightbox-card > img:focus {
  filter: brightness(1.08) contrast(1.05);
  transform: scale(1.012);
  box-shadow: 0 0 0 2px rgba(193, 0, 24, 0.5), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.mini-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 54px 72px 34px;
  color: #fff4dc;
  background: rgba(0, 0, 0, 0.9);
}

.mini-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  margin: 0;
}

.mini-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border: 2px solid #c10018;
  border-radius: 6px;
  background: #060606;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.68);
  object-fit: contain;
}

.mini-lightbox-caption {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  min-height: 1.4em;
  margin-top: 12px;
  color: #fff4dc;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.mini-lightbox button {
  border: 1px solid #c10018;
  color: #fff4dc;
  background: rgba(35, 0, 6, 0.9);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}

.mini-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}

.mini-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 58px;
  margin-top: -29px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.mini-lightbox-prev {
  left: 16px;
}

.mini-lightbox-next {
  right: 16px;
}

.mini-lightbox button:hover,
.mini-lightbox button:focus-visible {
  background: rgba(80, 0, 14, 0.98);
  outline: 2px solid #ffdbc2;
}

@media (max-width: 760px) {
  .mini-lightbox {
    padding: 48px 12px 28px;
  }

  .mini-lightbox-image {
    max-height: calc(100vh - 138px);
  }

  .mini-lightbox-caption {
    padding: 0 42px;
    font-size: 12px;
  }

  .mini-lightbox-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 22px;
  }

  .mini-lightbox-prev {
    left: 12px;
  }

  .mini-lightbox-next {
    right: 12px;
  }
}

/* Haunted Fiends edition — shared treatment from Connections Reference v2. */
:root{--fiend-bg:#0d0614;--fiend-surface:#170b24;--fiend-surface2:#1f1030;--fiend-ink:#eadff7;--fiend-muted:#c1afd3;--fiend-rule:#3b2459;--fiend-accent:#b388ff;--fiend-red:#ff3b5c;--fiend-glow:0 0 18px rgba(179,136,255,.28)}
body.monster-site{background:radial-gradient(1100px 520px at 50% -8%,#3b1470 0%,transparent 70%),radial-gradient(700px 380px at 100% 100%,#2a0a3a 0%,transparent 70%),var(--fiend-bg);background-attachment:fixed;color:var(--fiend-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
.monster-site .page-container{position:relative;background:rgba(23,11,36,.96);border:1px solid #6c4393;border-radius:16px;box-shadow:0 16px 45px #0009,0 0 32px #8b47c21c}
body.monster-site a,body.monster-site a:visited{color:#c9a8ff}
body.monster-site a:hover,body.monster-site a:focus{color:#ff758d}
.monster-site a:focus-visible,.nav-page a:focus-visible{outline:2px solid #ffa94d;outline-offset:4px}
.modern-page .page-title,.monster-site h1{font:400 clamp(2.3rem,4.5vw,3.6rem)/1.08 "Creepster","Chiller",fantasy;letter-spacing:.035em;color:var(--fiend-accent);text-shadow:0 0 14px #b388ff88,0 0 38px #823cff55,2px 3px 0 #3a0d55;border-bottom:0;position:relative;padding-bottom:18px;margin-bottom:30px;overflow:visible}
.modern-page .page-title::after{content:"";position:absolute;left:0;right:0;bottom:-16px;height:28px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 0H120V8Q112 8 112 14V26a4 4 0 0 1-8 0V14Q104 8 96 8H70Q64 8 64 12V18a3 3 0 0 1-6 0V12Q58 8 50 8H30Q24 8 24 15V34a5 5 0 0 1-10 0V15Q14 8 6 8H0Z' fill='%238b0a1f'/%3E%3C/svg%3E") repeat-x;filter:drop-shadow(0 3px 6px #ff1e3c33);pointer-events:none}
.monster-site h2{font:400 1.8rem/1.2 "Creepster","Chiller",fantasy;letter-spacing:.045em;color:var(--fiend-accent);text-shadow:0 0 12px #b388ff44;border-bottom:1px solid var(--fiend-rule);padding-bottom:7px}
.monster-site h2::before{content:"☠ ";color:var(--fiend-red);font-size:.75em}
.monster-site h3{color:#d8c2ff}
.monster-site .page-intro,.monster-site .more-link{color:var(--fiend-ink)}
.monster-site .page-note,.monster-site .caption,.monster-site .source-list{color:var(--fiend-muted)}
.monster-site .hero-image,.monster-site .artifact-card,.monster-site .roster-card{background:var(--fiend-surface2);border:1px solid #654086;border-radius:10px;box-shadow:0 6px 18px #0005;transition:border-color .2s,box-shadow .2s}
.monster-site .artifact-card,.monster-site .roster-card{border-left:3px solid var(--fiend-accent)}
.monster-site .artifact-card:hover,.monster-site .roster-card:hover{border-color:var(--fiend-accent);box-shadow:var(--fiend-glow)}
.monster-site .artifact-card p,.monster-site .roster-card p{color:var(--fiend-ink)}
.monster-site .year,.monster-site .timeline-list .year{color:#ffa94d}
.monster-site .timeline-list li{border-color:var(--fiend-rule)}
.monster-site button,.monster-site input,.monster-site select{font-family:system-ui,sans-serif;accent-color:var(--fiend-accent)}
body.nav-page{background:transparent;color:var(--fiend-ink);font-family:system-ui,sans-serif}
.nav-page .brand-title{font:400 28px/1 "Creepster","Chiller",fantasy;letter-spacing:.04em;color:var(--fiend-accent);background:transparent;text-shadow:0 0 12px #b388ff88}
.nav-page .brand img{border-color:#654086;border-radius:8px;box-shadow:var(--fiend-glow)}
.nav-page a,.nav-page a:visited{color:#d8c2ff}
.nav-page .nav>li>a{display:inline-block;border:1px solid transparent;border-radius:8px;padding:3px 5px;font-size:12px}
.nav-page .nav>li>a:hover,.nav-page .nav>li>a.current{border-color:#8055ab;background:#2b1650;color:#fff;box-shadow:0 0 10px #b388ff33}
.nav-page .feature-note{color:#ff758d}
.monster-site .mini-lightbox{background:rgba(8,3,16,.94)}
.monster-site .mini-lightbox-stage{border-color:#b388ff;background:#170b24;box-shadow:var(--fiend-glow)}
.monster-site .mini-lightbox button{color:#eadff7;background:#2b1650;border-color:#8055ab}
@media(prefers-reduced-motion:no-preference){.monster-site .page-title{animation:fiend-neon 7s ease-in-out infinite}@keyframes fiend-neon{50%{text-shadow:0 0 20px #b388ffbb,0 0 40px #823cff66,2px 3px 0 #3a0d55}}}
@media(max-width:760px){.modern-page .page-title{font-size:2.2rem}.monster-site h2{font-size:1.5rem}.nav-page .brand-title{font-size:24px}}

body.monster-site::before,body.monster-site::after{content:"";position:fixed;top:0;width:150px;height:150px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' fill='none' stroke='%23cdb8ff' stroke-width='1'%3E%3Cpath d='M0 0H170M0 0L150 70M0 0L110 110M0 0L70 150M0 0V170M40 0Q36 34 0 40M80 0Q70 70 0 80M120 0Q104 104 0 120M160 0Q138 138 0 160'/%3E%3C/svg%3E") no-repeat;opacity:.26;pointer-events:none;z-index:0}body.monster-site::before{left:0}body.monster-site::after{right:0;transform:scaleX(-1)}

/* Navigation content owns its iframe height; these are no-script fallbacks. */
.monster-site .nav-frame{height:620px}
.nav-page .nav-wrap{padding-bottom:12px}
@media(min-width:300px){
 .parent-is-narrow .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;align-items:start}
 .parent-is-narrow .nav>li{margin-bottom:0;min-width:0}
 .parent-is-narrow .brand{flex-basis:110px;width:110px}
 .parent-is-narrow .nav-wrap{gap:12px}
}
@media(max-width:420px){.parent-is-narrow .nav{grid-template-columns:1fr}}
@media(max-width:760px){.modern-page .nav-frame{height:460px}}

/* Read down the left column, then continue down the right column. */
@media(min-width:421px){
 .parent-is-narrow .nav{display:block;columns:2;column-gap:16px}
 .parent-is-narrow .nav>li{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 8px;order:0}
}

/* On-page image displays show the complete frame, including older crop grids. */
.monster-site .artifact-card img,
.monster-site .artifact-grid-crop .artifact-card img,
.monster-site .artifact-grid-crop-med .artifact-card img{
 width:100%;height:200px;max-width:100%;object-fit:contain;object-position:center;background:#0d0614;
}
.monster-site .artifact-grid-contain .artifact-card img{width:auto;height:auto;max-width:100%;max-height:240px;margin-left:auto;margin-right:auto;object-fit:contain}
.monster-site .roster-card img{object-fit:contain;object-position:center;background:#0d0614}
