/* ===================== Grand Trash Auto ===================== */
:root {
  --night: #120a1f;
  --night-2: #1c1030;
  --night-3: #2a1745;
  --ink: #fff4e6;
  --muted: #b9a8cf;
  --hot: #ff3d7f;
  --sun: #ffb547;
  --peach: #ff7a59;
  --teal: #39e0d0;
  --violet: #b07cff;
  --line: rgba(255, 244, 230, .12);
  --f-display: 'Anton', Impact, sans-serif;
  --f-marker: 'Permanent Marker', cursive;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --f-body: 'Inter', system-ui, sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
body::after { /* film grain */
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--hot); color: var(--night); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin: 0 0 14px; }
.h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 9vw, 132px); line-height: .9; margin: 0; letter-spacing: .01em; }
.section-head { max-width: 1200px; margin: 0 auto 56px; }
.section-sub { color: var(--muted); max-width: 560px; margin: 18px 0 0; font-size: 17px; }

/* ===================== LOGO ===================== */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; margin: 0; line-height: .82; font-weight: 400; }
.logo span { display: block; text-transform: uppercase; }
.logo-grand, .logo-auto {
  font-family: var(--f-display); color: var(--night); background: var(--ink);
  padding: .06em .22em .02em; letter-spacing: .04em; transform: skewX(-8deg);
}
.logo-trash {
  font-family: var(--f-display); letter-spacing: -.01em; margin: .04em 0 .06em -.04em;
  background: linear-gradient(180deg, #ffe08a 0%, var(--sun) 30%, var(--peach) 55%, var(--hot) 80%, #b02a8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(.04em .04em 0 var(--night)) drop-shadow(.03em .03em 0 #000);
  position: relative;
}
.logo--xl .logo-grand, .logo--xl .logo-auto { font-size: clamp(22px, 4vw, 34px); }
.logo--xl .logo-trash { font-size: clamp(80px, 16vw, 150px); }
.logo--hero .logo-grand, .logo--hero .logo-auto { font-size: clamp(26px, 5vw, 64px); }
.logo--hero .logo-trash { font-size: clamp(110px, 24vw, 330px); }
.logo--hero .logo-auto { align-self: flex-end; }

/* glitch layer */
[data-glitch]::before, [data-glitch]::after {
  content: attr(data-glitch); position: absolute; inset: 0; pointer-events: none;
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0;
}
[data-glitch]::before { background-image: linear-gradient(var(--teal), var(--teal)); }
[data-glitch]::after { background-image: linear-gradient(var(--hot), var(--hot)); }
.is-glitching[data-glitch]::before { opacity: .8; animation: gl1 .35s steps(2) infinite; }
.is-glitching[data-glitch]::after { opacity: .8; animation: gl2 .35s steps(2) infinite; }
@keyframes gl1 { 0%{clip-path:inset(10% 0 60% 0);transform:translate(-6px,2px)} 50%{clip-path:inset(55% 0 20% 0);transform:translate(5px,-2px)} 100%{clip-path:inset(30% 0 45% 0);transform:translate(-3px,1px)} }
@keyframes gl2 { 0%{clip-path:inset(65% 0 5% 0);transform:translate(6px,-1px)} 50%{clip-path:inset(5% 0 75% 0);transform:translate(-5px,2px)} 100%{clip-path:inset(40% 0 35% 0);transform:translate(4px,0)} }

/* ===================== LOADER ===================== */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--night); overflow: hidden; }
.loader-sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 110%, #ff7a59 0%, #ff3d7f 25%, #5b1f7a 55%, var(--night) 80%); opacity: .55; }
.loader-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 var(--gutter); text-align: center; }
.loader-bar { width: min(420px, 80vw); height: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--hot)); }
.loader-tip { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin: 0; min-height: 1.5em; }
.press-start {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; font-size: 22px;
  background: none; border: 0; color: var(--ink); animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===================== CURSOR ===================== */
.cursor { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; z-index: 95; mix-blend-mode: difference; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease); }
.cursor::before, .cursor::after { content: ''; position: absolute; background: #fff; }
.cursor::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.cursor::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.cursor span { position: absolute; inset: 8px; border: 2px solid #fff; border-radius: 50%; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } body, a, button, select, input, label { cursor: none; } }

/* ===================== WASTED ===================== */
#wasted { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; pointer-events: none; opacity: 0; background: rgba(40,0,0,.0); }
#wasted span { font-family: var(--f-display); font-size: clamp(80px, 18vw, 240px); text-transform: uppercase; color: #c8102e; letter-spacing: .02em; text-shadow: 0 6px 0 #000, 0 0 40px rgba(0,0,0,.6); }
#wasted.is-on { animation: wasted 2.4s var(--ease) forwards; }
@keyframes wasted {
  0% { opacity: 0; backdrop-filter: grayscale(0); background: rgba(40,0,0,0); }
  15% { opacity: 1; backdrop-filter: grayscale(1) blur(2px); background: rgba(40,0,0,.35); }
  80% { opacity: 1; backdrop-filter: grayscale(1) blur(2px); background: rgba(40,0,0,.35); }
  100% { opacity: 0; backdrop-filter: grayscale(0); background: rgba(40,0,0,0); }
}

/* ===================== TOP BAR ===================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .3s, backdrop-filter .3s, transform .4s var(--ease);
}
.topbar.is-solid { background: rgba(18,10,31,.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--hot); }
.topbar-logo b { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--ink); letter-spacing: .04em; }
.topbar-logo small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.topbar-nav { display: flex; gap: 4px; margin-left: auto; }
.topbar-nav a { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.topbar-nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.topbar-nav .topbar-cta { color: var(--night); background: var(--sun); }
.topbar-nav .topbar-cta:hover { background: var(--hot); color: var(--night); }
.topbar-hud { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.hud-clock { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; }
.hud-stars { font-size: 14px; color: var(--ink); letter-spacing: 2px; text-shadow: 0 0 1px #000; }
@media (max-width: 900px) { .topbar-nav a:not(.topbar-cta) { display: none; } .topbar-logo small { display: none; } }
@media (max-width: 480px) { .topbar-hud { display: none; } }

/* ===================== HERO ===================== */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -5; background: linear-gradient(180deg, #1a0b2e 0%, #4a1460 30%, #c2306b 55%, #ff7a59 72%, #ffc46b 88%); }
.hero-sun {
  position: absolute; z-index: -4; left: 50%; bottom: 18%; width: min(62vw, 640px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(180deg, #fff1a8 0%, #ffb547 45%, #ff3d7f 100%);
  box-shadow: 0 0 120px 30px rgba(255, 140, 90, .45);
  -webkit-mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89% 93%, transparent 93%);
          mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89% 93%, transparent 93%);
}
.hero-sun i { display: none; }
.hero-grid {
  position: absolute; z-index: -3; left: -50%; right: -50%; bottom: 0; height: 34%;
  background:
    linear-gradient(transparent 0 calc(100% - 2px), rgba(255, 61, 127, .7) calc(100% - 2px)) 0 0 / 100% 40px,
    linear-gradient(90deg, transparent 0 calc(100% - 2px), rgba(255, 61, 127, .7) calc(100% - 2px)) 0 0 / 60px 100%,
    linear-gradient(180deg, #2a0f3d, var(--night));
  transform: perspective(300px) rotateX(60deg); transform-origin: top;
  animation: grid-run 1.6s linear infinite;
}
@keyframes grid-run { to { background-position: 0 40px, 0 0, 0 0; } }
.hero-skyline { position: absolute; z-index: -2; left: 0; right: 0; bottom: 30%; width: 100%; height: 22vh; fill: #1a0b2e; opacity: .92; }
.hero-palms { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.palm { position: absolute; bottom: -4%; fill: #0b0614; }
.palm--l { left: -4%; height: 95%; transform: scaleX(-1); }
.palm--r { right: -6%; height: 110%; }
.palm--s { right: 16%; height: 55%; opacity: .85; }
@media (max-width: 700px) { .palm--s { display: none; } .palm--l { left: -22%; } .palm--r { right: -28%; } }
.hero-content { position: relative; z-index: 2; text-align: left; padding: 0 var(--gutter); width: 100%; max-width: 1200px; }
.hero-eyebrow { color: var(--ink); opacity: .85; }
.hero-sub { font-size: clamp(17px, 2vw, 22px); max-width: 520px; margin: 22px 0 30px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; z-index: 3; }
.scroll-cue i { width: 2px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: cue 1.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  font-family: var(--f-display); font-size: 18px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 0; transform: skewX(-8deg); transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn--hot { background: var(--hot); border-color: var(--hot); color: var(--night); box-shadow: 6px 6px 0 var(--night); }
.btn--hot:hover { transform: skewX(-8deg) translate(-3px, -3px); box-shadow: 9px 9px 0 var(--night); }
.btn--ghost { background: rgba(18,10,31,.35); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--ink); color: var(--night); }
.btn--block { width: 100%; }

/* ===================== TICKER ===================== */
.ticker { background: var(--sun); color: var(--night); overflow: hidden; border-block: 3px solid var(--night); transform: rotate(-1.5deg) scale(1.03); position: relative; z-index: 5; margin-top: -24px; }
.ticker-track { display: flex; width: max-content; padding: 12px 0; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 0 22px; font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.ticker-item em { font-style: normal; font-family: var(--f-mono); font-size: 12px; background: var(--night); color: var(--sun); padding: 3px 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===================== STATS ===================== */
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--night); padding: 34px 26px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 1; background: linear-gradient(180deg, var(--ink), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-quote { max-width: 1200px; margin: 80px auto 0; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 5vw, 68px); line-height: 1.02; }
.stats-quote .w { display: inline-block; opacity: .14; transition: none; }

/* ===================== LINEUP ===================== */
.lineup { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.lineup-wall {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 0 0 56px;
  background: repeating-linear-gradient(180deg, transparent 0 59px, rgba(255,244,230,.14) 59px 60px), #1a1029;
  border: 1px solid var(--line); overflow: hidden;
}
.lineup-ruler { position: absolute; left: 0; top: 0; bottom: 0; width: 48px; display: flex; flex-direction: column; justify-content: space-around; border-right: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: center; }
.lineup-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; padding: 0 16px; }
.suspect { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; }
.suspect-fig { width: 100%; display: grid; place-items: end center; transition: transform .35s var(--ease), filter .35s; filter: grayscale(.4) brightness(.85); }
.suspect:hover .suspect-fig, .suspect:focus-visible .suspect-fig { transform: translateY(-10px); filter: none; }
.suspect-fig svg { width: 80%; height: auto; }
.suspect-board { width: 100%; background: var(--ink); color: var(--night); padding: 10px 8px 12px; margin-top: -4px; position: relative; }
.suspect-board b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; }
.suspect-board small { display: block; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.suspect-board p { margin: 6px 0 0; font-size: 12px; font-weight: 600; line-height: 1.25; }
.suspect-stars { color: var(--hot); letter-spacing: 1px; font-size: 13px; }
@media (max-width: 800px) {
  .lineup-wall { padding-left: 0; overflow-x: auto; }
  .lineup-ruler { display: none; }
  .lineup-row { grid-template-columns: repeat(5, 180px); }
}

/* ===================== DISTRICTS (horizontal) ===================== */
.districts { position: relative; background: var(--night-2); }
.districts-pin { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.districts-head { flex: 0 0 auto; width: min(460px, 80vw); padding: 0 var(--gutter); position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, var(--night-2) 82%, transparent); }
.districts-track { display: flex; gap: 28px; padding-right: var(--gutter); will-change: transform; position: relative; z-index: 1; }
.postcard {
  flex: 0 0 auto; width: clamp(260px, 30vw, 380px); aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  border: 8px solid var(--ink); background: var(--c, var(--hot)); color: var(--night); text-decoration: none;
  transform: rotate(var(--rot, 0deg)); transition: transform .4s var(--ease), box-shadow .4s;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
}
.postcard:hover { transform: rotate(0deg) translateY(-10px) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.postcard::before { /* sunset stripe art */
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.7) 0 22%, transparent 22.5%),
              repeating-linear-gradient(180deg, transparent 0 14px, rgba(18,10,31,.18) 14px 18px);
}
.postcard > * { position: relative; z-index: 1; }
.postcard-greet { font-family: var(--f-marker); font-size: 22px; transform: rotate(-4deg); }
.postcard-name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(38px, 4.2vw, 54px); line-height: .9; margin: 0; color: var(--ink); overflow-wrap: anywhere; -webkit-text-stroke: 2px var(--night); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--night); }
.postcard-meta { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.postcard-meta b { font-family: var(--f-display); font-weight: 400; font-size: 54px; line-height: .8; }
.postcard-icon { position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; z-index: 1; }
.postcard-icon svg { width: 100%; height: 100%; }
@media (max-width: 800px) {
  .districts-pin { height: auto; flex-direction: column; align-items: stretch; padding: 100px 0; gap: 40px; }
  .districts-track { overflow-x: auto; padding: 10px var(--gutter) 30px; scroll-snap-type: x mandatory; }
  .postcard { scroll-snap-align: center; }
}

/* ===================== DATABASE ===================== */
.database { background: var(--night); }
.filters { max-width: 1200px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 64px; z-index: 10; padding: 16px 0; background: linear-gradient(var(--night) 80%, transparent); }
.search { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); padding: 0 16px; height: 58px; background: var(--night-2); transition: border-color .2s; }
.search:focus-within { border-color: var(--hot); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 17px var(--f-body); }
.search input::placeholder { color: var(--muted); }
.search kbd { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line); padding: 2px 8px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--line); background: transparent; border-radius: 999px; color: var(--muted); transition: all .2s; display: inline-flex; gap: 8px; align-items: center; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--night); border-color: var(--ink); }
.filter-row--selects { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.select { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.select select { appearance: none; background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff4e6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); color: var(--ink); font: 500 14px var(--f-body); padding: 10px 36px 10px 12px; min-width: 150px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--night-3); position: relative; transition: background .2s; margin: 0; }
.toggle input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--teal); }
.toggle input:checked::after { transform: translateX(16px); }
.results-count { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 700px) { .filters { position: static; } .select { flex: 1 1 140px; } .select select { min-width: 0; width: 100%; } }

.bug-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .bug-grid { grid-template-columns: 1fr; } }
.bug {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; text-align: left;
  background: linear-gradient(160deg, var(--night-2), #170c27); border: 1px solid var(--line); color: var(--ink);
  transform-style: preserve-3d; transition: border-color .25s, box-shadow .25s; overflow: hidden;
}
.bug::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.bug::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 18%, transparent), transparent 40%); opacity: 0; transition: opacity .3s; }
.bug:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.bug:hover::after { opacity: 1; }
.bug-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bug-cat { color: var(--c); }
.bug-title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0; letter-spacing: .01em; }
.bug-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bug-stars { font-size: 18px; letter-spacing: 2px; color: var(--ink); }
.bug-stars .off { opacity: .2; }
.bug-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bug-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill--status-Patched { color: var(--teal); border-color: var(--teal); }
.pill--status-Confirmed { color: var(--hot); border-color: var(--hot); }
.pill--status-Investigating { color: var(--sun); border-color: var(--sun); }
.pill--src { color: var(--night); background: var(--teal); border-color: var(--teal); }
.pill--sample { color: var(--muted); border-style: dashed; }
.pill--mine { color: var(--night); background: var(--sun); border-color: var(--sun); }
.vote { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; background: transparent; border: 1px solid var(--line); padding: 6px 10px; transition: all .2s; }
.vote:hover { border-color: var(--ink); }
.vote[aria-pressed="true"] { background: var(--hot); color: var(--night); border-color: var(--hot); }
.vote.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }
.empty { max-width: 1200px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.empty b { font-family: var(--f-display); font-weight: 400; font-size: 48px; text-transform: uppercase; }
.empty span { color: var(--muted); }

/* ===================== PATCHES ===================== */
.patches { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.timeline { max-width: 900px; margin: 0 auto; position: relative; padding-left: 48px; }
.timeline-line { position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: var(--line); }
.timeline-line i { display: block; width: 100%; height: 0; background: linear-gradient(var(--sun), var(--hot)); }
.patch { position: relative; padding: 0 0 56px; }
.patch::before { content: ''; position: absolute; left: -43px; top: 10px; width: 17px; height: 17px; border-radius: 50%; background: var(--night); border: 3px solid var(--hot); }
.patch b { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1; display: block; text-transform: uppercase; }
.patch small { font-family: var(--f-mono); color: var(--sun); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.patch p { color: var(--muted); font-size: 18px; margin: 8px 0 0; max-width: 520px; }

/* ===================== REPORT ===================== */
.report { background: var(--night-2); }
.report-card { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.report-copy p { color: var(--muted); font-size: 18px; max-width: 440px; }
.report-rules { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.report-rules li { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.report-rules li::before { content: '★'; color: var(--hot); }
.report-form { background: var(--night); border: 1px solid var(--line); padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; box-shadow: 14px 14px 0 var(--hot); }
.report-form label { display: flex; flex-direction: column; gap: 6px; }
.report-form label > span, .star-pick > span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.report-form input, .report-form textarea, .report-form select { background: var(--night-2); border: 1px solid var(--line); color: var(--ink); font: 15px var(--f-body); padding: 12px; outline: 0; resize: vertical; appearance: none; }
.report-form input:focus, .report-form textarea:focus, .report-form select:focus { border-color: var(--sun); }
.report-form .is-invalid { border-color: var(--hot); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.star-pick { display: flex; flex-direction: column; gap: 6px; }
#starPick { display: flex; gap: 4px; }
#starPick button { background: none; border: 0; font-size: 30px; line-height: 1; padding: 0 2px; color: var(--ink); opacity: .25; transition: opacity .15s, transform .15s; }
#starPick button.on { opacity: 1; color: var(--sun); }
#starPick button:hover { transform: scale(1.15); }
.form-msg { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--teal); min-height: 1.4em; }
@media (max-width: 860px) { .report-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-2 { grid-template-columns: 1fr; } }

/* ===================== FOOTER ===================== */
.footer { padding: 60px var(--gutter) 40px; background: var(--night); overflow: hidden; border-top: 1px solid var(--line); }
.footer-big { font-family: var(--f-display); text-transform: uppercase; font-size: 15.5vw; line-height: .85; white-space: nowrap; background: linear-gradient(180deg, var(--hot), var(--sun) 60%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; margin-left: -.03em; }
.footer-row { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; margin-top: 30px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.footer-row p { margin: 0; max-width: 560px; }

/* ===================== MODAL ===================== */
.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(720px, calc(100vw - 32px)); width: 100%; max-height: calc(100svh - 40px); overflow: visible; }
.modal::backdrop { background: rgba(10, 4, 18, .75); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) rotate(-2deg) scale(.96); } }
.modal-file {
  background: #f3e6cc; color: #241a10; padding: clamp(22px, 4vw, 40px); position: relative; max-height: calc(100svh - 40px); overflow: auto;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(36,26,16,.08) 31px 32px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); font-family: var(--f-mono);
}
.modal-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hot); color: var(--night); font-weight: 700; font-size: 16px; z-index: 2; }
.file-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #241a10; padding-bottom: 12px; margin-bottom: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; flex-wrap: wrap; }
.file-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: .95; text-transform: uppercase; margin: 0 0 12px; }
.file-stamp { position: absolute; right: 30px; bottom: 30px; font-family: var(--f-display); font-size: 30px; text-transform: uppercase; color: #c8102e; border: 4px solid #c8102e; padding: 2px 12px; transform: rotate(12deg); opacity: .8; mix-blend-mode: multiply; pointer-events: none; }
.file-stamp.is-patched { color: #0f7a6e; border-color: #0f7a6e; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; font-size: 12px; }
.file-grid div { border: 1px dashed rgba(36,26,16,.4); padding: 8px 10px; }
.file-grid small { display: block; text-transform: uppercase; opacity: .6; font-size: 10px; letter-spacing: .1em; }
.file-grid b { font-size: 14px; }
.file-sec { margin: 18px 0 0; }
.file-sec h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.file-sec p { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.5; }
.file-src { display: inline-block; margin-top: 18px; font-size: 13px; color: #241a10; }
.file-note { margin-top: 18px; font-size: 11px; opacity: .6; text-transform: uppercase; }

/* ===================== MOTION SAFETY ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stats-quote .w { opacity: 1 !important; }
}
