:root {
  --black: #000000;
  --coal: #161616;
  --ash: #2b2b2b;
  --smoke: #4a4a4a;
  --fog: #8f8f8f;
  --bone: #d4d2cc;
  --paper: #ecebe7;
  --blood: #9a0000;     /* backgrounds, borders */
  --wound: #ff3d3d;     /* red text on black (AA contrast) */

  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
  --ui: Verdana, Tahoma, Geneva, sans-serif;

  --bevel-light: #6a6a6a;
  --bevel-dark: #0c0c0c;
  --gap: 1.25rem;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  color: var(--bone);
  font: 0.9375rem/1.6 var(--ui);
  background-color: var(--black);
  /* faint CRT scanlines */
  background-image: repeating-linear-gradient(
    0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
}

a { color: var(--wound); }
a:visited { color: #d98080; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px dashed #fff;
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ---------- page frame ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  border-left: 3px ridge var(--smoke);
  border-right: 3px ridge var(--smoke);
  background: var(--coal);
  min-height: 100vh;
}

/* ---------- franchise title ---------- */

.franchise-head {
  margin: 0 0 var(--gap);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 130%, rgba(154,0,0,.5), transparent 70%), var(--black);
  border: 2px inset var(--bevel-light);
}

.franchise-title {
  margin: 0;
  /* sized to the main column, not the window: 25-char titles fit on one line */
  font: 400 clamp(1.9rem, 7.2cqi, 4.5rem)/0.95 var(--display);
  font-stretch: condensed;
  letter-spacing: 0.01em;
  color: var(--wound);
  text-shadow: 3px 3px 0 var(--black), 5px 5px 0 var(--blood);
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* ---------- masthead ---------- */

.masthead {
  padding: 1.75rem 1.5rem 1.25rem;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(154,0,0,.55), transparent 65%),
    var(--black);
  border-bottom: 3px ridge var(--smoke);
  text-align: center;
}

.logo {
  display: inline-block;
  margin: 0;
  font: 400 clamp(2.4rem, 7vw, 4.75rem)/0.9 var(--display);
  letter-spacing: 0.01em;
  color: var(--wound);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--black), 5px 5px 0 var(--blood);
  transform: skewY(-2deg);
}
.logo:visited { color: var(--wound); }
.logo:hover { color: #fff; }

.logo small {
  display: block;
  font-size: 0.42em;
  color: var(--bone);
  text-shadow: 2px 2px 0 var(--black);
  letter-spacing: 0.3em;
}

.motto {
  margin: 1rem 0 0;
  color: var(--fog);
  font-size: 0.8125rem;
}

/* ---------- ticker (the one motion on the site) ---------- */

.ticker {
  overflow: hidden;
  background: var(--blood);
  color: #fff;
  border-top: 1px solid #c33;
  border-bottom: 1px solid #400;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.ticker p {
  display: inline-block;
  margin: 0;
  padding: .3rem 0 .3rem 100%;
  animation: crawl 38s linear infinite;
}
.ticker:hover p { animation-play-state: paused; }

@keyframes crawl { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker p { animation: none; padding-left: 1rem; white-space: normal; }
  .blink { animation: none !important; }
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  padding: .6rem;
  margin: 0;
  list-style: none;
  background: var(--ash);
  border-bottom: 3px ridge var(--smoke);
}

.btn,
.nav a {
  display: inline-block;
  padding: .35rem .9rem;
  font: 700 0.8125rem var(--ui);
  color: var(--bone);
  text-decoration: none;
  background: linear-gradient(#3a3a3a, #222);
  border: 2px outset var(--bevel-light);
  cursor: pointer;
}
.btn:visited, .nav a:visited { color: var(--bone); }
.btn:hover, .nav a:hover { color: #fff; background: linear-gradient(#4a4a4a, #2a2a2a); }
.btn:active, .nav a:active { border-style: inset; }

.nav a[aria-current="page"] {
  color: #fff;
  background: var(--blood);
  border-style: inset;
  border-color: #600;
}

.btn-buy {
  color: #fff;
  background: linear-gradient(#b40000, #7a0000);
  border-color: #d44;
}
.btn-buy:visited { color: #fff; }
.btn-buy:hover { background: linear-gradient(#d00000, #8a0000); }

.btn-lg { padding: .6rem 1.2rem; font-size: 0.9375rem; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  /* banner row takes its own height, main gets whatever is left */
  grid-template-rows: auto 1fr;
  gap: var(--gap);
  padding: var(--gap);
}
/* sidebar runs the full height on the left, the banner sits above main on the right */
.layout > .sidebar { grid-column: 1; grid-row: 1 / span 2; }
.layout > .ad-slot,
.layout > main { grid-column: 2; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: none; }
  .layout > .sidebar,
  .layout > .ad-slot,
  .layout > main { grid-column: auto; grid-row: auto; }
  .sidebar { order: 2; }
}

main { min-width: 0; }

/* ---------- window panels (signature element) ---------- */

.window {
  background: var(--black);
  border: 2px outset var(--bevel-light);
  margin-bottom: var(--gap);
}

.window-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0;
  padding: .3rem .6rem;
  font: 700 0.8125rem var(--ui);
  color: #fff;
  background: linear-gradient(90deg, var(--blood), #3a0000 80%);
}

/*.window-title::after {*/
/*  content: "";*/
/*  flex: none;*/
/*  width: 11px; height: 11px;*/
/*  background: var(--ash);*/
/*  border: 2px outset var(--bevel-light);*/
/*}*/

.window-body { padding: 1rem; }
.window-body > :first-child { margin-top: 0; }
.window-body > :last-child { margin-bottom: 0; }

/* ---------- sidebar ---------- */

.sidebar .window-body { padding: .6rem .8rem; }

.linklist {
  margin: 0; padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}
.linklist li { padding: .2rem 0; border-bottom: 1px dotted var(--smoke); }
.linklist li:last-child { border-bottom: 0; }
.linklist li::before { content: "\2020"; color: var(--blood); display: inline-block; transform: rotate(180deg); margin-right: .3em; } /* inverted dagger */
.linklist .count { color: var(--fog); }

.legend { margin: 0; font-size: 0.8125rem; }
.legend dt { margin-top: .5rem; }
.legend dt:first-child { margin-top: 0; }
.legend dd { margin: .2rem 0 0; color: var(--fog); }


/* ---------- 125×125 square ---------- */

.square-ads { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.square {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 125px; height: 125px;
  padding: .5rem;
  text-align: center;
  text-decoration: none;
  color: var(--bone);
  font-size: 0.6875rem;
  background: repeating-linear-gradient(-45deg, #1a1a1a 0 6px, #111 6px 12px);
  border: 2px dashed var(--smoke);
}
.square:visited { color: var(--bone); }
.square:hover { border-color: var(--wound); color: #fff; }
.square strong { font: 400 1.5rem/1 var(--display); color: var(--wound); margin-bottom: .3rem; }

/* ---------- 88×31 buttons ---------- */

.buttons {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  margin: 0 0 1rem; padding: 0; list-style: none;
}

.b88 {
  display: flex;
  width: 88px; height: 31px;
  overflow: hidden;
  text-decoration: none;
  font: 700 8px/1.05 Verdana, sans-serif;
  color: #fff;
  background: #000;
  border: 1px solid #777;
  outline: 1px solid #000;
}
.b88:visited { color: #fff; }
.b88:hover { border-color: var(--wound); }

.b88-icon {
  flex: none;
  display: grid; place-items: center;
  width: 29px;
  font: 400 18px/1 var(--display);
  background: var(--blood);
  border-right: 1px solid #000;
}
.b88-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2px;
  font-size: 7px; letter-spacing: -.02em;
  text-transform: none;
}
.b88-big { font: 400 11px/1 var(--display); letter-spacing: 0; }

/* individual button skins */
.b88-dark .b88-icon { background: #000; color: #ffea00; }
.b88-dark { background: linear-gradient(#1c1c1c, #000); }

.b88-nojs .b88-icon { background: #fff; color: var(--blood); }
.b88-nojs { background: linear-gradient(90deg, #3a0000, #000); }
.b88-nojs .b88-big { font-size: 10px; }

.b88-y2k { background: linear-gradient(#003, #000); }
.b88-y2k .b88-icon { background: #000; color: #0f0; font-family: "Courier New", monospace; font-size: 11px; }

.b88-link { background: repeating-linear-gradient(90deg, var(--blood) 0 2px, #600 2px 4px); }
.b88-link .b88-icon { background: #000; color: var(--wound); }
.b88-invert { display: inline-block; transform: rotate(180deg); } /* inverted dagger */

.b88-owl { background: linear-gradient(#2b2b2b, #0c0c0c); }
.b88-owl .b88-icon { background: #2b2b2b; color: #ff3d3d; letter-spacing: -2px; }

@media (prefers-reduced-motion: reduce) {
  .disc, .banner-print, .banner-video::before, .banner-cta, .b88-icon { animation: none; }
}


/* ---------- headings & prose ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--paper);
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 .5rem; }
h2 { font-size: 1.75rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1.25rem; margin: 0 0 .25rem; }

hr {
  border: 0;
  border-top: 3px groove var(--smoke);
  margin: 1.5rem 0;
}

.blink {
  color: #ffea00;
  font-weight: 700;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { visibility: hidden; } }

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--fog);
}
.breadcrumb a { color: var(--fog); }
.breadcrumb a:hover { color: #fff; }

/* ---------- tags ---------- */

.tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin: .5rem 0 0; padding: 0; list-style: none;
}
.tag {
  display: inline-block;
  padding: .05rem .45rem;
  font-size: 0.75rem;
  color: var(--bone);
  text-decoration: none;
  background: var(--ash);
  border: 1px solid var(--smoke);
}
.tag::before { content: "#"; color: var(--wound); }
.tag:visited { color: var(--bone); }
.tag:hover { color: #fff; border-color: var(--wound); }

/* ---------- link-type badges ---------- */

.badge {
  display: inline-block;
  padding: .05rem .4rem;
  font: 700 0.6875rem/1.5 var(--ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid;
}
.badge-aff { color: #fff; background: var(--blood); border-color: #e44; }
.badge-direct { color: var(--bone); background: transparent; border-color: var(--fog); }

/* ---------- movie tiles (VHS box style) ---------- */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.movie-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 2 / 3;
  padding: .75rem;
  color: var(--paper);
  text-decoration: none;
  /* stripes show while the poster loads, or if it fails */
  background: repeating-linear-gradient(135deg, #1d1d1d 0 8px, #181818 8px 16px);
  border: 2px outset var(--bevel-light);
  box-shadow: 4px 4px 0 var(--blood);
}
/* poster and shade sit behind the year/title text */
.movie-tile-poster {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.movie-tile.poster-only::after { content: none; }
.movie-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.9));
}
.movie-tile:visited { color: var(--paper); }
.movie-tile:hover { border-color: var(--wound); box-shadow: 4px 4px 0 var(--wound); }
.movie-tile:hover .movie-tile-title { color: #fff; }

.movie-tile-year {
  align-self: flex-start;
  padding: 0 .35rem;
  font-size: 0.75rem;
  background: var(--blood);
  color: #fff;
}
.movie-tile-title {
  font: 400 1.35rem/1 var(--display);
  color: var(--wound);
}
.movie-tile-count { display: block; margin-top: .35rem; font-size: 0.75rem; color: var(--fog); }

/* ---------- franchise shelf (VHS spines) ---------- */

.shelf {
  --spine-h: 230px;
  --row-gap: 22px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: var(--row-gap) 6px;
  margin: 0; padding: 0 .5rem;
  list-style: none;
  /* a wooden plank under every row */
  background: repeating-linear-gradient(180deg,
    transparent 0 var(--spine-h),
    #3a2412 var(--spine-h) calc(var(--spine-h) + 4px),
    #1c1109 calc(var(--spine-h) + 4px) calc(var(--spine-h) + 12px),
    transparent calc(var(--spine-h) + 12px) calc(var(--spine-h) + var(--row-gap)));
}

.spine {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 54px; height: var(--spine-h);
  padding: .4rem 0;
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 30%, transparent 70%, rgba(0,0,0,.45)), var(--black);
  border: 2px outset var(--bevel-light);
  transition: transform .12s;
}
.spine:visited { color: var(--paper); }
.spine:hover, .spine:focus-visible { transform: translateY(-8px); border-color: var(--wound); color: #fff; }

.spine-title {
  flex: 1;
  margin: .4rem 0;
  overflow: hidden;
  writing-mode: vertical-rl;
  font: 400 1.125rem/1.05 var(--display);
  letter-spacing: .02em;
  text-align: center;
  text-wrap: balance; /* long titles break onto a second line down the spine */
}
.spine-foot { font: 700 0.625rem/1 var(--ui); letter-spacing: .1em; color: var(--fog); }

/* tape skins: the template gives each spine one of skin-0 to skin-7 */
.spine.skin-0 { color: var(--wound); }
.spine.skin-1 { background-color: var(--blood); }
.spine.skin-1 .spine-foot { color: var(--bone); }
.spine.skin-2 { background-color: var(--bone); color: var(--black); }
.spine.skin-2 .spine-foot { color: var(--smoke); }
.spine.skin-3 { background-color: var(--ash); }
.spine.skin-4 { background-color: #2a0a3a; color: var(--wound); }  /* bruise purple */
.spine.skin-4 .spine-foot { color: #b48ac9; }
.spine.skin-5 { background-color: #1d3a10; color: #c8f07a; }       /* swamp green */
.spine.skin-5 .spine-foot { color: #8fae6a; }
.spine.skin-6 { background-color: #a37c00; color: var(--black); }   /* nicotine yellow */
.spine.skin-6 .spine-foot { color: #3a2c00; }
.spine.skin-7 { background-color: #0d1f3a; color: var(--paper); }   /* midnight blue */
.spine.skin-7 .spine-foot { color: #8aa4c9; }

@media (prefers-reduced-motion: reduce) {
  .spine { transition: none; }
}

/* ---------- product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--coal);
  border: 2px outset var(--bevel-light);
}

.art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: .75rem;
  text-align: center;
  font: 400 1.4rem/1 var(--display);
  color: var(--smoke);
  background:
    radial-gradient(circle at 50% 40%, #2a2a2a, #0a0a0a 70%);
  border-bottom: 2px solid var(--black);
}
a.art, a.art:visited { color: var(--smoke); text-decoration: none; }
a.art:hover { color: var(--paper); }
/* product photo fills the art box without cropping, the dark gradient shows around it */
.art { position: relative; overflow: hidden; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-lg { aspect-ratio: 1; font-size: 2.2rem; border: 2px inset var(--bevel-light); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  padding: .75rem;
}
.card-title { margin: 0; font: 700 0.9375rem/1.35 var(--ui); }
.card-title a { color: var(--paper); text-decoration: none; }
.card-title a:hover { color: var(--wound); text-decoration: underline; }
.card-movie { margin: 0; font-size: 0.8125rem; color: var(--fog); }
.card-movie a { color: var(--fog); }

/* where-it's-sold strip: always visible on every card */
.source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px dotted var(--smoke);
  font-size: 0.75rem;
}
.source-store { color: var(--paper); font-weight: 700; }
.source-domain { color: var(--fog); }
.price { margin-left: auto; font-weight: 700; color: #fff; }

/* ---------- 468×60 banner ---------- */

.ad-slot {
  text-align: center;
}
.ad-label {
  display: block;
  margin-bottom: .2rem;
  font-size: 0.625rem;
  color: var(--fog);
  letter-spacing: 0.05em;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: 468px;
  height: 60px;
  margin: 0 auto;
  padding: 0 .6rem;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #fff;
  border: 2px outset var(--bevel-light);
}
.banner:visited { color: #fff; }
.banner:hover { border-color: var(--wound); }

.banner-head {
  font: 400 1.35rem/1 var(--display);
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 #000;
}
.banner-sub { display: block; font-size: 0.6875rem; color: var(--bone); }
.banner-copy { flex: 1; min-width: 0; }

.banner-cta {
  flex: none;
  padding: .2rem .5rem;
  font: 700 0.6875rem var(--ui);
  color: #000;
  background: #ffea00;
  border: 2px outset #fff6a0;
  animation: blink 1s steps(1) infinite;
}


/* record-shop banner: spinning disc */
.banner-vinyl { background: linear-gradient(90deg, #000 40%, #3a0000); }
.disc {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background:
          radial-gradient(circle, #000 0 3px, var(--wound) 3px 11px, #111 11px 12px, #1c1c1c 12px 13px,
          #111 13px 16px, #1c1c1c 16px 17px, #0a0a0a 17px);
  box-shadow: inset 0 0 0 1px #333;
  animation: spin 2.4s linear infinite;
}
.disc::after { /* label highlight so rotation is visible */
  content: ""; display: block; width: 6px; height: 6px; margin: 13px 0 0 20px;
  background: #fff; border-radius: 50%; opacity: .7;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- listings filters (pure CSS via :has) ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0 0 1rem; padding: 0; border: 0;
}
.filters legend { padding: 0; margin-bottom: .4rem; font-size: 0.8125rem; color: var(--fog); }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.filters label {
  padding: .2rem .65rem;
  font-size: 0.8125rem;
  background: var(--ash);
  border: 2px outset var(--bevel-light);
  cursor: pointer;
}
.filters label:hover { color: #fff; }
.filters input:checked + label {
  color: #fff; background: var(--blood); border-style: inset; border-color: #600;
}
.filters input:focus-visible + label { outline: 2px dashed #fff; outline-offset: 2px; }

.results-note { font-size: 0.8125rem; color: var(--fog); margin: 0 0 1rem; }

/* tag filters */
.listing:has(#t-vinyl:checked)       .product-grid .card:not(.t-vinyl),
.listing:has(#t-apparel:checked)     .product-grid .card:not(.t-apparel),
.listing:has(#t-posters:checked)     .product-grid .card:not(.t-posters),
.listing:has(#t-collectibles:checked) .product-grid .card:not(.t-collectibles),
.listing:has(#t-media:checked)       .product-grid .card:not(.t-media),
.listing:has(#t-books:checked)       .product-grid .card:not(.t-books),
/* link-type filters */
.listing:has(#l-aff:checked)         .product-grid .card:not(.l-aff),
.listing:has(#l-direct:checked)      .product-grid .card:not(.l-direct) {
  display: none;
}

/* ---------- movie page header ---------- */

.feature {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
/* stripes stand in when the movie has no poster */
.feature-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: repeating-linear-gradient(135deg, #1d1d1d 0 8px, #181818 8px 16px);
  border: 2px outset var(--bevel-light);
  box-shadow: 4px 4px 0 var(--blood);
}
@media (max-width: 560px) {
  .feature { grid-template-columns: 1fr; }
  .feature-poster { max-width: 180px; }
}

/* ---------- data tables (90s tables, modern spacing) ---------- */

.table-wrap { overflow-x: auto; }

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 2px inset var(--bevel-light);
}
.data th, .data td {
  padding: .5rem .65rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--ash);
}
.data thead th { background: var(--ash); color: var(--paper); }
.data tbody th { width: 34%; color: var(--fog); font-weight: 400; background: var(--coal); }
.data tbody tr:nth-child(even) td { background: #0e0e0e; }

/* ---------- product gallery and lightbox ---------- */

.gallery { display: flex; flex-direction: column; gap: .5rem; }
/* the images are buttons that open popovers, drop the default button look */
.gallery button { font: inherit; color: inherit; cursor: zoom-in; }
.gallery-main { width: 100%; }
.gallery-main:hover,
.gallery-main:focus-visible { border-color: var(--wound); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  background: var(--black);
  border: 2px outset var(--bevel-light);
}
.gallery-thumbs button:hover,
.gallery-thumbs button:focus-visible { border-color: var(--wound); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

.lightbox {
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  padding: .5rem;
  color: var(--paper);
  background: var(--black);
  border: 2px outset var(--bevel-light);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  margin: 0 auto;
  object-fit: contain;
}
.lightbox-close { position: absolute; top: .5rem; right: .5rem; }
.lightbox-count { margin: .4rem 0 0; text-align: center; font-size: 0.8125rem; color: var(--fog); }

.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.25rem; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

.notice {
  padding: .75rem 1rem;
  font-size: 0.8125rem;
  background: #1a0000;
  border: 1px dashed var(--blood);
}
.notice strong { color: var(--wound); }

/* ---------- footer ---------- */

.footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--fog);
  border-top: 3px ridge var(--smoke);
  background: var(--black);
}
.footer p { margin: .4rem 0; }

.counter {
  display: inline-flex;
  gap: 2px;
  margin: .25rem 0;
  padding: 3px;
  background: var(--ash);
  border: 2px inset var(--bevel-light);
}
.counter span {
  width: 1.1em;
  font: 700 1rem/1.4 "Courier New", monospace;
  color: var(--wound);
  background: var(--black);
}

.webring a { margin: 0 .35rem; }

/* ---------- 404 page ---------- */

.lost-head { position: relative; overflow: hidden; }
.lost-code {
  margin: 0;
  font: 400 clamp(4.5rem, 16cqi, 8rem)/0.85 var(--display);
  color: var(--blood);
  text-shadow: 4px 4px 0 var(--black);
  letter-spacing: .04em;
}
.lost-head .franchise-title { transform: skewY(-2deg); }

.lost-quote {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #1a0000;
  border-left: 4px solid var(--blood);
}
.lost-quote blockquote { margin: 0; }
.lost-quote blockquote p {
  margin: 0;
  font: 400 clamp(1.4rem, 3.5vw, 2rem)/1.15 var(--display);
  color: var(--wound);
  text-wrap: balance;
}
.lost-quote figcaption { margin-top: .5rem; font-size: 0.8125rem; color: var(--fog); }
.lost-quote cite { font-style: normal; color: var(--bone); }

.lost-path {
  padding: 0 .3rem;
  font-size: 0.875em;
  color: var(--paper);
  background: var(--ash);
  overflow-wrap: anywhere;
}

.lost-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- coming soon page (static/comingsoon.html) ---------- */

.soon {
  /* fills the screen and centers the content vertically, scrolls normally when taller than the screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh; /* mobile: ignore the collapsing address bar */
  max-width: 760px;
  margin: 0 auto;
  padding: var(--gap);
  container-type: inline-size; /* .franchise-title sizes off cqi */
}
.soon a { overflow-wrap: anywhere; } /* long email address on narrow phones */

@media (max-width: 480px) {
  .soon { padding: 1rem; }
  .soon .window-body { padding: .85rem; }
  .signup .btn { flex: 1 1 100%; } /* full-width button once it drops under the input */
}

/* yellow and black caution tape */
.hazard {
  height: 14px;
  margin: 0 0 var(--gap);
  background: repeating-linear-gradient(-45deg, #ffea00 0 14px, #000 14px 28px);
  border: 2px outset var(--bevel-light);
}
.soon > .hazard:last-child { margin: 0; } /* the last window's margin-bottom already spaces it */

.soon-sign {
  margin: 0 0 .25rem;
  font: 400 clamp(3rem, 12cqi, 5rem)/1 var(--display);
  color: #ffea00;
  text-shadow: 3px 3px 0 var(--black), 5px 5px 0 var(--blood);
}
.soon-head .franchise-title { transform: skewY(-2deg); }
.soon-sub { margin: 1rem 0 0; color: var(--fog); font-size: 0.875rem; }

.signup label { display: block; margin-bottom: .3rem; font-weight: 700; color: var(--paper); font-size: 0.8125rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: .45rem .6rem;
  font: 0.9375rem var(--ui);
  color: var(--paper);
  background: var(--coal);
  border: 2px inset var(--bevel-light);
}
.signup input::placeholder { color: var(--smoke); }
.signup input:focus { border-color: var(--wound); outline: none; }
.signup input:focus-visible { outline: 2px dashed #fff; outline-offset: 2px; }
.signup .btn { flex: none; font-size: 0.875rem; }
.signup-note { margin: .5rem 0 0; font-size: 0.75rem; color: var(--fog); }
.soon-credit { margin: .25rem 0 0; font-size: 0.75rem; color: var(--fog); }
.soon-credit cite { font-style: normal; color: var(--bone); }
