@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #11131d;
  --panel: #1c1e2b;
  --strong: #f3eede;
  --text: #d4d2dd;
  --muted: #afadbf;
  --mint: #bde8b9;
  --lavender: #b9ace8;
  --line: #3a3c4c;
  --heading: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.62 var(--body); }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: var(--strong); }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--strong); font-family: var(--heading); line-height: .98; }
h2 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
h3 { font-size: 1.72rem; }
h4 { font-size: 1.5rem; }
p { margin: .6rem 0 0; }
figure { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(1320px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 10px; background: var(--bg); }
.site-header { background: #131520; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 13px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--strong); font: 700 1.58rem/.9 var(--heading); text-decoration: none; }
.brand img { flex: none; object-fit: cover; border-radius: 7px; background: #232538; }
.brand-accent { display: block; color: var(--mint); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-header nav a, .site-footer nav a { font-weight: 600; font-size: .88rem; color: var(--text); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--mint); }
.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg,#11131d 10%,#11131df7 27%,#11131d55 58%,#11131d26 100%),
    linear-gradient(0deg,#11131d 0%,transparent 33%), url("../images/deadlock/city-heroes.webp") right 42% / auto 112% no-repeat;
}
.hero-inner { padding-block: clamp(34px, 4.1vw, 58px) clamp(32px, 3.4vw, 48px); }
.eyebrow { color: var(--mint); font-size: .73rem; line-height: 1.4; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .8rem; }
.eyebrow > span { display: inline-block; width: 8px; height: 8px; margin-inline-end: 5px; border-radius: 50%; background: var(--mint); }
.hero h1 { font-size: clamp(5.1rem, 7.5vw, 7.1rem); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; line-height: .82; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lead { max-width: 450px; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 15px; border-radius: 6px; border: 1px solid var(--line); color: var(--strong); font-size: .87rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--mint); color: #171c21; border-color: var(--mint); }
.primary:hover { color: #171c21; background: #d1f4ca; }
.secondary { background: #1c1e2bea; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .79rem; }
.section { padding-block: clamp(34px, 5vw, 66px); }
#roster { padding-top: clamp(28px, 3.4vw, 46px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-note { max-width: 390px; color: var(--muted); font-size: .88rem; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 24px 14px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.search:focus-within { border-color: var(--mint); }
.search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { min-height: 42px; width: 195px; min-width: 0; background: transparent; border: 0; color: var(--strong); font-size: .87rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .compare button, .pair { min-height: 38px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); font-weight: 600; font-size: .78rem; }
.filters button[aria-pressed="true"] { color: #171c21; background: var(--mint); border-color: var(--mint); }
.compare button:hover, .pair:hover { border-color: var(--mint); }
.filters button[aria-pressed="false"]:hover { border-color: var(--mint); color: var(--mint); }
.count { margin: 0 0 0 auto; color: var(--muted); font-size: .8rem; }
.compare { border: 1px solid var(--line); background: #171926; padding: 0 13px; border-radius: 8px; margin-bottom: 14px; }
.compare[open] { padding-bottom: 13px; }
.compare > summary { min-height: 44px; padding-block: 8px; cursor: pointer; font-size: .86rem; color: var(--strong); }
.compare > summary::marker { color: var(--mint); }
.compare > summary span { margin-inline-start: 9px; color: var(--muted); }
.compare[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 9px; }
.compare-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.compare-head p { font-size: .83rem; color: var(--muted); margin-top: 4px; }
.compare-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-picks select { min-height: 38px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: .78rem; }
.compare-grid, .guide-grid { display: grid; gap: 12px; margin-top: 16px; }
.compare-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.compare-grid article, .guide-grid article, .practice { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 16px; }
.compare-grid p:last-child { font-size: .87rem; }
.hero-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hero-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); scroll-margin-block: 18px; }
.hero-card:target, .hero-card:has(button[aria-pressed="true"]) { border-color: var(--mint); }
.portrait { height: clamp(115px, 12vw, 175px); overflow: hidden; background: radial-gradient(ellipse at bottom, #47415a, #262638 64%, #202232); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.card-info { padding: 12px; }
.role { color: var(--lavender); font-size: .66rem; text-transform: uppercase; letter-spacing: .085em; font-weight: 700; margin: 0 0 5px; }
.role[data-playstyle="Support"] { color: var(--mint); }
.role[data-playstyle="Frontline"] { color: #ffc898; }
.role[data-playstyle="Ranged"] { color: #b0d8f3; }
.role[data-playstyle="Skirmish"] { color: #ffc1cd; }
.hero-focus { font-size: .79rem; line-height: 1.48; color: var(--muted); margin-top: 8px; }
.hero-card .compare-button { align-self: flex-start; margin: auto 11px 10px; min-height: 44px; padding: 4px 10px; color: var(--strong); background: #151723; border: 1px solid var(--line); border-radius: 6px; font-size: .79rem; font-weight: 600; }
.compare-button span { margin-inline-end: 3px; }
.hero-card .compare-button:hover, .hero-card .compare-button[aria-pressed="true"] { color: #171c21; background: var(--mint); }
.empty { padding: 18px; border: 1px dashed var(--line); margin-bottom: 16px; color: var(--muted); }
.update-band { border-block: 1px solid var(--line); background: #171926; }
.update-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(22px,4.8vw,70px); align-items: center; }
.media img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.media figcaption, .small { color: var(--muted); font-size: .83rem; margin-top: 6px; }
.release-list { list-style: none; margin: 15px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.release-list li { display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding: 6px 0; font-size: .8rem; }
.release-list li span { color: var(--muted); white-space: nowrap; }
.intro { max-width: 68ch; }
.guide-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.guide-grid article p, .practice p { font-size: .92rem; }
.pair { margin-top: 14px; }
.practice { margin-top: 18px; max-width: 80ch; }
.faq { display: grid; grid-template-columns: minmax(215px, 1fr) 2fr; gap: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 6px 0; font-weight: 600; color: var(--strong); cursor: pointer; }
.faq details p { font-size: .92rem; padding-bottom: 8px; }
.site-footer { background: #131520; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 25px; }
.footer-inner p { color: var(--muted); font-size: .82rem; }
.legal { max-width: 76ch; min-height: 55vh; }
.legal h1 { font-size: clamp(3rem,7vw,5rem); margin-bottom: 20px; }
.legal h2 { font-size: 2rem; margin-top: 24px; }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 741px) and (max-height: 780px) {
  .hero-inner { padding-block: 30px 26px; }
  .hero h1 { font-size: clamp(4.5rem, 6.3vw, 6rem); }
  .hero-lead { max-width: 490px; }
  #roster { padding-top: 25px; }
}
@media (max-width: 740px) {
  .hero { background-size: auto, auto, auto 91%; background-position: center, center, 72% top; }
  .hero h1 { font-size: clamp(4rem, 12vw, 6rem); }
  .hero-lead { max-width: 34ch; }
  .section-head { display: block; }
  .update-grid, .guide-grid, .faq { grid-template-columns: 1fr; }
  .count { margin: 0; }
  .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .site-header nav { gap: 6px 11px; justify-content: flex-end; }
  .site-header nav a { font-size: .76rem; }
  .brand { font-size: 1.27rem; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .hero {
    background-image: linear-gradient(90deg,#11131df9 0%,#11131db3 55%,#11131d64 100%),
      linear-gradient(0deg,#11131d 4%,transparent 68%), url("../images/deadlock/city-heroes.webp");
    background-position: center, center, 58% top;
  }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hero-actions { gap: 6px; }
  .hero-actions .button { padding-inline: 10px; gap: 7px; font-size: .8rem; }
  .hero-note { margin-top: 12px; }
  .controls { align-items: start; }
  .search, .search input { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
