/* Beastly Creatures Central -- site stylesheet.  Update 2026-11-18 23:20
   Cloned on 2026-10-14 from the Arcade Games Central stylesheet (script-work/arcade_site_src/style.css) and re-themed:
   soot, parchment and bronze instead of arcade neon; Cinzel / IM Fell English instead of Bebas Neue / Press Start 2P.
   Built on the shared minisite base (same structure and class names as the Elvis, Stooges, Fiends and Arcade Centrals:
   page-container / site-layout / sidebar nav-frame / main-content, page-title, page-intro, intro-grid,
   artifact-section / artifact-grid / artifact-card, roster-grid, timeline-list, article-list, mini lightbox).
   Site-only additions keep their original class names (cabinet, crt, gcard, chase, formation ...) so both sites stay easy to compare. */

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;
}

/* Beastly theme tokens (cloned from the Arcade tokens; names kept so the shared layout rules stay identical) */
.beast-site,
.nav-page {
  --bst-bg: #0c0a07;
  --bst-panel: #1a140e;
  --bst-panel-2: #281f15;
  --bst-line: #463828;
  --bst-frame: #85715a;
  --bst-ink: #efe6d2;
  --bst-muted: #bbb5ae;
  --bst-gold: #e2c06a;
  --bst-gold-deep: #b8862f;
  --bst-pink: #c8463a;
  --bst-cyan: #6fb7a2;
  --bst-lilac: #c9a46a;
  --bst-peach: #e8925a;
  --bst-mint: #9cc27e;
  --bst-new: #62a8ff;
  --bst-upd: #8cda91;
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-sub: "IM Fell English", Georgia, "Times New Roman", serif;
  --f-pixel: "IM Fell English SC", Georgia, serif;
}

body.beast-site {
  margin: 0;
  padding: 28px;
  background-color: #0c0a07;
  /* dim '80s arcade-carpet confetti -- replaced for Beastly Creatures by a faint candle-lit, scale-pattern vellum */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(226, 192, 106, 0.10), transparent 60%),
    radial-gradient(circle at 0 0, transparent 13px, rgba(133, 113, 90, 0.10) 14px, transparent 15px),
    radial-gradient(circle at 18px 18px, transparent 13px, rgba(133, 113, 90, 0.08) 14px, transparent 15px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: #efe6d2;
  font-family: var(--site-font-family, Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif);
}

body.beast-site a {
  color: #ffffff;
  transition: color 150ms ease;
}

body.beast-site a:visited {
  color: #ebddcc;
}

body.beast-site a:hover,
body.beast-site a:focus {
  color: #f0c24b;
}

body.beast-site a:visited:hover,
body.beast-site a:visited:focus {
  color: #e2c06a;
}

body.beast-site a:active {
  color: #c8463a;
}

.beast-site .page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  background: #1a140e;
  border: 1px solid #85715a;
  border-radius: 14px;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.55),
    0 0 40px -8px rgba(210, 176, 137, 0.45),
    inset 0 0 0 1px rgba(201, 164, 106, 0.16);
}

.beast-site .nav-frame {
  display: block;
  width: 150px;
  height: 420px;
  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: clip;
}

.modern-page .page-title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 6px;
  color: #e2c06a;
  font-family: var(--f-display);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  border-bottom: 1px solid rgba(226, 192, 106, 0.5);
  text-shadow: 0 0 12px rgba(200, 70, 58, 0.45);
}

.page-title .brand-text {
  background: linear-gradient(100deg, #6fb7a2 0%, #c9a46a 30%, #e8925a 58%, #e2c06a 78%, #9cc27e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.page-intro {
  margin: 0 0 20px;
  color: #dcd7d1;
  font-size: 15px;
  line-height: 1.5;
}

.hero-image,
.artifact-card {
  background: #0c0a07;
  border: 1px solid #85715a;
  box-shadow:
    0 0 0 3px #281f15,
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(210, 176, 137, 0.22);
}

.hero-image {
  padding: 10px;
  margin: 0 0 22px;
}

.artifact-card {
  position: relative;
  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: 15px;
  line-height: 1.45;
}

.page-note {
  margin: 24px 0 0;
  color: #b0a9a2;
  font-size: 11px;
  line-height: 1.35;
}

.site-footer {
  display: block;
  margin: 28px auto 0;
  clear: both;
  color: #87817b;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.caption {
  margin: 8px 0 0;
  padding: 5px 7px;
  background: #281f15;
  color: #efe6d2;
  border-left: 3px solid #c8463a;
  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(12, 10, 7, 0.3);
  border-left: 2px solid rgba(200, 70, 58, 0.55);
}

.intro-grid h2,
.story h2,
.artifact-section h2 {
  margin: 0 0 6px;
  color: #e2c06a;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.artifact-section > h2 + p {
  margin: 0 0 12px;
}

.intro-grid p,
.story p,
.source-list {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.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 9px;
  padding-left: 28px;
}

.article-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("images/eye_bullet.svg") no-repeat center;
  background-size: contain;
  image-rendering: pixelated;
  filter: hue-rotate(calc(var(--article-badge-hue, 0) * 1deg)) drop-shadow(0 0 3px rgba(226, 192, 106, 0.6));
}

.article-list small {
  display: block;
  color: #bbb5ae;
  font-size: 12px;
  line-height: 1.35;
}

.artifact-section {
  position: relative;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid rgba(200, 70, 58, 0.5);
  max-width: 100%;
  min-width: 0;
}

.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-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* NO-CROP RULE (all minisites, Nov 8, 2026): card pictures are shown WHOLE (object-fit: contain), never cropped,
   so faces and subjects are not cut off. A taller fixed box keeps the grid even; short or narrow pictures get
   empty space at the sides, not a crop. Do not switch these back to cover. */
.artifact-card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
}

.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;
}

.artifact-card a {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.artifact-card > a:first-child {
  margin-top: 0;      /* image link at the top of a card sits flush, like the "soon" card */
}

.artifact-card p {
  margin: 5px 0 0;
  color: #dcd7d1;
  font-size: 11px;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.artifact-card p b {
  color: #e2c06a;
  font-family: var(--f-sub);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.artifact-card.soon {
  opacity: 0.6;
  border-style: dashed;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.roster-card {
  padding: 12px;
  background: #281f15;
  border: 1px solid #85715a;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.roster-card h3 {
  margin: 8px 0 4px;
  color: #e2c06a;
  font-size: 13px;
}

.roster-card .year {
  display: inline-block;
  color: #c8463a;
  font-family: var(--f-pixel);
  font-size: 12px;
}

.roster-card p {
  margin: 0;
  color: #dcd7d1;
  font-size: 11px;
  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(200, 70, 58, 0.3);
  scroll-margin-top: 20px;
}

.timeline-list .year {
  color: #e2c06a;
  font-weight: bold;
}

.timeline-list p {
  margin: 2px 0 0;
  color: #dcd7d1;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------------- nav page (inside the sidebar iframe) ---------------- */

body.nav-page {
  margin: 0;
  padding: 0;
  background: #1a140e;
  color: #efe6d2;
  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: #ebddcc;
}

.nav-page a:hover,
.nav-page a:focus {
  color: #f0c24b;
}

.nav-page a:visited:hover,
.nav-page a:visited:focus {
  color: #e2c06a;
}

.nav-wrap {
  width: 150px;
  padding: 6px 0 0;
}

.brand {
  display: block;
  width: 130px;
  margin: 0 0 18px 6px;
  text-decoration: none;
  text-align: center;
}

.brand img {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  margin: 2px auto 6px;
  border: 0;
  image-rendering: pixelated;
}

.brand-title {
  display: inline-block;
  margin-top: 0;
  padding: 6px 10px 7px;
  background: #413323;
  border: 2px solid #c8463a;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(200, 70, 58, 0.55), inset 0 0 8px rgba(200, 70, 58, 0.35);
  color: #e2c06a;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-shadow: 0 0 6px rgba(226, 192, 106, 0.6);
}

.brand-coin {
  display: block;
  margin-top: 7px;
  color: #c8463a;
  font-family: var(--f-pixel);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.home-brand-intro .brand img {
  animation: beastCoinDrop 900ms steps(6, end) both;
}

.home-brand-intro .brand-title {
  animation: beastMarqueeFlicker 1000ms steps(1, end) 300ms both;
}

.home-brand-intro .brand-coin {
  animation: beastBlink 1100ms steps(1, end) 1000ms 4;
}

@keyframes beastCoinDrop {
  0% {
    opacity: 0;
    transform: translateY(-26px);
  }
  60% {
    opacity: 1;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes beastMarqueeFlicker {
  0% { opacity: 0; }
  12% { opacity: 0.25; }
  22% { opacity: 0; }
  36% { opacity: 1; }
  44% { opacity: 0.3; }
  56% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes beastBlink {
  50% { opacity: 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 9px;
  padding-left: 21px;
}

.nav-timesync {
  position: relative;
  background: none;
}

.nav li::before,
.nav-timesync::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 14px;
  height: 14px;
  background: url("images/eye_bullet.svg") no-repeat center;
  background-size: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 3px rgba(226, 192, 106, 0.6));
}

.nav .sub {
  margin-top: 4px;
  padding-left: 12px;
  color: #c8463a;
  font-size: 10px;
  font-weight: normal;
  line-height: 1.5;
}

.nav .sub a {
  font-weight: normal;
}

.feature-note {
  display: block;
  color: #c8463a;
  font-style: italic;
  font-size: 10px;
  font-weight: normal;
}

.nav .soon-note {
  display: block;
  color: #87817b;
  font-size: 9px;
  font-weight: normal;
}

.nav .nav-soon {
  color: #b0a9a2;
}

.current,
.current:visited,
.current a {
  color: #f0c24b;
}

/* ================================================================
   ARCADE -- components unique to Arcade Games Central (kept for Beastly Creatures Central)
   ================================================================ */

.pixel {
  font-family: var(--f-pixel);
  letter-spacing: 0.02em;
}

.kicker {
  margin: 0 0 6px;
  color: #b8862f;
  font-family: var(--f-pixel);
  font-size: 12px;
}

.bst-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #463828;
  border-radius: 7px;
  background: #281f15;
  color: #efe6d2;
  font: 600 13px var(--site-font-family, Verdana, sans-serif);
  text-decoration: none;
  cursor: pointer;
}

body.beast-site a.bst-btn,
body.beast-site a.bst-btn:visited {
  color: #efe6d2;
}

.bst-btn:hover,
body.beast-site a.bst-btn:hover {
  border-color: #c9a46a;
  color: #ffffff;
}

.bst-btn.primary,
body.beast-site a.bst-btn.primary,
body.beast-site a.bst-btn.primary:visited {
  background: #b8862f;
  border-color: #b8862f;
  color: #1a1205;
}

.bst-btn.primary:hover {
  filter: brightness(1.12);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

/* ---------------- cabinet + CRT screen ---------------- */

.cabinet {
  position: relative;
  margin: 0 0 22px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #2e251a, #14100b);
  border: 1px solid #483a2b;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #000, 0 22px 44px -18px #000, 0 0 50px -12px rgba(210, 176, 137, 0.55);
}

.page-intro + .cabinet.has-spr {
  margin-top: 44px;   /* room for the perched sprites above the cabinet */
}

.cab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #413323, #3b2e20);
  border: 1px solid #6b543a;
  border-radius: 7px;
}

.cab-top .now {
  overflow: hidden;
  color: #e2c06a;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 24px);
  text-shadow: 0 0 8px rgba(226, 192, 106, 0.55);
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cab-top .count {
  color: #bbb5ae;
  font-family: var(--f-pixel);
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.crt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: inset 0 0 40px #000;
}

.crt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.2) 2px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}

.crt.clickable {
  cursor: zoom-in;
}

.cab-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.round {
  width: 36px;
  height: 36px;
  border: 1px solid #564735;
  border-radius: 50%;
  background: #33291e;
  color: #efe6d2;
  font-size: 14px;
  cursor: pointer;
}

.round:hover {
  border-color: #6fb7a2;
  color: #ffffff;
}

.coin-blink {
  margin-left: auto;
  color: #e8925a;
  font-family: var(--f-pixel);
  font-size: 12px;
  animation: beastBlink 1.1s steps(1) infinite;
}

.tv-progress {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  background: #30271c;
  border-radius: 2px;
}

.tv-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6fb7a2, #c9a46a, #e8925a);
}

/* ---------------- stats strip ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  background: #140f0a;
  border: 1px solid #463828;
  border-radius: 10px;
}

.stat {
  padding: 12px 12px 10px;
  border-left: 1px solid #463828;
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.stat span {
  color: #bbb5ae;
  font-size: 11px;
}

.stat.pick {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid #463828;
  cursor: pointer;
}

.stat.pick b {
  display: inline;
  margin-right: 10px;
  color: #e2c06a;
  font-size: 24px;
}

.stat.pick:hover b {
  color: #fff1cc;
}

/* ---------------- game card ("mini cabinet") ---------------- */

.cab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2a2117, #19140f);
  border: 1px solid #463828;
  border-radius: 10px;
  cursor: zoom-in;
  outline: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.gcard:hover,
.gcard:focus-visible {
  transform: translateY(-3px);
  border-color: var(--hue, #c9a46a);
  box-shadow: 0 12px 26px -10px #000, 0 0 22px -6px var(--hue, #c9a46a);
}

.gcard-marquee {
  overflow: hidden;
  padding: 7px 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue, #c9a46a) 32%, #1c1610), #1c1610);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 9px 9px 0 0;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gcard .crt {
  border: 0;
  border-radius: 0;
}

.gcard .crt img {
  object-fit: cover;
}

.gcard-live {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  padding: 3px 5px;
  background: #9cc27e;
  border-radius: 3px;
  color: #000;
  font-family: var(--f-pixel);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.gcard.playing .gcard-live {
  opacity: 1;
}

.gcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px 11px;
}

.gcard-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #bbb5ae;
  font-size: 11px;
}

.gcard-meta .yr {
  color: var(--hue, #e2c06a);
  font-family: var(--f-pixel);
  font-size: 12px;
}

.gcard-tag {
  font-size: 11px;
}

.gcard.is-new {
  border-color: #62a8ff;
}

.gcard.is-new .gcard-tag {
  color: #62a8ff;
}

.gcard.is-upd .gcard-tag {
  color: #8cda91;
}

.gcard-blurb {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #dcd7d1;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gcard.compact .gcard-marquee {
  padding: 5px 8px;
  font-size: 12px;
}

.gcard.compact .gcard-body {
  padding: 7px 8px 8px;
}

/* ---------------- game lightbox (separate from the image mini lightbox) ---------------- */

.game-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 5, 0.88);
}

.game-lb[aria-hidden="false"] {
  display: flex;
}

.game-lb-box {
  position: relative;
  width: min(980px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 14px 16px 12px;
  background: #18130d;
  border: 2px solid #b5a18a;
  border-radius: 12px;
}

.game-lb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 50px 10px 0;
}

.game-lb-title {
  color: #efe6d2;
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1;
}

.game-lb-sub {
  color: #bbb5ae;
  font-size: 13px;
}

.game-lb-tag {
  font-size: 12px;
}

.game-lb-tag.new {
  color: #62a8ff;
}

.game-lb-tag.upd {
  color: #8cda91;
}

.game-lb-count {
  margin-left: auto;
  color: #bbb5ae;
  font-family: var(--f-pixel);
  font-size: 12px;
}

.game-lb-blurb {
  max-width: 60em;
  margin: 11px 2px 2px;
  color: #e4dfda;
  font-size: 14px;
  line-height: 1.5;
}

.game-lb-blurb:empty {
  display: none;
}

.game-lb-hint {
  margin-top: 8px;
  color: #bbb5ae;
  font-size: 11px;
  text-align: center;
}

.game-lb button {
  position: absolute;
  z-index: 3;
  border: 1px solid #7b6c5a;
  border-radius: 8px;
  background: rgba(48, 38, 26, 0.85);
  color: #eddfcf;
  cursor: pointer;
}

.game-lb button:hover,
.game-lb button:focus-visible {
  border-color: #e3ceb7;
  color: #ffffff;
}

.game-lb-close {
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 22px;
}

.game-lb-nav {
  top: 46%;
  width: 42px;
  height: 60px;
  font-size: 28px;
}

.game-lb-prev {
  left: 8px;
}

.game-lb-next {
  right: 8px;
}

/* ---------------- Roll Call ---------------- */

.rc-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.rc-tools input[type="search"] {
  flex: 1 1 200px;
  max-width: 300px;
  padding: 9px 12px;
  background: #281f15;
  border: 1px solid #463828;
  border-radius: 7px;
  color: #efe6d2;
  font: 14px var(--site-font-family, Verdana, sans-serif);
}

.rc-tools input[type="search"]:focus {
  outline: 2px solid #c9a46a;
  outline-offset: 1px;
}

.chip {
  padding: 6px 11px;
  background: #281f15;
  border: 1px solid #463828;
  border-radius: 999px;
  color: #bbb5ae;
  font: 600 12px var(--site-font-family, Verdana, sans-serif);
  cursor: pointer;
}

.chip:hover {
  color: #ffffff;
}

.chip[aria-pressed="true"] {
  background: #c9a46a;
  border-color: #c9a46a;
  color: #1f1811;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bbb5ae;
  font-family: var(--f-pixel);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  background: #403426;
  border: 1px solid #584937;
  border-radius: 11px;
  cursor: pointer;
  appearance: none;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #bbb5ae;
  border-radius: 50%;
  transition: left 0.15s, background 0.15s;
}

.switch input:checked {
  background: #1d4532;
  border-color: #9cc27e;
}

.switch input:checked::after {
  left: 20px;
  background: #9cc27e;
}

.switch input:checked + span {
  color: #9cc27e;
}

.ribbon {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 2px;
  margin: 0 0 6px;
  padding: 6px 4px;
  overflow-x: auto;
  background: rgba(26, 20, 14, 0.95);
  border-bottom: 1px solid #463828;
  scrollbar-width: thin;
}

.ribbon a {
  flex: 0 0 auto;
  padding: 7px 6px;
  border-radius: 4px;
  font-family: var(--f-pixel);
  font-size: 13px;
  text-decoration: none;
}

body.beast-site .ribbon a,
body.beast-site .ribbon a:visited {
  color: #bbb5ae;
}

body.beast-site .ribbon a:hover {
  background: #281f15;
  color: #ffffff;
}

body.beast-site .ribbon a.on {
  background: #e2c06a;
  color: #1f1811;
}

.ribbon a.off {
  opacity: 0.25;
  pointer-events: none;
}

.yr-sec {
  padding: 30px 0 8px;
  scroll-margin-top: 50px;
  border-bottom: 1px dashed rgba(70, 56, 40, 0.7);
}

.yr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
}

.yr-num {
  color: var(--hue);
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 0.85;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 22px color-mix(in srgb, var(--hue) 45%, transparent);
}

.yr-count {
  color: var(--hue);
  font-family: var(--f-pixel);
  font-size: 12px;
}

.yr-era {
  color: #bbb5ae;
  font-size: 13px;
}

body.beast-site .yr-era a,
body.beast-site .yr-era a:visited {
  color: #bbb5ae;
}

.rc-empty {
  padding: 50px 0;
  color: #bbb5ae;
  font-family: var(--f-pixel);
  font-size: 11px;
  text-align: center;
}

.rc-empty[hidden] {
  display: none;
}

/* ---------------- Game Index ---------------- */

.index-games {
  margin: 2px 0 0;
  color: #87817b;
  font-size: 13px;
  line-height: 1.75;
}

.game-link {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: #ffffff;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  cursor: zoom-in;
}

.game-link:hover,
.game-link:focus-visible {
  color: #f0c24b;
}

.game-link.is-new {
  color: #9ccaff;
}

.game-link.has-blurb::after {
  content: " \2605";
  color: #b8862f;
  font-size: 10px;
}

/* ---------------- Eras ---------------- */

.era-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

body.beast-site .era-jump a,
body.beast-site .era-jump a:visited {
  padding: 6px 12px;
  border: 1px solid var(--hue);
  border-radius: 999px;
  color: var(--hue);
  font-size: 13px;
  text-decoration: none;
}

body.beast-site .era-jump a:hover {
  background: var(--hue);
  color: #111;
}

.era-sec {
  position: relative;
  margin: 26px 0;
  padding: 20px;
  background: rgba(40, 31, 21, 0.75);
  border: 1px solid #463828;
  border-left: 5px solid var(--hue);
  border-radius: 12px;
  scroll-margin-top: 20px;
}

.era-sec .range {
  color: var(--hue);
  font-family: var(--f-pixel);
  font-size: 12px;
}

.era-sec h2 {
  margin: 8px 0 8px;
  color: #efe6d2;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.era-sec p {
  margin: 0 0 12px;
  color: #dcd7d1;
  font-size: 14px;
  line-height: 1.55;
}

.era-facts {
  display: flex;
  gap: 24px;
  margin: 0 0 14px;
}

.era-facts b {
  display: block;
  color: var(--hue);
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.era-facts span {
  color: #bbb5ae;
  font-size: 11px;
}

.era-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.era-sec .cab-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* ---------------- Arcade TV (Creature Feature on this site) ---------------- */

.tv-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #16110c;
  border: 1px solid #463828;
  border-radius: 12px;
  font-family: var(--f-pixel);
}

.tv-panel h2 {
  margin: 0 0 12px;
  color: #c8463a;
  font-family: var(--f-pixel);
  font-size: 11px;
  text-shadow: 0 0 10px rgba(200, 70, 58, 0.55);
}

.tv-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.tv-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted #463828;
  color: #6fb7a2;
  font-size: 12px;
}

.tv-row span:last-child {
  color: #e2c06a;
  text-align: right;
}

.tv-blurb {
  margin: 12px 0 0;
  color: #dcd7d1;
  font-family: var(--site-font-family, Verdana, sans-serif);
  font-size: 13px;
  line-height: 1.5;
}

.tv-blurb:empty {
  display: none;
}

.tv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.tv-foot select {
  padding: 8px;
  background: #281f15;
  border: 1px solid #463828;
  border-radius: 7px;
  color: #efe6d2;
  font: 13px var(--site-font-family, Verdana, sans-serif);
}

.tv-keys {
  color: #bbb5ae;
  font-size: 12px;
  line-height: 2;
}

/* ---------------- crown (crowned headliner games) ---------------- */

.crown {
  display: inline-block;
  width: auto;
  height: 12px;
  margin: 0 6px 0 0;
  vertical-align: -1px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(4, 197, 255, 0.65));
}

.cab-top .crown {
  height: 13px;
  vertical-align: -2px;
}

.game-lb-title .crown {
  height: 22px;
  vertical-align: 3px;
  margin-right: 8px;
}

.gcard-marquee .crown {
  height: 11px;
}

.game-link .crown {
  height: 10px;
  margin-right: 4px;
}

/* ---------------- sprite flourishes ---------------- */
/* Sprites are tiny PNGs cut from our own captures; width/height attributes scale them up with square pixels. */

.spr {
  position: absolute;
  z-index: 4;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65));
}

.has-spr {
  position: relative;
}

.pix {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.flip {
  transform: scaleX(-1);
}

.perch {
  bottom: 100%;
  margin-bottom: -1px;
}

.perch.l {
  left: 16px;
}

.perch.r {
  right: 16px;
}

.sit {
  right: 4px;
  bottom: 0;          /* stands on the page-title underline */
}

.corner-br {
  right: -8px;
  bottom: -10px;
}

.corner-bl {
  left: -8px;
  bottom: -10px;
}

.peek-r {
  top: 30%;
  right: -10px;
}

.gcard .hop {
  right: 10px;
  bottom: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: transform 0.2s steps(3), opacity 0.1s;
}

.gcard:hover .hop,
.gcard:focus-visible .hop {
  opacity: 1;
  transform: translateY(0);
}

.chase {
  position: relative;
  height: 30px;
  margin: -4px 0 16px;
  overflow: hidden;
}

.chase::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 3px dotted rgba(226, 192, 106, 0.55);
}

.chase .runner {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
  animation: beastChase 13s linear infinite;
}

.chase .runner img {
  image-rendering: pixelated;
}

@keyframes beastChase {
  from { left: -200px; }
  to { left: 100%; }
}

.formation {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin: 26px 0 0;
}

.formation img {
  image-rendering: pixelated;
  animation: beastBob 1.4s steps(2) infinite;
}

.formation img:nth-child(even) {
  animation-delay: 0.7s;
}

@keyframes beastBob {
  50% { transform: translateY(-3px); }
}

.sprite-roster .roster-card img {
  display: block;
  margin: 4px auto 0;
  image-rendering: pixelated;
}

.sprite-roster .roster-card {
  cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
  .chase .runner,
  .formation img,
  .coin-blink,
  .home-brand-intro .brand img,
  .home-brand-intro .brand-title,
  .home-brand-intro .brand-coin {
    animation: none;
  }
}

/* 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.beast-site {
    padding: 12px;
  }

  .beast-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: 215px;
  }

  .modern-page .main-content {
    width: 100%;
  }

  .intro-grid,
  .story {
    display: block;
  }

  .artifact-grid,
  .artifact-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artifact-card {
    margin-bottom: 14px;
  }

  .modern-page .main-content > img,
  .modern-page .main-content table {
    max-width: 100%;
    height: auto;
  }

  .modern-page .page-title {
    font-size: 36px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid #463828;
  }

  .cab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gcard-marquee {
    padding: 6px 8px;
    font-size: 17px;
  }

  .gcard-blurb {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
  }

  .yr-num {
    font-size: 28px;
  }

  .tv-rows {
    grid-template-columns: 1fr;
  }

  .game-lb-nav {
    top: auto;
    bottom: 10px;
  }

  .timeline-list li {
    grid-template-columns: 44px 1fr;
  }
}

/* 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: #a7a39e;
    text-decoration: none;
  }

  .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 120px;
    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 120px;
    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;
  box-sizing: border-box;
  max-width: 34px;
  overflow: hidden;
  padding: 4px 10px 4px 8px;
  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;
  pointer-events: none;
  transition: max-width 180ms ease-out, background-color 180ms ease-out, opacity 180ms ease-out;
}

@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: 0.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 (shared minisite behaviour). */

.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(200, 70, 58, 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: #efe6d2;
  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 #c8463a;
  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: #efe6d2;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.mini-lightbox button {
  border: 1px solid #c8463a;
  color: #efe6d2;
  background: rgba(65, 51, 35, 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(98, 77, 52, 0.98);
  outline: 2px solid #e2c06a;
}

@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;
  }
}

/* =========================================================
   FIELD JOURNAL -- DiLo's own creature photos (added 2026-10-14)
   beast-journal.html (expeditions, passport stamps, photo walls), beast-sightings.html (creatures by age)
   and the "postcard from the field" on the home page. Pages are generated by beasts_journal.py.
   ========================================================= */

.jr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 26px;
  background: #140f0a;
  border: 1px solid #463828;
  border-radius: 10px;
}

.jr-stats .stat b {
  color: var(--bst-gold);
  font-size: 30px;
}

.jr-h {
  margin: 0 0 2px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
}

.jr-sub {
  margin: 0 0 14px;
  color: var(--bst-muted);
  font-family: var(--f-sub);
  font-style: italic;
  text-align: center;
}

/* ---- the passport: a page of rubber stamps ---- */
.passport {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
  margin: 0 0 34px;
  padding: 22px 14px;
  background:
    repeating-linear-gradient(0deg, rgba(239, 230, 210, 0.035) 0 1px, transparent 1px 26px),
    radial-gradient(ellipse at 30% 20%, #2a2016 0%, #18120c 70%);
  border: 1px solid #463828;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

body.beast-site .passport a.stamp,
body.beast-site .passport a.stamp:visited {
  --h: #e2c06a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 136px;
  min-height: 112px;
  padding: 10px 8px;
  color: var(--h);
  text-align: center;
  text-decoration: none;
  border: 2px dashed var(--h);
  border-radius: 14px;
  outline: 3px double color-mix(in srgb, var(--h) 55%, transparent);
  outline-offset: 3px;
  transform: rotate(var(--r, 0deg));
  opacity: 0.9;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

body.beast-site .passport a.stamp:hover,
body.beast-site .passport a.stamp:focus {
  color: var(--h);
  background: color-mix(in srgb, var(--h) 14%, transparent);
  opacity: 1;
  transform: rotate(0deg) scale(1.07);
}

.stamp .st-place {
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stamp b {
  margin: 4px 0;
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1.15;
}

.stamp .st-date,
.stamp .st-n {
  font-family: var(--f-sub);
  font-size: 11px;
  font-style: italic;
}

.stamp .st-n {
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid color-mix(in srgb, var(--h) 50%, transparent);
}

/* ---- one expedition ---- */
.trip {
  --h: #e2c06a;
  position: relative;
  margin: 0 0 30px;
  padding: 18px 18px 8px;
  background: #17110b;
  border: 1px solid #463828;
  border-top: 4px solid var(--h);
  border-radius: 10px;
  scroll-margin-top: 12px;
}

.trip.flash {
  animation: trip-flash 1.4s ease-out;
}

@keyframes trip-flash {
  0% { box-shadow: 0 0 0 4px var(--h); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.trip-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.trip-head h2 {
  margin: 0;
  color: var(--h);
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}

.trip-where {
  margin: 4px 0 0;
  color: var(--bst-muted);
  font-family: var(--f-sub);
  font-size: 15px;
  font-style: italic;
}

.trip-stamp {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: var(--h);
  text-align: center;
  border: 2px solid var(--h);
  border-radius: 50%;
  outline: 1px solid var(--h);
  outline-offset: -7px;
  transform: rotate(var(--r, 0deg));
  opacity: 0.85;
}

.trip-stamp span {
  max-width: 64px;
  font-family: var(--f-pixel);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.trip-stamp b {
  font-family: var(--f-display);
  font-size: 17px;
}

.trip-note {
  max-width: 62em;
  margin: 0 0 12px;
  color: #e6dece;
  font-family: var(--f-sub);
  font-size: 17px;
  line-height: 1.5;
}

.trip-note::first-letter {
  float: left;
  margin: 4px 6px 0 0;
  color: var(--h);
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 0.8;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 14px;
  font-size: 13px;
}

.age-chip {
  padding: 2px 9px;
  color: var(--h);
  border: 1px solid var(--h);
  border-radius: 999px;
  font-size: 12px;
}

.trip-crit {
  color: var(--bst-muted);
}

/* ---- photo walls ---- */
.trip-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}

.jr-ph {
  margin: 0;
  background: #0c0a07;
  border: 1px solid #3a2e21;
  border-radius: 6px;
  overflow: hidden;
}

.jr-ph a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0c0a07;
}

.jr-ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
  filter: sepia(0.12);
}

.jr-ph a:hover img,
.jr-ph a:focus img {
  transform: scale(1.06);
  filter: none;
}

.jr-ph figcaption {
  padding: 6px 8px 7px;
  font-size: 12px;
  line-height: 1.3;
}

.jr-ph figcaption b {
  display: block;
  color: #efe6d2;
  font-weight: 600;
}

.jr-ph figcaption i {
  color: var(--bst-muted);
  font-family: var(--f-sub);
}

.jr-ph.hero {
  grid-column: span 2;
  grid-row: span 2;
}

.jr-ph.hero a {
  aspect-ratio: auto;
  height: calc(100% - 46px);
  min-height: 260px;
}

.trip-more {
  margin: 12px 0 0;
}

.trip-more summary {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  color: var(--h);
  border: 1px solid var(--h);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.trip-more summary::-webkit-details-marker {
  display: none;
}

.trip-more[open] summary {
  opacity: 0.6;
}

.trip-top {
  margin: 10px 0 4px;
  font-size: 12px;
  text-align: right;
}

.jr-credit {
  margin: 26px 0 8px;
  color: var(--bst-muted);
  font-family: var(--f-sub);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* ---- Seen in the Wild ---- */
.sg-age {
  --h: #e2c06a;
  margin: 24px 0 30px;
  scroll-margin-top: 12px;
}

.sg-range {
  color: var(--h);
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.sg-age h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  border-bottom: 1px solid color-mix(in srgb, var(--h) 60%, transparent);
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.specimen {
  display: flex;
  flex-direction: column;
  background: #17110b;
  border: 1px solid #463828;
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: 12px;
}

.specimen:target {
  border-color: var(--h);
  box-shadow: 0 0 0 2px var(--h);
}

.specimen .jr-ph {
  border: 0;
  border-bottom: 1px solid #3a2e21;
  border-radius: 0;
}

.specimen .jr-ph a {
  aspect-ratio: 4 / 3;
}

.sp-body {
  position: relative;
  padding: 10px 14px 12px;
}

.sp-body h3 {
  margin: 0;
  color: var(--h);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
}

.sp-year {
  margin: 2px 0 6px;
  color: var(--bst-muted);
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.sp-note {
  margin: 0 0 8px;
  font-family: var(--f-sub);
  font-size: 15px;
  line-height: 1.4;
}

.sp-seen {
  margin: 0 0 8px;
  color: var(--bst-muted);
  font-size: 12.5px;
}

.sp-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sp-strip a {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #3a2e21;
  border-radius: 4px;
}

.sp-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-count {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--bst-muted);
  font-size: 11px;
}

/* ---- home page: a postcard from the field ---- */
.postcard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin: 8px 0 30px;
}

.postcard-row[hidden] {
  display: none;
}

.postcard {
  --tilt: -1.8deg;
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  color: #3a2c1c;
  background: #f1e6cc;
  background-image: radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.5), transparent 60%);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  transform: rotate(var(--tilt));
  transition: transform 300ms ease;
}

.postcard:hover {
  transform: rotate(0deg);
}

.postcard .pc-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
  border: 1px solid #cdbb94;
}

.postcard .pc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postcard figcaption {
  padding: 10px 70px 0 4px;
  font-family: var(--f-sub);
  line-height: 1.25;
}

.pc-greet {
  display: block;
  font-size: 13px;
  font-style: italic;
}

.pc-place {
  display: block;
  color: #8a2d22;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pc-cap {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.pc-stamp {
  --h: #b8862f;
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 64px;
  padding: 3px;
  color: var(--h);
  font-family: var(--f-pixel);
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  background: #fbf5e6;
  border: 2px dotted var(--h);
}

.pc-postmark {
  position: absolute;
  right: 50px;
  bottom: 54px;
  padding: 3px 8px;
  color: rgba(80, 60, 40, 0.55);
  font-family: var(--f-pixel);
  font-size: 10px;
  text-transform: uppercase;
  border: 2px solid rgba(80, 60, 40, 0.4);
  border-radius: 50%;
  transform: rotate(-14deg);
  white-space: nowrap;
}

.postcard-text h2 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 400;
}

.postcard-text p {
  margin: 0 0 12px;
  color: #dcd7d1;
  font-size: 15px;
  line-height: 1.5;
}

body.beast-site button.bst-btn {
  cursor: pointer;
  font: inherit;
}

/* ---- creatures first (2026-10-14): dossiers on Seen in the Wild, the cast on each expedition,
        DiLo's photos inside the creature lightbox, and a "seen in the wild" mark on creature cards ---- */
.ds-list {
  display: grid;
  gap: 18px;
}

.dossier {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #17110b;
  border: 1px solid #463828;
  border-left: 4px solid var(--h);
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: 12px;
}

.dossier:target {
  box-shadow: 0 0 0 2px var(--h);
}

.ds-portrait {
  display: block;
  aspect-ratio: 16 / 9;
  align-self: start;
  background: #0c0a07;
}

.ds-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-body {
  padding: 14px 18px 14px;
}

.ds-body h3 {
  margin: 0;
  color: var(--h);
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.ds-facts {
  margin: 6px 0 10px;
  color: var(--bst-muted);
  font-size: 13px;
}

.ds-facts b {
  color: var(--bst-ink);
  font-family: var(--f-pixel);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.ds-lore {
  margin: 0 0 12px;
  color: #ece4d2;
  font-family: var(--f-sub);
  font-size: 16.5px;
  line-height: 1.45;
}

.ds-seen {
  padding-top: 9px;
  border-top: 1px dashed #463828;
}

.ds-seen-h {
  display: block;
  margin-bottom: 6px;
  color: var(--bst-muted);
  font-family: var(--f-pixel);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-seen .sp-strip a {
  width: 46px;
  height: 46px;
}

.ds-seen .sp-seen {
  margin: 7px 0 0;
}

/* the cast of an expedition */
.cast {
  margin: 0 0 12px;
}

.cast-h {
  display: block;
  margin-bottom: 6px;
  color: var(--bst-muted);
  font-family: var(--f-pixel);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.beast-site a.cast-card,
body.beast-site a.cast-card:visited {
  display: flex;
  flex-direction: column;
  width: 148px;
  color: var(--bst-ink);
  text-decoration: none;
  background: #0f0b07;
  border: 1px solid #463828;
  border-top: 3px solid var(--h);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

body.beast-site a.cast-card:hover,
body.beast-site a.cast-card:focus {
  color: var(--h);
  border-color: var(--h);
  transform: translateY(-2px);
}

.cast-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cast-card b {
  padding: 5px 8px 0;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
}

.cast-card i {
  padding: 1px 8px 6px;
  color: var(--bst-muted);
  font-size: 11px;
}

/* DiLo's photos inside the creature lightbox */
.game-lb-seen {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #463828;
}

.game-lb-seen[hidden] {
  display: none;
}

.game-lb-seen-h {
  margin-bottom: 6px;
  color: var(--bst-muted);
  font-size: 12px;
}

.game-lb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.game-lb .game-lb-strip button {
  position: static;
  z-index: auto;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  background: #0c0a07;
  border: 2px solid #463828;
  border-radius: 4px;
  cursor: pointer;
}

.game-lb .game-lb-strip button.on {
  border-color: var(--bst-gold);
}

.game-lb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-lb-photocap {
  min-height: 1em;
  margin: 5px 0 0;
  color: var(--bst-muted);
  font-family: var(--f-sub);
  font-size: 13px;
  font-style: italic;
}

.gcard-seen {
  display: inline-block;
  margin-top: 4px;
  color: var(--bst-gold);
  font-size: 11px;
}

@media (max-width: 760px) {
  .jr-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jr-stats .stat:nth-child(3) {
    border-left: 0;
  }

  .jr-stats .stat:nth-child(n + 3) {
    border-top: 1px solid #463828;
  }

  body.beast-site .passport a.stamp,
  body.beast-site .passport a.stamp:visited {
    width: 118px;
    min-height: 100px;
  }

  .trip {
    padding: 14px 12px 6px;
  }

  .trip-head {
    gap: 12px;
  }

  .trip-stamp {
    width: 66px;
    height: 66px;
  }

  .trip-stamp span {
    max-width: 52px;
    font-size: 8px;
  }

  .trip-head h2 {
    font-size: 20px;
  }

  .trip-note {
    font-size: 15.5px;
  }

  .trip-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .jr-ph.hero a {
    min-height: 0;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .sg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dossier {
    grid-template-columns: minmax(0, 1fr);
  }

  .ds-body h3 {
    font-size: 26px;
  }

  body.beast-site a.cast-card,
  body.beast-site a.cast-card:visited {
    width: calc(50% - 5px);
  }

  .postcard-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Creature name hierarchy shared by all generated entry-title surfaces. */
.creature-title-name { font-family: var(--f-display); font-weight: 700; }
.creature-title-descriptor { font-family: var(--f-display); font-size: 74%; font-weight: 400; }

.cab-top .creature-title-year { font-size: 75%; font-weight: 400; color: #d1bd97; }

/* Compact homepage slideshow; retain full-width controls on narrow screens. */
#heroCab { width: 85%; max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { #heroCab { width: 100%; } }

/* Readable sidebar tagline and creature-index titles — November 7, 2026. */
.brand-coin{font-family:var(--f-display);font-size:14px;line-height:1.35;font-weight:700;color:#e2c06a;letter-spacing:.04em}
.timeline-list li{grid-template-columns:82px minmax(0,1fr);gap:14px}
.timeline-list p.index-games{font-size:20px;line-height:1.6}
.timeline-list .creature-title-descriptor{font-size:80%}
.timeline-list .index-games>span{white-space:normal!important}
.beast-site .nav-frame{height:460px}
@media(max-width:600px){.timeline-list p.index-games{font-size:18px}.timeline-list li{grid-template-columns:74px minmax(0,1fr);gap:10px}}

/* Field Journal: destination overview, focused expeditions and featured pieces. */
.journal-destinations{margin:16px 0;padding:12px;border:1px solid #665434;border-radius:8px}
.journal-destinations summary{cursor:pointer;color:#e2c06a;font-weight:bold}
.journal-destinations nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:14px 0}
.journal-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;margin:24px 0}
.journal-preview{padding:16px;border:1px solid #665434;border-radius:10px;min-width:0}
.journal-preview .trip-head{display:block}.journal-preview .trip-stamp{display:none}
.journal-preview h2{font-size:22px}.journal-preview .jr-ph{margin:12px 0}
.journal-preview img{width:100%;height:180px;object-fit:contain}
.journal-preview p{font-size:16px;line-height:1.5}
.journal-pager{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid #665434}
.journal-photo-controls{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;align-items:center}
.journal-photo-controls[hidden],.journal-photo-group[hidden]{display:none}
.journal-photo-controls select,.journal-photo-controls button{font:inherit;color:inherit;background:#292117;border:1px solid #80683f;border-radius:5px;padding:7px}
.journal-photo-group{margin:16px 0}.journal-photo-group>summary{cursor:pointer;color:#e2c06a;margin-bottom:12px}

/* Still, decorative source details: never animate or cover text. */
.beast-decoration{display:inline-block;width:82px;height:auto;max-height:92px;object-fit:contain;float:right;margin:0 0 10px 14px;pointer-events:none;animation:none!important;transition:none!important;transform:none!important}
@media(max-width:480px){.beast-decoration{width:58px;max-height:70px}}

/* Main section title companions; individual expedition entries stay undecorated. */
.page-title.decorated-title{position:relative;padding-right:100px;min-height:70px}
.page-title.decorated-title>.beast-decoration{position:absolute;right:0;top:0;float:none;margin:0;width:82px;height:76px;max-height:none;object-fit:contain}
@media(max-width:480px){.page-title.decorated-title{padding-right:66px;min-height:54px}.page-title.decorated-title>.beast-decoration{width:54px;height:54px}}

.page-title.decorated-title>.home-chimera{width:114px;height:82px}.page-title.decorated-title:has(>.home-chimera){padding-right:128px}
@media(max-width:480px){.page-title.decorated-title>.home-chimera{width:74px;height:60px}.page-title.decorated-title:has(>.home-chimera){padding-right:86px}}
