/* =========================================================
   RED HILL WEBSITE STYLES
   Mobile-first, organized, and fantasy-polished
   ========================================================= */

/* 1. CUSTOM FONTS */
@font-face {
  font-family: "CryptCreepBB-Heavy";
  src: url("assets/fonts/CryptCreepBB-Heavy.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TornAsunderBB-Regular";
  src: url("assets/fonts/TornAsunderBB-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. TOKENS / RESET */


:root {
  --ink: #21150f;
  --gold: #d7aa5a;
  --gold-bright: #ffe1a2;
  --red: #9d1716;
  --dark: #100b08;
  --paper: #d8b982;
  --paper-light: #f1deb2;
  --shadow: rgba(0, 0, 0, 0.55);

  --sidebar-width: 310px;
  --book-gutter-width: 4px;
  --content-max: 1220px;
  --radius-soft: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--paper-light);
  font-family: "TornAsunderBB-Regular", Georgia, serif;

  background:
    radial-gradient(circle at 80% 10%, rgba(164, 54, 18, 0.35), transparent 30%),
    radial-gradient(circle at 25% 90%, rgba(219, 149, 53, 0.18), transparent 24%),
    linear-gradient(135deg, #120b08, #25120b 42%, #080604);

  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  pointer-events: none;

  background-image: url("assets/images/BGloop4.gif");
  background-size: 420px;
  background-position: center;
  background-repeat: repeat;

  opacity: 0.12;
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;

  padding: 0.7rem 1rem;

  color: #f6dfad;
  font-family: "CryptCreepBB-Heavy", serif;
  letter-spacing: 0.04em;

  background:
    linear-gradient(#050302, #160d08);

  border: 1px solid rgba(215, 170, 90, 0.55);

  cursor: pointer;

  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.35);

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

button:hover {
  color: #fff;
  border-color: var(--gold-bright);

  box-shadow:
    inset 0 0 12px rgba(255, 218, 138, 0.1),
    0 0 18px rgba(255, 190, 80, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 3. AMBIENCE */
.embers::before,
.embers::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  opacity: 0.18;

  background-image:
    radial-gradient(circle, rgba(255, 186, 86, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 92, 48, 0.45) 0 1px, transparent 2px);

  background-size:
    190px 190px,
    260px 260px;

  animation: drift 28s linear infinite;
}

.embers::after {
  opacity: 0.1;
  animation-duration: 40s;
  animation-direction: reverse;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-260px);
  }
}

/* 4. SIDEBAR / MOBILE HEADER */
.character-nav {
  margin: 0 0 18px;
  padding: 16px;
}

.character-nav h3 {
  margin: 0 0 10px;
  font-family: "CryptCreepBB-Heavy", serif;
  font-size: 34px;
}

.character-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scroll-snap-type: x mandatory;
}

.character-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.character-card {
  flex: 0 0 180px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px;

  min-height: 70px;
}

.character-card img {
  width: 54px;
  height: 54px;

  border-radius: 50%;

  object-fit: cover;

  flex-shrink: 0;
}

.character-card span {
  font-size: 24px;
  line-height: 1;
}

.character-card span {
  font-size: 22px;
  line-height: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;

  width: 100%;
  padding: 0.65rem 0.85rem;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(19, 12, 8, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(160, 30, 20, 0.2), transparent 34%);

  border-bottom: 2px solid rgba(215, 170, 90, 0.35);

  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  min-width: 0;
  text-decoration: none;
}

.logo-wrap {
  position: relative;
  isolation: isolate;

  display: grid;
  place-items: center;

  width: 62px;
  height: 62px;

  cursor: pointer;
}

.site-logo {
  position: relative;
  z-index: 4;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    transform 0.18s cubic-bezier(.2, .8, .2, 1),
    filter 0.25s ease;
}

.logo-ring {
  position: absolute;
  inset: -22px;
  z-index: 1;

  border-radius: 50%;
  opacity: 0;
  pointer-events: none;

  background:
    conic-gradient(
      from 15deg,
      transparent 0deg 12deg,
      rgba(255, 230, 150, .38) 18deg,
      transparent 28deg 44deg,
      rgba(255, 170, 70, .24) 52deg,
      transparent 66deg 92deg,
      rgba(255, 245, 200, .42) 101deg,
      transparent 116deg 150deg,
      rgba(255, 210, 120, .28) 164deg,
      transparent 180deg 230deg,
      rgba(255, 235, 180, .36) 244deg,
      transparent 260deg 360deg
    );

  filter: blur(8px);
  mix-blend-mode: color-dodge;

  animation: glassRays 16s linear infinite;
  transition: opacity .35s ease;
}

.logo-wrap::before,
.logo-wrap::after {
  content: "";
  position: absolute;

  border-radius: 50%;
  opacity: 0;
  pointer-events: none;

  transition: opacity .35s ease;
}

.logo-wrap::before {
  inset: -14px;
  z-index: 2;

  background:
    radial-gradient(
      circle,
      rgba(255, 245, 200, .32),
      rgba(255, 190, 90, .16) 38%,
      transparent 72%
    );

  mix-blend-mode: color-dodge;
  filter: blur(10px);
}

.logo-wrap::after {
  inset: -22px;
  z-index: 2;

  background-image:
    radial-gradient(circle, rgba(255,245,210,.18) 0 .7px, transparent 1.4px),
    radial-gradient(circle, rgba(255,190,90,.1) 0 .5px, transparent 1.2px);

  background-size:
    120px 120px,
    180px 180px;

  filter: blur(.3px);

  animation: stainedDust 7s linear infinite;
}

.logo-wrap:hover .site-logo {
  transform: translateY(-2px) scale(1.025);

  filter:
    brightness(1.35)
    saturate(1.35)
    contrast(1.08)
    drop-shadow(0 0 16px rgba(255, 245, 200, .75))
    drop-shadow(0 0 48px rgba(255, 170, 60, .38));
}

.logo-wrap:hover .logo-ring,
.logo-wrap:hover::before {
  opacity: 1;
}

.logo-wrap:hover::after {
  opacity: .35;
}

.logo-wrap:active .site-logo {
  transform:
    translateY(-1px)
    scale(.985);

  filter:
    brightness(1.18)
    saturate(1.22)
    contrast(1.04)
    drop-shadow(0 0 12px rgba(255,245,200,.62))
    drop-shadow(0 0 32px rgba(255,160,60,.28));
}

.sidebar-logo {
  width: min(160px, 36vw);
  height: auto;

  object-fit: contain;
}

.menu-toggle {
  grid-column: 3;
  width: 44px;
  height: 44px;
  padding: 0;

  font-size: 1.6rem;
}

.site-nav {
  grid-column: 1 / -1;

  display: none;
  grid-template-columns: 1fr;
  gap: 0.45rem;

  width: 100%;
  margin: 0.5rem 0 0;
}

body.menu-open .site-nav {
  display: grid;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  min-height: 42px;
  padding: 0.55rem 0.75rem;

  color: #e8ca8d;
  font-family: "CryptCreepBB-Heavy", serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(50, 20, 10, .25));

  border: 1px solid rgba(215, 170, 90, 0.22);

  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;

  background:
    linear-gradient(90deg, rgba(157, 23, 23, 0.9), rgba(157, 23, 23, 0.2), transparent);

  border-color: rgba(215, 170, 90, 0.42);
}

.nav-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes glassRays {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes stainedDust {
  from {
    background-position: 0 0, 20px 10px;
    transform: translateY(3px);
  }

  to {
    background-position: 30px -50px, -20px -70px;
    transform: translateY(-3px);
  }
}

/* 5. MAIN LAYOUT / PANELS */
.app {
  width: min(100%, var(--content-max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
}

.view {
  display: none;
  animation: fadeIn 0.28s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.parchment-panel {
  color: var(--ink);

  background:
    linear-gradient(90deg, rgba(232, 197, 127, 0.88), rgba(159, 99, 39, 0.72)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 28%);

  border: 2px solid rgba(76, 39, 13, 0.65);

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.36);
}

.hero,
.page-head,
.reader-header {
  position: relative;
  overflow: hidden;

  min-height: 170px;
  padding: clamp(1.1rem, 4vw, 2rem);

  background-image:

    url("assets/images/TopBanner.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  clip-path: polygon(1% 8%, 98% 0, 100% 85%, 96% 100%, 2% 94%, 0 25%);
}

.hero::before,
.page-head::before,
.reader-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 235, 180, 0.38) 0%,
      rgba(255, 190, 90, 0.18) 20%,
      rgba(255, 120, 40, 0.08) 38%,
      transparent 62%
    );

  mix-blend-mode: overlay;
  opacity: .9;
}

.hero > *,
.page-head > *,
.reader-header > * {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;

  color: #160b06;
  font-family: "CryptCreepBB-Heavy", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-copy {
  max-width: 760px;
  padding-inline: clamp(0.5rem, 3vw, 2.5rem);

  color: #160b06;

  text-shadow:
    0 1px 0 rgba(255, 240, 190, 0.18);
}

.hero-copy p {
  margin: 0 0 0.75rem;

  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.12;
}

.inline-logo {
  width: min(210px, 52vw);
  vertical-align: middle;
  margin-right: 0.25rem;
}

.page-head h2,
.reader-header h2,
.section-heading h2 {
  margin: 0.25rem 0 0;

  font-family: "CryptCreepBB-Heavy", serif;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 0.9;
}

.page-head p,
.reader-header p {
  max-width: 58ch;
  margin: 0.65rem 0 0;

  color: #160b06;
  font-size: 1.1rem;
}

/* 6. HOME / CHAPTERS */
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  margin-top: 1.2rem;
}

.chapter-tile {
  min-width: 0;
}

.chapter-button {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  min-height: 100%;
  padding: 1rem;

  text-align: center;

  background:
    linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(35, 13, 7, .58));

  border-color: rgba(215, 170, 90, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.chapter-button::before,
.chapter-button::after {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.chapter-button::before {
  z-index: 1;

  background-image: url("assets/images/BGloop4.gif");
  background-size: cover;
  background-position: center;

  opacity: .35;
  mix-blend-mode: screen;
}

.chapter-button::after {
  z-index: 3;

  opacity: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 220, 140, .1),
      transparent 70%
    );

  transition: opacity 0.25s ease;
}

.chapter-button > * {
  position: relative;
  z-index: 2;
}

.chapter-button:hover {
  transform: translateY(-4px) scale(1.01);

  border-color: rgba(255, 226, 160, 0.42);

  box-shadow:
    0 0 24px rgba(255, 190, 80, 0.22),
    0 0 60px rgba(255, 40, 40, 0.12),
    inset 0 0 20px rgba(255, 220, 140, 0.08);
}

.chapter-button:hover::after {
  opacity: 1;
}

.chapter-cover-wrap {
  display: block;

  width: min(210px, 72vw);
  margin: 0.25rem auto 0.75rem;

  border-radius: 12px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.chapter-cover {
  display: block;

  width: 100%;

  border-radius: 8px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .42);
}

.chapter-button:hover .chapter-cover-wrap {
  transform: scale(1.02);

  filter: brightness(1.06);

  box-shadow:
    0 0 12px rgba(255, 210, 120, 0.45),
    0 0 34px rgba(255, 170, 60, 0.28),
    0 0 70px rgba(255, 40, 40, 0.12);
}

.chapter-info {
  display: grid;
  gap: 0.25rem;

  width: 100%;
}

.chapter-kicker {
  color: var(--gold-bright);

  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chapter-title {
  color: #fbe7b8;

  font-family: "CryptCreepBB-Heavy", serif;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 0.9;

  text-wrap: balance;
}

.chapter-description {
  max-width: 32ch;
  margin-inline: auto;

  color: #f4d89e;

  font-family: "TornAsunderBB-Regular", Georgia, serif;
  font-size: 1rem;
  line-height: 1.05;
}

/* 7. ARCHIVE */
.archive {
  margin-top: 1.25rem;
  padding: 1rem;
}

.archive-list {
  display: grid;
  gap: 0.75rem;

  margin-top: 0.75rem;
}

.archive-chapter-title {
  width: 100%;

  justify-content: space-between;
}

.archive-page-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.75rem;

  padding: 0.75rem 0 0;
}

.archive-chapter.open .archive-page-grid {
  display: grid;
}

.archive-page-thumb {
  display: grid;
  gap: 0.4rem;

  padding: 0.45rem;

  font-size: 0.9rem;
}

.archive-page-thumb img {
  display: block;

  width: 100%;
  aspect-ratio: 2 / 3;

  object-fit: cover;
}

/* 8. READER */
.reader-header {
  display: grid;
  gap: 1rem;

  margin-bottom: 1rem;
}

.reader-actions,
.reader-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.book-stage {
  position: relative;

  display: grid;
  place-items: center;

  padding: 0.5rem 0.25rem 1rem;

  overflow-x: auto;
  perspective: 2200px;

  scrollbar-color: rgba(215, 170, 90, .65) rgba(0, 0, 0, .35);
}

.book {
  position: relative;

  display: grid;
  grid-template-columns: 1fr var(--book-gutter-width) 1fr;

  width: min(1120px, 100%);
  min-width: 620px;
  aspect-ratio: 1.28 / 1;

  padding: clamp(0.6rem, 2vw, 1.1rem);

  background:
    linear-gradient(90deg, #3a1f10, #0e0906 49%, #080504 50%, #3a1f10),
    radial-gradient(circle at center, rgba(255, 211, 119, 0.16), transparent 52%);

  border: 3px solid rgba(128, 71, 27, 0.95);

  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(255, 172, 74, 0.15);
}

.book.turn-next {
  animation: bookShakeNext 0.22s ease;
}

.book.turn-prev {
  animation: bookShakePrev 0.22s ease;
}

.book.chapter-shake {
  animation: chapterShakeDown 0.38s ease;
}

.page {
  position: relative;
  overflow: hidden;

  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.page-left {
  border-radius: 14px 2px 2px 14px;
}

.page-right {
  border-radius: 2px 14px 14px 2px;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;

  pointer-events: none;
  opacity: 0;

  transition: opacity 0.28s ease;
}

.page-left::after {
  border-radius: 14px 2px 2px 14px;

  box-shadow:
    inset 3px 0 0 rgba(255,235,180,.85),
    inset 18px 0 30px rgba(255,220,140,.22),
    inset 0 18px 24px rgba(255,220,140,.12),
    inset 0 -18px 24px rgba(255,220,140,.12),
    0 0 30px rgba(255,190,80,.16);
}

.page-right::after {
  border-radius: 2px 14px 14px 2px;

  box-shadow:
    inset -3px 0 0 rgba(255,235,180,.85),
    inset -18px 0 30px rgba(255,220,140,.22),
    inset 0 18px 24px rgba(255,220,140,.12),
    inset 0 -18px 24px rgba(255,220,140,.12),
    0 0 30px rgba(255,190,80,.16);
}

.page:hover {
  transform: translateY(-3px) scale(1.006);
  filter: brightness(1.03);
}

.page:hover::after {
  opacity: 1;
}

.paper {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 100%;

  border-radius: inherit;

  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.25), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(89,45,13,.22), transparent 24%),
    radial-gradient(circle at 40% 90%, rgba(120,60,20,.18), transparent 18%),
    linear-gradient(135deg, #f1deb2, #d8b982 55%, #b8874c);

  box-shadow:
    inset 0 0 45px rgba(75,35,10,.35),
    inset 0 0 8px rgba(255,255,255,.25);
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.paper::before {
  z-index: 2;

  opacity: 0.22;

  background-image:
    url("assets/images/PaperTexture.jpg"),
    radial-gradient(circle at 12% 30%, rgba(80,35,10,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 18%, rgba(110,55,15,.16) 0 2px, transparent 4px),
    radial-gradient(circle at 50% 82%, rgba(70,30,10,.14) 0 3px, transparent 5px);

  background-size:
    cover,
    180px 180px,
    220px 220px,
    260px 260px;

  background-position: center;
  background-repeat: no-repeat, repeat, repeat, repeat;

  mix-blend-mode: multiply;
}

.paper::after {
  z-index: 3;

  background:
    radial-gradient(circle at center, transparent 55%, rgba(65,30,8,.32) 100%);
}

.paper img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: inherit;
}

.gutter {
  background: rgba(20, 10, 5, 0.35);

  box-shadow:
    inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.fallback-page {
  position: absolute;
  inset: 9%;
  z-index: 4;

  display: none;
  place-items: center;
  align-content: center;

  padding: 1rem;

  color: #44220f;
  text-align: center;

  border: 2px dashed rgba(0, 0, 0, 0.45);
}

.turn-zone {
  position: absolute;
  top: 50%;
  z-index: 8;

  width: 46px;
  height: 76px;
  padding: 0;

  transform: translateY(-50%);

  color: var(--gold-bright);
  font-size: 3rem;

  background: rgba(18, 9, 4, 0.72);

  border-radius: 999px;
}

.turn-zone.left {
  left: 0.35rem;
}

.turn-zone.right {
  right: 0.35rem;
}

.page-counter {
  min-width: 96px;

  color: #f5d794;
  font-family: "CryptCreepBB-Heavy", serif;
  font-size: 1.8rem;
  text-align: center;
}

.thumbnail-strip {
  display: flex;
  gap: 0.6rem;

  width: min(980px, 100%);
  margin: 1rem auto 0;
  padding: 0.75rem;

  overflow-x: auto;

  background: rgba(0, 0, 0, 0.32);

  border: 1px solid rgba(215, 170, 90, 0.22);
}

.thumb {
  flex: 0 0 70px;

  height: 54px;
  padding: 0;
  overflow: hidden;

  background:
    linear-gradient(135deg, #e8c98d, #8b5728);

  border: 2px solid rgba(215, 170, 90, 0.22);
}

.thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.thumb.active {
  border-color: #ffd272;

  box-shadow:
    0 0 18px rgba(255, 202, 99, 0.6);
}

.comments {
  width: min(1120px, 100%);
  margin: 1.25rem auto 0;
  padding: clamp(1rem, 4vw, 2rem);
}

.comments h3 {
  margin: 0 0 0.75rem;

  font-family: "CryptCreepBB-Heavy", serif;
  font-size: 2.2rem;
}

/* 9. LORE MAP */
.map-layout {
  display: grid;
  gap: 1rem;

  margin-top: 1rem;
}

.map-container {
  position: relative;
}

.map-art {
  display: block;

  width: 100%;

  border: 2px solid rgba(215,170,90,.35);

  box-shadow:
    0 20px 60px rgba(0,0,0,.48);
}

.map-pin {
  position: absolute;

  left: var(--pin-x);
  top: var(--pin-y);

  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  padding: 0;

  display: grid;
  place-items: center;

  transform: none !important;

  border-radius: 50%;
  border: 2px solid rgba(255, 210, 120, .85);

  background: rgba(20, 5, 2, .75);

  box-shadow:
    0 0 14px rgba(255, 190, 80, .8),
    0 0 34px rgba(157, 23, 22, .45);

  line-height: 0;
  overflow: visible;
  cursor: pointer;
}

.map-pin:hover {
  filter: brightness(1.08);

  box-shadow:
    0 0 22px rgba(255, 230, 160, .95),
    0 0 60px rgba(255, 120, 40, .55);
}

.map-pin-image {
  position: relative;
  z-index: 2;

  display: block;

  width: 28px;
  height: 28px;

  object-fit: contain;

  pointer-events: none;
}

.pin-shine {
  position: absolute;
  inset: -2px;
  z-index: 1;

  border-radius: 50%;
  pointer-events: none;
  opacity: 0;

  background:
    conic-gradient(
      from 20deg,
      transparent 0deg 255deg,
      rgba(255, 245, 210, 0) 270deg,
      rgba(255, 245, 210, .95) 292deg,
      rgba(255, 210, 120, .75) 312deg,
      rgba(255, 160, 60, .18) 330deg,
      transparent 350deg 360deg
    );

  -webkit-mask:
    radial-gradient(circle, transparent 0 58%, black 61% 88%, transparent 90% 100%);

  mask:
    radial-gradient(circle, transparent 0 58%, black 61% 88%, transparent 90% 100%);

  filter: blur(.4px);
  mix-blend-mode: screen;
}

.map-pin.pin-clicked .pin-shine {
  animation: crescentSpin 0.85s ease-out 1;
}

.map-pin.pin-clicked .map-pin-image {
  animation: pinPushIcon 0.18s ease-out 1;
}

.map-sidebar {
  padding: 1rem;

  background:
    linear-gradient(180deg, rgba(29,16,10,.96), rgba(10,6,4,.98));

  border: 2px solid rgba(215,170,90,.35);

  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    inset 0 0 24px rgba(255,190,80,.08);
}

.map-sidebar-image {
  display: block;

  width: 100%;
  height: 220px;

  object-fit: cover;

  margin-bottom: 1rem;

  border: 1px solid rgba(215,170,90,.35);

  box-shadow:
    0 0 22px rgba(255,190,80,.12);
}

.map-sidebar-content {
  display: grid;
  gap: 0.65rem;
}

.map-type {
  color: var(--gold);
  font-family: "CryptCreepBB-Heavy", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.map-sidebar h3 {
  margin: 0;

  color: var(--paper-light);

  font-family: "CryptCreepBB-Heavy", serif;
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  line-height: .9;
}

.map-sidebar p {
  margin: 0;

  color: #f3dba9;

  font-size: 1.1rem;
  line-height: 1.15;
}

/* 10. CONTACT */
.contact-layout {
  display: grid;
  gap: 1rem;

  margin-top: 1rem;
}

.contact-logo {
  width: min(540px, 90vw);
}

.portrait-card,
.contact-form {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.portrait-card img {
  display: block;

  width: 100%;

  margin-bottom: 1rem;

  border: 1px solid rgba(76,39,13,.45);
}

.portrait-card p {
  margin: 0;

  font-size: 1.1rem;
  line-height: 1.15;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form h2 {
  margin: 0;

  font-family: "CryptCreepBB-Heavy", serif;
  font-size: 2.6rem;
  line-height: 0.9;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;

  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;

  color: var(--ink);
  background: #f5dfb0;

  border: 1px solid #68401c;
}

.contact-form textarea {
  resize: vertical;
}

/* 11. MOTION KEYFRAMES */
@keyframes pinPushIcon {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.78);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes crescentSpin {
  0% {
    opacity: 0;
    transform: rotate(-80deg) scale(.95);
  }

  15% {
    opacity: 1;
  }

  70% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    transform: rotate(230deg) scale(1.08);
  }
}

@keyframes bookShakeNext {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  30% {
    transform: translateX(-4px) rotate(-0.35deg);
  }

  65% {
    transform: translateX(2px) rotate(0.15deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes bookShakePrev {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  30% {
    transform: translateX(4px) rotate(0.35deg);
  }

  65% {
    transform: translateX(-2px) rotate(-0.15deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes chapterShakeDown {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(10px);
  }

  55% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}
@media (max-width: 800px) {

  .map-layout {
    display: flex;
    flex-direction: column;
  }

  .map-sidebar {
    order: 1;
    position: relative;
    top: auto;
    width: 100%;
    min-height: auto;
  }

  .map-container {
    order: 2;
    width: 100%;
  }

}
/* 12. TABLET / DESKTOP */
@media (min-width: 720px) {
  .chapter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .reader-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  
}

@media (min-width: 960px) 

{
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;

    display: block;

    width: var(--sidebar-width);
    height: 100vh;
    padding: 1.5rem 1.35rem;

    border-right: 2px solid rgba(215, 170, 90, 0.35);
    border-bottom: 0;

    box-shadow:
      18px 0 45px rgba(0, 0, 0, 0.5);
  }


  
  .brand {
    display: flex;
    flex-direction: column;

    margin-bottom: 1.8rem;
  }

  .logo-wrap {
    width: 220px;
    height: 220px;
  }

  .logo-ring {
    inset: -34px;
  }

  .sidebar-logo {
    width: 100%;
    max-width: 260px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  body.menu-open .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;

    margin-top: 0;
  }

  .site-nav a {
    justify-content: flex-start;

    font-size: 1.65rem;
  }

  .site-nav a:hover,
  .site-nav a.active {
    transform: translateX(4px);
  }

  .app {
    width: auto;
    max-width: none;
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem 2.5rem;
  }

  .hero,
  .page-head,
  .reader-header {
    min-height: 200px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .map-sidebar {
    position: sticky;
    top: 1.5rem;

    min-height: 620px;
  }

  .turn-zone.left {
    left: 0.75rem;
  }

  .turn-zone.right {
    right: 0.75rem;
  }
}

/* 13. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .page:hover,
  .chapter-button:hover,
  .logo-wrap:hover .site-logo {
    transform: none;
  }
}
.honeypot {
  display: none;
}

/* Hide giant floating comic arrows on mobile */
@media (max-width: 959px) {
  .turn-zone {
    display: none !important;
  }
}