/* SOCIETY — red/black fsociety reskin, overrides theme.css */
:root,
html,
html[data-theme],
html[data-theme="dark"],
html[data-theme="light"] {
  --accent: #ff1a1a;
  --accent-1: #ff1a1a;
  --accent-2: #ff3838;
  --accent-ink: #0a0000;
  --accent-soft: rgba(255, 26, 26, 0.18);
  --accent-glow: rgba(255, 26, 26, 0.45);
  --brand: #ff1a1a;
  --brand-2: #c40000;
  --brand-ink: #ffffff;
  --link: #ff5a5a;
  --link-hover: #ff8080;
  --bg: #080304;
  --bg-0: #080304;
  --bg-1: #0f0608;
  --bg-2: #15080b;
  --bg-elev: #1a0a0e;
  --panel: #110608;
  --panel-2: #180a0d;
  --surface: #0f0608;
  --surface-2: #180a0d;
  --card: #120609;
  --card-2: #1a0a0e;
  --border: rgba(255, 26, 26, 0.22);
  --border-2: rgba(255, 26, 26, 0.35);
  --divider: rgba(255, 26, 26, 0.18);
  --hairline: rgba(255, 26, 26, 0.14);
  --ink: #fff2f2;
  --ink-2: #ffd8d8;
  --ink-3: #c99b9b;
  --mute: #9a7373;
  --mute-2: #7a5858;
  --text: #fff2f2;
  --text-dim: #d4a8a8;
  --text-mute: #9a7373;
  --ring: rgba(255, 26, 26, 0.55);
  --focus: #ff3838;
  --shadow: 0 10px 40px rgba(255, 0, 0, 0.18);
  --shadow-soft: 0 6px 24px rgba(255, 0, 0, 0.12);
  --glow: 0 0 40px rgba(255, 26, 26, 0.35);
  --ok: #ff4040;
  --warn: #ff9a3c;
  --err: #ff2a2a;
  color-scheme: dark;
}

html,
body { background: #080304; color: #fff2f2; }

body {
  background:
    radial-gradient(1100px 600px at 0% 15%, rgba(255, 26, 26, 0.45), transparent 60%),
    radial-gradient(1100px 600px at 100% 25%, rgba(255, 26, 26, 0.45), transparent 60%),
    radial-gradient(900px 500px at 50% 85%, rgba(196, 0, 0, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(8,3,4,0.55), rgba(8,3,4,0.75) 40%, rgba(8,3,4,0.88) 100%),
    url("assets/society-banner.webp?v=2") center center / cover no-repeat fixed,
    #050102;
  position: relative;
}
/* Hairline red scanlines on wide viewports — fills the empty sides without competing with content. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 26, 26, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(60% 40% at 0% 50%, rgba(255, 26, 26, 0.12), transparent 70%),
    radial-gradient(60% 40% at 100% 50%, rgba(255, 26, 26, 0.12), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.6;
}
@media (max-width: 1100px) { body::before { display: none; } }

/* Hero: the banner sits behind the first screen too, but the panel darkens sharply so copy stays legible */
.lib-hero {
  position: relative;
  isolation: isolate;
}
.lib-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,3,4,0.25) 0%, rgba(8,3,4,0.55) 65%, rgba(8,3,4,0.85) 100%),
    url("assets/society-banner.webp?v=2") center 20% / cover no-repeat;
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
}
/* Side-bleed glow pillars on wide screens — extends the hero energy past the content column. */
@media (min-width: 1200px) {
  .lib-hero::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw;
    z-index: -2; pointer-events: none;
    background:
      radial-gradient(45% 80% at 0% 50%, rgba(255, 26, 26, 0.2), transparent 70%),
      radial-gradient(45% 80% at 100% 50%, rgba(255, 26, 26, 0.2), transparent 70%);
  }
}
.lib-glow {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 26, 26, 0.45), transparent 70%),
    radial-gradient(40% 40% at 80% 40%, rgba(196, 0, 0, 0.3), transparent 70%);
}

/* Closing: use the banner too, darker, so the "We are finally free" panel reads as a continuation */
.closing { position: relative; isolation: isolate; }
.closing::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw;
  background:
    linear-gradient(180deg, rgba(8,3,4,0.7), rgba(8,3,4,0.9)),
    url("assets/society-banner.webp?v=2") center 70% / cover no-repeat;
  z-index: -1;
  opacity: 0.85;
}
@media (min-width: 1200px) {
  .closing::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw;
    z-index: -2; pointer-events: none;
    background:
      radial-gradient(40% 70% at 0% 50%, rgba(255, 26, 26, 0.18), transparent 70%),
      radial-gradient(40% 70% at 100% 50%, rgba(255, 26, 26, 0.18), transparent 70%);
  }
}

/* FAQ section: give it its own full-bleed side glow on wide screens too. */
@media (min-width: 1200px) {
  .faq { position: relative; isolation: isolate; }
  .faq::before {
    content: "";
    position: absolute; top: -40px; bottom: -40px; left: -50vw; right: -50vw;
    z-index: -1; pointer-events: none;
    background:
      radial-gradient(35% 60% at 0% 50%, rgba(255, 26, 26, 0.14), transparent 70%),
      radial-gradient(35% 60% at 100% 50%, rgba(255, 26, 26, 0.14), transparent 70%);
  }
}

/* Header + glow */
.header, .header-inner { background: rgba(10, 3, 5, 0.65); border-color: rgba(255, 26, 26, 0.18); }
.lib-glow {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 26, 26, 0.35), transparent 70%),
    radial-gradient(40% 40% at 80% 40%, rgba(196, 0, 0, 0.25), transparent 70%);
}

/* Brand mark ring and dot */
.brand-ring circle { stroke: #ff1a1a; }
.brand-dot { color: #ff1a1a; }
.brand-word { color: #fff2f2; letter-spacing: 0.14em; }

/* Buttons: primary is light (fsociety reads strongest on near-white), Discord is dark with a red hairline */
.btn-primary {
  background: #f2eaea; color: #0a0000; border: 1px solid #f2eaea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px -14px rgba(255,26,26,.35);
}
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-primary .btn-icon { background: #1a0a0e; color: #ffd8d8; }

/* Discord buttons: solid dark fill, no outline, Discord-blurple icon stays white, subtle red glow on hover.
   The header CTA is a flatter pill with a red icon chip; the hero CTA is heavier. */
.btn-discord {
  background: linear-gradient(180deg, #1c0a10, #110608) !important;
  color: #fff2f2 !important;
  border: 1px solid transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 90, 90, .12), 0 10px 28px -16px rgba(255, 26, 26, 0.55) !important;
  filter: none !important;
}
.btn-discord:hover {
  background: linear-gradient(180deg, #2a0b12, #160608) !important;
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, .2), 0 0 0 1px rgba(255, 56, 56, 0.35), 0 18px 36px -16px rgba(255, 26, 26, 0.55) !important;
}
.btn-discord .btn-icon { background: #ff1a1a !important; color: #0a0000 !important; }

.discord-cta {
  background: #120507 !important;
  color: #fff2f2 !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
.discord-cta:hover {
  background: #1b070b !important;
  box-shadow: 0 10px 24px -14px rgba(255, 26, 26, 0.6) !important;
}
.discord-cta::after { display: none !important; }
.discord-cta .ico { color: #ff5a5a; }

.btn-ghost { border-color: rgba(255, 26, 26, 0.35); color: #fff2f2; background: transparent; }
.btn-ghost:hover { border-color: #ff3838; background: rgba(255, 26, 26, 0.08); }
.mkt-pill { border-color: rgba(255, 26, 26, 0.45); color: #fff2f2; background: rgba(255, 26, 26, 0.08); }
.mkt-pill b { background: #ff1a1a; color: #0a0000; }

/* Hero title: white -> red accent on the rotating word */
.rotator { color: #ff1a1a; text-shadow: 0 0 24px rgba(255, 26, 26, 0.55); }
.period { color: #ff1a1a; }
.hero-title { color: #fff2f2; }

/* Pack grid: give the whole board its own darker backdrop so the banner doesn't bleed through and wreck legibility */
.lib-board {
  position: relative;
  padding: 18px 16px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10,4,6,0.78), rgba(10,4,6,0.88));
  border: 1px solid rgba(255, 26, 26, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lib-board-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 0 0 14px; padding: 0 2px;
  flex-wrap: wrap;
}
.result-count { color: #ffd8d8; font-weight: 500; }
.result-count b { color: #fff2f2; }

/* Pack cards: solid dark fill, red hairline, stronger hover */
.pack-card, .pack, .pk, .card {
  background: linear-gradient(180deg, #160609, #0e0406) !important;
  border: 1px solid rgba(255, 26, 26, 0.22) !important;
}
.pack-card:hover, .pack:hover, .pk:hover, .card:hover {
  border-color: #ff3838 !important;
  box-shadow: 0 0 0 1px rgba(255, 56, 56, 0.35), 0 14px 40px -12px rgba(255, 26, 26, 0.45) !important;
}

/* Filter pills: dark track with red active state, breathable spacing */
.lib-filter {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 26, 26, 0.22);
  background: rgba(10, 4, 6, 0.6);
}
.lib-filter button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px 0 12px;
  border-radius: 9px; border: 0;
  color: #d4a8a8; background: transparent;
  font: 500 13px var(--font);
}
.lib-filter button:hover { color: #fff2f2; background: rgba(255, 26, 26, 0.08); }
.lib-filter button[aria-pressed="true"] {
  background: #ff1a1a; color: #0a0000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.lib-filter button[aria-pressed="true"] .lf-n {
  background: rgba(0,0,0,0.25); color: #0a0000;
}
.lib-filter .lf-n {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 26, 26, 0.18); color: #ffd8d8;
  font: 600 11px var(--font);
}

/* Gate + steps */
.lib-gate, .lib-note { border-color: rgba(255, 26, 26, 0.22); background: #110608; }
.lib-step .ls-n { background: rgba(255, 26, 26, 0.12); border-color: rgba(255, 26, 26, 0.35); color: #ff5a5a; }
.lib-step.is-done .ls-n { background: #ff1a1a; color: #0a0000; }

/* FAQ: the whole questions column gets its own panel so it stops reading as a cut-out on the busy backdrop */
.questions {
  padding: 8px 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 26, 26, 0.22) !important;
  background: linear-gradient(180deg, rgba(20,7,10,0.9), rgba(12,4,6,0.95)) !important;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,26,26,0.05);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.questions details {
  border-bottom: 1px solid rgba(255, 26, 26, 0.14) !important;
  background: transparent !important;
  border-radius: 10px;
  transition: background .18s;
}
.questions details:last-of-type { border-bottom: 0 !important; }
.questions details:hover { background: rgba(255, 26, 26, 0.06) !important; }
.questions details[open] { background: rgba(255, 26, 26, 0.09) !important; }

.questions summary {
  display: grid !important;
  grid-template-columns: 1fr 40px !important;
  align-items: center;
  gap: 14px;
  padding: 22px 16px !important;
  color: #ffd8d8 !important;
  border-radius: 10px;
  cursor: pointer;
}
.questions summary:hover, .questions details[open] summary { color: #fff !important; }
.q-text { color: inherit; }

/* Answer: match the summary's horizontal inset so text doesn't look cut off at the left edge */
.answer p { padding: 0 60px 24px 16px !important; }

.q-icon {
  width: 36px !important; height: 36px !important;
  border: 1px solid rgba(255, 26, 26, 0.4) !important;
  background: rgba(255, 26, 26, 0.08) !important;
  color: #ffb3b3 !important;
}
.questions summary:hover .q-icon { border-color: #ff3838 !important; background: rgba(255, 26, 26, 0.18) !important; color: #fff !important; }
.questions details[open]:not(.is-closing) .q-icon {
  background: #ff1a1a !important; border-color: #ff1a1a !important; color: #0a0000 !important;
  box-shadow: 0 0 22px rgba(255, 26, 26, 0.5) !important;
}
.questions details[open]:not(.is-closing) .q-icon::before,
.questions details[open]:not(.is-closing) .q-icon::after { background: #0a0000 !important; }

.answer p { color: #d4a8a8 !important; }
.answer a { color: #ff5a5a !important; }
.answer a:hover { color: #ff8080 !important; }

.closing-panel { background: linear-gradient(180deg, rgba(255, 26, 26, 0.08), rgba(0, 0, 0, 0)) , #110608; border-color: rgba(255, 26, 26, 0.3); }

/* The "Looking for something else? [Ctrl K]" button */
.faq-ask {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 12px 12px 16px !important;
  min-height: 46px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 26, 26, 0.35) !important;
  background: rgba(20, 6, 8, 0.85) !important;
  color: #fff2f2 !important;
  font-size: 14px !important;
  box-shadow: 0 10px 22px -14px rgba(255, 26, 26, 0.5);
  cursor: pointer;
}
.faq-ask:hover {
  border-color: #ff3838 !important;
  background: rgba(30, 8, 12, 0.95) !important;
  color: #fff !important;
}
.faq-ask .ico { color: #ff5a5a !important; font-size: 16px !important; }

/* kbd chips: readable on dark panels and inside the faq-ask button */
kbd, .mod-key {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 9px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255, 90, 90, 0.4) !important;
  background: linear-gradient(180deg, #2a0a10, #170608) !important;
  color: #ffd8d8 !important;
  font: 600 11.5px "Geist Mono", ui-monospace, monospace !important;
  letter-spacing: .02em;
  line-height: 1 !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.45), inset 0 1px 0 rgba(255,120,120,.12) !important;
  white-space: nowrap;
}

/* The palette dialog: match the red theme */
.palette {
  background: linear-gradient(180deg, #110608, #0a0304) !important;
  border: 1px solid rgba(255, 26, 26, 0.35) !important;
  box-shadow: 0 30px 80px -20px rgba(255, 26, 26, 0.35), 0 0 0 1px rgba(255, 26, 26, 0.15) !important;
}
.palette-search { border-bottom: 1px solid rgba(255, 26, 26, 0.18); }
.palette-search input { color: #fff2f2; }
.palette-search input::placeholder { color: #9a7373; }
.palette-list [aria-selected="true"],
.palette-list [role="option"]:hover,
.palette-list .is-active {
  background: rgba(255, 26, 26, 0.12) !important;
  color: #fff !important;
}
.palette-foot { border-top: 1px solid rgba(255, 26, 26, 0.18); color: #c99b9b; }

/* Footer */
.footer, .footer-top, .footer-bottom { background: #0a0304; color: #d4a8a8; border-color: rgba(255, 26, 26, 0.18); }
.footer a { color: #ffb3b3; }
.footer a:hover { color: #ff5a5a; }
.footer-word span { color: rgba(255, 26, 26, 0.08); }

/* Dialogs */
.pack-page, .palette { background: #0a0304; border-color: rgba(255, 26, 26, 0.35); }

/* Links in body */
a { color: #ff5a5a; }
a:hover { color: #ff8080; }

/* Preloader */
.pl-fill { stroke: #ff1a1a; }
.pl-crack path { stroke: #ff1a1a; }
.pl-text, .pl-count { color: #fff2f2; }

/* Scroll progress bar */
.scroll-progress span { background: linear-gradient(90deg, #ff1a1a, #ff3838); }

/* YouTube button keeps its native red; Discord button is accent */
.discord-cta { background: #ff1a1a; color: #0a0000; border-color: #ff3838; }
.discord-cta:hover { background: #ff3838; }

/* Online dot */
.online-dot { background: #ff3838; box-shadow: 0 0 10px #ff1a1a; }

/* Soft accent text */
.soft { color: #c99b9b; }
.eyebrow, .mkt-eyebrow { color: #ff5a5a; letter-spacing: 0.18em; }

/* Hero mark: give the mask image a subtle red glow */
.brand-mark img, .closing-art img { filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.45)); }

/* Mobile menu */
.mobile-menu { background: #0a0304; }
.mobile-nav a { border-color: rgba(255, 26, 26, 0.18); color: #fff2f2; }
.mobile-nav a:hover { background: rgba(255, 26, 26, 0.08); }

/* ===== Cheats grid (slots into the same lib-board as the pack grid) === */
.ch-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ch-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 26, 26, 0.22);
  background: linear-gradient(180deg, #160609, #0e0406);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ch-card[data-link]:hover,
.ch-card:not(.ch-add):hover { border-color: #ff3838; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 56, 56, 0.35), 0 14px 40px -12px rgba(255, 26, 26, 0.45); }
.ch-art { height: 130px; background-size: cover; background-position: center; background-color: #1a0709; }
.ch-card.is-soon { cursor: default; }
.ch-card.is-soon .ch-art { filter: grayscale(0.4) brightness(0.65); }
.ch-soon {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(255, 26, 26, 0.95); color: #0a0000;
  font: 700 11px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(255, 26, 26, 0.6);
}
.ch-soon i { width: 6px; height: 6px; border-radius: 50%; background: #0a0000; display: inline-block; box-shadow: 0 0 0 2px rgba(10,0,0,0.3); }
.ch-art-empty { display: grid; place-items: center; color: #ff5a5a; font: 700 42px "Geist Mono", ui-monospace, monospace; }
.ch-body { padding: 14px 16px 16px; }
.ch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ch-row h3 { margin: 0; font-size: 16px; color: #fff2f2; letter-spacing: -0.01em; }
.ch-body h3 { margin: 0 0 6px; font-size: 16px; color: #fff2f2; letter-spacing: -0.01em; }
.ch-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #c99b9b; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-tags span {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 26, 26, 0.3); background: rgba(255, 26, 26, 0.06);
  color: #ffd8d8; font: 500 11px "Geist Mono", ui-monospace, monospace;
}
.ch-admin {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px; opacity: 0; transition: opacity .15s;
}
.ch-card:hover .ch-admin { opacity: 1; }
.ch-admin button {
  padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 26, 26, 0.5);
  background: rgba(10, 4, 6, 0.9); color: #ffd8d8;
  font: 600 11px "Geist Mono", ui-monospace, monospace; cursor: pointer;
}
.ch-admin .ch-del { border-color: #ff3838; color: #ff8080; }
.ch-admin button:hover { background: #1a0709; color: #fff; }
.ch-empty { padding: 40px; text-align: center; color: #9a7373; }

/* "+ Add" tile — used in both grids */
.ch-add, .pk-add {
  display: grid !important; place-items: center !important;
  min-height: 170px;
  border: 1.5px dashed rgba(255, 26, 26, 0.4) !important;
  background: rgba(255, 26, 26, 0.04) !important;
  color: #ffb3b3;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ch-add:hover, .pk-add:hover { border-color: #ff3838 !important; background: rgba(255, 26, 26, 0.1) !important; color: #fff; transform: none !important; box-shadow: none !important; }
.ch-plus { font-size: 46px; font-weight: 300; color: #ff5a5a; line-height: 1; margin-bottom: 8px; }
.ch-add-label { font: 500 13px "Geist", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }

/* Per-pack admin buttons (injected onto existing cards) */
.pk-admin {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  display: flex; gap: 6px; opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.card:hover .pk-admin, .pack-card:hover .pk-admin, .pk:hover .pk-admin { opacity: 1; pointer-events: auto; }
.pk-admin button {
  padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 26, 26, 0.5);
  background: rgba(10, 4, 6, 0.92); color: #ffd8d8;
  font: 600 11px "Geist Mono", ui-monospace, monospace; cursor: pointer;
}
.pk-admin .pk-del { border-color: #ff3838; color: #ff8080; }
.pk-admin button:hover { background: #1a0709; color: #fff; }

/* Editor modal */
.sw-scrim {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}
.sw-modal {
  width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid rgba(255, 26, 26, 0.35);
  background: linear-gradient(180deg, #170709, #0b0304);
  color: #fff2f2;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 26, 26, 0.12);
  overflow: hidden;
}
.sw-modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255, 26, 26, 0.18); }
.sw-modal h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sw-modal .sw-x { background: transparent; border: 0; color: #d4a8a8; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.sw-modal .sw-x:hover { color: #fff; }
.sw-modal .sw-body { padding: 16px 18px; overflow: auto; }
.sw-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 26, 26, 0.18); background: rgba(10, 3, 4, 0.4); }
.sw-modal footer button {
  padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(255, 26, 26, 0.3); background: transparent;
  color: #fff2f2; font: 600 13px "Geist", system-ui, sans-serif; cursor: pointer;
}
.sw-modal footer button.sw-save { background: #ff1a1a; color: #0a0000; border-color: #ff1a1a; }
.sw-modal footer button.sw-save:hover { background: #ff3838; border-color: #ff3838; }
.sw-modal footer button.sw-cancel:hover { background: rgba(255, 26, 26, 0.08); }
.sw-f { display: block; margin-bottom: 14px; }
.sw-f > span { display: block; margin-bottom: 6px; font: 500 12px "Geist Mono", ui-monospace, monospace; color: #ffb3b3; letter-spacing: 0.04em; text-transform: uppercase; }
.sw-f input[type=text], .sw-f input[type=url], .sw-f textarea, .sw-f select {
  width: 100%; padding: 10px 12px;
  border-radius: 9px; border: 1px solid rgba(255, 26, 26, 0.3);
  background: rgba(10, 4, 6, 0.6); color: #fff2f2;
  font: 500 14px "Geist", system-ui, sans-serif;
}
.sw-f input:focus, .sw-f textarea:focus, .sw-f select:focus { outline: none; border-color: #ff3838; background: rgba(20, 7, 10, 0.8); }
.sw-f textarea { resize: vertical; min-height: 70px; font-family: inherit; }
.sw-f input[type=file] { color: #d4a8a8; font: 500 12px "Geist Mono", ui-monospace, monospace; }
.sw-thumb { margin-top: 10px; height: 100px; border-radius: 9px; background-color: #1a0709; background-size: cover; background-position: center; border: 1px dashed rgba(255, 26, 26, 0.3); }

/* ===== Cheat detail modal ============================================ */
.cd-scrim { padding: 24px; }
.cd-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: 92vh; overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 26, 26, 0.35);
  background: linear-gradient(180deg, #170709, #0a0304);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 26, 26, 0.12);
  color: #fff2f2;
}
.cd-hero {
  position: relative;
  background-size: cover; background-position: center;
  background-color: #1a0709;
  border-bottom: 1px solid rgba(255, 26, 26, 0.3);
  min-height: 260px;
  display: flex; align-items: flex-end;
}
.cd-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,3,4,0.2) 0%, rgba(8,3,4,0.6) 55%, rgba(8,3,4,0.95) 100%);
  pointer-events: none;
}
.cd-hero-empty { min-height: 0; }
.cd-modal header { position: relative; z-index: 1; width: 100%; padding: 32px 32px 24px; }
.cd-modal h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.cd-modal header p { margin: 0 0 12px; color: #ffd8d8; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,0.6); max-width: 70ch; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-tags span { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 26, 26, 0.3); background: rgba(255, 26, 26, 0.06); color: #ffd8d8; font: 500 11.5px "Geist Mono", ui-monospace, monospace; }
.cd-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 26, 26, 0.3); background: rgba(10, 4, 6, 0.9); color: #ffd8d8; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.cd-x:hover { background: #1a0709; color: #fff; border-color: #ff3838; }
.cd-preview { padding: 20px 32px; }
.cd-preview img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 26, 26, 0.18); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6); }
.cd-folder { padding: 18px 32px 28px; }
.cd-folder.cd-empty { display: flex; align-items: center; gap: 14px; }
.cd-folder.cd-empty p { margin: 0; color: #c99b9b; }
.cd-soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: #ff1a1a; color: #0a0000;
  font: 700 11.5px "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
}
.cd-soon i { width: 6px; height: 6px; border-radius: 50%; background: #0a0000; display: inline-block; }
.cd-dl {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: #ff1a1a; color: #0a0000; font-weight: 600; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(255, 26, 26, 0.6);
}
.cd-dl:hover { background: #ff3838; }

/* ===== Signed-in account pill (overrides base theme to look at home in red) == */
.acct { background: rgba(10, 4, 6, 0.6); border: 1px solid rgba(255, 26, 26, 0.3); border-radius: 12px; }
.acct-btn { color: #fff2f2; }
.acct-btn img { border-radius: 50%; border: 1px solid rgba(255, 26, 26, 0.4); }
.acct-menu { background: linear-gradient(180deg, #170709, #0b0304); border: 1px solid rgba(255, 26, 26, 0.3); color: #fff2f2; }
.acct-menu .acct-item { color: #ffd8d8; }
.acct-menu .acct-item:hover { background: rgba(255, 26, 26, 0.1); color: #fff; }
.acct-menu .acct-who b { color: #fff; }
.acct-menu .acct-status { color: #ff5a5a; }

/* ===== Founder FAB + drawer ========================================== */
#founder-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px; border: 1px solid #ff3838;
  background: linear-gradient(180deg, #ff1a1a, #c40000);
  color: #0a0000;
  font: 700 12px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.1em;
  box-shadow: 0 16px 36px -12px rgba(255, 26, 26, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform .15s;
}
#founder-fab:hover { transform: translateY(-2px); }
#founder-fab img { border-radius: 50%; }
.founder-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 998; }
.founder-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 999;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255, 26, 26, 0.3);
  background: linear-gradient(180deg, #170709, #0a0304);
  color: #fff2f2;
  box-shadow: -30px 0 80px -20px rgba(0,0,0,0.7);
  overflow-y: auto;
}
.founder-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255, 26, 26, 0.18); }
.founder-drawer header h2 { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.founder-drawer header h2 img { border-radius: 6px; }
.founder-drawer .fd-x { background: transparent; border: 0; color: #d4a8a8; font-size: 24px; cursor: pointer; }
.founder-drawer .fd-x:hover { color: #fff; }
.fd-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 26, 26, 0.14); }
.fd-user img { border-radius: 50%; border: 1px solid rgba(255, 26, 26, 0.4); }
.fd-user b { display: block; font-size: 15px; }
.fd-user small { color: #ff5a5a; font: 500 11.5px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.05em; text-transform: uppercase; }
.founder-drawer section { padding: 18px 20px; border-bottom: 1px solid rgba(255, 26, 26, 0.14); }
.founder-drawer h3 { margin: 0 0 12px; font-size: 13px; color: #ff5a5a; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.founder-drawer h4 { margin: 18px 0 10px; font-size: 12.5px; color: #ffd8d8; font-weight: 600; letter-spacing: 0.05em; }
.founder-drawer h4 small { color: #9a7373; font-weight: 400; margin-left: 4px; }
.fd-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-tile { padding: 14px; border-radius: 10px; border: 1px solid rgba(255, 26, 26, 0.22); background: rgba(10, 4, 6, 0.6); }
.fd-tile b { display: block; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.fd-tile small { color: #c99b9b; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.fd-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-top li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: rgba(255, 26, 26, 0.04); color: #ffd8d8; font-size: 13px; }
.fd-top li b { color: #fff; font: 600 13px "Geist Mono", ui-monospace, monospace; }
.fd-top-empty { justify-content: center !important; color: #9a7373 !important; font-style: italic; }
.fd-btn {
  display: block; width: 100%; margin-bottom: 8px;
  padding: 12px 16px; border-radius: 10px; border: 0; cursor: pointer;
  background: #ff1a1a; color: #0a0000; font: 600 13.5px "Geist", system-ui, sans-serif; text-align: left;
}
.fd-btn:hover { background: #ff3838; }
.fd-btn-ghost { background: transparent; color: #fff2f2; border: 1px solid rgba(255, 26, 26, 0.35); }
.fd-btn-ghost:hover { background: rgba(255, 26, 26, 0.08); border-color: #ff3838; }

/* Tagline strip under the title */
.society-tag {
  display: block; margin: 1.1rem 0 0; text-align: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 0.22em; color: #ff3838; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 26, 26, 0.45);
}
.society-tag::before, .society-tag::after { content: "— "; color: rgba(255, 26, 26, 0.55); }
.society-tag::after { content: " —"; }
