:root {
  --bg: #101217;
  --panel: #12151b;
  --panel-soft: #151a22;
  --panel-deep: #0f1117;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #b9af97;
  --muted-soft: #918670;
  --accent: #df1f1f;
  --accent-alt: #15b7c3;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 77% 7%, rgba(241, 98, 42, 0.28), transparent 7%),
    radial-gradient(circle at 79% 10%, rgba(255, 152, 96, 0.15), transparent 4%),
    linear-gradient(180deg, #191b21 0%, #11141a 15%, #101217 15%, #101217 100%);
}

a {
  color: inherit;
}

.page-frame,
.site-header,
.hero-inner,
.page-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
  z-index: 5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.site-nav a,
.nav-cta,
.button-primary,
.button-secondary {
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.site-nav a {
  color: var(--muted);
  padding: 0.8rem 1rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
}

.auth-controls {
  display: flex;
  align-items: center;
}

.auth-login,
.auth-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.auth-login.disabled {
  color: var(--muted-soft);
  font-size: 0.8rem;
  padding: 0.85rem 1rem;
}

.auth-link,
.auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.8rem 0.95rem;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.auth-link.discord {
  background: rgba(88, 101, 242, 0.18);
}

.auth-link.google {
  background: rgba(66, 133, 244, 0.18);
}

.auth-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.auth-copy strong,
.auth-copy span {
  display: block;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, #cc2323 0%, #ff5a2d 100%);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.page-kicker,
.eyebrow,
.feature-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.page-intro {
  padding: 2rem 0 1rem;
}

.intro-text,
.hero-text,
.feature-card p,
.forum-card p,
.store-card p,
.hero-panel p {
  color: #d0d5de;
  line-height: 1.7;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  padding: 2.5rem 0 1.5rem;
  align-items: stretch;
}

.home-copy,
.hero-panel,
.feature-card,
.forum-card,
.store-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.home-copy {
  padding: 2.4rem;
}

.hero-text {
  max-width: 42rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-panel {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(21, 183, 195, 0.08);
  filter: blur(10px);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  margin-bottom: 1rem;
  background: rgba(223, 31, 31, 0.14);
  color: #ff8d8d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-stats > div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.hero-stats span,
.forum-meta {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stats strong,
.price-tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.4rem;
}

.feature-strip,
.forum-grid,
.store-grid {
  display: grid;
  gap: 1rem;
}

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 3rem;
}

.feature-card,
.forum-card,
.store-card {
  padding: 1.6rem;
}

.feature-card a,
.forum-card a,
.store-card a {
  display: inline-flex;
  margin-top: 1rem;
}

.forum-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.store-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.forums-layout {
  display: grid;
  grid-template-columns: 24rem minmax(0, 1fr);
  gap: 1rem;
}

.forum-sidebar,
.forum-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forum-panel {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.forum-categories,
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-button,
.thread-card {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-button {
  padding: 1rem;
}

.category-button strong,
.category-button span,
.category-button small {
  display: block;
}

.category-button span,
.category-button small,
.thread-meta,
.post-meta {
  color: var(--muted);
}

.category-button span,
.category-button small,
.thread-meta span,
.post-meta span {
  font-size: 0.82rem;
}

.category-button small {
  margin-top: 0.4rem;
}

.category-button.is-active,
.category-button:hover,
.thread-card.is-active,
.thread-card:hover {
  border-color: rgba(255, 90, 45, 0.3);
  background: rgba(255, 90, 45, 0.06);
  transform: translateY(-1px);
}

.forum-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.forum-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.forum-auth-prompt {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 90, 45, 0.24);
  background: rgba(255, 90, 45, 0.08);
  color: #ffc192;
}

.forum-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.thread-card {
  padding: 1.1rem;
}

.thread-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.thread-card p,
.thread-body,
.reply-card p {
  margin: 0;
  color: #d0d5de;
  line-height: 1.7;
}

.thread-meta,
.post-meta {
  display: flex;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.thread-full {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.thread-body {
  margin-top: 1rem;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.25rem;
}

.reply-card,
.reply-empty {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.forum-reply-form {
  margin-top: 1.5rem;
}

.forum-placeholder {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-card.featured {
  border-color: rgba(255, 90, 45, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 90, 45, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.price-tag {
  margin: 1.2rem 0;
  color: #ffd29c;
}

.page-staff .hero {
  position: relative;
  min-height: 8.3rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.18), rgba(6, 7, 11, 0.5)),
    radial-gradient(circle at 50% 0%, rgba(49, 73, 111, 0.16), transparent 35%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at center, rgba(70, 96, 144, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 8.3rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-shell {
  padding-bottom: 0;
}

.staff-layout {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  min-height: calc(100vh - 8.3rem);
  box-shadow: var(--shadow);
}

.role-sidebar {
  padding: 1.35rem 0 0 1.35rem;
}

.sidebar-block {
  position: sticky;
  top: 1.35rem;
  background: var(--panel-deep);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.6rem 1.2rem;
  min-height: 15.8rem;
}

.role-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.role-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.82rem 0.9rem;
  border-left: 3px solid transparent;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.role-link:hover,
.role-link.is-active {
  color: var(--text);
  border-left-color: var(--role-color, var(--accent));
  background: rgba(255, 255, 255, 0.03);
}

.staff-stage {
  padding: 1.65rem 2.4rem 4rem;
}

.notice,
.empty-state {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.notice {
  color: #ffb3b3;
  border-color: rgba(255, 101, 101, 0.2);
}

.staff-sections {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.staff-section {
  scroll-margin-top: 1.5rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 2.8rem;
  margin-bottom: 2.25rem;
}

.role-accent {
  width: 1rem;
  height: 5.9rem;
  flex: 0 0 auto;
  background: var(--accent);
}

.staff-section h3 {
  font-size: 3.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 210px));
  gap: 2.8rem 4rem;
  align-items: start;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.member-render-wrap {
  width: 166px;
  height: 244px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.member-render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  transition: transform 160ms ease, filter 160ms ease;
}

.member-render.is-avatar-fallback {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: auto;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.member-card:hover .member-render {
  transform: translateY(-4px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
}

.member-copy {
  text-align: center;
}

.member-name,
.member-username {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}

.member-username {
  display: none;
}

.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;
}

@media (max-width: 1080px) {
  .home-hero,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .forums-layout {
    grid-template-columns: 1fr;
  }

  .staff-layout {
    grid-template-columns: 1fr;
  }

  .role-sidebar {
    padding: 1rem 1rem 0;
  }

  .sidebar-block {
    position: static;
    min-height: auto;
  }

  .role-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .staff-stage {
    padding: 1.2rem 1rem 3rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-cta,
  .auth-controls,
  .auth-login,
  .auth-user {
    width: 100%;
  }

  .page-frame,
  .site-header,
  .hero-inner,
  .page-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .hero-stats,
  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-list {
    gap: 2rem 1rem;
  }

  .member-render-wrap {
    width: 128px;
    height: 188px;
  }

  .section-head {
    gap: 1rem;
  }

  .staff-section h3 {
    font-size: 2.35rem;
  }
}
