:root {
  --bg-0: #040406;
  --bg-1: #0a0a0f;
  --bg-2: #12121a;
  --red: #ff1a3d;
  --red-soft: #ff4d6d;
  --red-glow: rgba(255, 26, 61, 0.45);
  --red-dim: rgba(255, 26, 61, 0.12);
  --text: #f4f4f8;
  --muted: #9a9aad;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(10, 10, 16, 0.72);
  --glass-strong: rgba(14, 14, 22, 0.88);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a0610 0%, var(--bg-0) 45%, #000 100%);
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.35) 2px,
    rgba(255, 255, 255, 0.35) 3px
  );
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.site-header,
.content,
.site-footer {
  position: relative;
  z-index: 2;
}

.panel-wrap {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0 0;
  margin-bottom: 0.5rem;
}

.site-header .tab-nav {
  flex-shrink: 0;
  margin-bottom: -1px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(255, 61, 90, 0.35);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px var(--red-glow), 0 0 40px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
}

.brand-title {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tab-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.tab-btn,
.cta {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn {
  padding: 0.85rem 1.05rem;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover,
.tab-btn:focus-visible {
  color: var(--text);
  outline: none;
}

.tab-btn.active {
  color: var(--red-soft);
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--red);
}

.content {
  padding: 1rem 0 3rem;
}

.plugins-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
}

.plugin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plugin-list-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.plugin-list-btn .emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.plugin-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--plugin-icon-color, var(--red-soft));
  background: var(--plugin-icon-bg, var(--red-dim));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plugin-icon-color, #ff3d5a) 38%, transparent);
}

.plugin-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.plugin-icon-lg {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9px;
  vertical-align: middle;
  margin-right: .15rem;
}

.plugin-icon-lg svg {
  width: 1.05rem;
  height: 1.05rem;
}

.plugin-detail-header h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.plugin-icon-fallback {
  font-size: .85rem;
  font-weight: 700;
}

.plugin-list-btn .plugin-list-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.plugin-list-btn .plugin-list-name {
  color: var(--text);
  font-weight: 700;
}

.plugin-list-btn .plugin-list-cmds {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugin-list-btn:hover,
.plugin-list-btn:focus-visible {
  color: var(--text);
  border-color: var(--red-soft);
  background: var(--red-dim);
  outline: none;
}

.plugin-list-btn.active {
  color: var(--red-soft);
  border-color: var(--red-soft);
  background: rgba(255, 26, 61, 0.15);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plugin-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 1.25rem;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.plugin-detail-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.plugin-detail-header h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plugin-detail-desc {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.detail-subhead {
  margin: 1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red-soft);
}

.plugin-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--red-dim);
  color: var(--red-soft);
}

.command-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
}

.command-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--red-soft);
}

.command-card h4 code {
  font-size: 1.05rem;
  background: transparent;
  padding: 0;
  color: inherit;
}

.command-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.command-card .cmd-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.feature-card strong {
  color: var(--text);
}

.feature-card .muted {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.panel {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel[hidden] {
  display: block;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.panel.active[hidden] {
  visibility: visible;
  height: auto;
  overflow: visible;
}

.hero {
  margin-bottom: 1.5rem;
}

.hero-copy,
.stat-card,
.quick-card,
.plugin-card,
.cooldown-card,
.limit-card,
.side-note,
.allowed-banner {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--red-soft);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-copy h2,
.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
}

.lead,
.section-desc {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

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

.cta {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cta.primary {
  color: #fff;
  background: linear-gradient(135deg, #a00024, var(--red) 55%, #ff5c7a);
  box-shadow: 0 10px 30px var(--red-dim);
}

.cta.primary:hover,
.cta.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 26, 61, 0.35);
  outline: none;
}

.cta.ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 26, 61, 0.35);
}

.cta.ghost:hover,
.cta.ghost:focus-visible {
  border-color: var(--red-soft);
  background: var(--red-dim);
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat-card {
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red-soft);
}

.stat-label {
  font-size: 0.92rem;
  color: var(--muted);
}

.quick-grid,
.plugin-grid,
.cooldown-grid,
.limit-grid {
  display: grid;
  gap: 1rem;
}

.quick-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quick-card {
  padding: 1.25rem;
}

.quick-card h3,
.plugin-card h3,
.limit-card h3,
.side-note h3,
.allowed-banner h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.quick-card p,
.plugin-card p,
.limit-card p,
.side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

.link-ingame-notice {
  margin-top: 0.75rem !important;
  color: var(--red-soft) !important;
}

.link-card-highlight {
  border-color: var(--red-soft);
  box-shadow: 0 0 0 1px rgba(255, 26, 61, 0.25), var(--shadow);
}

code {
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 26, 61, 0.12);
  color: #ffb3c1;
  font-size: 0.92em;
}

.section-head {
  margin-bottom: 1.25rem;
}

.plugin-grid {
  grid-template-columns: repeat(3, 1fr);
}

.plugin-card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plugin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 26, 61, 0.35);
  box-shadow: 0 20px 50px rgba(255, 26, 61, 0.08);
}

.plugin-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 26, 61, 0.2), rgba(255, 26, 61, 0.05));
  border: 1px solid rgba(255, 26, 61, 0.25);
  font-size: 1.2rem;
}

.plugin-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-soft);
  background: var(--red-dim);
  border: 1px solid rgba(255, 26, 61, 0.2);
}

.plugin-commands {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plugin-commands li {
  font-size: 0.82rem;
  color: #d5d5e2;
}

.cooldown-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
}

.cooldown-grid {
  grid-template-columns: repeat(2, 1fr);
}

.cooldown-card {
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cooldown-card .label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cooldown-card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.cooldown-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cooldown-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red-soft);
  white-space: nowrap;
}

.side-note,
.allowed-banner {
  padding: 1.35rem;
}

.side-note h3:not(:first-child),
.allowed-banner h3 {
  margin-top: 1rem;
}

.limit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.limit-card {
  padding: 1.25rem;
  border-left: 3px solid var(--red);
}

.limit-status {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8fa3;
}

.allowed-banner {
  margin-top: 1rem;
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 1rem;
}

.site-footer .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 1024px) {
  .cooldown-layout {
    grid-template-columns: 1fr;
  }

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

  .plugin-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .plugin-list-btn {
    width: auto;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 140px;
  }

  .quick-grid,
  .limit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .site-header .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-nav {
    justify-content: flex-start;
  }

  .tab-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.68rem;
  }

  .quick-grid,
  .cooldown-grid,
  .limit-grid {
    grid-template-columns: 1fr;
  }

  .plugin-list-btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

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

.link-page .link-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.link-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.link-back:hover,
.link-back:focus-visible {
  color: var(--red-soft);
}

.link-card {
  width: min(100%, 480px);
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

.link-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.35rem 0 1rem;
}

.link-card .lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.link-discord-btn {
  width: 100%;
  justify-content: center;
  background: #5865f2 !important;
  border-color: #5865f2 !important;
}

.link-discord-btn:hover,
.link-discord-btn:focus-visible {
  background: #4752c4 !important;
  border-color: #4752c4 !important;
}
