/* Constellation SMP — Dark Celestial Theme */
:root {
  --bg-deep: #050510;
  --bg-navy: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;
  --purple: #7b2fff;
  --purple-dim: #5a1fcf;
  --pink: #ff2d95;
  --pink-glow: rgba(255, 45, 149, 0.45);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --text: #e8e8f0;
  --text-muted: #9a9ab8;
  --border: rgba(123, 47, 255, 0.35);
  --glow-pink: 0 0 20px rgba(255, 45, 149, 0.35);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
  --glow-purple: 0 0 24px rgba(123, 47, 255, 0.4);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  background-image: url(assets/site-bg.webp), url(assets/site-bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  font-family: var(--font);
  background-color: transparent;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: url(assets/site-bg.webp), url(assets/site-bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Dark overlay + soft vignette for readable text/cards */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 16, 0.55) 0%, rgba(5, 5, 16, 0.45) 40%, rgba(5, 5, 16, 0.65) 100%),
    radial-gradient(ellipse 75% 60% at 50% 40%, transparent 35%, rgba(5, 5, 16, 0.55) 100%);
}

/* Soft edge vignette only (no procedural star noise) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.65rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: var(--glow-purple), inset 0 0 12px rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.logo span { background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.nav-toggle:hover { border-color: var(--pink); box-shadow: var(--glow-pink); }

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem 0.2rem;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.42rem;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(123, 47, 255, 0.25);
  box-shadow: 0 0 12px rgba(123, 47, 255, 0.2);
}

.main-nav a.active { border: 1px solid rgba(255, 45, 149, 0.4); }

/* ——— Main ——— */
main { flex: 1; padding: 2.5rem 0 4rem; }

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.25));
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border-radius: 2px;
  box-shadow: var(--glow-pink);
}

/* ——— Cards ——— */
.card {
  background: linear-gradient(160deg, rgba(26, 26, 58, 0.9), rgba(12, 12, 32, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: var(--glow-pink), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (max-width: 900px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .card-grid-4,
  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: var(--glow-pink);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.12);
  color: #fff;
}

.btn-ghost {
  background: rgba(123, 47, 255, 0.2);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: #fff;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; }

/* ——— IP copy ——— */
.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1.2rem;
  box-shadow: var(--glow-cyan);
  flex-wrap: wrap;
  justify-content: center;
}

.ip-box code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 600;
}

.copy-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
}

.copy-btn:hover { box-shadow: var(--glow-pink); }
.copy-btn.copied { background: linear-gradient(135deg, #00c853, var(--cyan)); }

/* ——— HOME ——— */
.hero-home {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero-home .eyebrow {
  display: inline-block;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px var(--pink-glow);
}

.hero-home h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(105deg, #fff 20%, var(--cyan) 50%, var(--pink) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(123, 47, 255, 0.35));
}

.hero-home .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-ip { margin-bottom: 2.5rem; }

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 18, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--glow-purple);
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-size: 0.85rem;
}

.home-preview {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-preview .card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.home-preview .card p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 700px) {
  .home-preview { grid-template-columns: 1fr; }
}

/* ——— About ——— */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

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

.portal-art {
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.portal-art picture,
.portal-art img {
  display: block;
  width: 100%;
  height: auto;
}

.mission-block {
  margin-top: 0.5rem;
  padding: 1.75rem;
  border-left: 3px solid var(--pink);
  background: rgba(123, 47, 255, 0.1);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mission-block h2 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.mission-block p { color: var(--text-muted); }

.feature-icon-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.4), rgba(255, 45, 149, 0.3));
  border: 1px solid var(--border);
  box-shadow: var(--glow-purple);
}

.feature-icon-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature-icon-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ——— Powers ——— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.filter-btn {
  background: rgba(18, 18, 42, 0.9);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: var(--pink);
  background: rgba(255, 45, 149, 0.2);
  box-shadow: var(--glow-pink);
}

.power-card[data-category] { transition: opacity 0.25s, transform 0.25s; }
.power-card.hidden { display: none; }

.power-card .power-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.power-card.lunar .power-badge { background: rgba(160, 180, 255, 0.25); color: #a0b4ff; border: 1px solid rgba(160,180,255,0.4); }
.power-card.solar .power-badge { background: rgba(255, 180, 50, 0.25); color: #ffb432; border: 1px solid rgba(255,180,50,0.4); }
.power-card.stellar .power-badge { background: rgba(0, 229, 255, 0.2); color: var(--cyan); border: 1px solid rgba(0,229,255,0.4); }
.power-card.void .power-badge { background: rgba(123, 47, 255, 0.3); color: #c9a0ff; border: 1px solid rgba(123,47,255,0.5); }

.power-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.power-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.ability-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ability-list li {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border-left: 2px solid var(--cyan);
}

.ability-list li strong { color: var(--pink); }

.unlock-section {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(123, 47, 255, 0.12));
}

.unlock-section ol {
  margin: 1rem 0 0 1.25rem;
  color: var(--text-muted);
}

.unlock-section li { margin-bottom: 0.5rem; }

/* ——— Features page ——— */
.feat-tile {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.feat-tile .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.feat-tile h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.feat-tile p { color: var(--text-muted); font-size: 0.88rem; }

/* ——— Store ——— */
.store-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.store-cats span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(123, 47, 255, 0.2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.store-cats span.hot {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: var(--glow-pink);
}

.rank-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rank-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 0.5rem 0 1rem;
  text-shadow: 0 0 12px var(--cyan-glow);
}

.rank-card .price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rank-card ul {
  flex: 1;
  margin-bottom: 1.25rem;
}

.rank-card ul li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rank-card ul li::before {
  content: "✦ ";
  color: var(--pink);
}

.rank-card.featured {
  border-color: rgba(255, 45, 149, 0.55);
  box-shadow: var(--glow-pink);
}

.rank-card.coming-soon {
  opacity: 0.85;
  border-style: dashed;
}
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.rank-card .ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 2rem;
  transform: rotate(35deg);
  text-transform: uppercase;
}

/* ——— Staff ——— */
.tier-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tier-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.staff-card {
  text-align: center;
  padding: 1.25rem 0.85rem;
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 16px rgba(123, 47, 255, 0.35);
}

.staff-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.staff-card .rank {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.hierarchy-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hierarchy-flow .h-item {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(123, 47, 255, 0.25);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hierarchy-flow .h-item::after {
  content: " →";
  color: var(--pink);
  opacity: 0.6;
}

.hierarchy-flow .h-item:last-child::after { content: ""; }

/* ——— Rules ——— */
.rules-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 700px) {
  .rules-cols { grid-template-columns: 1fr; }
}

.rules-list { counter-reset: rule; }
.rules-list li {
  counter-increment: rule;
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.warning-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 180, 0, 0.45);
  background: rgba(255, 140, 0, 0.1);
  box-shadow: 0 0 24px rgba(255, 140, 0, 0.15);
}

.warning-box h3 {
  color: #ffb432;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box p { color: var(--text-muted); font-size: 0.92rem; }

.punish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.punish-tags span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,180,50,0.4);
  color: #ffb432;
}

/* ——— Apply ——— */
.apply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.apply-row .info h3 { margin-bottom: 0.25rem; }
.apply-row .info p { color: var(--text-muted); font-size: 0.9rem; max-width: 520px; }

/* ——— Status ——— */
.status-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 2rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(0, 200, 83, 0.2);
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: #00e676;
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.status-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.player-count {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.player-count span { color: var(--cyan); }

.status-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
  text-align: left;
}

.status-meta .meta-item {
  background: rgba(0,0,0,0.3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.status-meta .meta-item label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.status-meta .meta-item strong { color: #fff; }

.status-badge.is-offline {
  background: rgba(255, 82, 82, 0.18);
  border-color: rgba(255, 82, 82, 0.5);
  color: #ff8a80;
  box-shadow: 0 0 18px rgba(255, 82, 82, 0.25);
}
.status-badge.is-offline .dot {
  background: #ff5252;
  box-shadow: 0 0 8px #ff5252;
  animation: none;
}
.status-badge.is-checking {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd54f;
  box-shadow: none;
}
.status-badge.is-checking .dot {
  background: #ffd54f;
  box-shadow: 0 0 8px #ffd54f;
}
.status-badge.is-online {
  background: rgba(0, 200, 83, 0.2);
  border-color: rgba(0, 200, 83, 0.5);
  color: #00e676;
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}
.status-note {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: 0.85rem;
}
.hero-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}
.hero-status {
  margin-bottom: 0;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
}
.hero-players {
  font-size: 0.9rem;
  font-weight: 600;
}



/* ——— Ticket counters on status ——— */
.ticket-stats-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 1.75rem 2rem;
}
.ticket-stats-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticket-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ticket-stat {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
}
.ticket-stat .num {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.ticket-stat.is-open .num { color: var(--cyan); }
.ticket-stat.is-closed .num { color: #ff8a80; }
.ticket-stat label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.ticket-stats-panel .ticket-stats-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.9rem;
}

/* ——— News ——— */
.news-card .date {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.news-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.news-actions { text-align: center; margin-top: 2rem; }

/* ——— FAQ ——— */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  background: rgba(18, 18, 42, 0.85);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover { background: rgba(123, 47, 255, 0.15); }

.faq-q .chevron {
  transition: transform 0.25s;
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-item.open .faq-q .chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.85rem;
}

.faq-item.open .faq-a { display: block; }

/* ——— Discord ——— */

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 5, 16, 0.95);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.25rem 0;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ——— Mobile nav ——— */
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 24, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.15rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .header-inner { position: relative; }
}

/* utilities */
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }


/* ——— Staff tree (Minecraft-y hierarchy) ——— */
.staff-tree {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto 1.5rem;
  max-width: 820px;
  position: relative;
  padding-left: 0.25rem;
}

.staff-tree::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 3px;
  background: linear-gradient(180deg, #ffd54f, #55ff55 35%, #5cdeff 70%, #9a9ab8);
  opacity: 0.55;
  border-radius: 2px;
  pointer-events: none;
}

.staff-rank-row.mc-block {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 30, 55, 0.95), rgba(14, 14, 32, 0.98));
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 1rem 1rem 1.1rem;
  margin-left: 1.75rem;
  image-rendering: pixelated;
}

.staff-rank-row.mc-block::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.35rem;
  width: 1.25rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
}

.mc-block.accent-gold {
  border-color: #ffd54f;
  box-shadow:
    inset 0 2px 0 rgba(255, 213, 79, 0.25),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 213, 79, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.mc-block.accent-diamond {
  border-color: #5cdeff;
  box-shadow:
    inset 0 2px 0 rgba(92, 222, 255, 0.22),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 0 18px rgba(92, 222, 255, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.mc-block.accent-emerald {
  border-color: #55ff55;
  box-shadow:
    inset 0 2px 0 rgba(85, 255, 85, 0.2),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 0 18px rgba(85, 255, 85, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.mc-block.accent-iron {
  border-color: rgba(180, 180, 200, 0.55);
}

.mc-rank-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.mc-rank-emoji {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.mc-rank-title {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
}

.mc-open-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a0a14;
  background: linear-gradient(180deg, #ffe082, #ffb300);
  border: 2px solid #fff3c4;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.mc-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mc-member {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 8, 24, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  min-height: 2.25rem;
}

.mc-avatar {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0a14;
  background:
    linear-gradient(135deg, #c9a0ff, #00e5ff 55%, #ff2d95);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.mc-member-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.mc-member.vacant {
  border-style: dashed;
  border-color: rgba(255, 179, 0, 0.65);
  background: rgba(255, 179, 0, 0.08);
  padding-left: 0.65rem;
}

.mc-member.vacant .mc-member-name {
  color: #ffd54f;
  font-weight: 700;
}

.staff-rank-row.vacant-rank {
  opacity: 0.92;
  border-style: dashed;
}

.about-cta .btn {
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .staff-tree::before { left: 0.55rem; }
  .staff-rank-row.mc-block { margin-left: 1.1rem; padding: 0.8rem; }
  .staff-rank-row.mc-block::before { left: -1rem; width: 0.85rem; }
  .mc-open-badge { margin-left: 0; }
}


/* Discord live page */
.discord-page {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .discord-page { grid-template-columns: 1fr; }
}
.discord-invite {
  text-align: left;
  padding: 2.25rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(88,101,242,0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(123,47,255,0.22), transparent 50%),
    rgba(12,12,28,0.7);
  border-color: rgba(88,101,242,0.45);
  box-shadow: 0 0 40px rgba(88,101,242,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.discord-invite h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.35rem 0 0.75rem;
}
.discord-tagline {
  color: var(--text-muted);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}
.discord-logo {
  width: 72px;
  height: 72px;
  margin: 0 0 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #5865F2, #7b2fff);
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px rgba(88, 101, 242, 0.55);
}
.discord-livebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,200,83,0.18);
  border: 1px solid rgba(0,200,83,0.45);
  color: #69f0ae;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: blink 1.5s infinite;
}
.live-count {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.live-count strong {
  font-size: 1.5rem;
  color: #fff;
  margin-right: 0.2rem;
}
.discord-join { align-self: flex-start; }
.discord-widget-card {
  padding: 0.75rem;
  background: #111214;
  border-color: rgba(88,101,242,0.35);
}
.discord-widget-frame {
  display: flex;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1f22;
  min-height: 520px;
}
.discord-widget-frame iframe {
  width: 100%;
  max-width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
.discord-widget-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}


/* ===== BIG Minecraft staff tree ===== */
.container-wide { max-width: 920px; }
.mc-tree-wrap {
  position: relative;
  padding: 1rem 0 2rem;
  margin: 0 auto;
}
.mc-tree {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.mc-tree::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 6px;
  background:
    repeating-linear-gradient(
      180deg,
      #5a3a1a 0 10px,
      #3d2810 10px 14px
    );
  border: 2px solid #2a1a08;
  border-radius: 2px;
  box-shadow: 2px 0 0 #1a1005;
}
.tree-node.mc-block {
  position: relative;
  margin: 0;
  padding: 1rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 100%);
  border: 4px solid #111;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.08),
    inset 0 -3px 0 rgba(0,0,0,0.35),
    0 0 0 2px #000,
    0 8px 24px rgba(0,0,0,0.45);
  image-rendering: pixelated;
}
.tree-node.mc-block::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 1.35rem;
  width: 1.7rem;
  height: 6px;
  background: #5a3a1a;
  border-top: 2px solid #2a1a08;
  border-bottom: 2px solid #2a1a08;
}
.tree-node.mc-block::after {
  content: "";
  position: absolute;
  left: -0.72rem;
  top: 1.15rem;
  width: 14px;
  height: 14px;
  background: #c6a15b;
  border: 2px solid #2a1a08;
  box-shadow: inset 1px 1px 0 #e8d5a3;
}
.tree-rank {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 0 #000;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tree-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tree-name {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f2f2f2;
  background: #0f0f0f;
  border: 3px solid #333;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.tree-name.open {
  color: #9ae6b4;
  border-color: #2f6b45;
  background: #0d1a12;
  font-style: italic;
  font-weight: 600;
}
.tree-node.accent-gold {
  border-color: #c6a15b;
  background: linear-gradient(180deg, #3a2f12 0%, #1f1808 100%);
}
.tree-node.accent-diamond {
  border-color: #5ec8e8;
  background: linear-gradient(180deg, #12303a 0%, #0a181e 100%);
}
.tree-node.accent-emerald {
  border-color: #3ecf7a;
  background: linear-gradient(180deg, #123a22 0%, #0a1a12 100%);
}
.tree-node.accent-iron {
  border-color: #9aa3ad;
  background: linear-gradient(180deg, #2a2e33 0%, #15181b 100%);
}
.tree-node.vacant-rank {
  opacity: 0.92;
  border-style: dashed;
}
@media (max-width: 640px) {
  .mc-tree { padding-left: 2rem; gap: 0.9rem; }
  .mc-tree::before { left: 0.7rem; width: 5px; }
  .tree-node.mc-block::before { left: -1.7rem; width: 1.2rem; }
  .tree-node.mc-block::after { left: -0.55rem; }
  .tree-rank { font-size: 1.15rem; }
  .tree-name { font-size: 0.95rem; }
}


/* Staff poster (user artwork) */
.container-staff { max-width: 980px; }
.staff-hero-compact { margin-bottom: 1rem; }
.staff-poster {
  margin: 0 auto 1.5rem;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(123, 47, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), var(--glow-purple);
  background: #0a0a12;
}
.staff-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.staff-text-fallback {
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
}
.staff-text-fallback summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cyan);
}
.staff-plain-list {
  margin: 0.85rem 0 0.25rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.staff-plain-list strong { color: var(--text); }

/* Staff poster title overlay — covers original PANTHAGATER title */
.staff-poster-titled {
  position: relative;
}
.staff-title-banner {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 11.5%;
  height: 12.5%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(110, 170, 230, 0.55) 0%,
    rgba(95, 155, 220, 0.82) 35%,
    rgba(90, 150, 215, 0.88) 65%,
    rgba(100, 160, 225, 0.55) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 6px;
}
.staff-title-3d {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-size: clamp(1.15rem, 4.6vw, 2.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8dde6;
  text-shadow:
    0 1px 0 #fff,
    1px 1px 0 #9aa3b0,
    2px 2px 0 #6b7380,
    3px 3px 0 #3a3f48,
    4px 4px 0 #1c1f24,
    5px 5px 8px rgba(0,0,0,0.35);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .staff-title-banner { top: 10.5%; height: 13.5%; }
  .staff-title-3d { letter-spacing: 0.02em; }
}


/* ——— Donor ticker ——— */
.donor-ticker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 18, 42, 0.75);
  overflow: hidden;
}
.donor-kicker {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  white-space: nowrap;
}
.donor-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.donor-track .marquee {
  display: inline-block;
  padding-left: 100%;
  animation: donorScroll 28s linear infinite;
}
.donor-track strong { color: #fff; }
@keyframes donorScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.donor-box {
  margin: 0 0 2rem;
  padding: 1.5rem 1.6rem 1.35rem;
}
.donor-box-head h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.45rem;
  color: #fff;
}
.donor-box-list {
  list-style: none;
  margin: 1rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.donor-box-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.28);
}
.donor-place {
  flex: 0 0 1.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.donor-box-list strong { color: #fff; }
.donor-rank {
  font-variant-numeric: tabular-nums;

  margin-left: auto;
  font-size: 0.78rem;
  color: var(--pink);
  font-weight: 700;
}

/* ——— Tickets ——— */
.ticket-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}
.ticket-auth-hint { margin: 0; font-size: 0.88rem; }
.ticket-layout {
  display: block;
  margin-bottom: 2rem;
}
.ticket-layout .card:hover { transform: none; }
.ticket-auth h2, .ticket-form legend {
  margin-bottom: 0.5rem;
}
.ticket-form {
  display: grid;
  gap: 0.75rem;
}
.ticket-form fieldset { border: 0; }
.ticket-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.ticket-form input,
.ticket-form select,
.ticket-form textarea {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.ticket-form textarea { resize: vertical; min-height: 5rem; }
.ticket-form-compact {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--border);
}
.choice-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.discord-signed {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.discord-signed .btn { margin-left: auto; }
.discord-signed img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.verify-pill {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #69f0ae;
}
.staff-pill {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ticket-chat {
  padding: 0;
  overflow: hidden;
}
.ticket-chat-inner {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  height: min(84vh, 54rem);
  min-height: 36rem;
}
.ticket-inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border);
  padding: 1rem 0.9rem;
  background: rgba(0,0,0,0.18);
}
.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ticket-inbox h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.ticket-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.ticket-empty-copy { font-size: 0.88rem; }
.inbox-item {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  width: 100%;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.inbox-item:hover {
  border-color: rgba(0, 229, 255, 0.45);
}
.inbox-item.active {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(0, 229, 255, 0.08);
}
.inbox-item-top {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.inbox-item strong {
  font-size: 0.88rem;
  color: #fff;
}
.inbox-item .preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kind-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.kind-pill.is-ticket { color: var(--cyan); border-color: rgba(0,229,255,0.4); }
.kind-pill.is-appeal { color: var(--pink); border-color: rgba(255,45,149,0.45); }
.status-pill.is-open { color: #69f0ae; border-color: rgba(105,240,174,0.45); }
.status-pill.is-closed { color: var(--text-muted); }
.ticket-thread-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
}
.ticket-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.ticket-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  flex: 1;
}
.ticket-thread[hidden],
.ticket-empty[hidden],
.ticket-composer[hidden],
.ticket-form[hidden] {
  display: none !important;
}
.ticket-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ticket-thread-head h3 {
  font-size: 1rem;
  color: #fff;
}
.ticket-thread-meta { font-size: 0.8rem; margin-top: 0.15rem; }
.ticket-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 100%;
}
.btn-compact {
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
}
.ticket-messages {
  flex: 1 1 auto;
  min-height: 12rem;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  scrollbar-gutter: stable;
}
.bubble {
  max-width: min(78%, 28rem);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 42, 0.9);
}
.bubble .bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.bubble .bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-size: 0.92rem;
}
.bubble.player {
  align-self: flex-end;
  background: linear-gradient(160deg, rgba(123, 47, 255, 0.28), rgba(255, 45, 149, 0.16));
  border-color: rgba(255, 45, 149, 0.4);
  border-bottom-right-radius: 4px;
}
.bubble.staff {
  align-self: flex-start;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.16), rgba(18, 18, 42, 0.9));
  border-color: rgba(0, 229, 255, 0.35);
  border-bottom-left-radius: 4px;
}
.ticket-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 24, 0.92);
  flex-shrink: 0;
}
.ticket-composer textarea {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  resize: vertical;
  min-height: 3.6rem;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
}
.ticket-composer .btn {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 5.5rem;
}
.ticket-composer [data-reply-status] {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}
.ticket-closed-note {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .ticket-chat-inner {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .ticket-inbox {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    max-height: none;
  }
  .ticket-thread-list { max-height: 11rem; }
  .ticket-thread-pane { min-height: 32rem; }
  .ticket-thread { min-height: 32rem; }
  .ticket-messages { min-height: 16rem; max-height: 55vh; }
}

/* ——— Features page: tighter hero and tiles ——— */
body.features-page main {
  padding-top: 1.25rem;
  padding-bottom: 2.25rem;
}
body.features-page .page-hero {
  margin-bottom: 1.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0;
}
body.features-page .card-grid { gap: 0.85rem; }
body.features-page .feat-tile { padding: 1rem 1.1rem; }
body.features-page .feat-tile .icon { margin-bottom: 0.35rem; }
body.features-page .unlock-section { margin-top: 1.15rem; }

/* ——— Blog articles ——— */
.news-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.news-actions .discord-quiet {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}
.blog-article .date {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.blog-article h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.01em;
}
.blog-article p {
  color: var(--text-muted);
  margin-bottom: 0.95rem;
  font-size: 0.98rem;
}
.blog-article .blog-back { margin-top: 1.35rem; }

/* ——— FAQ community threads ——— */
.faq-threads {
  max-width: 960px;
  margin: 2.25rem auto 0;
}
.faq-threads > .section-title { margin-bottom: 0.85rem; }
.faq-threads-auth { margin-bottom: 1rem; }
.faq-threads-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  min-height: 22rem;
  height: min(62vh, 36rem);
}
.faq-threads .ticket-inbox { padding: 0.85rem 0.75rem; }
.faq-threads .ticket-chat { padding: 0; overflow: hidden; }
.faq-create {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.faq-create input,
.faq-create textarea {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  width: 100%;
}
.faq-create textarea { min-height: 4.2rem; resize: vertical; }
@media (max-width: 720px) {
  .faq-threads-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
}


/* ——— Ticket Staff / archive UI ——— */
.staff-ticket-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
}
.staff-pill.staff-ticket-badge {
  margin-left: 0.35rem;
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.status-pill.is-archived {
  color: #c9a0ff;
  border-color: rgba(201, 160, 255, 0.45);
}
.inbox-section-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.danger-btn {
  color: #ff8a9a !important;
  border-color: rgba(255, 80, 100, 0.55) !important;
  background: rgba(255, 60, 90, 0.12) !important;
  font-weight: 700 !important;
}
.danger-btn:hover {
  color: #ffb0ba !important;
  border-color: rgba(255, 100, 120, 0.75) !important;
  background: rgba(255, 60, 90, 0.2) !important;
}
.msg-edit-btn {
  margin-left: 0.35rem;
  font: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  cursor: pointer;
}
.msg-edit-btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}


/* Discord role pills */
.role-pills-wrap { margin-top: 0.35rem; }
.role-pills { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; vertical-align: middle; }
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.12rem 0.5rem 0.12rem 0.28rem;
  line-height: 1.2;
  vertical-align: middle;
}
.role-pill-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.role-pill-name { white-space: nowrap; }
.role-pill-staff,
.role-pill.role-pill-staff {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
  font-weight: 800;
}
.user-roles-line { margin: 0.5rem 0 0.75rem; }
.user-roles-line .role-pills { margin-left: 0.25rem; }
.bubble-meta .role-pills { margin-left: 0.15rem; }

/* Ticket Staff online (site presence) */
.staff-online-box {
  margin-bottom: 1rem;
  padding: 0.85rem 1.15rem;
}
.staff-online-box:hover { transform: none; }
.staff-online-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.staff-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69f0ae;
  box-shadow: 0 0 0 3px rgba(105, 240, 174, 0.22), 0 0 10px rgba(105, 240, 174, 0.55);
  flex-shrink: 0;
}
.staff-online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
}
.staff-online-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.staff-online-person img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(105, 240, 174, 0.35);
}
.staff-online-person .staff-online-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69f0ae;
  box-shadow: 0 0 6px rgba(105, 240, 174, 0.7);
  flex-shrink: 0;
}
.staff-online-empty {
  margin: 0;
  font-size: 0.82rem;
}
.staff-online-box.is-empty .staff-online-list { display: none; }
.staff-online-box:not(.is-empty) .staff-online-empty { display: none; }
.bubble-meta .role-pills { display: inline-flex; }
.thread-meta-roles { display: inline; margin-left: 0.15rem; }

/* ——— Black-hole page transitions ——— */
.bh-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%,
      #000 0%,
      #000 62%,
      rgba(20, 0, 40, 0.98) 72%,
      rgba(123, 47, 255, 0.45) 82%,
      rgba(0, 229, 255, 0.25) 90%,
      transparent 100%);
  clip-path: circle(0% at 50% 48%);
  will-change: clip-path, opacity;
}
.bh-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 18px 8px rgba(123, 47, 255, 0.85),
    0 0 40px 16px rgba(0, 229, 255, 0.4),
    0 0 2px 1px rgba(255, 45, 149, 0.9);
  opacity: 0;
  transform: scale(0.2);
}
body.bh-leaving,
body.bh-entering {
  overflow: hidden;
}
body.bh-leaving .site-header,
body.bh-leaving main,
body.bh-leaving .site-footer,
body.bh-entering .site-header,
body.bh-entering main,
body.bh-entering .site-footer {
  transform-origin: 50% 45vh;
  will-change: transform, opacity, filter;
}
body.bh-leaving .bh-overlay {
  opacity: 1;
  pointer-events: all;
  animation: bh-cover 0.22s cubic-bezier(0.55, 0.05, 0.9, 0.4) forwards;
}
body.bh-leaving .bh-overlay::after {
  opacity: 1;
  animation: bh-core-pulse 0.22s ease-out forwards;
}
body.bh-leaving .site-header,
body.bh-leaving main,
body.bh-leaving .site-footer {
  animation: bh-suck 0.22s cubic-bezier(0.7, 0, 0.85, 0.3) forwards;
}
body.bh-entering .bh-overlay {
  opacity: 1;
  pointer-events: all;
  animation: bh-reveal 0.26s cubic-bezier(0.15, 0.75, 0.35, 1) forwards;
}
body.bh-entering .bh-overlay::after {
  opacity: 1;
  animation: bh-core-fade 0.26s ease-out forwards;
}
body.bh-entering .site-header,
body.bh-entering main,
body.bh-entering .site-footer {
  animation: bh-spit 0.26s cubic-bezier(0.16, 0.85, 0.3, 1) forwards;
}
@keyframes bh-suck {
  0% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0) brightness(1); }
  55% { opacity: 0.85; filter: blur(2px) brightness(0.7); }
  100% { transform: scale(0.05) translateY(2vh); opacity: 0; filter: blur(12px) brightness(0.15); }
}
@keyframes bh-spit {
  0% { transform: scale(0.05) translateY(1vh); opacity: 0; filter: blur(12px) brightness(0.15); }
  45% { opacity: 0.92; filter: blur(2px) brightness(0.85); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0) brightness(1); }
}
@keyframes bh-cover {
  0% { clip-path: circle(0% at 50% 48%); opacity: 0.4; }
  20% { opacity: 1; }
  100% { clip-path: circle(160% at 50% 48%); opacity: 1; }
}
@keyframes bh-reveal {
  0% { clip-path: circle(160% at 50% 48%); opacity: 1; }
  80% { opacity: 1; }
  100% { clip-path: circle(0% at 50% 48%); opacity: 0; }
}
@keyframes bh-core-pulse {
  0% { transform: scale(0.4); opacity: 0.5; }
  45% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0.85; }
}
@keyframes bh-core-fade {
  0% { transform: scale(2.2); opacity: 1; }
  100% { transform: scale(0.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-overlay { display: none !important; }
  body.bh-leaving .site-header,
  body.bh-leaving main,
  body.bh-leaving .site-footer,
  body.bh-entering .site-header,
  body.bh-entering main,
  body.bh-entering .site-footer {
    animation: none !important;
  }
}


/* Story lore pages & teaser */
.story-teaser-card .story-teaser-scroll { max-height: 7rem; overflow-y: auto; }
.story-article .story-scroll { max-height: min(70vh, 52rem); overflow-y: auto; padding-right: 0.75rem; line-height: 1.75; }
.story-article h2 { margin-top: 1.75rem; }
.story-coming-soon { margin-top: 2rem; text-align: center; }
.story-coming-soon img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.25);
}

.story-inline-art {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}
.story-inline-art img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.25);
}
