/* BurninWeeknd - firelight theme.
   The page sits over a fire just below the screen: its glow flickers, embers rise through the dark (site.js),
   and things heat up when you touch them. Real fire colours only: red, orange, amber, white-hot. */
:root {
  --bg: #0b0806;
  --panel: linear-gradient(180deg, rgba(31, 22, 16, .95), rgba(18, 13, 10, .95));
  --line: rgba(255, 200, 160, .09);
  --line-strong: rgba(255, 200, 160, .17);
  --text: #f6ede4;
  --text-2: #cfc2b5;
  --muted: #95887d;
  --hot: #fff4e2;
  --ember: #ff6a14;
  --amber: #ffa436;
  --gold: #ffd08a;
  --link: #ffb26b;
  --fire: linear-gradient(180deg, #ffc451 0%, #ff7d1c 48%, #e8430d 100%);
  --wire: linear-gradient(90deg, rgba(232, 67, 13, 0), #ff6a14 20%, #ffc451 50%, #ff6a14 80%, rgba(232, 67, 13, 0));
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* condensed grotesque: Bahnschrift on Windows, DIN Condensed on Apple, Roboto Condensed on Android */
  --font-display: Bahnschrift, "DIN Condensed", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .brand-name, .stat-num, .btn, .tab, .chip, .pill, .card-ph, .dl-name, .media-label, .sub-label, .nav a, .admin-tabs a, .footer-links a {
  font-family: var(--font-display); font-stretch: 75%;
}
::selection { background: rgba(255, 106, 20, .42); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b0806; }
::-webkit-scrollbar-thumb { background: #2e2119; border-radius: 999px; border: 3px solid #0b0806; }
::-webkit-scrollbar-thumb:hover { background: #4a3122; }

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.wrap.narrow { width: min(840px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 300; padding: 8px 14px; border-radius: 8px; background: #fff; color: #000; }
.skip:focus { left: 10px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- the fire: a glow from below that flickers, embers drawn on the canvas by site.js ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 45% at 12% -8%, rgba(255, 106, 30, .10), transparent 70%),
              radial-gradient(50% 35% at 92% -6%, rgba(232, 67, 13, .07), transparent 70%);
}
.firelight {
  position: absolute; left: -20%; right: -20%; bottom: -42vh; height: 85vh; will-change: opacity;
  background: radial-gradient(50% 50% at 50% 100%, rgba(255, 128, 34, .46), rgba(255, 78, 12, .22) 36%, rgba(150, 30, 0, .09) 60%, transparent 74%);
  animation: firelight 5.3s linear infinite;
}
.ember-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* in front of everything (but never in the way): sparks and out-of-focus embers */
.spark-canvas { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }
/* firelight never breathes evenly: it dips and flares */
@keyframes firelight {
  0% { opacity: .82; } 6% { opacity: .7; } 9% { opacity: .9; } 17% { opacity: .74; } 23% { opacity: .96; }
  31% { opacity: .69; } 38% { opacity: .87; } 45% { opacity: .63; } 52% { opacity: .93; } 60% { opacity: .76; }
  67% { opacity: 1; } 74% { opacity: .71; } 81% { opacity: .89; } 88% { opacity: .66; } 94% { opacity: .85; } 100% { opacity: .82; }
}
@keyframes flame {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  14% { transform: scale(.97, 1.05) skewX(-2.5deg); }
  29% { transform: scale(1.03, .96) skewX(1.5deg); }
  47% { transform: scale(.98, 1.06) skewX(-1deg); }
  63% { transform: scale(1.02, .97) skewX(2deg); }
  81% { transform: scale(.99, 1.03) skewX(-1.5deg); }
}

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 8, 6, .88); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wire); opacity: .5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 28px; transform-origin: 50% 88%; animation: flame 3.1s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 110, 20, .65)); }
.brand-name { font-weight: 700; font-size: 1.38rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; transition: color .3s, text-shadow .3s; }
.brand:hover .brand-name { color: var(--hot); text-shadow: 0 0 18px rgba(255, 140, 50, .65); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--wire); box-shadow: 0 0 10px rgba(255, 110, 20, .9); opacity: 0; transform: scaleX(.3); transition: .35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { opacity: 1; transform: none; }
.nav a[aria-current] { color: var(--hot); }
.nav .ico { width: 16px; height: 16px; }
.nav-admin { color: var(--gold) !important; }

.site-footer { position: relative; z-index: 1; margin-top: 60px; background: rgba(11, 8, 6, .9); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--wire); opacity: .3; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; color: var(--muted); font-size: .88rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; transition: color .2s, text-shadow .2s; }
.footer-links a:hover { color: var(--hot); text-shadow: 0 0 14px rgba(255, 130, 40, .7); }

/* ---------- shared bits ---------- */
.grad-text { color: var(--hot); }  /* white-hot type; the glow comes from the heading around it */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  color: var(--amber); font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amber); box-shadow: 0 0 8px rgba(255, 140, 40, .95); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 2px; border-radius: 4px; line-height: 1.3;
  font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 190, 140, .06); border: 1px solid rgba(255, 190, 140, .16); color: var(--text-2);
}
.pill .ico { width: 12px; height: 12px; }
.pill-game { background: rgba(255, 110, 20, .12); border-color: rgba(255, 150, 70, .42); color: var(--gold); }
.pill-live { background: rgba(110, 210, 130, .1); border-color: rgba(110, 210, 130, .38); color: #b2ecbd; }
.pill-draft { background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .42); color: #ffdb8f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(255, 200, 160, .05);
  color: var(--text); font-weight: 700; font-size: 1.06rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .25s, filter .2s, border-color .2s, color .2s;
}
.btn:hover { background: rgba(255, 200, 160, .1); border-color: rgba(255, 160, 80, .42); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--fire); border-color: rgba(255, 214, 150, .55); color: #1f0900; text-shadow: 0 1px 0 rgba(255, 232, 190, .35);
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .65), 0 10px 30px -12px rgba(255, 90, 20, .9);
}
.btn-primary:hover {
  background: var(--fire); border-color: rgba(255, 224, 170, .7); filter: brightness(1.08) saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .75), 0 0 22px -4px rgba(255, 120, 30, .75), 0 14px 38px -10px rgba(255, 100, 20, 1);
}
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 70, 50, .12); border-color: rgba(255, 90, 70, .45); color: #ffb9ad; }
.btn-danger:hover { background: rgba(255, 70, 50, .22); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .96rem; border-radius: 7px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.panel {
  position: relative; padding: 22px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 222, 192, .05), var(--shadow);
}

/* ---------- prose (markdown) ---------- */
.prose { color: var(--text-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose :where(h2, h3, h4) { color: var(--hot); line-height: 1.1; font-weight: 700; letter-spacing: .02em; margin: 1.5em 0 .5em; }
.prose :where(h2) { font-size: 1.75rem; }
.prose :where(h3) { font-size: 1.4rem; }
.prose :where(h4) { font-size: 1.15rem; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(255, 178, 107, .4); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); text-decoration-color: currentColor; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 200, 160, .08); color: var(--gold); }
.prose pre { padding: 14px 16px; border-radius: var(--radius-sm); background: #0d0907; border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: var(--text-2); }
.prose blockquote { margin: 1em 0; padding: 6px 16px; border-left: 2px solid var(--ember); background: rgba(255, 106, 20, .06); border-radius: 0 8px 8px 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--ember); }
.prose img { border-radius: var(--radius-sm); margin: .6em 0; }
.prose hr { border: 0; height: 1px; background: var(--wire); opacity: .35; margin: 1.8em 0; }
h2.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--text); font-size: 1.16rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h2.panel-title .ico { width: 17px; height: 17px; color: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 130, 40, .75)); }

/* ---------- glowing titles: the glow is a copy of the text behind it (data-text), flickering with the fire.
   On arrival they light up like a coal catching: dull red, then orange, then white-hot. ---------- */
.hero-title, .mod-title { position: relative; isolation: isolate; color: var(--hot); animation: ignite 1.9s cubic-bezier(.3, .7, .2, 1) both; }
.hero-title::after, .mod-title::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1; pointer-events: none; color: transparent; will-change: opacity;
  text-shadow: 0 0 22px rgba(255, 160, 70, .8), 0 0 64px rgba(255, 96, 20, .6), 0 0 140px rgba(255, 60, 0, .45);
  animation: glow-in 1.9s ease-out both, firelight 5.3s linear 1.9s infinite;
}
@keyframes ignite {
  0% { color: #8a2a0a; }
  35% { color: #d8460e; }
  65% { color: #ffa24a; }
  100% { color: var(--hot); }
}
@keyframes glow-in { 0% { opacity: .15; } 45% { opacity: .5; } 100% { opacity: .82; } }

/* ---------- home ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(56vh, 600px); padding: clamp(64px, 10vw, 120px) 0 clamp(36px, 6vh, 64px); }
.hero-title {
  margin: 20px 0 18px; font-size: clamp(3.3rem, 12.5vw, 10.5rem); line-height: .84; font-weight: 700; letter-spacing: .015em; text-transform: uppercase;
  text-shadow: 0 0 2px rgba(255, 238, 210, .45);
}
/* an elegant italic against the hard condensed caps */
.hero-tagline {
  margin: 0; max-width: 620px; color: #ecdac6; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; letter-spacing: .005em;
}
.mods-section { padding-bottom: 30px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(255, 200, 160, .04); color: var(--text-2);
  font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 160, 80, .42); }
.chip.is-active { background: var(--fire); border-color: rgba(255, 214, 150, .55); color: #1f0900; box-shadow: inset 0 1px 0 rgba(255, 246, 220, .6), 0 8px 24px -10px rgba(255, 100, 20, .85); }
.chip-count { padding: 0 6px; border-radius: 4px; background: rgba(255, 200, 160, .1); font-family: var(--mono); font-size: .72rem; letter-spacing: 0; }
.chip.is-active .chip-count { background: rgba(0, 0, 0, .16); }
.sort { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa436' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select option { background: #1a120d; color: var(--text); }
.sort select {
  height: 40px; padding: 0 40px 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background-color: rgba(255, 200, 160, .04); color: var(--text); font: inherit; font-family: var(--font); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line); color: inherit; text-decoration: none;
  background: linear-gradient(180deg, #1b130e, #120c09);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .95);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
/* hover: the card heats up from below, like it's sitting on coals */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(85% 70% at 50% 112%, rgba(255, 100, 20, .3), transparent 72%);
}
.card::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; z-index: 2; pointer-events: none;
  background: var(--wire); box-shadow: 0 0 14px rgba(255, 110, 20, .95); opacity: 0; transition: opacity .5s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px); border-color: rgba(255, 150, 70, .36); outline: none;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .95), 0 18px 52px -26px rgba(255, 90, 20, .75);
}
.card:hover::before, .card:hover::after, .card:focus-visible::before, .card:focus-visible::after { opacity: 1; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #130b07; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.9); transition: transform .9s var(--ease), filter .5s; }
.card:hover .card-media img { transform: scale(1.05); filter: saturate(1.05) brightness(1.02); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 6, .1) 35%, rgba(22, 15, 11, .92)); }
.card-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.card-badges .pill { background: rgba(14, 9, 6, .82); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 18px 18px; margin-top: -30px; position: relative; z-index: 1; }
.card-title { margin: 0; font-size: 1.7rem; line-height: 1; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); transition: color .35s, text-shadow .35s; }
.card:hover .card-title { color: var(--hot); text-shadow: 0 0 18px rgba(255, 140, 50, .6); }
.card-summary { margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; }
.meta { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 14px; height: 14px; color: var(--amber); }

/* no picture yet: poster art. The name in huge outlined letters, cropped by the frame, lit by a fire below */
.card-ph { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; overflow: hidden; background: #140b07; }
.card-ph::before {
  content: ""; position: absolute; inset: 0; will-change: opacity; animation: firelight 5.3s linear infinite;
  background: radial-gradient(105% 95% at var(--fx, 50%) 112%, #ff922e 0%, #ea4a10 17%, #92240a 38%, #3d1307 60%, transparent 86%);
}
.card-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 6, .6), transparent 55%); }
.card-ph span {
  position: relative; z-index: 1; margin: 0 0 -.12em 14px; color: transparent; white-space: nowrap;
  font-size: 7.2rem; font-weight: 700; line-height: .8; letter-spacing: .01em; text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(255, 206, 150, .62); filter: drop-shadow(0 0 10px rgba(255, 120, 30, .55));
}
.card-media:has(.card-ph) .card-shade { background: linear-gradient(180deg, transparent 58%, rgba(22, 15, 11, .88)); }
.ph-0 { --fx: 50%; } .ph-1 { --fx: 30%; } .ph-2 { --fx: 70%; } .ph-3 { --fx: 42%; } .ph-4 { --fx: 60%; } .ph-5 { --fx: 22%; }

.empty-state { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 18px 0 6px; color: var(--hot); font-size: 2rem; letter-spacing: .04em; text-transform: uppercase; }
.empty-state p { margin: 6px 0; }
.empty-state .btn { margin-top: 14px; }
.empty-flame { width: 88px; height: 88px; margin: 0 auto; transform-origin: 50% 88%; filter: drop-shadow(0 12px 40px rgba(255, 100, 30, .65)); animation: flame 3.1s ease-in-out infinite; }
.empty-big { padding: 90px 20px; }

/* ---------- mod page ---------- */
.mod-hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 40px; }
.mod-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wire); opacity: .35; }
.mod-hero-bg { position: absolute; inset: 0; z-index: -1; }
.mod-hero-bg:empty { background: radial-gradient(55% 90% at 18% 112%, rgba(255, 90, 20, .22), transparent 70%); }
.mod-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transform: scale(1.25); filter: blur(44px) saturate(140%) brightness(.55); }
.mod-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 6, .25) 0%, rgba(11, 8, 6, .72) 60%, var(--bg) 100%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.crumbs a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { opacity: .45; }
.mod-title {
  margin: 16px 0 14px; font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .88; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; max-width: 1000px;
  text-shadow: 0 0 2px rgba(255, 238, 210, .45);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 28px; }
.stat { display: flex; flex-direction: column; min-width: 0; padding: 0 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line-strong); }
.stat:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.stat-num { font-size: 2.15rem; line-height: 1; font-weight: 700; letter-spacing: .02em; color: var(--hot); }
.stat-label { margin-top: 7px; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; padding-top: 32px; }
.mod-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.side-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) {
  .mod-layout { grid-template-columns: 1fr; }
  .mod-side { order: -1; }
  .side-sticky { position: static; }
}

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-stage { position: relative; }
.video-hint {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: var(--radius-sm); background: var(--fire); color: #1f0900; text-decoration: none;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .6), 0 14px 30px -12px rgba(255, 90, 20, .95); transition: transform .25s var(--ease), filter .25s;
}
.video-hint:hover { transform: translateY(-2px); filter: brightness(1.08); }
.video-hint .ico { width: 18px; height: 18px; }
.media-label { margin: 0 0 12px; color: var(--text-2); font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.video-list { display: flex; flex-direction: column; gap: 18px; }
.video-list + .media-label { margin-top: 26px; }
.video-card { margin: 0; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.video-card figcaption { margin-top: 9px; color: var(--text-2); font-weight: 700; font-size: .93rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: .25s var(--ease); }
.media-thumb:hover { transform: translateY(-2px); border-color: rgba(255, 150, 70, .6); box-shadow: 0 10px 30px -14px rgba(255, 90, 20, .8); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0f0a07; box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-main:hover img { transform: scale(1.03); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 7px; background: rgba(11, 8, 6, .78); color: #fff; font-size: .8rem; font-weight: 700;
  opacity: 0; transform: translateY(6px); transition: .3s var(--ease);
}
.zoom-hint .ico { width: 15px; height: 15px; }
.gallery-main:hover .zoom-hint { opacity: 1; transform: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); border: 1px solid var(--line); opacity: .7; transition: .25s var(--ease); }
.thumb:hover { opacity: 1; transform: translateY(-2px); border-color: rgba(255, 150, 70, .6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* the download card sits right over the fire */
.download-card {
  border-color: rgba(255, 150, 70, .3);
  background: radial-gradient(120% 70% at 50% 122%, rgba(255, 96, 20, .28), transparent 62%), var(--panel);
}
.download-card::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; pointer-events: none;
  background: var(--wire); box-shadow: 0 0 14px rgba(255, 110, 20, .85);
}
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(255, 200, 160, .05);
  color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s, filter .25s;
}
.dl-btn:hover { transform: translateY(-2px); border-color: rgba(255, 150, 70, .6); background: rgba(255, 106, 20, .09); }
.dl-primary {
  background: var(--fire); border-color: rgba(255, 214, 150, .55); color: #1f0900;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .65), 0 16px 36px -14px rgba(255, 90, 20, .95);
}
.dl-primary:hover {
  background: var(--fire); border-color: rgba(255, 224, 170, .7); filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .75), 0 0 26px -4px rgba(255, 120, 30, .8), 0 20px 44px -12px rgba(255, 100, 20, 1);
}
.dl-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: rgba(255, 200, 160, .08); }
.dl-primary .dl-ico { background: rgba(60, 14, 0, .16); box-shadow: inset 0 0 0 1px rgba(60, 14, 0, .12); }
.dl-ico .ico { width: 20px; height: 20px; }
.dl-txt { display: flex; flex-direction: column; min-width: 0; }
.dl-name {
  font-weight: 700; font-size: 1.12rem; line-height: 1.15; letter-spacing: .02em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-meta { font-family: var(--mono); font-size: .74rem; opacity: .8; }
.dl-foot { margin: 14px 0 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.dl-check { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 8px 4px 2px; font-size: .8rem; }
.vt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-weight: 700; }
.vt-link .ico { width: 16px; height: 16px; color: var(--amber); }
.vt-link:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.vt-match .ico { color: #6fd58a; }
.vt-ok { color: #8ee5a5; font-weight: 900; }
.hash-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 200, 160, .03); color: var(--muted); font: inherit; font-size: .76rem; font-weight: 650;
  transition: border-color .2s, color .2s;
}
.hash-btn code { font-family: var(--mono); font-size: .74rem; color: var(--text-2); }
.hash-btn:hover { border-color: rgba(255, 150, 70, .45); color: var(--text-2); }
.facts { display: grid; margin: 0 0 16px; }
.facts div { display: flex; align-items: baseline; gap: 0; padding: 8px 0; }
.facts dt { display: flex; flex: 1; align-items: baseline; color: var(--muted); }
.facts dt::after { content: ""; flex: 1; min-width: 16px; margin: 0 10px; border-bottom: 1px dotted rgba(255, 200, 160, .22); transform: translateY(-4px); }
.facts dd { margin: 0; text-align: right; font-family: var(--mono); font-size: .86rem; color: var(--text); }

/* ---------- mod page tabs + changelog ---------- */
.mod-tabs { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tabs {
  display: flex; gap: 4px; align-self: stretch; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 11px; white-space: nowrap;
  color: var(--muted); font-weight: 600; font-size: 1.12rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  transition: color .25s, text-shadow .25s;
}
.tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--wire); box-shadow: 0 0 12px rgba(255, 110, 20, .95); opacity: 0; transform: scaleX(.3); transition: .35s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--hot); text-shadow: 0 0 16px rgba(255, 140, 50, .55); }
.tab.is-active::after { opacity: 1; transform: none; }
.tab-count { padding: 0 6px; border-radius: 4px; background: rgba(255, 200, 160, .08); color: var(--text-2); font-family: var(--mono); font-size: .7rem; letter-spacing: 0; text-shadow: none; }
.tab.is-active .tab-count { background: rgba(255, 106, 20, .2); color: var(--gold); }
.tabs-ready [data-panel]:not(.is-active) { display: none; }
.tabs-ready [data-panel] > h2.panel-title:first-child { display: none; }
[data-panel] { scroll-margin-top: 150px; }
.changelog { position: relative; padding-left: 28px; }
.changelog::before {
  content: ""; position: absolute; left: 6px; top: 12px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 140, 50, .8), rgba(255, 106, 20, .04));
}
.changelog :where(h2, h3, h4) { position: relative; margin: 1.7em 0 .45em; font-size: 1.35rem; }
.changelog > :first-child { margin-top: 0; }
.changelog :where(h2, h3, h4)::before {
  content: ""; position: absolute; left: -28px; top: .2em; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff1c9, #ffb238 35%, #ff6a14 70%); box-shadow: 0 0 0 4px rgba(255, 106, 20, .16), 0 0 16px rgba(255, 110, 30, .75);
}
.changelog :where(h2, h3, h4):not(:first-child)::before { background: #2a1a11; border: 2px solid rgba(255, 140, 60, .6); box-shadow: none; }
.md-preview.changelog { padding-left: 46px; }
.md-preview.changelog::before { left: 24px; }
.md-preview.changelog :where(h2, h3, h4)::before { left: -28px; }

/* ---------- comments + bug reports ---------- */
.count-badge { padding: 0 7px; border-radius: 4px; background: rgba(255, 106, 20, .16); color: var(--gold); font-family: var(--mono); font-size: .7rem; letter-spacing: 0; }
.comments-summary { margin: -6px 0 16px; color: var(--muted); font-size: .88rem; }
.comment-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sub-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-2); font-size: 1.02rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sub-label:not(:first-of-type) { margin-top: 30px; }
.known-bugs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.known-bug {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 200, 160, .035);
}
.kb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 150, 40, .85); }
.kb-text { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.kb-status { background: rgba(255, 164, 54, .12); border-color: rgba(255, 164, 54, .42); color: #ffd99a; }
.kb-fixed .kb-dot { background: #6fd58a; box-shadow: 0 0 10px rgba(111, 213, 138, .6); }
.kb-fixed .kb-status { background: rgba(110, 210, 130, .1); border-color: rgba(110, 210, 130, .38); color: #b2ecbd; }
.kb-fixed .kb-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.kb-closed .kb-dot { background: #6d6158; box-shadow: none; }
.kb-closed .kb-status { background: rgba(255, 200, 160, .05); border-color: var(--line-strong); color: var(--muted); }
.kb-closed .kb-text { color: var(--muted); }
.kb-none { margin-top: 0; }
@media (max-width: 520px) {
  .known-bug { grid-template-columns: auto minmax(0, 1fr); }
  .kb-status { grid-column: 2; justify-self: start; }
}
.pill-version { background: rgba(255, 200, 160, .06); border-color: var(--line-strong); color: var(--text-2); }
.posting-as { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: .92rem; }
.comment-hint { font-size: .85rem; }
.comments .form-msg.err { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 70, 50, .1); border: 1px solid rgba(255, 90, 70, .35); }
.comments-note { margin: 18px 0 0; }
.comment-list { display: flex; flex-direction: column; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); scroll-margin-top: 100px; }
.comment:last-child { border-bottom: 0; padding-bottom: 2px; }
.comment:target { animation: comment-flash 3s var(--ease); }
@keyframes comment-flash { 0%, 35% { background: rgba(255, 106, 20, .12); box-shadow: 0 0 0 10px rgba(255, 106, 20, .12); } }
/* avatars are little coals: dark, with the first letter glowing in them */
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #2c1c12, #180f0a); border: 1px solid rgba(255, 160, 90, .22);
  color: var(--gold); font: 700 1.3rem/1 var(--font-display); font-stretch: 75%; text-shadow: 0 0 12px rgba(255, 130, 40, .75);
}
.avatar-author { background: radial-gradient(90% 90% at 50% 105%, rgba(255, 100, 20, .55), #1d120c 72%); border-color: rgba(255, 150, 70, .6); }
.avatar-author img { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(255, 110, 30, .8)); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.comment-name { font-weight: 700; }
.comment-date { color: var(--muted); font-family: var(--mono); font-size: .74rem; }
.comment-text { margin: 6px 0 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pill-bug { background: rgba(255, 70, 50, .12); border-color: rgba(255, 90, 70, .45); color: #ffb9ad; }
.pill-author { background: var(--fire); border-color: rgba(255, 214, 150, .5); color: #1f0900; }
.comment-by-author .comment-name { color: var(--gold); text-shadow: 0 0 14px rgba(255, 130, 40, .45); }
.comment-head .report-form { margin-left: auto; }
.report-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 650;
  opacity: .65; transition: .2s var(--ease);
}
.report-btn .ico { width: 13px; height: 13px; }
.report-btn:hover, .report-btn:focus-visible { opacity: 1; color: #ffb9ad; border-color: rgba(255, 90, 70, .35); background: rgba(255, 70, 50, .08); }
.report-btn[disabled] { opacity: .4; pointer-events: none; }
@media (hover: none) { .report-btn { opacity: 1; } }
.report-done { color: var(--muted); font-size: .78rem; font-weight: 650; }
/* threads: a comment with its replies indented under it, lined up with the comment's text */
.thread { border-bottom: 1px solid var(--line); }
.thread:last-child { border-bottom: 0; }
.thread > .comment, .thread > .comment:last-child { border-bottom: 0; padding-bottom: 18px; }
.thread:last-child > .comment:last-child { padding-bottom: 2px; }
.replies { display: flex; flex-direction: column; margin: -8px 0 14px 54px; padding-left: 16px; border-left: 1px solid rgba(255, 150, 70, .22); }
.replies:empty { display: none; }
.replies .comment { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0 8px; border-bottom: 0; }
.replies .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 1rem; }
.replies .avatar-author img { width: 17px; height: 17px; }
.comment-actions { display: flex; align-items: center; gap: 6px; margin: 6px 0 0 -9px; }
.reply-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: none; transition: .2s var(--ease);
}
.reply-btn .ico { width: 14px; height: 14px; }
.reply-btn:hover, .reply-btn:focus-visible { color: var(--amber); background: rgba(255, 106, 20, .08); }
.reply-form { gap: 12px; padding: 12px 0 10px; border-bottom: 0; }
.reply-form textarea { min-height: 84px; }
@media (max-width: 560px) {
  .replies { margin-left: 16px; padding-left: 12px; }
  .replies .comment { gap: 10px; }
}
.comment-hidden .comment-text { margin-top: 9px; color: var(--muted); font-style: italic; }
.avatar-hidden { background: rgba(255, 200, 160, .04); border: 1px dashed var(--line-strong); color: var(--muted); text-shadow: none; }
.avatar-hidden .ico { width: 16px; height: 16px; }
.comments .notice { margin: 0 0 16px; }
.notice-ok { background: rgba(110, 210, 130, .1); border: 1px solid rgba(110, 210, 130, .35); color: #c0f0cb; }
.notice-err { background: rgba(255, 70, 50, .1); border: 1px solid rgba(255, 90, 70, .35); color: #ffc7bd; }
.pill-report { background: rgba(255, 164, 54, .12); border-color: rgba(255, 164, 54, .45); color: #ffd99a; }
.pill-swear { background: rgba(255, 200, 160, .05); border-color: var(--line-strong); color: var(--muted); cursor: help; }

.req-intro { margin: -6px 0 12px; color: var(--muted); font-size: .88rem; }
.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255, 200, 160, .035); color: var(--text); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
a.req:hover { transform: translateY(-1px); border-color: rgba(255, 150, 70, .5); background: rgba(255, 106, 20, .08); }
.req-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: rgba(255, 106, 20, .12); color: var(--amber); }
.req-ico .ico { width: 17px; height: 17px; }
.req-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.req-name { font-weight: 700; overflow-wrap: anywhere; }
.req-sub { color: var(--muted); font-family: var(--mono); font-size: .72rem; overflow-wrap: anywhere; }
.req > .ico { flex: none; width: 15px; height: 15px; color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8, 5, 3, .94); opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 120px -30px rgba(255, 90, 20, .45); transform: scale(.96); transition: transform .35s var(--ease); user-select: none; }
.lightbox.is-open img { transform: none; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(255, 200, 160, .07); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(255, 106, 20, .2); border-color: rgba(255, 150, 70, .5); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--text-2); font-family: var(--mono); font-size: .8rem; }

/* ---------- about / error ---------- */
.page-head { padding: 70px 0 28px; }
.page-head .page-title {
  margin-top: 18px; font-size: clamp(3rem, 9vw, 6rem); line-height: .88; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 150, 60, .55), 0 0 70px rgba(255, 90, 20, .4);
}
.error-wrap { padding: 100px 0 60px; text-align: center; }
.error-code {
  font: 700 clamp(6rem, 22vw, 12rem)/1 var(--font-display); font-stretch: 75%; letter-spacing: .02em;
  text-shadow: 0 0 26px rgba(255, 150, 60, .7), 0 0 80px rgba(255, 90, 20, .5), 0 0 160px rgba(255, 60, 0, .4);
}
.error-wrap h1 { margin: 10px 0 8px; font-size: 2.2rem; letter-spacing: .04em; text-transform: uppercase; }
.error-wrap .btn { margin-top: 20px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; padding: 12px 18px; border-radius: var(--radius-sm);
  background: rgba(26, 18, 13, .97); border: 1px solid rgba(255, 150, 70, .3); box-shadow: var(--shadow), 0 0 40px -16px rgba(255, 90, 20, .6);
  font-weight: 650; pointer-events: none; opacity: 0; transform: translate(-50%, 18px); transition: .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.admin-tabs { display: inline-flex; gap: 2px; border-bottom: 1px solid var(--line); }
.admin-tabs a {
  position: relative; padding: 8px 16px 9px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 1.06rem; letter-spacing: .09em; text-transform: uppercase; transition: color .2s;
}
.admin-tabs a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--wire); box-shadow: 0 0 10px rgba(255, 110, 20, .9); opacity: 0; transition: opacity .25s;
}
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a[aria-current] { color: var(--hot); }
.admin-tabs a[aria-current]::after { opacity: 1; }
.admin-bar-right { display: flex; gap: 8px; }
.admin-page { padding-top: 24px; padding-bottom: 40px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-title { margin: 0 0 4px; color: var(--hot); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .95; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.admin-head p { margin: 4px 0 0; }
.admin-head a:not(.btn) { color: var(--link); }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; }
.back-link:hover { color: var(--text); }
.back-link .ico { width: 16px; height: 16px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 64px 90px 90px 150px 100px; align-items: center; gap: 16px;
  padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.admin-row:hover { transform: translateY(-2px); border-color: rgba(255, 150, 70, .45); box-shadow: 0 14px 40px -24px rgba(255, 90, 20, .7); }
.admin-thumb { width: 104px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb .card-ph span { margin-left: 6px; font-size: 2.6rem; -webkit-text-stroke-width: 1px; }
.admin-row-main { display: flex; flex-direction: column; min-width: 0; }
.admin-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.admin-row-main span, .admin-row-stat span { font-size: .8rem; }
.admin-row-stat { display: flex; flex-direction: column; line-height: 1.3; }
.admin-row-status { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-row-date { font-size: .85rem; text-align: right; }
@media (max-width: 760px) {
  .admin-row { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .admin-thumb { width: 76px; }
  .admin-row-stat, .admin-row-date { display: none; }
}

.form-grid { display: flex; flex-direction: column; gap: 18px; }
.form-grid + .form-grid { margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.field-label { color: var(--text-2); font-size: .86rem; font-weight: 700; }
.field-label small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.field input, .field textarea, .field select, .input-sm {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background-color: rgba(8, 5, 3, .7); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { padding-right: 40px; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .input-sm:focus {
  outline: none; border-color: rgba(255, 140, 50, .75); background-color: rgba(8, 5, 3, .88);
  box-shadow: 0 0 0 3px rgba(255, 106, 20, .14), 0 0 24px -8px rgba(255, 106, 20, .55);
}
.field input::placeholder, .field textarea::placeholder, .input-sm::placeholder { color: #6e6258; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -24px -22px; padding: 16px 24px;
  border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(180deg, rgba(19, 13, 10, 0), rgba(19, 13, 10, .97) 35%);
}
.form-msg { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.form-msg.ok { color: #8ee5a5; }
.form-msg.err { color: #ffab9c; }
.md-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.md-tools .hint { margin: 0; }
.md-preview { margin-top: 4px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: rgba(255, 200, 160, .02); }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .93rem; }
.notice-warn { background: rgba(255, 164, 54, .1); border: 1px solid rgba(255, 164, 54, .35); color: #ffe2a8; }
.notice a { color: inherit; font-weight: 700; }
.mod-hero .notice { margin: 14px 0 0; max-width: 760px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  margin-top: 14px; padding: 26px 18px; border-radius: var(--radius); cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(255, 150, 70, .45); background: rgba(255, 106, 20, .05); color: var(--text-2);
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.dropzone:hover, .dropzone.is-over { background: rgba(255, 106, 20, .12); border-color: rgba(255, 180, 100, .95); transform: translateY(-1px); box-shadow: 0 0 40px -18px rgba(255, 100, 20, .8); }
.dropzone:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; }
.dropzone .ico { width: 30px; height: 30px; color: var(--amber); filter: drop-shadow(0 0 8px rgba(255, 130, 40, .6)); }
.dropzone span { color: var(--muted); font-size: .82rem; }
.dropzone-sm { padding: 16px; }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.upload-list:empty { display: none; }
.upload-item { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 200, 160, .04); font-size: .85rem; }
.up-top { display: flex; justify-content: space-between; gap: 10px; }
.up-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.up-pct { flex: none; color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.upload-item progress { display: block; width: 100%; height: 6px; margin-top: 8px; border: 0; border-radius: 999px; background: rgba(255, 200, 160, .08); overflow: hidden; -webkit-appearance: none; appearance: none; }
.upload-item progress::-webkit-progress-bar { background: rgba(255, 200, 160, .08); border-radius: 999px; }
.upload-item progress::-webkit-progress-value { background: linear-gradient(90deg, #e8430d, #ff7d1c, #ffc451); border-radius: 999px; box-shadow: 0 0 10px rgba(255, 110, 20, .8); }
.upload-item progress::-moz-progress-bar { background: linear-gradient(90deg, #e8430d, #ff7d1c, #ffc451); border-radius: 999px; }
.upload-item.done { border-color: rgba(110, 210, 130, .45); }
.upload-item.done .up-pct { color: #8ee5a5; }
.upload-item.err { border-color: rgba(255, 90, 70, .5); }
.upload-item.err .up-pct { color: #ffab9c; white-space: normal; text-align: right; }

.file-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 200, 160, .03); }
.file-main { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 700; overflow-wrap: anywhere; }
.file-main .muted { font-size: .8rem; }
.file-rows + .dropzone { margin-top: 14px; }
.file-hash { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 8px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.file-hash code { font-family: var(--mono); font-size: .72rem; color: var(--text-2); overflow-wrap: anywhere; word-break: break-all; }
.link-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.vt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vt-row .input-sm { flex: 1 1 100%; padding: 8px 12px; font-size: .84rem; }
.vt-row .btn .ico { width: 15px; height: 15px; }
.vt-status { margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.vt-status.ok { color: #8ee5a5; }
.vt-status.warn { color: #ffdb8f; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 200, 160, .05); color: var(--text-2); transition: .2s;
}
.icon-btn .ico { width: 17px; height: 17px; }
.icon-danger:hover { color: #ffab9c; border-color: rgba(255, 90, 70, .5); background: rgba(255, 70, 50, .14); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.shot:first-child { grid-column: 1 / -1; border-color: rgba(255, 150, 70, .55); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .icon-btn { position: absolute; top: 6px; width: 32px; height: 32px; background: rgba(8, 5, 3, .7); opacity: 0; }
.shot-delete { right: 6px; }
.shot-cover { left: 6px; color: var(--gold); }
.shot-cover:hover { background: rgba(255, 106, 20, .5); color: #fff; }
.shot:hover .icon-btn, .shot .icon-btn:focus-visible { opacity: 1; }
.shot-badge {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 4px;
  background: var(--fire); color: #1f0900; font-family: var(--font-display); font-stretch: 75%; font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
@media (hover: none) { .shot .icon-btn { opacity: 1; } }
.panel-danger { border-color: rgba(255, 90, 70, .24); }
.admin-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.admin-comment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 200, 160, .03); }
.admin-comment .comment-head { font-size: .88rem; }
.admin-comment .comment-text { margin-top: 4px; font-size: .9rem; }
.admin-comments + .hint { margin-top: 14px; }
.admin-comment-actions { display: flex; align-items: center; gap: 8px; }
.admin-reply { margin-left: 28px; }
.reply-mark { display: inline-flex; color: var(--muted); }
.reply-mark .ico { width: 14px; height: 14px; }
.admin-comment .comment-date a { color: var(--link); }
.panel-report { margin-bottom: 22px; border-color: rgba(255, 164, 54, .38); background: radial-gradient(120% 80% at 0% 0%, rgba(255, 164, 54, .1), transparent 60%), var(--panel); }
.panel-report h2.panel-title .ico { color: #ffc34d; }
.report-hint { margin: -4px 0 16px; line-height: 1.5; }
.report-hint strong { color: var(--text-2); }
.hint a { color: var(--link); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text); font-weight: 650; font-size: .95rem; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ember); cursor: pointer; }
.check small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: .84rem; }

.auth-wrap { display: grid; place-items: center; min-height: 72vh; padding: 40px 0; }
.auth-card { width: min(430px, calc(100% - 32px)); padding: 36px 30px; text-align: center; }
.auth-flame { margin: 0 auto; width: 56px; height: 56px; transform-origin: 50% 88%; filter: drop-shadow(0 10px 30px rgba(255, 100, 30, .65)); animation: flame 3.1s ease-in-out infinite; }
.auth-card h1 { margin: 14px 0 6px; color: var(--hot); font-size: 2rem; letter-spacing: .04em; text-transform: uppercase; }
.auth-card p { margin: 0; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; text-align: left; }

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .brand-name { font-size: 1.2rem; }
  .nav a { padding: 7px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .panel { padding: 18px; }
  .sticky-actions { margin: 0 -18px -18px; padding: 14px 18px; }
  .toolbar { align-items: stretch; }
  .sort { width: 100%; justify-content: space-between; }
  .mod-stats { flex-wrap: nowrap; }
  .stat { padding-right: 14px; margin-right: 14px; }
  .stat-num { font-size: 1.45rem; white-space: nowrap; }
  .stat-label { font-size: .64rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ember-canvas, .spark-canvas { display: none !important; }
}
