:root {
  --bg: #0d0e14;
  --bg-2: #14161f;
  --surface: #181a24;
  --surface-2: #1f2230;
  --line: #2a2d3a;
  --line-2: #353847;

  --text: #e8e9ef;
  --text-dim: #a4a7b3;
  --text-faint: #6b6e7c;

  --violet: #a78bfa;
  --violet-bright: #c7b5ff;
  --violet-fill: rgba(167, 139, 250, 0.08);
  --violet-fill-hover: rgba(167, 139, 250, 0.15);

  --blurple: #818cf8;
  --blurple-fill: rgba(129, 140, 248, 0.08);
  --blurple-fill-hover: rgba(129, 140, 248, 0.16);

  --amber: #fbbf24;
  --amber-fill: rgba(251, 191, 36, 0.08);
  --amber-fill-hover: rgba(251, 191, 36, 0.16);

  --pink: #f472b6;
  --pink-fill: rgba(244, 114, 182, 0.08);

  --green: #4ade80;
  --red: #ef4444;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pixel: 'Press Start 2P', monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(167, 139, 250, 0.10), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(244, 114, 182, 0.06), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--violet-bright); text-decoration: none; }
a:hover { color: var(--amber); }

.topbar {
  position: sticky;
  top: 0;
  background: rgba(13, 14, 20, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 14px 28px;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
  border: 1px solid var(--line);
}

.brand .wordmark {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}

.brand .tagline {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--body);
  font-size: 14px;
  padding: 8px 14px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.nav-link.active {
  color: var(--violet-bright);
  background: var(--violet-fill);
  border-color: var(--violet);
}

.topbar-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border: 1.5px solid;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
}

.btn:active { transform: translateY(1px); }

.btn-violet {
  border-color: var(--violet);
  background: var(--violet-fill);
  color: var(--violet-bright);
}
.btn-violet:hover {
  background: var(--violet-fill-hover);
  border-color: var(--violet-bright);
  color: var(--violet-bright);
}

.btn-blurple {
  border-color: var(--blurple);
  background: var(--blurple-fill);
  color: #b4bbf9;
}
.btn-blurple:hover {
  background: var(--blurple-fill-hover);
  border-color: #b4bbf9;
  color: #d3d8fc;
}

.btn-amber {
  border-color: var(--amber);
  background: var(--amber-fill);
  color: #fcd34d;
}
.btn-amber:hover {
  background: var(--amber-fill-hover);
  color: #fde68a;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--line-2); color: var(--text); background: var(--surface); }

.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--radius); }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--violet) 70%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 24px;
}

.hero-text .accent { color: var(--violet-bright); }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-logo {
  width: 168px;
  height: 168px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  image-rendering: pixelated;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15),
    0 12px 40px rgba(167, 139, 250, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s;
}

.status-pill.online {
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--green);
  background: rgba(74, 222, 128, 0.06);
}

.status-pill.offline {
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--red);
  background: rgba(239, 68, 68, 0.06);
}

.status-pill.checking { color: var(--text-faint); }

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px transparent;
}

.status-pill.online .status-dot {
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: glow 1.8s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 6px var(--green), 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 12px var(--green), 0 0 0 6px rgba(74, 222, 128, 0); }
}

.ip-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ip-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.ip-block code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--amber);
}

.copy-btn {
  font-family: var(--body);
  font-size: 12px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.copy-btn:hover { color: var(--violet-bright); border-color: var(--violet); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.cta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 56px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1.5px solid;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, transform 0.1s;
}

.cta-card:active { transform: translateY(1px); }

.cta-blurple {
  border-color: var(--blurple);
  background: var(--blurple-fill);
  color: #b4bbf9;
}
.cta-blurple:hover { background: var(--blurple-fill-hover); border-color: #b4bbf9; }

.cta-amber {
  border-color: var(--amber);
  background: var(--amber-fill);
  color: #fcd34d;
}
.cta-amber:hover { background: var(--amber-fill-hover); }

.cta-violet {
  border-color: var(--violet);
  background: var(--violet-fill);
  color: var(--violet-bright);
}
.cta-violet:hover { background: var(--violet-fill-hover); }

.cta-card .cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

.cta-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.cta-card p {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

.cta-card.cta-large h3 { font-size: 28px; }
.cta-card.cta-large p { font-size: 14px; }

.section-head {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
  font-weight: 500;
}

.section-title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 64ch;
  font-size: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.about-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--violet-bright);
}

.about-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

.rules-section { margin-bottom: 44px; }

.rules-section h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rules-section h2 .num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--violet);
  font-weight: 400;
}

.rules-section h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 10px;
  color: var(--violet-bright);
}

.rules-section h3.h3-spaced { margin-top: 24px; }

.rules-section .lede {
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 64ch;
}

.rules-section .lede strong { color: var(--amber); }

.rules-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.rules-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.rules-list li.warn {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-fill), var(--surface) 30%);
}

.rules-list li strong { color: var(--amber); font-weight: 600; }
.rules-list li a { color: var(--violet-bright); text-decoration: underline; text-underline-offset: 3px; }
.rules-list li a:hover { color: var(--amber); }

.inline-code {
  font-family: var(--mono);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--violet-bright);
  font-size: 0.9em;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  list-style: none;
}

.mods-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}

.mods-grid li strong {
  display: block;
  color: var(--violet-bright);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.mods-grid li span { color: var(--text-dim); font-size: 13px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.info-card .key {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.info-card .val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--amber);
  word-break: break-all;
}

.info-card .val.text {
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.info-card .val a { color: var(--amber); }

.vote-block {
  background: linear-gradient(135deg, var(--violet-fill), var(--pink-fill));
  border: 1px solid var(--violet);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.vote-block h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--violet-bright);
}

.vote-block p { color: var(--text-dim); margin-bottom: 16px; }

.vote-block .vote-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.shop-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 16px;
  pointer-events: none;
}

.shop-search {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  padding: 14px 16px 14px 44px;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.shop-search:focus {
  border-color: var(--violet);
  background: var(--bg-2);
}

.shop-search::placeholder { color: var(--text-faint); }

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-right: 4px;
  font-weight: 500;
}

.tag-chip {
  font-family: var(--body);
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 500;
}

.tag-chip:hover { color: var(--violet-bright); border-color: var(--violet); }

.tag-chip.active {
  background: var(--violet-fill-hover);
  border-color: var(--violet);
  color: var(--violet-bright);
}

.shop-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.shop-meta-row .legend { display: flex; gap: 14px; flex-wrap: wrap; }
.shop-meta-row .legend span { display: inline-flex; align-items: center; gap: 6px; }
.shop-meta-row .legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.shop-meta-row .legend .dot.spec { background: var(--amber); }
.shop-meta-row .legend .dot.gen { background: var(--text-faint); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.1s, border-color 0.15s, background-color 0.15s;
}

.shop-card:hover { transform: translateY(-2px); border-color: var(--line-2); }

.shop-card.specialized {
  border-left: 3px solid var(--amber);
}
.shop-card.specialized:hover { border-color: var(--amber); border-left-color: var(--amber); }

.shop-card.general {
  border-left: 3px solid var(--text-faint);
}
.shop-card.general:hover { border-color: var(--violet); border-left-color: var(--violet); }

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.shop-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--text);
}

.shop-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  font-weight: 500;
}

.badge-spec {
  border: 1px solid var(--amber);
  color: var(--amber);
  background: var(--amber-fill);
}

.badge-gen {
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  background: var(--bg-2);
}

.shop-meta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-meta .row { display: flex; gap: 8px; align-items: center; }

.shop-meta .key {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  width: 56px;
  flex-shrink: 0;
}

.shop-meta .owner { color: var(--violet-bright); font-weight: 500; }

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.shop-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}

.shop-items {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.shop-items .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 8px;
  display: block;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.item-list .item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
}

.item-list .item.more {
  color: var(--text-faint);
  background: transparent;
  border-style: dashed;
}

.item-list mark {
  background: rgba(251, 191, 36, 0.25);
  color: var(--amber);
  padding: 0 2px;
  border-radius: 2px;
}

.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}

.results-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results-count strong { color: var(--violet-bright); font-weight: 600; }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 28px;
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-inner code {
  font-family: var(--mono);
  font-size: 12px;
}

.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-links > *:not(:last-child) { display: inline-flex; align-items: center; }
.footer-links > *:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--violet-bright); }

.disclaimer {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
}

.disclaimer code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet-bright);
}

@media (max-width: 860px) {
  .topbar { padding: 12px 16px; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .nav-link { font-size: 13px; padding: 7px 11px; flex-shrink: 0; }
  .topbar-actions { margin-left: auto; }
  .btn { font-size: 12px; padding: 7px 11px; }

  main { padding: 32px 16px 60px; }

  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-text h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-text p { font-size: 15px; }
  .hero-logo { width: 110px; height: 110px; justify-self: start; }

  .status-card { padding: 14px; }
  .cta-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .mods-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .cta-card.cta-large h3 { font-size: 22px; }
}
