:root {
  --bg: #0a0708;
  --bg-2: #120c0d;
  --card: #171011;
  --card-2: #1f1415;
  --line: rgba(255, 255, 255, 0.08);
  --line-red: rgba(220, 38, 38, 0.35);
  --text: #f4ecea;
  --muted: #a99a97;
  --red: #dc2626;
  --red-deep: #8b0f14;
  --ember: #ff6a1a;
  --gold: #ffb347;
  --grad: linear-gradient(135deg, #b3121b 0%, #e2341d 50%, #ff7a1f 100%);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- Embers canvas ---------- */
#embers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 7, 8, 0.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 30px; letter-spacing: 2px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 2px var(--red), 0 0 20px rgba(220, 38, 38, .5); }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-social { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: .2s;
}
.icon-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(226, 52, 29, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 106, 26, .5); }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-red); background: rgba(220, 38, 38, .12); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: grayscale(.6); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100vh, 920px); display: flex; align-items: center; padding: 110px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 75% 45%, rgba(220, 38, 38, .28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(255, 106, 26, .12), transparent 70%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-red); background: rgba(220, 38, 38, .1);
  font-size: 13px; font-weight: 600; color: #ffb4a8; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; line-height: .9;
  font-size: clamp(64px, 11vw, 148px); letter-spacing: 3px;
  background: linear-gradient(180deg, #fff 30%, #ffb4a0 70%, #ff5a2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(220, 38, 38, .35));
}
.hero h1 small { display: block; font-size: .32em; letter-spacing: 8px; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-meta b { display: block; color: var(--text); font-size: 22px; font-family: var(--font-display); letter-spacing: 1px; font-weight: 400; }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-art::before {
  content: ''; position: absolute; inset: -14%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(220, 38, 38, .6), transparent 40%, rgba(255, 106, 26, .5), transparent 75%);
  filter: blur(30px); animation: spin 12s linear infinite;
}
.hero-art .ring { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(255, 106, 26, .35); animation: spin 40s linear infinite reverse; }
.hero-art img {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 32px;
  border: 2px solid rgba(255, 106, 26, .5); box-shadow: var(--shadow), 0 0 80px rgba(220, 38, 38, .45);
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker { color: var(--ember); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6vw, 64px); letter-spacing: 2px; line-height: 1.05; margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 12px auto 0; }
.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 15%, var(--bg-2) 85%, transparent); }

/* ---------- Download cards ---------- */
.dl-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.dl-card {
  position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); transition: transform .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.dl-card:hover { transform: translateY(-6px); border-color: var(--line-red); }
.dl-card.featured { border-color: var(--line-red); background: radial-gradient(ellipse at top right, rgba(220, 38, 38, .25), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.dl-card .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); margin-bottom: 20px; box-shadow: 0 10px 30px rgba(220, 38, 38, .35); }
.dl-card .ico svg { width: 28px; height: 28px; color: #fff; }
.dl-card h3 { font-size: 22px; font-weight: 800; }
.dl-card .ver { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--gold); font-weight: 600; }
.dl-card .notes { color: var(--muted); font-size: 14px; margin: 14px 0 24px; flex: 1; white-space: pre-line; }
.dl-card .meta { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.dl-card .btn { width: 100%; }

/* ---------- Gallery ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); transition: .2s;
}
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery.mobile { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.g-item {
  position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--card); aspect-ratio: 16/9;
}
.gallery.mobile .g-item { aspect-ratio: 9/19; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); opacity: 0; transition: .3s;
}
.g-item:hover figcaption { opacity: 1; }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Posts ---------- */
.posts { display: grid; gap: 22px; max-width: 880px; margin-inline: auto; }
.post {
  border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); overflow: hidden; transition: border-color .3s;
}
.post:hover { border-color: var(--line-red); }
.post.pinned { border-color: rgba(255, 179, 71, .4); }
.post-cover { width: 100%; max-height: 380px; object-fit: cover; cursor: zoom-in; }
.post-body { padding: 26px 28px; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.badge { padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 12px; background: rgba(220, 38, 38, .18); color: #ff9c8a; border: 1px solid var(--line-red); }
.badge.gold { background: rgba(255, 179, 71, .14); color: var(--gold); border-color: rgba(255, 179, 71, .35); }
.post h3 { font-size: 24px; font-weight: 800; line-height: 1.25; }
.post-content { color: #d7cbc8; margin-top: 12px; font-size: 15.5px; }
.post-content p + p, .post-content ul + p, .post-content p + ul { margin-top: 10px; }
.post-content ul { padding-left: 20px; }
.post-content a { color: var(--ember); text-decoration: underline; }
.post-content.clamp { max-height: 140px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.post-more { margin-top: 10px; color: var(--ember); font-weight: 700; font-size: 14px; }
.post-thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.post-thumbs img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Community / Donate ---------- */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cta-card {
  padding: 34px 28px; border-radius: var(--radius); text-align: center;
  background: var(--card); border: 1px solid var(--line); transition: .3s; display: flex; flex-direction: column; align-items: center;
}
.cta-card:hover { transform: translateY(-6px); }
.cta-card .big-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; }
.cta-card .big-ico svg { width: 36px; height: 36px; color: #fff; }
.cta-card h3 { font-size: 22px; font-weight: 800; }
.cta-card p { color: var(--muted); font-size: 14px; margin: 8px 0 22px; flex: 1; }
.cta-card.discord .big-ico { background: #5865f2; box-shadow: 0 10px 30px rgba(88, 101, 242, .4); }
.cta-card.discord:hover { border-color: rgba(88, 101, 242, .6); }
.cta-card.youtube .big-ico { background: #ff0000; box-shadow: 0 10px 30px rgba(255, 0, 0, .4); }
.cta-card.youtube:hover { border-color: rgba(255, 0, 0, .55); }
.cta-card.donate .big-ico { background: var(--grad); box-shadow: 0 10px 30px rgba(255, 106, 26, .4); }
.cta-card.donate:hover { border-color: rgba(255, 106, 26, .55); }
.cta-card .btn { width: 100%; }
.donate-btns { display: grid; gap: 10px; width: 100%; }
.btn-paypal { background: #ffc439; color: #111; }
.btn-paypal:hover { background: #ffd366; transform: translateY(-2px); }
.btn-pix { background: #32bcad; color: #fff; }
.btn-pix:hover { background: #3fd3c3; transform: translateY(-2px); }

/* ---------- Modal / Lightbox ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 3, 3, .88); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 16px; animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(420px, 100%); background: var(--card-2); border: 1px solid var(--line-red);
  border-radius: 20px; padding: 30px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 36px; letter-spacing: 1px; }
.modal .qr { width: 220px; height: 220px; margin: 18px auto; background: #fff; border-radius: 14px; padding: 10px; object-fit: contain; }
.copy-row { display: flex; gap: 8px; margin-top: 14px; }
.copy-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 14px;
}
.close-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.close-x:hover { background: var(--red); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 22px; }
.lb-nav:hover { background: var(--red); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-cap { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: var(--card-2); border: 1px solid var(--line-red); padding: 12px 22px; border-radius: 12px;
  font-weight: 600; opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-art { width: min(300px, 80%); order: -1; }
  .dl-grid, .cta-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 7, 8, .97); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .menu-btn { display: grid; }
  .nav-social .icon-btn:not(.menu-btn) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .btn-lg { width: 100%; }
  .post-body { padding: 20px; }
  .gallery.mobile { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
