[hidden] { display: none !important; }

/* Forum: built on the site's palette (core-pages.css variables) so it reads as part of lulgaming.com. */

.forum-hero .lede { max-width: 640px; }

/* Categories: numbered, edge-to-edge rows on small screens and a grid on wide ones. */
.forum-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: cat;
}
.forum-cat {
  position: relative;
  display: block;
  padding: 26px 24px 28px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  counter-increment: cat;
  transition: background-color .25s ease;
}
.forum-cat::before {
  content: counter(cat, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font: 500 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  color: var(--muted);
}
.forum-cat::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.1,1);
}
.forum-cat h3 {
  margin: 0 0 8px;
  font: 400 22px/1.15 var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.forum-cat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.forum-cat:hover,
.forum-cat:focus-visible { background: var(--panel); }
.forum-cat:hover::after,
.forum-cat:focus-visible::after { transform: scaleX(1); }
.forum-cat:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }

/* Threads: a list with a lime rule that grows on hover. */
.thread-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.thread-row { border-bottom: 1px solid var(--line); }
.thread-link {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 18px 20px 22px;
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .3s cubic-bezier(.2,.7,.1,1), background-color .25s ease;
}
.thread-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.1,1);
}
.thread-link:hover,
.thread-link:focus-visible { padding-left: 30px; background: var(--panel); }
.thread-link:hover::before,
.thread-link:focus-visible::before { transform: scaleY(1); }
.thread-link:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.thread-title { font: 400 21px/1.25 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.thread-meta { color: var(--muted); font-size: 14px; }
.thread-pin {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 9px;
  font: 600 11px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-lime);
  background: var(--gold);
}
.forum-empty, .forum-back { color: var(--muted); }
.forum-more { margin-top: 24px; }

/* Posts: each reply sits on its own panel, the first post (the question) is wider and marked. */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post { padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid transparent; }
.post-first { border-left-color: var(--lime); }
.post-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.post-head strong { font: 400 17px/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.post-head time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 16px; }

/* Forms */
.forum-form { display: grid; gap: 18px; margin-top: 8px; }
.forum-form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.forum-form input,
.forum-form select,
.forum-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.forum-form textarea { resize: vertical; min-height: 120px; }
.forum-form input:focus,
.forum-form select:focus,
.forum-form textarea:focus { outline: none; border-color: var(--lime); background: var(--panel); }
.forum-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.forum-status { margin: 0; color: var(--muted); font-size: 14px; min-height: 1em; }
.forum-status-box { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--gold); color: var(--gold); }
.reply-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.reply-box p { color: var(--muted); }
.forum-back { margin-top: 36px; }
.forum-back a { color: var(--lime); }

/* Scroll reveal. Browsers with scroll-driven animations fade each item in as it enters the view; others use the
   observer class added in forum.js. Reduced-motion visitors get everything at once. */
@supports (animation-timeline: view()) {
  .reveal-timeline {
    animation: forum-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s cubic-bezier(.2,.7,.1,1) var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes forum-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-timeline { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .forum-cat::after, .thread-link::before, .thread-link { transition: none !important; }
}
