:root {
  --bg: #000000;
  --surface: #111114;
  --surface-2: #1c1c21;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f6;
  --muted: #a1a1aa;
  --dim: #6b6b75;
  --glow: rgba(70, 80, 130, 0.35);
  --radius: 28px;
  --radius-sm: 14px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Soft blue glow at the top, like the portal */
.glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* Wordmark: light + bold */
.wordmark { letter-spacing: -0.03em; line-height: 1; }
.wordmark .light { font-weight: 300; }
.wordmark .bold, .bold { font-weight: 700; }
.wordmark.small { font-size: 1.15rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 38px; height: 38px; mix-blend-mode: screen; object-fit: cover; transform: scale(1.5); }

.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.95rem; }
.nav-links a:not(.pill) { color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.pill):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle span:nth-child(1) { width: 20px; }
.nav-toggle span:nth-child(2) { width: 20px; }
.nav-toggle span:nth-child(3) { width: 12px; align-self: center; transform: translateX(-4px); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { width: 20px; transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f6;
  color: #0a0a0c;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 16px 38px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12); background: #fff; }
.pill-sm { padding: 10px 22px; font-size: 0.9rem; }
.pill.full { width: 100%; }

.ghost-link { color: var(--muted); font-size: 1.05rem; transition: color 0.2s; }
.ghost-link:hover { color: var(--text); }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-logo {
  width: clamp(160px, 24vw, 240px);
  mix-blend-mode: screen;
  margin-bottom: -10px;
}
.hero .wordmark { font-size: clamp(3rem, 10vw, 7rem); }
.hero-sub {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--muted);
  font-weight: 400;
  max-width: 560px;
}
.hero-actions { margin-top: 44px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  width: 26px; height: 42px;
  border: 1.5px solid var(--dim);
  border-radius: 20px;
  display: flex; justify-content: center;
}
.scroll-cue span {
  width: 3px; height: 8px; margin-top: 8px;
  background: var(--muted);
  border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 40px) 0;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 520px; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- GAMES ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.game { overflow: hidden; transition: transform 0.35s, border-color 0.35s; }
.game:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.game-art {
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.game-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 55%);
}
/* Abstract placeholder art — swap for real key art */
.art-1 {
  background:
    radial-gradient(circle at 70% 30%, rgba(140, 160, 255, 0.55), transparent 45%),
    repeating-radial-gradient(ellipse at 50% 120%, #15161d 0 14px, #0b0b10 14px 28px);
}
.art-2 {
  background:
    radial-gradient(circle at 25% 60%, rgba(255, 255, 255, 0.35), transparent 40%),
    repeating-linear-gradient(115deg, #121218 0 2px, #050507 2px 22px),
    #08080b;
}
.art-3 {
  background:
    conic-gradient(from 210deg at 50% 55%, #0b0b10, #2a2d3d, #0b0b10, #1a1c27, #0b0b10);
}
.tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--muted);
}
.tag.live { color: #0a0a0c; background: #f4f4f6; border-color: transparent; }
.game-body { padding: 24px 28px 30px; }
.game-body p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }
.meta { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.meta span {
  font-size: 0.78rem; font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 28px 24px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat .label { color: var(--muted); font-size: 0.9rem; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.value { padding: 32px; }
.value .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  margin-bottom: 22px;
}
.value p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }

/* ---------- CAREERS ---------- */
.careers {
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(70, 80, 130, 0.22), transparent 70%),
    var(--surface);
}
.careers .pill { grid-column: 1 / -1; justify-self: start; }
.roles { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.roles li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.roles em { font-style: normal; font-size: 0.85rem; color: var(--dim); }
.roles li:has(> a) { padding: 0; }
.roles li > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; width: 100%; border-radius: inherit; transition: background 0.2s; }
.roles li > a:hover { background: #26262c; }
.roles li > a:hover em { color: var(--text); }
.roles-empty span { color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact-wrap { max-width: 560px; margin: 0 auto; }
.form { padding: clamp(28px, 5vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 1rem; }
.form input, .form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(120, 130, 200, 0.12);
}
.form .invalid { border-color: rgba(255, 110, 110, 0.6); }
.form .pill { margin-top: 6px; }
.form-note { text-align: center; color: var(--muted); min-height: 1.4em; font-size: 0.95rem; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw);
  margin: clamp(100px, 14vw, 160px) auto 0;
  padding: 40px clamp(20px, 5vw, 40px) 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 24px; }
.socials a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.socials a:hover { color: var(--text); }
.copy { width: 100%; color: var(--dim); font-size: 0.85rem; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about-grid, .careers { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 84px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 16px 18px; font-size: 1.1rem; }
  .nav-links .pill { margin-top: 8px; }
  .nav .wordmark.small { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ======================================================
   SHARED EXTRAS
   ====================================================== */
[hidden] { display: none !important; }
.nav-links a.active { color: var(--text); }
.section.tight { padding-top: clamp(40px, 6vw, 64px); }

/* ---------- TEAM PAGE ---------- */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(140px, 18vw, 200px) clamp(20px, 5vw, 40px) 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero .lead { margin-inline: auto; }

.group-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 56px 0 20px;
}
.group-title:first-child { margin-top: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.member {
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.member:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.avatar {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em;
  background:
    radial-gradient(circle at 30% 25%, rgba(140, 150, 220, 0.45), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .role { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.member .handle { color: var(--dim); margin-top: 10px; font-size: 0.85rem; }

/* ---------- STAFF PORTAL ---------- */
.staff-main {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 20px 60px;
  display: flex;
  justify-content: center;
}
.staff-loading { align-self: center; color: var(--muted); }

.login-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 6vh;
}
.wordmark.big { font-size: clamp(3rem, 12vw, 4.2rem); }
.login-sub { color: var(--muted); font-size: 1.15rem; margin-top: 10px; }
.login-card {
  width: 100%;
  margin-top: 40px;
  padding: 36px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.login-text { color: var(--muted); font-size: 0.95rem; }
.login-error {
  font-size: 0.92rem;
  color: #ffb4b4;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f4f4f6;
  color: #0a0a0c;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.discord-btn svg { width: 24px; height: 24px; color: #5865f2; }
.discord-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12); }
.login-alt { color: var(--muted); font-size: 0.95rem; }
.login-alt:hover { color: var(--text); }

.dash { width: 100%; max-width: var(--maxw); }
.dash-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  flex-wrap: wrap;
}
.dash-head .eyebrow { margin-bottom: 6px; }
.dash-head > div { flex: 1; min-width: 200px; }
.dash-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.dash-name { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.dash-meta { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.pill.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.pill.ghost:hover { background: #26262c; box-shadow: none; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.tile { padding: 28px; border-radius: 22px; transition: transform 0.25s, border-color 0.25s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.tile p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* ---------- STAFF NOTIFICATION ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 22px;
  border-color: rgba(88, 101, 242, 0.45);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(88, 101, 242, 0.18), transparent 70%),
    var(--surface);
  animation: noticeIn 0.5s ease;
}
.notice.success {
  border-color: rgba(87, 242, 135, 0.4);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(87, 242, 135, 0.12), transparent 70%),
    var(--surface);
}
.notice-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #5865f2;
  color: #fff;
}
.notice.success .notice-icon { background: #23a55a; }
.notice-icon svg { width: 28px; height: 28px; }
.notice-body { flex: 1; min-width: 200px; }
.notice-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.notice-text { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }
.notice-actions { display: flex; align-items: center; gap: 10px; }
.notice-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.notice-close:hover { color: var(--text); }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .notice { flex-wrap: wrap; }
  .notice-actions { width: 100%; }
  .notice-actions .pill { flex: 1; }
}

/* ---------- LIVE TEAM LIST ---------- */
.team-status { text-align: center; color: var(--muted); padding: 40px 0; }
.member-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.role-chip {
  font-size: 0.75rem; font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.role-chip.main { background: #f4f4f6; color: #0a0a0c; border-color: transparent; }

/* Social links not set up yet */
.social-off { color: var(--dim); opacity: 0.45; font-size: 0.95rem; cursor: not-allowed; user-select: none; }
.member-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.member-email:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

/* Contact extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inline-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.inline-link:hover { text-decoration-color: var(--text); }
.pill:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- WEBSITE EDITOR (staff panel) ---------- */
button.tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tile-edit { border-color: rgba(255, 255, 255, 0.22); background: radial-gradient(ellipse 80% 100% at 0% 0%, rgba(70, 80, 130, 0.25), transparent 70%), var(--surface); }
.game-play { margin-top: 18px; }

.editor { margin-top: 40px; padding-bottom: 110px; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.editor-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; }
.ed-section { padding: 0; margin-bottom: 14px; border-radius: 20px; overflow: hidden; }
.ed-section > summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
}
.ed-section > summary::-webkit-details-marker { display: none; }
.ed-section > summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; font-weight: 300; }
.ed-section[open] > summary::after { content: "–"; }
.ed-section > .ed-group, .ed-section > .ed-list { padding: 0 24px 24px; }
.ed-group { display: flex; flex-direction: column; gap: 16px; }
.ed-field { display: flex; flex-direction: column; gap: 8px; }
.ed-label { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.ed-hint { color: var(--dim); font-size: 0.8rem; }
.ed-field input[type="text"], .ed-field input[type="number"], .ed-field textarea, .ed-field select {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical;
}
.ed-field input:focus, .ed-field textarea:focus, .ed-field select:focus { border-color: rgba(255, 255, 255, 0.35); }
.ed-check { flex-direction: row; align-items: center; gap: 10px; color: var(--muted); font-size: 0.92rem; cursor: pointer; }
.ed-check input { width: 18px; height: 18px; accent-color: #f4f4f6; }
.ed-list { display: flex; flex-direction: column; gap: 12px; }
.ed-items { display: flex; flex-direction: column; gap: 12px; }
.ed-item { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: rgba(255, 255, 255, 0.015); }
.ed-item-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.92rem; }
.ed-tools { display: flex; gap: 6px; }
.ed-tool {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  cursor: pointer; font: inherit; font-size: 0.85rem;
}
.ed-tool:hover:not(:disabled) { color: var(--text); }
.ed-tool:disabled { opacity: 0.3; cursor: default; }
.ed-add { align-self: flex-start; }
.editor-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.editor[hidden] .editor-bar { display: none; }
.editor-status { margin-right: auto; color: var(--muted); font-size: 0.9rem; }
.editor-status.ok { color: #7ee2a0; }
.editor-status.error { color: #ffb4b4; }

/* ---------- APPEALS (public page + staff review) ---------- */
.case-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.appeal-help { margin-top: 20px; padding: 20px 24px; border-radius: 20px; color: var(--muted); font-size: 0.95rem; }
.appeal-help strong { color: var(--text); }
.case-card { padding: 22px 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.case-card.is-active { border-color: rgba(255, 255, 255, 0.18); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-title { display: flex; align-items: center; gap: 10px; }
.case-type {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
}
.case-type.t-ban { color: #ff9b9b; border-color: rgba(255, 110, 110, 0.35); }
.case-type.t-timeout { color: #ffd48a; border-color: rgba(255, 200, 100, 0.35); }
.case-type.t-warn { color: #ffe98a; border-color: rgba(255, 230, 120, 0.3); }
.case-type.t-kick { color: #c7b3ff; border-color: rgba(170, 140, 255, 0.35); }
.case-id { color: var(--dim); font-size: 0.85rem; }
.case-meta { color: var(--dim); font-size: 0.85rem; }
.case-reason { color: var(--muted); font-size: 0.95rem; }
.case-reason strong { color: var(--text); font-weight: 600; }
.case-why { color: var(--dim); font-size: 0.88rem; font-style: italic; }
.chip {
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.chip.good { color: #7ee2a0; border-color: rgba(87, 242, 135, 0.35); }
.chip.bad { color: #ff9b9b; border-color: rgba(255, 110, 110, 0.35); }
.chip.warn { color: #ffd48a; border-color: rgba(255, 200, 100, 0.35); }
.chip.info { color: #a9b4ff; border-color: rgba(120, 130, 255, 0.4); }
.appeal-box { border-left: 2px solid var(--border); padding: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 8px; }
.appeal-label { font-size: 0.8rem; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.appeal-text { color: var(--text); font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-reply { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.staff-reply.accepted { border: 1px solid rgba(87, 242, 135, 0.3); }
.staff-reply.denied { border: 1px solid rgba(255, 110, 110, 0.3); }
.appeal-form { margin-top: 4px; }
.appeal-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.appeal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.appeal-who { display: flex; align-items: center; gap: 10px; }
.appeal-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); }
.appeal-history summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.appeal-history ul { margin: 8px 0 0 18px; color: var(--dim); font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
.appeal-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill.danger { color: #ff9b9b; border-color: rgba(255, 110, 110, 0.35); }
.warn-text { color: #ffd48a; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px;
  border-radius: 999px; background: #f4f4f6; color: #0a0a0c; font-size: 0.75rem; font-weight: 700; vertical-align: middle;
}

/* ---------- Staff announcements ---------- */
.announce-form { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.announce-form h3 { font-size: 1.1rem; }
.announce-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #6b78c8; }
.ed-field.inline { flex-direction: row; align-items: center; gap: 10px; }
.ed-field select:disabled { opacity: 0.5; }
.announce-title { font-size: 1.1rem; }
.announce-body, .modal-body { color: var(--text); line-height: 1.65; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(560px, 100%); max-height: min(80vh, 720px); overflow-y: auto;
  padding: 30px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(120, 130, 255, 0.18);
  animation: popIn 0.25s ease;
}
.modal-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.modal-body { margin-top: 8px; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-backdrop { animation: none; } }

/* ---------- Linked roles tracker ---------- */
.link-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 4px; }
.link-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: 0.85rem;
  cursor: pointer; text-align: left; transition: border-color 0.2s, background 0.2s;
}
.link-stat strong { font-size: 1.5rem; color: var(--text); font-weight: 800; }
.link-stat:hover { border-color: rgba(255, 255, 255, 0.2); }
.link-stat.on { border-color: rgba(255, 255, 255, 0.45); background: var(--surface-2); }
.link-stat.s-bad strong { color: #ff9b9b; }
.link-stat.s-warn strong { color: #ffd48a; }
.link-stat.s-info strong { color: #a9b4ff; }
.link-stat.s-good strong { color: #7ee2a0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600;
}
.role-chip.claimed { border-color: rgba(87, 242, 135, 0.35); }
.role-chip.missing { color: var(--muted); border-style: dashed; }
.role-chip.extra { color: #ffd48a; border-color: rgba(255, 200, 100, 0.35); }

/* ---------- Careers / EOIs ---------- */
.apply-head { align-items: flex-start; }
.apply-who { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 600; }
.apply-signin { margin-top: 20px; padding: 22px 24px; border-radius: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.apply-signin .discord-btn { width: auto; }
.apply-heading { margin: 36px 0 0; font-size: 1.3rem; font-weight: 700; }
.eoi-form { margin-top: 6px; }
.eoi-answers { display: flex; flex-direction: column; gap: 12px; }
.eoi-answers dt { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.eoi-answers dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.position-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.position-row .case-meta { margin-top: 2px; }
.position-row.closed { opacity: 0.6; }
.hiring-positions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
