/* Deadpool Hunt Map — unofficial fan site. Red, black, comic texture. No Marvel logos. */
@font-face {
  font-family: "Bangers";
  src: url("fonts/Bangers-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c8102e;
  --red-dark: #6e0818;
  --red-glow: #ff2a47;
  --black: #070708;
  --ink: #121216;
  --panel: #1a1a20;
  --line: #3a3a44;
  --text: #f4f4f6;
  --muted: #b4b4be;
  --gold: #f5c518;
  --have: #2fbf71;
  --want: #ffb020;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .55);
  --display: "Bangers", Impact, "Arial Black", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  background-color: var(--black);
  background-image:
    radial-gradient(circle, rgba(200, 16, 46, .22) 1.15px, transparent 1.25px),
    radial-gradient(circle at 12% -8%, rgba(200, 16, 46, .42), transparent 42%),
    radial-gradient(circle at 108% 8%, rgba(255, 42, 71, .16), transparent 38%);
  background-size: 7px 7px, auto, auto;
}
a { color: var(--red-glow); }
a:hover { color: #fff; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Header + hero */
.site-header {
  border-bottom: 4px solid var(--red);
  background: #000;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(240px, 48vw, 440px);
}
.hero-art {
  display: block;
  width: 100%;
  height: clamp(240px, 48vw, 440px);
  object-fit: cover;
  object-position: center 20%;
}
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(7, 7, 8, .35) 38%, rgba(7, 7, 8, .88) 78%, #070708 100%),
    linear-gradient(90deg, rgba(7, 7, 8, .45), transparent 35%, transparent 70%, rgba(200, 16, 46, .18));
}
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-bottom: 1.4rem;
}
.hero-slash {
  position: absolute;
  top: -12%;
  right: 8%;
  width: 42%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 46%, rgba(200, 16, 46, .22) 47%, rgba(255, 42, 71, .08) 50%, transparent 51%);
  transform: skewX(-18deg);
}
.brand { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(90deg, var(--red) 50%, var(--black) 50%);
  border: 3px solid #000; outline: 2px solid var(--red);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.35rem; letter-spacing: .04em; color: #fff;
  text-shadow: 0 1px 2px #000;
  flex: 0 0 auto;
}
.embed-brand { display: none; align-items: center; gap: .9rem; flex-wrap: wrap; padding: 1rem 0 .4rem; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: .04em;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(200, 16, 46, .45);
}
h1 .accent { color: var(--red-glow); }
.tagline { margin: .45rem 0 0; color: var(--muted); max-width: 70ch; }
.speech-mini {
  display: inline-block;
  margin-top: .65rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: .88rem;
  padding: .35rem .75rem;
  border-radius: 16px 16px 16px 4px;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 var(--red);
}
nav.toc { padding: .85rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
nav.toc a {
  text-decoration: none; color: var(--text); font-size: .9rem;
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
}
nav.toc a:hover { border-color: var(--red); color: #fff; background: var(--red-dark); }

main section { padding: 2rem 0 .5rem; }
h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
  display: flex; align-items: center; gap: .55rem;
}
h2::before {
  content: "";
  width: 14px;
  height: 1.15em;
  background: linear-gradient(160deg, var(--red-glow), var(--red-dark));
  transform: skewX(-22deg);
  border-radius: 2px;
  box-shadow: 3px 0 0 #000;
  flex: 0 0 auto;
}
.lead { color: var(--muted); max-width: 80ch; }

.callout {
  position: relative;
  background: var(--panel);
  border: 3px solid #0a0a0c;
  border-radius: 22px 22px 22px 8px;
  padding: 1rem 1.15rem 1.15rem;
  margin: 1.35rem 0 1.6rem;
  color: var(--text);
  box-shadow: 5px 5px 0 #000, 0 0 0 3px var(--red);
}
.callout::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -16px;
  width: 0; height: 0;
  border: 14px solid transparent;
  border-top-color: var(--panel);
  filter: drop-shadow(3px 4px 0 var(--red));
}
.callout strong { color: var(--red-glow); font-family: var(--display); letter-spacing: .03em; font-size: 1.15rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 1rem 0; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .8rem; cursor: pointer; text-align: left; color: var(--text); font: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.stat:hover, .stat:focus-visible {
  border-color: var(--red); outline: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(200, 16, 46, .28);
}
.stat .n { font-family: var(--display); font-size: 1.85rem; letter-spacing: .03em; color: var(--red-glow); display: block; line-height: 1; }
.stat .l { font-size: .85rem; color: var(--muted); }

/* Controls */
.controls {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 8, .94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.controls .row { display: grid; gap: .6rem; grid-template-columns: 2fr repeat(4, 1fr); }
.controls .row2 { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: center; }
label.field { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input[type="search"], select {
  width: 100%; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--ink); color: var(--text); font: inherit; font-size: 1rem;
}
input[type="search"]:focus, select:focus { outline: 2px solid var(--red); border-color: var(--red); }
.chip-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  border: 1px solid var(--line); background: var(--ink); color: var(--text);
  border-radius: 999px; padding: .4rem .85rem; font: inherit; font-size: .88rem; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.chip[aria-pressed="true"] {
  background: var(--red); border-color: #fff; color: #fff;
  box-shadow: 0 0 0 2px var(--red-dark);
  font-weight: 700;
}
.chip:hover { border-color: var(--red); transform: translateY(-1px); }
.btn {
  border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-size: .9rem;
  border-radius: 8px; padding: .45rem .85rem; cursor: pointer; font-weight: 700;
  letter-spacing: .01em;
}
.btn:hover { background: var(--red-glow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--red); }
.result-count { color: var(--muted); font-size: .9rem; margin-left: auto; }

/* Item list */
.items { display: grid; gap: .6rem; }
.item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; display: grid; gap: .4rem;
  grid-template-columns: 1fr auto;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.item:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: 0 10px 22px rgba(200, 16, 46, .22);
}
.item.is-have { border-left: 4px solid var(--have); }
.item.is-want { border-left: 4px solid var(--want); }
.item h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; }
.tag { padding: .1rem .5rem; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); color: var(--muted); }
.tag.status-Grail {
  background: linear-gradient(180deg, #ffe37a, var(--gold));
  color: #000; border-color: #c9a008; font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 197, 24, .35);
  text-transform: uppercase; letter-spacing: .04em;
}
.tag.status-Key { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }
.tag.status-Notable { color: #fff; border-color: #6b6b78; }
.tag.status-Common { color: var(--muted); }
.item .body { grid-column: 1 / -1; font-size: .93rem; display: grid; gap: .3rem; }
.item .body p { margin: 0; }
.item .label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .35rem; }
.item .value { color: var(--gold); }
.item .tip { color: #d6d6dc; }
.toggles { display: flex; gap: .35rem; align-items: start; }
.tog {
  border: 1px solid var(--line); background: var(--ink); color: var(--muted);
  border-radius: 8px; padding: .3rem .55rem; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap;
}
.tog.have[aria-pressed="true"] { background: var(--have); border-color: var(--have); color: #04140b; font-weight: 700; }
.tog.want[aria-pressed="true"] { background: var(--want); border-color: var(--want); color: #1a1000; font-weight: 700; }
.search-link { font-size: .82rem; }
mark { background: rgba(255, 42, 71, .35); color: #fff; padding: 0 .1em; border-radius: 3px; }
.empty { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.more { display: flex; justify-content: center; margin: 1rem 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}
.gallery figure { margin: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 3px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #000; cursor: zoom-in;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gallery button:hover, .gallery button:focus-visible {
  border-color: var(--red); outline: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(200, 16, 46, .3);
}
.gallery img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption {
  margin-top: .45rem;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .9);
  padding: 1.25rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 82vh;
  border: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.lightbox-cap { color: #fff; text-align: center; margin: .6rem 0 0; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
}

/* Grails + tips */
.grail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.grail {
  background: linear-gradient(135deg, #2a0a10, var(--panel));
  border: 1px solid var(--red-dark);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.grail:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200, 16, 46, .25); }
.grail h3 { margin: 0 0 .25rem; font-size: 1rem; }
.grail p { margin: 0; font-size: .88rem; color: #d6d6dc; }
ul.grail-notes { padding-left: 1.2rem; }
ul.grail-notes li { margin: .35rem 0; }
ol.tips { counter-reset: tip; list-style: none; padding: 0; display: grid; gap: .6rem; }
ol.tips li {
  counter-increment: tip;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem .8rem 3.2rem;
  position: relative;
}
ol.tips li::before {
  content: counter(tip);
  position: absolute; left: .9rem; top: .8rem;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--display);
  font-weight: 400;
  display: grid; place-items: center;
  font-size: 1rem;
}
ol.tips strong { display: block; margin-bottom: .2rem; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; padding: 0; list-style: none; }
.sources a {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .65rem .85rem; text-decoration: none; color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.sources a:hover { border-color: var(--red); transform: translateY(-2px); }
.sources small { display: block; color: var(--muted); }

footer.site-footer { margin-top: 3rem; border-top: 4px solid var(--red); background: #000; color: var(--muted); font-size: .85rem; }
footer.site-footer .wrap { padding: 1.25rem 1rem 2rem; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; border-radius: 50%; width: 46px; height: 46px; padding: 0; font-size: 1.2rem; box-shadow: var(--shadow); display: none; }
.to-top.show { display: block; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--red); color: #fff; padding: .55rem 1rem; border-radius: 8px; box-shadow: var(--shadow); z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.install { display: none; }
.install.show { display: inline-block; }

@media (min-width: 900px) {
  .item { grid-template-columns: minmax(220px, 1.1fr) 2.4fr auto; align-items: start; }
  .item .head { grid-column: 1; }
  .item .body { grid-column: 2; }
  .item .toggles { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .controls { position: static; }
  .controls .row { grid-template-columns: 1fr 1fr; }
  .controls .row label.field:first-child { grid-column: 1 / -1; }
  .result-count { margin-left: 0; width: 100%; }
  .gallery img { height: 220px; }
  .hero, .hero-art { min-height: 220px; height: 220px; }
}
@media print {
  .controls, .toggles, nav.toc, .to-top, .search-link, .hero-art, .gallery, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .item, .grail, ol.tips li { border-color: #999; background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .item, .stat, .chip, .char-card, .grail, .sources a, .gallery button, .gallery img {
    transition: none !important;
  }
  .item:hover, .stat:hover, .char-card:hover, .grail:hover, .sources a:hover, .gallery button:hover, .chip:hover {
    transform: none;
  }
  .gallery button:hover img { transform: none; }
}

/* Embedded mode (?embed=1 or inside an iframe): hide big hero/gallery chrome */
body.embed .hero,
body.embed #wild,
body.embed .speech-mini { display: none; }
body.embed .embed-brand { display: flex; }
body.embed .site-header .tagline,
body.embed nav.toc,
body.embed footer.site-footer .install { display: none; }
body.embed .site-header { border-bottom-width: 3px; }

/* View tabs + character cards */
.view-tabs {
  display: inline-flex; gap: .35rem; margin: 1rem 0; flex-wrap: wrap;
  background: var(--ink);
  border: 2px solid var(--red-dark);
  border-radius: 999px;
  padding: .3rem;
}
.view-tabs .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff inset; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .65rem; }
.char-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; display: grid; gap: .35rem; text-align: left; color: inherit; font: inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.char-card:hover, .char-card:focus-visible {
  border-color: var(--red); outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(200, 16, 46, .22);
}
.char-card h3 { margin: 0; font-size: 1.05rem; }
.char-card .alias { color: var(--muted); font-size: .88rem; margin: 0; }
.char-card p { margin: 0; font-size: .9rem; }
.tag.type-ally { border-color: #2fbf71; }
.tag.type-villain { border-color: var(--red); }
.tag.type-variant { border-color: #7aa2ff; }
.tag.type-family { border-color: #f5c518; }
.tag.type-team { border-color: #c084fc; }
.tag.type-film-only { border-color: #fb923c; }
.tag.type-love { border-color: #fb7185; }
.item-link { margin-top: .3rem; }
#characters-panel[hidden], #items-wrap[hidden] { display: none; }

/* N-SOC v5.0 additions */
.nsoc-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:8px 1rem;background:#06080F;border-bottom:1px solid #232937;font:600 13px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#9AA0AA}
.nsoc-bar a{color:#C9CDD4;text-decoration:none}.nsoc-bar a:hover{color:#fff}
svg.hero-art{display:block;width:100%;height:clamp(240px,48vw,440px)}
.price-note{margin:.6rem 0 0;font-size:.9rem;color:var(--muted)}
.nsoc-foot{margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--line)}
.nsoc-foot a{color:var(--text)}
