/* LMS · community-hub layout, warm black / cream / red */
:root {
  --bg: #0e0c0b;
  --surface: rgba(26, 21, 19, .92);
  --surface-2: rgba(32, 26, 23, .96);
  --ink: #f2e8dc;
  --ink-2: #d9cdbf;
  --muted: #a99d90;
  --faint: #8c8175;
  --line: rgba(242, 232, 220, .13);
  --line-hi: rgba(242, 232, 220, .26);
  --red: #e0322e;
  --red-hi: #ff5446;
  --red-btn: #c8241f;       /* white text on it: 5.6:1 */
  --red-btn-hover: #b31f1b; /* 6.7:1 */
  --ok: #7fd49b;
  --radius: 14px;
  --serif: "Bodoni MT", Didot, "Big Caslon", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* warm blurred glow behind everything */
.backdrop {
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(32vmax 22vmax at 15% 15%, rgba(224, 50, 46, .16), transparent 70%),
    radial-gradient(30vmax 24vmax at 88% 35%, rgba(242, 160, 90, .08), transparent 70%),
    radial-gradient(30vmax 22vmax at 50% 100%, rgba(224, 50, 46, .10), transparent 70%);
  filter: blur(8px);
}
.stripe { height: 4px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red-hi) 50%, var(--red) 80%, transparent); }

/* ---------- badges ---------- */

.badge {
  display: grid;
  place-items: center;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #241a16, #0b0908 70%);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 8px rgba(14, 12, 11, .95), 0 0 0 9px rgba(224, 50, 46, .6), 0 0 70px rgba(224, 50, 46, .3);
}
.badge span { font-size: 62px; font-weight: 900; letter-spacing: .02em; }
.badge-sm { width: 86px; height: 86px; margin: 0 auto 18px; border-width: 2px; box-shadow: 0 0 0 5px rgba(14,12,11,.95), 0 0 0 6px rgba(224,50,46,.6); }
.badge-sm span { font-size: 27px; }
.badge-xs {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #0b0908;
  border: 1.5px solid var(--ink);
  font-size: 10.5px; font-weight: 900;
}
.nsfw-tag {
  padding: 2px 8px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red-hi);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* ---------- age gate ---------- */

#enter { position: absolute; top: 0; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: radial-gradient(60% 50% at 50% 40%, rgba(224, 50, 46, .14), transparent 75%), rgba(9, 7, 6, .97);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
html.adult-ok .gate, #enter:target + .gate { display: none; }
html.js:not(.adult-ok) body { overflow: hidden; }
.gate-card {
  width: min(500px, 100%);
  padding: 34px 30px 26px;
  text-align: center;
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.gate-eyebrow { margin-bottom: 6px; color: var(--red-hi); font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.gate-title { font-size: clamp(28px, 6vw, 36px); font-weight: 900; }
.gate-text { margin: 14px 0 24px; color: var(--muted); }
.gate-actions { display: flex; flex-direction: column; gap: 10px; }
.gate-fine { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- top bar ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 12, 11, .88);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 900; }
.nav { display: flex; gap: 24px; margin-left: 10px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: #fff; }
.masthead .btn { margin-left: auto; white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn-hot { background: var(--red-btn); color: #fff; box-shadow: 0 8px 26px rgba(200, 36, 31, .3); }
.btn-hot:hover { background: var(--red-btn-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-hi); background: rgba(26, 21, 19, .8); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-big { padding: 18px 46px; font-size: 19px; }

/* ---------- hero ---------- */

.hero { padding: 40px 0 10px; text-align: center; }
.hero-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 64px; }
.side-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 18px;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.side-card:hover { border-color: var(--red); transform: translateY(-2px); }
.side-card:first-child { justify-self: end; }
.side-card:last-child { justify-self: start; }
.side-card b { display: block; font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.side-card small { color: var(--muted); font-size: 13px; }
.side-card::after { content: "\203A"; color: var(--muted); font-size: 20px; }

.hero-tag { margin-top: 30px; color: var(--red-hi); font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero-title {
  margin-top: 8px;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-title em { text-transform: none; letter-spacing: 0; font-size: 1.12em; color: var(--red); }
.hero-lede { max-width: 620px; margin: 16px auto 0; font-size: clamp(18px, 2.2vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* live numbers (written by the bot) */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 42px; }
.stats:empty { display: none; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 230px;
  padding: 16px 20px;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  background: var(--surface);
}
.stat strong { font-size: 32px; font-weight: 900; line-height: 1.2; }
.stat + .stat strong { color: var(--red-hi); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- boxed sections ---------- */

.section { margin-top: 64px; }
.box { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(20, 16, 14, .85); }
.eyebrow { margin-bottom: 6px; color: var(--red-hi); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow a { color: var(--red-hi); text-decoration: none; }
.section-title { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; }
.prose { max-width: 760px; margin-top: 18px; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.section-note { margin-top: 16px; color: var(--muted); font-size: 15px; }

.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.pillar-icon { display: block; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--red); line-height: 1; }

.rules, .steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: rule; }
.rule { position: relative; padding-top: 58px; counter-increment: rule; }
.rule::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  top: 16px; left: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}
.rule-hard { border-color: rgba(224, 50, 46, .65); background: linear-gradient(160deg, rgba(70, 14, 12, .85), var(--surface-2) 65%); }
.rule-hard h3 { color: var(--red-hi); }

.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #0b0908;
  font-weight: 900;
  font-size: 18px;
}
.cta { margin-top: 32px; text-align: center; }
.note { max-width: 620px; margin: 22px auto 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 15px; }
.note strong { color: var(--ink); }

/* ---------- footer ---------- */

.footer { margin-top: 84px; padding-bottom: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.footer .stripe { margin-bottom: 26px; }
.footer-brand { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.footer-brand em { text-transform: none; font-size: 1.15em; letter-spacing: 0; color: var(--red-hi); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 10px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-fine { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* ---------- plain pages (privacy, terms, 404, under construction, desk) ---------- */

main.narrow { max-width: 820px; margin: 0 auto; padding: 44px 20px 0; }
.panel { padding: 32px; border: 1px solid var(--line-hi); border-radius: 18px; background: var(--surface); }
.panel.center { text-align: center; }
.kicker { color: var(--red-hi); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.page-title { margin: 8px 0 14px; font-size: clamp(30px, 5vw, 42px); font-weight: 900; }
.lede { color: var(--ink-2); font-size: 18px; }
.doc { color: var(--ink-2); }
.doc h2 { margin: 30px 0 8px; font-size: 21px; font-weight: 800; color: var(--ink); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { margin-top: 8px; color: var(--faint); font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.callout { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--red); border-radius: 8px; background: rgba(224, 50, 46, .08); color: var(--ink-2); font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.form label { margin-top: 12px; font-weight: 800; font-size: 15px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: #0b0908;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(224, 50, 46, .2); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; margin-top: 18px; }
.form-inline { max-width: 420px; }
.form-error { color: var(--red-hi); font-size: 14px; }
.form-fine { margin-top: 14px; color: var(--faint); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket-code { margin: 6px 0 16px; font-family: ui-monospace, Consolas, monospace; font-size: 30px; font-weight: 800; letter-spacing: .08em; color: var(--red-hi); }
.status-card, .reply, .message { margin-top: 22px; padding: 18px; border: 1px solid var(--line-hi); border-radius: 12px; background: #0b0908; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply p:last-child { white-space: pre-wrap; }
.pill { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; text-transform: capitalize; background: rgba(242, 232, 220, .1); }
.pill-in-review { background: rgba(233, 178, 76, .18); color: #e9b24c; }
.pill-accepted { background: rgba(127, 212, 155, .18); color: var(--ok); }
.pill-denied { background: rgba(224, 50, 46, .2); color: var(--red-hi); }
.saved { color: var(--ok); font-weight: 800; }
.rules-box { margin: 20px 0; border: 1px solid var(--line-hi); border-radius: 12px; background: #0b0908; }
.rules-box summary { padding: 14px 18px; font-weight: 800; cursor: pointer; }
.rules-box ol { margin: 0; padding: 0 22px 16px 40px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.tickets { width: 100%; border-collapse: collapse; font-size: 14px; }
.tickets th, .tickets td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tickets th { color: var(--muted); }
.tickets .clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl { list-style: none; margin: 22px 0 0; padding: 0; }
.wl li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
form.inline { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .pillars, .rules, .steps { grid-template-columns: 1fr 1fr; }
  .hero-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-row .badge { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 18px; }
  .side-card:first-child, .side-card:last-child { justify-self: stretch; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .masthead .wrap { gap: 10px; height: 56px; }
  .brand span:last-child { display: none; }
  .badge { width: 150px; height: 150px; }
  .badge span { font-size: 48px; }
  .side-card { padding: 10px 12px; gap: 8px; }
  .side-card b { font-size: 12px; letter-spacing: .05em; }
  .side-card small { font-size: 12px; }
  .stat { min-width: 0; flex: 1; padding: 12px 8px; }
  .stat strong { font-size: 26px; }
  .stat span { font-size: 12px; text-align: center; }
  .box, .panel { padding: 22px 16px; }
  .pillars, .rules, .steps { grid-template-columns: 1fr; }
  .btn-big { width: 100%; padding: 16px 20px; font-size: 18px; }
  .gate-card { padding: 28px 18px 22px; }
  main.narrow { padding-top: 28px; }
}

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