:root {
  --background: #000000;
  --foreground: #f2f2f2;
  --card: #0a0a0a;
  --muted: #8a8a8a;
  --border: #1c1c1c;
  --primary: #ffffff;
  --primary-fg: #0a0a0a;
  --ring: #ffffff;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html {
  font-family: Inter, system-ui, sans-serif;
  background: #000;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #000;
  color: var(--foreground);
  antialiased: true;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(#22222224 1px, transparent 1px),
    linear-gradient(90deg, #22222224 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(#000 0% 85%, transparent 100%);
}

::selection { background: #fff; color: #000; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#particles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
}

.glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.glow span {
  position: absolute;
  border-radius: 999px;
  filter: blur(140px);
}

.glow .a {
  top: 0;
  left: 33%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
}

.glow .b {
  right: 25%;
  bottom: 0;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
}

.page {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  animation: page-fade-in 0.35s ease-out both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.fade-up { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

.announcement {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.6);
  padding: 0.65rem 1.5rem;
}

.announcement::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.announcement p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(242, 242, 242, 0.9);
}

.announcement strong { font-weight: 600; color: #fff; }

.dot {
  display: inline-block;
  width: 2px;
  height: 2px;
  margin: 0 0.5rem;
  border-radius: 999px;
  background: currentColor;
  vertical-align: middle;
}

.announce-join {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.announce-join:hover { background: rgba(255, 255, 255, 0.15); }

.announce-x {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.75rem;
  color: rgba(242, 242, 242, 0.8);
}

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(28, 28, 28, 0.4);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  height: 3.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 17px;
}

.wordmark.sm { font-size: 13px; }

.nav-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: flex;
  transform: translate(-50%, -50%);
  gap: 0.25rem;
  border: 1px solid rgba(28, 28, 28, 0.5);
  background: rgba(8, 8, 8, 0.4);
  border-radius: 999px;
  padding: 0.25rem;
}

.nav-pill a {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-pill a.active {
  background: #fff;
  color: #0a0a0a;
}

.nav-pill a:not(.active):hover { color: rgba(242, 242, 242, 0.7); }

.header-actions {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ghost {
  display: none;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: 0;
}

.ghost:hover {
  background: rgba(8, 8, 8, 0.6);
  color: rgba(242, 242, 242, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
  color: #0a0a0a;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.9); }
.btn:active { transform: scale(1); }

.btn.discord {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.icon { width: 18px; height: 18px; fill: currentColor; }
.icon-sm { width: 14px; height: 14px; }

main { flex: 1; display: flex; flex-direction: column; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1rem;
  text-align: center;
}

.hero-dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-inner { position: relative; max-width: 48rem; margin: 0 auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(28, 28, 28, 0.5);
  background: rgba(10, 10, 10, 0.6);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

h1 {
  margin: 1.25rem 0 0;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 .white { color: #fff; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.pulse {
  position: relative;
  display: flex;
  width: 8px;
  height: 8px;
}

.pulse i,
.pulse b {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #fff;
}

.pulse i { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.6; }

.lede {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 2.5rem auto 0;
}

.field { position: relative; flex: 1; }

.field svg.search {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 3rem;
  border: 1px solid rgba(28, 28, 28, 0.6);
  border-radius: 0.375rem;
  background: rgba(10, 10, 10, 0.8);
  padding: 0 2.5rem 0 2.5rem;
  outline: none;
}

.field input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--muted);
}

.btn.search {
  height: 3rem;
  padding: 0 1.75rem;
  font-weight: 600;
}

.popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.popular span {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  color: rgba(138, 138, 138, 0.6);
}

.popular button {
  border: 1px solid rgba(28, 28, 28, 0.4);
  background: rgba(10, 10, 10, 0.5);
  border-radius: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.popular button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.rule {
  max-width: 80rem;
  height: 1px;
  margin: 0 auto;
  background: rgba(28, 28, 28, 0.3);
}

.guides {
  scroll-margin-top: 6rem;
  padding: 5rem 1rem;
}

.wrap { max-width: 80rem; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 2.5rem; }

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.section-head p { margin: 0.5rem 0 0; color: var(--muted); }

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dropdown { position: relative; width: 100%; }

.dropdown > button {
  display: flex;
  width: 100%;
  height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(28, 28, 28, 0.5);
  border-radius: 0.375rem;
  background: rgba(10, 10, 10, 0.6);
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: none;
  width: 100%;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 28, 0.6);
  border-radius: 0.375rem;
  background: #0a0a0a;
  padding: 0.25rem 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.menu.open { display: block; }

.menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
}

.menu button.active,
.menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px dashed rgba(28, 28, 28, 0.5);
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.4);
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty h3 { margin: 0; }
.empty p { margin: 0.5rem 0 0; color: var(--muted); max-width: 20rem; }

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid rgba(28, 28, 28, 0.5);
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.8);
  padding: 1.25rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card.featured {
  border-color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.card h3 { margin: 0; font-size: 1rem; }
.card .cat { margin: 0.15rem 0 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.card .desc {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges { display: flex; gap: 0.4rem; flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.15rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
}

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

.btn.open {
  height: auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.details {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.details:hover { color: #fff; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open { display: flex; }

.backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.sheet {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 28rem;
  border: 1px solid rgba(28, 28, 28, 0.6);
  border-radius: 0.75rem;
  background: #0a0a0a;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.sheet .close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0.35rem;
}

.sheet h2 { margin: 0.75rem 0 0; padding-right: 2rem; font-size: 1.25rem; }
.sheet p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; align-items: center; }

.modal.warning { z-index: 90; }

.warning-sheet {
  max-width: 32rem;
  border-color: rgba(255, 255, 255, 0.28);
}

.warning-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.warning-sheet h2 {
  margin-top: 0.4rem;
  font-size: 1.45rem;
}

.warning-sheet p strong {
  color: #fff;
  font-weight: 600;
}

.warning-sheet .row .btn.open {
  height: auto;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  text-align: center;
}

footer.site {
  position: relative;
  border-top: 1px solid rgba(28, 28, 28, 0.3);
  background: rgba(0, 0, 0, 0.8);
}

.watermark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px #1a1a1a;
  line-height: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.footer-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.footer-brand p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav a:hover { color: rgba(242, 242, 242, 0.7); }

.support { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.crumbs { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.875rem; margin-bottom: 2rem; }
.support h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.support > .lede { margin: 0 0 2.5rem; text-align: left; max-width: none; }
.tips { display: grid; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.tip {
  border: 1px solid rgba(28, 28, 28, 0.4);
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.6);
  padding: 1.25rem;
}
.step {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
}
.contact {
  border: 1px solid rgba(28, 28, 28, 0.5);
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.8);
  padding: 1.5rem;
}
.contact p { color: var(--muted); font-size: 0.875rem; }
.contact-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.btn.outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(28, 28, 28, 0.5);
  height: 2.5rem;
  padding: 0 1rem;
}
.btn.outline:hover { color: #fff; border-color: #333; transform: none; }

@media (min-width: 640px) {
  .header-inner { height: 4rem; padding: 0 1.5rem; }
  .nav-pill a { font-size: 0.875rem; padding: 0.4rem 1rem; }
  h1 { font-size: 3rem; }
  .search-form { flex-direction: row; }
  .filters { flex-direction: row; }
  .dropdown { width: 12rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 7rem 1.5rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .tips { grid-template-columns: 1fr 1fr; }
  .contact-actions { flex-direction: row; }
}

@media (min-width: 1024px) {
  .ghost { display: inline-flex; }
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .tips { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
